Skip to main content

Delete Payment

DELETE 

/api/sales-credits/:salesCredit/payments/:payment

Deletes a payment from a sales credit and recalculates the payment status.

Required scope: orders:write

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

Authentication: Requires Bearer token.

Returns 422 for a refund recorded by the PayPal integration.

Returns 422 (sales_credit error) for any payment on a credit that records a refund made through PayPal (is_paypal_refund: true).

The payment must belong to the sales credit in the URL; otherwise 404.

The deleted amount becomes available on the credit again, and the balances of the invoices the credit belongs to are recalculated.

Request​

Responses​

OK

Response Headers
    Content-Type