Get a Single Transaction
The following APIs returns you the details of a single transaction/order.
GET https://services.driffle.com/api/seller/legacy/transactions/{txnId}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Authorization | header | string | Yes | Authorization token in Bearer <token> format. Example: Bearer dvakycjgw8liyd278y |
txnId | path | string | Yes |
Responses (application/json)
- 200
- 400
- 401
- 403
- 500
Default Response
| Field | Type | Required | Description |
|---|---|---|---|
message | string | No | |
statusCode | number | No | |
data | object | No | |
data.txnId | string | No | |
data.orderId | string | No | |
data.orderItemId | number | No | |
data.txnType | number | No | |
data.product | object | No | |
data.product.id | string | No | |
data.product.title | string | No | |
data.key | object | No | |
data.key.id | string | No | |
data.county | string | No | |
data.amount | number | No | |
data.commission | number | No | |
data.campaignFee | number | No | |
data.vatAmount | number | No | |
data.txnDate | string | No |
Bad Request. Wrong/Invalid params format.
| Field | Type | Required | Description |
|---|---|---|---|
message | string | No | Response message |
statusCode | number | No | Response status code |
UnAuthorized request. Invalid/Expired token
| Field | Type | Required | Description |
|---|---|---|---|
message | string | No | Response message |
statusCode | number | No | Response status code |
Forbidden Request. Action not allowed or Rate Limit exhausted.
| Field | Type | Required | Description |
|---|---|---|---|
message | string | No | Response message |
statusCode | number | No | Response status code |
Server Error.
| Field | Type | Required | Description |
|---|---|---|---|
message | string | No | Response message |
statusCode | number | No | Response status code |
Sample request
GET /api/seller/legacy/transactions/{txnId} HTTP/1.1
Host: services.driffle.com
Authorization: text
Accept: */*
Sample response (200)
{
"message": "text",
"statusCode": 1,
"data": {
"txnId": "text",
"orderId": "text",
"orderItemId": 1,
"txnType": 1,
"product": {
"id": "text",
"title": "text"
},
"key": {
"id": "text"
},
"county": "text",
"amount": 1,
"commission": 1,
"campaignFee": 1,
"vatAmount": 1,
"txnDate": "text"
}
}
GET /transactions/{txnId}
Headers
| Name | Value |
|---|---|
| Content-Type | application/json |
| Authorization | Bearer <token> |
Params
| Param | Param Type | Type | Required | Description |
|---|---|---|---|---|
| txnId | query | Number | Yes | ID of the transaction |
Response
- 200
- 400
- 401
- 403
- 500
{
"message": "string",
"statusCode": 200,
"data": {
"txnId": "string",
"orderId": "string",
"orderItemId": "number",
"txnType": 0,
"txnTypeLabel":"string",
"product": {
"id": "string",
"title": "string"
},
"key": {
"id": "string"
},
"county": "string",
"amount": "number",
"commission": "number",
"campaignFee": "number",
"vatAmount": "number",
"txnDate": "string"
}
}
{
"message": "Bad Request. Wrong/Invalid params format.",
"statusCode": 400
}
{
"message": "UnAuthorized request. Invalid/Expired token",
"statusCode": 401
}
{
"message": "Forbidden Request. Action not allowed or Rate Limit exhausted.",
"statusCode": 403
}
{
"message": "Internal Server Error",
"statusCode": 500
}
Last updated 11 February 2026