v1
latestOpenAPI 3.0.22026-07-24800528.1 KBCreate a transaction
Creates a new transaction
Note that customer_external_key or customer_email can be provided in place of customer_key to reference the customer. The customer_key referred in this endpoint corresponds to the internal customer key generated by PartnerStack.
These customer reference fields are required, but mutually exclusive (i.e. you must provide exactly and only one of the three).
Request body
Example request
{
"amount": 10000,
"currency": "USD",
"stack_key": "stck_iamateammember",
"customer_external_key": "crust_Hu8Gfax3DXZn6K"
}Response
Creates a new transaction
Note that customer_external_key or customer_email can be provided in place of customer_key to reference the customer. The customer_key referred in this endpoint corresponds to the internal customer key generated by PartnerStack.
These customer reference fields are required, but mutually exclusive (i.e. you must provide exactly and only one of the three).
Example response
{
"data": {
"created_at": 1574181282399,
"key": "co_a80cb515fe",
"updated_at": 1574181282399,
"amount": 10000,
"currency": "USD",
"amount_usd": 10000,
"customer": {
"email": "johnsmith@gmail.com",
"external_key": "crust_Hu8Gfax3DXZn6K",
"key": "cus_MQ30zVaUvsWIna",
"shared_id": "1234567890"
}
}
}