v1
latestSwagger 2.02026-08-043765135.6 KBtransactions
Create Transaction
Create a new transaction
post/transactions
Query parameters
mockboolean
Return mock data
Request body
Example request
{
"data": {
"type": "transaction",
"attributes": {
"organizationId": "bdb88373-bf66-4bfc-a4f8-3a35be5c2f9c",
"customerId": "bdb88373-bf66-4bfc-a4f8-3a35be5c2f9c",
"appointmentId": "bdb88373-bf66-4bfc-a4f8-3a35be5c2f9c",
"amount": 50050
}
}
}Response
Return a single data response
Example response
{
"data": {
"attributes": {
"currency": "USD",
"createdAt": "2018-02-03T10:30:00Z",
"updatedAt": "2018-02-03T10:30:00Z"
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "bdb88373-bf66-4bfc-a4f8-3a35be5c2f9c"
}
},
"customer": {
"data": {
"data": {
"type": "customers",
"id": "bdb88373-bf66-4bfc-a4f8-3a35be5c2f9c"
}
}
},
"appointment": {
"data": {
"data": {
"type": "appointments",
"id": "bdb88373-bf66-4bfc-a4f8-3a35be5c2f9c"
}
}
}
}
}
}