Трансфери (Відділення)
Отримання списку трансферів по відділенню
Get branch payments list with filter
Counterparty GUID
Receiver counterparty GUID
Sender counterparty GUID
Payment GUIDs
Payment sender ids
Payment receiver ids
Minimal amount
Maximum amount
Payment statuses
Asset issuers
Asset codes
ISO date
ISO date
ISO date
ISO date
Category
sorting order
offset
limit
GET /api/v1/counterparty/{counterparty_guid}/branch/{branch_guid}/payments HTTP/1.1
Host: your_host
Accept: */*
{
"payments": [
{
"amount": 1,
"asset_code": "text",
"asset_issuer": "text",
"category": "text",
"category_guid": "text",
"created_at": "text",
"deleted_at": "text",
"fee": 1,
"guid": "text",
"purpose": "text",
"receiver_account_account_kind": "text",
"receiver_counterparty": "text",
"receiver_id": "text",
"sender_account_account_kind": "text",
"sender_counterparty": "text",
"sender_id": "text",
"status": "CREATED",
"stellar_info": {
"hash": "text"
},
"target_balance": 1,
"updated_at": "text"
}
],
"total": 1
}
Створення трансферу в рамках відділення
Create branch payment
Counterparty GUID
Branch GUID
amount of tokens to transfer
asset code
address in Stellar that issues tokens
payment category
guid of receiver account
guid of sender account
account balance after operation
POST /api/v1/counterparty/{counterparty_guid}/branch/{branch_guid}/payments HTTP/1.1
Host: your_host
Content-Type: application/json
Accept: */*
Content-Length: 153
{
"amount": 1,
"asset_code": "text",
"asset_issuer": "text",
"category_guid": "text",
"purpose": "text",
"receiver_id": "text",
"sender_id": "text",
"target_balance": 1
}
{
"guid": "text"
}
Підтверження трансферу в рамках відділення
Confirm branch payment
Counterparty GUID
Branch GUID
Counterparty's GUID (receiver's bank). If it is not provided, the payment will be considered an internal transfer.
Payment's GUID
POST /api/v1/counterparty/{counterparty_guid}/branch/{branch_guid}/payments/confirm HTTP/1.1
Host: your_host
Content-Type: application/json
Accept: */*
Content-Length: 34
{
"bank_guid": "text",
"guid": "text"
}
{}
Отримання списку трансферів по відділенню
Get branch payments with filter
Counterparty GUID
Branch GUID
Payment GUID
GET /api/v1/counterparty/{counterparty_guid}/branch/{branch_guid}/payments/{payment_guid} HTTP/1.1
Host: your_host
Accept: */*
{
"amount": 1,
"asset_code": "text",
"asset_issuer": "text",
"category": "text",
"category_guid": "text",
"created_at": "text",
"deleted_at": "text",
"fee": 1,
"guid": "text",
"purpose": "text",
"receiver_account_account_kind": "text",
"receiver_counterparty": "text",
"receiver_id": "text",
"sender_account_account_kind": "text",
"sender_counterparty": "text",
"sender_id": "text",
"status": "CREATED",
"stellar_info": {
"hash": "text"
},
"target_balance": 1,
"updated_at": "text"
}
Оновлення трансферу по відділенню
Update branch payment
Counterparty GUID
Branch GUID
Payment GUID
PUT /api/v1/counterparty/{counterparty_guid}/branch/{branch_guid}/payments/{payment_guid} HTTP/1.1
Host: your_host
Content-Type: application/json
Accept: */*
Content-Length: 130
{
"amount": 1,
"asset_code": "text",
"asset_issuer": "text",
"purpose": "text",
"receiver_id": "text",
"sender_id": "text",
"status": "CREATED"
}
{}
Last updated