v1
latestOpenAPI 3.1.02026-07-247328324.6 KBSales
Create a sale transaction
post/sellers/{seller_id}/sale-transactions
Path parameters
seller_idstring required
An object id with prefix
Example:user_0123456789ABCDEFGHIJKLMNOPq
An object id with prefix
Headers
IdempotencyKeystring
A unique key per operation, could be V4 UUID or other high‑entropy random string. Keys can be up to 255 characters. See Idempotent Requests.
Example:978771af-77de-4e24-ba39-f602502ceb78
A unique key per operation, could be V4 UUID or other high‑entropy random string. Keys can be up to 255 characters. See Idempotent Requests.
Request body
Example request
{
"amount": 10000,
"created": "2024-01-15T10:30:00Z",
"currency": "USD",
"fee": 10000,
"net": 10000,
"available_on": "2024-01-15T10:30:00Z",
"buyer_id": "user_0123456789ABCDEFGHIJKLMNOPq",
"subscription_id": "user_0123456789ABCDEFGHIJKLMNOPq",
"exchange_rate": -50.25,
"fee_details": [
{
"amount": 10000,
"currency": "USD"
}
],
"metadata": {
"key": "value"
}
}Response
Successful operation
Example response
{
"amount": 10000,
"created": "2024-01-15T10:30:00Z",
"currency": "USD",
"fee": 10000,
"net": 10000,
"available_on": "2024-01-15T10:30:00Z",
"buyer_id": "user_0123456789ABCDEFGHIJKLMNOPq",
"subscription_id": "user_0123456789ABCDEFGHIJKLMNOPq",
"exchange_rate": -50.25,
"fee_details": [
{
"amount": 10000,
"currency": "USD"
}
],
"metadata": {
"key": "value"
},
"payout_id": "user_0123456789ABCDEFGHIJKLMNOPq",
"id": "user_0123456789ABCDEFGHIJKLMNOPq",
"created_at": "2024-01-15T10:30:00Z",
"created_by": "user_0123456789ABCDEFGHIJKLMNOPq",
"updated_at": "2024-01-15T10:30:00Z",
"updated_by": "user_0123456789ABCDEFGHIJKLMNOPq"
}