Transactions
Get transactions for a user
GET
/
api
/
transactions
/
get
/
user
/
{user_id}
Authorization
Path
Query
curl --request GET \
--url https://api.senddotssandbox.com/api/api/transactions/get/user/{user_id} \
--header 'Authorization: <authorization>'
{
"success": true,
"transactions": [
{
"id": 0,
"date": "string",
"source_username": "string",
"destination_username": "string",
"amount": 0,
"type": "credit",
"direction": "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"
}
],
"total": 0
}
Authorizations
Authorizationheaderrequired
string
Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
Path Parameters
user_idrequired
string
User's id
Query Parameters
page
integer
Page of transactions to retirieve
type
enum<string>
Type of transactions to get (wallet or credit)
Available options:
wallet
, credit
, payout
Response
200 - application/json
success
boolean
total
integer
Number of transactions
transactions
object[]
curl --request GET \
--url https://api.senddotssandbox.com/api/api/transactions/get/user/{user_id} \
--header 'Authorization: <authorization>'
{
"success": true,
"transactions": [
{
"id": 0,
"date": "string",
"source_username": "string",
"destination_username": "string",
"amount": 0,
"type": "credit",
"direction": "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"
}
],
"total": 0
}