Track a new charge

POST /charge

Track a new charge

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Body

Name
Type
Description

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*

float

USD amount that was passed to platform

charge_id

string

Charge ID in external system

created

timestamp

Unix timestamp in ms, defaults to current time

Response

{
  "status": "ok"
}

Last updated