Skip to main content

Allocate Sales Credit to Orders

POST 

/api/customers/:customer/sales-credits/:salesCredit/allocate

Allocate an open sales credit to one or more sales orders. The amounts together may not exceed the credit's tax-inclusive total less what was already refunded from it, and each amount may not exceed what is still unpaid on its order.

Required scope: customers:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Authentication: Requires Bearer token.

Request​

Responses​

OK

Response Headers
    Content-Type