POST /charge
POST
/charge
Track a new charge
Headers
Content-Type
application/json
Authorization
Bearer <token>
Body
customer*
string | Customer
Can be external ID, or full customer object
supplier*
string | Supplier
Can be external ID, or full supplier object
description*
string
amount*
float
USD amount of entire charge
commission*
USD amount that was passed to platform
charge_id
Charge ID in external system
created
timestamp
Unix timestamp in ms, defaults to current time
Response
{ "status": "ok", "internal_id": "<id:string>" }
{ "error": "Invalid request" }
Last updated 1 year ago