Credit payments allow customers with a configured credit limit to pay on credit. The system checks eligibility in real time and filters credit lines from the fiscal payment pipeline.Documentation Index
Fetch the complete documentation index at: https://docs.laportenard.com/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
- Customer assigned to the order with
creditLimit > 0in Odoo - Order mode is not
return(credit is unavailable for refunds)
Eligibility check
The credit button appears in the payment screen when:- The order has a
partnerId(customer assigned) - The customer’s
creditLimitis greater than zero - The order mode is not
return
API endpoint
POST
/pos-api/v1/customers/credit-checkRequest
Response
Payment flow
Open payment screen
The credit button appears alongside standard payment methods if the customer is eligible.
Tap credit
Calls
/pos-api/v1/customers/credit-check to verify eligibility. If approved, a payment line is added with isCredit: true.Implementation details
PaymentLine.isCredit
ThePaymentLine type in types.ts includes an isCredit?: boolean flag. During order submission, lines with isCredit: true are excluded:
Customer model
TheCustomer interface in domain/customers/models.ts includes creditLimit?: number, populated from the bootstrap partners array and customer API responses.