Documentation
Feedback
Guides
API Reference

API Reference
Filter By
Post
Get
Put
Delete
Patch

Customer Credit API

With Customer Credit your store can enable credit payments through the checkout. You can also control invoices and the credit limits of your clients.

Learn more about Customer Credit in our Help Center article.

Additionally, you can find more information on installment payments for an order in the customData field found in the Get Order endpoint of the Orders API. This includes the number of installments, amount and due dates.

All requests need an authorization header. This API allows two kinds of authorization:

  1. Authorization header containing the VTEX ID authentication token.
  2. VTEX Appkey and Apptoken headers.

Read Authentication for more information about authentication options.

Customer Credit API Index

Invoices

Account

Store Configuration

Endpoints

Invoices

SummaryMethodPath
Search all invoicesGET/api/creditcontrol/invoices
Retrieve invoice by IDGET/api/creditcontrol/accounts/{creditAccountId}/invoices/{invoiceId}
Change invoicePUT/api/creditcontrol/accounts/{creditAccountId}/invoices/{invoiceId}
Cancel invoiceDELETE/api/creditcontrol/accounts/{creditAccountId}/invoices/{invoiceId}
Retrieve invoices by Customer Credit account IDGET/api/creditcontrol/accounts/{creditAccountId}/invoices
Mark an invoice as paidPOST/api/creditcontrol/accounts/{creditAccountId}/invoices/{invoiceId}/payments
Postpone an invoicePUT/api/creditcontrol/accounts/{creditAccountId}/invoices/{invoiceId}/postponement

Account

SummaryMethodPath
Search all accountsGET/api/creditcontrol/accounts
Open an accountPOST/api/creditcontrol/accounts
Retrieve an account by IDGET/api/creditcontrol/accounts/{creditAccountId}
Close an accountDELETE/api/creditcontrol/accounts/{creditAccountId}
Update account informationPUT/api/creditcontrol/accounts/{creditAccountId}
Get account statementsGET/api/creditcontrol/accounts/{creditAccountId}/statements
Change credit limit of an accountPUT/api/creditcontrol/accounts/{creditAccountId}/creditlimit
Decrease balance of an accountPUT/api/creditcontrol/accounts/{creditAccountId}/statements/{statementId}
Create or update settlementPUT/api/creditcontrol/accounts/{creditAccountId}/transactions/{transactionId}/settlement
Create a pre-authorizationPOST/api/creditcontrol/accounts/{creditAccountId}/transactions
Update a pre-authorizationPUT/api/creditcontrol/accounts/{creditAccountId}/transactions/{transactionId}
Cancel a pre-authorizationDELETE/api/creditcontrol/accounts/{creditAccountId}/transactions/{transactionId}
Add an account holderPOST/api/creditcontrol/accounts/{creditAccountId}/holders
Delete an account holderDELETE/api/creditcontrol/accounts/{creditAccountId}/holders/{holderId}
Change tolerance of an accountPUT/api/creditcontrol/accounts/{creditAccountId}/tolerance
Partially or totally refund a settlementPOST/api/creditcontrol/accounts/{creditAccountId}/transactions/{transactionId}/refunds

Store Configuration

SummaryMethodPath
Retrieve store configurationGET/api/creditcontrol/storeconfig
Create or change store configurationPUT/api/creditcontrol/storeconfig

Loading API specification...