Digitail API
Sales

Pay Sale with client credit

1min
POST
https://developer.digitail.io/api/v1/sales/{id}/pay-with-credit
Sandbox server (uses test data)

Permissions needed: any of (CREATE_CHECKUPS, VIEW_COUNTER_SALE) If amount sent is greater than sale amount due, after the sale is paid, difference between amount sent and sale amount due is used to pay outstanding balance sales.

Authentication
Bearer
Path Parameters
id
*
Body Parameters
body
*
amount
type
date
notes
Responses
200
Successful operation - return sale's payments
data
400
The request was invalid or contained data that was not allowed.
message
401
The authorization token is missing or invalid.
403
The user is not authorized to perform the requested operation.
422
This response is sent when a request fails validation. The format is identical on all endpoints.
message
errors
429
The user has sent too many requests in a given amount of time ("rate limiting"). Max 200 requests per minute.