MngGetCashierTransaction
Returns a single Cashier transaction by id and all linked balance operations.
Use this method for a BackOffice transaction detail/card screen.
Access
SESSION_MANAGER, SESSION_ADMIN, SESSION_DEALER,
SESSION_CRM_MANAGER, SESSION_CRM_ADMIN.
Request Parameters
| Name |
Type |
Required |
Description |
id |
int |
Yes |
Cashier transaction id |
Request Example
{
"command": "MngGetCashierTransaction",
"extID": "1",
"data": {
"id": 15
}
}
Response Fields
| Name |
Type |
Description |
transaction |
object |
Cashier transaction |
balance_operations |
array |
Balance operations linked to the transaction |
transaction
| Name |
Type |
Description |
id |
int |
Transaction id |
customer_id |
int |
Customer id |
login |
int |
Trading account login |
type |
int |
0 deposit, 1 withdrawal |
provider |
string |
Payment provider code |
method |
string |
Payment method |
provider_payment_id |
string |
External payment id |
amount |
double |
Payment amount |
currency |
string |
Payment currency |
account_currency |
string |
Account currency |
converted_amount |
double |
Converted amount |
conversion_rate |
double |
Conversion rate |
status |
int |
Transaction status |
failure_reason |
string |
Failure reason |
idempotency_key |
string |
Idempotency key |
comment |
string |
Comment |
metadata_json |
string |
Metadata JSON string |
created_time |
int64 |
Creation timestamp |
updated_time |
int64 |
Last update timestamp |
balance_operations
| Name |
Type |
Description |
id |
int |
Cashier balance operation id |
transaction_id |
int |
Parent transaction id |
login |
int |
Trading account login |
trade_order |
int |
Balance trade/order id |
cmd |
int |
Balance operation command |
amount |
double |
Amount |
currency |
string |
Currency |
reason |
int |
Trading balance reason |
status |
int |
Operation status |
failure_reason |
string |
Failure reason |
created_time |
int64 |
Creation timestamp |
updated_time |
int64 |
Last update timestamp |
Response Example
{
"transaction": {
"id": 15,
"customer_id": 5,
"login": 2000009,
"type": 0,
"provider": "stripe",
"method": "card",
"provider_payment_id": "pi_123",
"amount": 250.0,
"currency": "USD",
"account_currency": "USD",
"converted_amount": 250.0,
"conversion_rate": 1.0,
"status": 2,
"failure_reason": "",
"idempotency_key": "0f9bb0e7-642d-4b70-b458-62e3993c7d2d",
"comment": "",
"metadata_json": "{}",
"created_time": 1779270000,
"updated_time": 1779270100
},
"balance_operations": []
}
Errors
| Code |
Error |
Description |
400 |
INVALID_DATA |
id is missing or invalid |
404 |
RET_ERR_NOTFOUND |
Transaction was not found |