POST /api/v3/private/exchange/orders/{order}/receipts 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>
Content-Type: multipart/form-data; boundary=example-boundary
--example-boundary
Content-Disposition: form-data; name="file"; filename="<filename>"
Content-Type: <file_content_type>
<file bytes>
--example-boundary--
{
"state": 0,
"message": "<string>",
"result": {
"receipt": {
"id": 123,
"mime_type": "<string>",
"size_bytes": 123,
"created_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
}
]
}
}
}Files
Attach payment receipt
Attaches one receipt file to an order owned by the authenticated client. Use the separate confirmation operation to confirm payment. Reusing the same key and file returns the original receipt after the ordinary reply TTL. Receipt deletion or ownership change returns 404 while keeping the key occupied.
POST
/
private
/
exchange
/
orders
/
{order}
/
receipts
POST /api/v3/private/exchange/orders/{order}/receipts 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>
Content-Type: multipart/form-data; boundary=example-boundary
--example-boundary
Content-Disposition: form-data; name="file"; filename="<filename>"
Content-Type: <file_content_type>
<file bytes>
--example-boundary--
{
"state": 0,
"message": "<string>",
"result": {
"receipt": {
"id": 123,
"mime_type": "<string>",
"size_bytes": 123,
"created_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
}
]
}
}
}Русская версия
Sign the request with HMAC v2. Requires the
public-api:files:write scope. Accepts Idempotency-Key.
Related methods
POST /api/v3/private/exchange/orders/{order}/receipts 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>
Content-Type: multipart/form-data; boundary=example-boundary
--example-boundary
Content-Disposition: form-data; name="file"; filename="<filename>"
Content-Type: <file_content_type>
<file bytes>
--example-boundary--