Transactions
Get a transaction by its id
GET
/
api
/
transactions
/
get
/
transaction
/
{transaction_id}
Authorization
Path
curl --request GET \
--url https://api.senddotssandbox.com/api/transactions/get/transaction/{transaction_id} \
--header 'Authorization: <authorization>'
{
"success": true,
"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"
}
}
Authorizations
Authorization
string
headerrequiredBasic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
Path Parameters
transaction_id
integer
requiredId of transaction to return
Response
200 - application/json
success
boolean
transaction
object
curl --request GET \
--url https://api.senddotssandbox.com/api/transactions/get/transaction/{transaction_id} \
--header 'Authorization: <authorization>'
{
"success": true,
"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"
}
}