twosided
  • Welcome
  • API Reference
    • Track a new charge
    • Create a new supplier
    • Create a new customer
  • Setting up your Stripe API key
  • Connecting to Sharetribe
Powered by GitBook
On this page
  1. API Reference

Track a new charge

PreviousAPI ReferenceNextCreate a new supplier

Last updated 9 months ago

POST /charge

Track a new charge

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Body

Name
Type
Description

customer*

string |

Can be external ID, or full customer object

supplier*

string |

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"
}
{
  "error": "Invalid request"
}
Customer
Supplier