Transactions
Get a transaction by its id
- Documentation
- API Reference
- GitHub
- API Introduction
Users
Payouts
Transactions
- POSTCreate transaction
- POSTCreate transaction (unverified user)
- POSTCreates multiple transactions asynchronously. Errors will be delivered by email.
- POSTGets the completion status of a transaction batch.
- GETGet transactions for a user
- GETGet a transaction by its id
- POSTRemove credit
- POSTCreate an ACH payment from a user's bank account with their Plaid information
- POST
Metrics
Flows
Invoices
Dots Endpoint (1.0.0)
Transactions
Get a transaction by its id
curl --request GET \
--url https://api.senddotssandbox.com/api/transactions/get/transaction/{transaction_id} \
--header 'Authorization: Basic <encoded-value>'
{
"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
transaction.id
integer
transaction.date
string
transaction.source_username
string
transaction.destination_username
string
transaction.amount
number
transaction.type
enum<string>
Available options:
credit
, wallet
transaction.completed
boolean
transaction.notes
object
transaction.receipt
object
transaction.receipt.items
object[]
transaction.receipt.items.name
string
transaction.receipt.items.unit_amount
integer
transaction.receipt.items.quantity
integer
transaction.receipt.items.description
string
transaction.receipt.breakdown
object
transaction.receipt.breakdown.items_total
integer
transaction.receipt.breakdown.tax
integer
transaction.receipt.breakdown.shipping
integer
transaction.credit_transaction_id
string
curl --request GET \
--url https://api.senddotssandbox.com/api/transactions/get/transaction/{transaction_id} \
--header 'Authorization: Basic <encoded-value>'
{
"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"
}
}