- Transactions
- Create transaction
Transactions
Create transaction
POST
/api/api/transactions/create
client_id*
api_key*
curl --request POST \
--url https://api.senddotssandbox.com/api/api/transactions/create \
--header 'Authorization: Basic AUTH_VALUE'
{
"user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
"amount": 0,
"receipt": {
"items": [
{
"name": "string",
"unit_amount": 0,
"quantity": 0,
"description": "string"
}
],
"breakdown": {
"items_total": 0,
"tax": 0,
"shipping": 0
}
},
"notes": {},
"idempotency_key": "0cd90e5a-2c03-4ab6-81a8-d48818026e58"
}
{
"success": true,
"message": "string",
"transaction": {
"id": 0,
"date": "string",
"source_username": "string",
"destination_username": "string",
"amount": 0,
"type": "credit",
"completed": true,
"notes": {},
"receipt": {
"items": [
{
"name": "string",
"unit_amount": 0,
"quantity": 0,
"description": "string"
}
],
"breakdown": {
"items_total": 0,
"tax": 0,
"shipping": 0
}
},
"credit_transaction_id": "string"
}
}
{
"user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
"amount": 0,
"receipt": {
"items": [
{
"name": "string",
"unit_amount": 0,
"quantity": 0,
"description": "string"
}
],
"breakdown": {
"items_total": 0,
"tax": 0,
"shipping": 0
}
},
"notes": {},
"idempotency_key": "0cd90e5a-2c03-4ab6-81a8-d48818026e58"
}
{
"success": true,
"message": "string",
"transaction": {
"id": 0,
"date": "string",
"source_username": "string",
"destination_username": "string",
"amount": 0,
"type": "credit",
"completed": true,
"notes": {},
"receipt": {
"items": [
{
"name": "string",
"unit_amount": 0,
"quantity": 0,
"description": "string"
}
],
"breakdown": {
"items_total": 0,
"tax": 0,
"shipping": 0
}
},
"credit_transaction_id": "string"
}
}