POST /api/v3/private/exchange/orders/{order}/cancel HTTP/1.1
Host: your-exchange
Accept: application/json
Authorization: Bearer <token>
X-Api-Signature-Version: v2
X-Api-Timestamp: <unix_timestamp>
X-Api-Nonce: <nonce>
X-Api-Signature: sha256=<hex_digest>
Idempotency-Key: <idempotency_key>
{
"state": 0,
"message": "<string>",
"result": {
"order": {
"id": 123,
"public_id": "<string>",
"tracking_id": "<string>",
"cash_handover": {
"version": 1,
"method": "office",
"direction_city_id": 2,
"city_id": 2,
"office_id": 123,
"office_name": "<string>",
"address": "<string>"
},
"status": {
"id": 123,
"key": "<string>",
"name": "<string>",
"is_final": true,
"is_payment_flow": true,
"is_problem": true,
"reason": "<string>"
},
"amounts": {
"give": "<string>",
"receive": "<string>",
"rate": "<string>",
"give_with_commission": "<string>",
"receive_with_commission": "<string>"
},
"currencies": {
"from": {
"id": 123,
"payment": "<string>",
"code": "<string>",
"designation": "<string>",
"small_code": "<string>",
"network": "<string>",
"network_out": "<string>",
"decimal": 123
},
"to": {
"id": 123,
"payment": "<string>",
"code": "<string>",
"designation": "<string>",
"small_code": "<string>",
"network": "<string>",
"network_out": "<string>",
"decimal": 123
}
},
"direction": {
"id": 123,
"name": "<string>"
},
"customer": {
"email": "<string>",
"phone": "<string>",
"from_requisite": "<string>",
"to_requisite": "<string>"
},
"payment": {
"merchant_provider": "<string>",
"merchant_status": "<string>",
"payment_address": "<string>",
"is_wallet_issued": true,
"timing": {
"duration_seconds": 123,
"started_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"remaining_seconds": 123,
"active": true,
"overdue": true,
"action": "<string>",
"changes_status_on_expiry": true,
"processed_at": "2023-11-07T05:31:56Z",
"source": "<string>",
"version": 123,
"is_snapshot": true,
"server_time": "2023-11-07T05:31:56Z"
},
"request_timing": {
"mode": "<string>",
"is_planned": true,
"requires_operator_plan": true,
"timer_start": "<string>",
"wait_minutes": 123,
"wait_total_seconds": 123,
"wait_started_at": "2023-11-07T05:31:56Z",
"wait_expires_at": "2023-11-07T05:31:56Z",
"wait_remaining_seconds": 123,
"wait_overdue": true,
"payment_minutes": 123,
"payment_total_seconds": 123,
"payment_started_at": "2023-11-07T05:31:56Z",
"payment_expires_at": "2023-11-07T05:31:56Z",
"payment_remaining_seconds": 123,
"payment_active": true,
"payment_overdue": true,
"payment_deadline_action": "<string>",
"payment_status_changes_on_expiry": true,
"payment_deadline_processed_at": "2023-11-07T05:31:56Z",
"payment_deadline_version": 123,
"server_time": "2023-11-07T05:31:56Z"
}
},
"flags": {
"is_archive": true,
"is_frozen": true,
"is_new_user": true,
"is_auto_check_payment": true
},
"timestamps": {
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"started_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"archived_at": "2023-11-07T05:31:56Z"
}
}
},
"meta": {
"request_id": "<string>",
"correlation_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"pagination": {
"mode": "page",
"current_page": 2,
"per_page": 2,
"total": 1,
"last_page": 2,
"from": 123,
"to": 123,
"has_more": true
},
"filters": {},
"sort": [
"<string>"
],
"summary": {
"total": 123,
"bonus_sum": "<string>",
"currency": "<string>",
"confirmed_accruals": 123,
"by_currency": [
{
"currency": "<string>",
"bonus_sum": "<string>",
"confirmed_accruals": 123
}
]
}
}
}
Обмен
Отменить свою заявку на обмен
Отмените заявку текущего клиента, если на этом этапе разрешена отмена.
POST
/
private
/
exchange
/
orders
/
{order}
/
cancel
POST /api/v3/private/exchange/orders/{order}/cancel HTTP/1.1
Host: your-exchange
Accept: application/json
Authorization: Bearer <token>
X-Api-Signature-Version: v2
X-Api-Timestamp: <unix_timestamp>
X-Api-Nonce: <nonce>
X-Api-Signature: sha256=<hex_digest>
Idempotency-Key: <idempotency_key>
{
"state": 0,
"message": "<string>",
"result": {
"order": {
"id": 123,
"public_id": "<string>",
"tracking_id": "<string>",
"cash_handover": {
"version": 1,
"method": "office",
"direction_city_id": 2,
"city_id": 2,
"office_id": 123,
"office_name": "<string>",
"address": "<string>"
},
"status": {
"id": 123,
"key": "<string>",
"name": "<string>",
"is_final": true,
"is_payment_flow": true,
"is_problem": true,
"reason": "<string>"
},
"amounts": {
"give": "<string>",
"receive": "<string>",
"rate": "<string>",
"give_with_commission": "<string>",
"receive_with_commission": "<string>"
},
"currencies": {
"from": {
"id": 123,
"payment": "<string>",
"code": "<string>",
"designation": "<string>",
"small_code": "<string>",
"network": "<string>",
"network_out": "<string>",
"decimal": 123
},
"to": {
"id": 123,
"payment": "<string>",
"code": "<string>",
"designation": "<string>",
"small_code": "<string>",
"network": "<string>",
"network_out": "<string>",
"decimal": 123
}
},
"direction": {
"id": 123,
"name": "<string>"
},
"customer": {
"email": "<string>",
"phone": "<string>",
"from_requisite": "<string>",
"to_requisite": "<string>"
},
"payment": {
"merchant_provider": "<string>",
"merchant_status": "<string>",
"payment_address": "<string>",
"is_wallet_issued": true,
"timing": {
"duration_seconds": 123,
"started_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"remaining_seconds": 123,
"active": true,
"overdue": true,
"action": "<string>",
"changes_status_on_expiry": true,
"processed_at": "2023-11-07T05:31:56Z",
"source": "<string>",
"version": 123,
"is_snapshot": true,
"server_time": "2023-11-07T05:31:56Z"
},
"request_timing": {
"mode": "<string>",
"is_planned": true,
"requires_operator_plan": true,
"timer_start": "<string>",
"wait_minutes": 123,
"wait_total_seconds": 123,
"wait_started_at": "2023-11-07T05:31:56Z",
"wait_expires_at": "2023-11-07T05:31:56Z",
"wait_remaining_seconds": 123,
"wait_overdue": true,
"payment_minutes": 123,
"payment_total_seconds": 123,
"payment_started_at": "2023-11-07T05:31:56Z",
"payment_expires_at": "2023-11-07T05:31:56Z",
"payment_remaining_seconds": 123,
"payment_active": true,
"payment_overdue": true,
"payment_deadline_action": "<string>",
"payment_status_changes_on_expiry": true,
"payment_deadline_processed_at": "2023-11-07T05:31:56Z",
"payment_deadline_version": 123,
"server_time": "2023-11-07T05:31:56Z"
}
},
"flags": {
"is_archive": true,
"is_frozen": true,
"is_new_user": true,
"is_auto_check_payment": true
},
"timestamps": {
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"started_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"archived_at": "2023-11-07T05:31:56Z"
}
}
},
"meta": {
"request_id": "<string>",
"correlation_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"pagination": {
"mode": "page",
"current_page": 2,
"per_page": 2,
"total": 1,
"last_page": 2,
"from": 123,
"to": 123,
"has_more": true
},
"filters": {},
"sort": [
"<string>"
],
"summary": {
"total": 123,
"bonus_sum": "<string>",
"currency": "<string>",
"confirmed_accruals": 123,
"by_currency": [
{
"currency": "<string>",
"bonus_sum": "<string>",
"confirmed_accruals": 123
}
]
}
}
}
English version
Подпишите запрос HMAC v2. Требуется право
public-api:exchange:orders:cancel. Принимает заголовок Idempotency-Key.
Связанные методы
POST /api/v3/private/exchange/orders/{order}/cancel HTTP/1.1
Host: your-exchange
Accept: application/json
Authorization: Bearer <token>
X-Api-Signature-Version: v2
X-Api-Timestamp: <unix_timestamp>
X-Api-Nonce: <nonce>
X-Api-Signature: sha256=<hex_digest>
Idempotency-Key: <idempotency_key>
Авторизации
Заголовки
Обязательная версия подписи запроса. Укажите v2 первой строкой канонического представления. Восьмой строкой добавьте Idempotency-Key без крайних пробелов или пустую строку при отсутствии ключа. Подписывайте исходные значения разобранного query.
Allowed value:
"v2"