Digitail API
Sales

Create a Charge

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

Permissions needed: any of (CREATE_CHECKUPS, VIEW_COUNTER_SALE) Creates a new charge for a specific sale and returns it.

Authentication
Bearer
Path Parameters
id
*
Body Parameters
body
*
amount
type
card_brand
date
notes
Responses
201
Created
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
Bad request
Example
{"message":"The given data was invalid.","errors":{"card_brand":["The card brand field can only be provided on Payments with Cards"]}}
429
The user has sent too many requests in a given amount of time ("rate limiting"). Max 200 requests per minute.