POST /api/v3/private/reviews 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: application/json
{
"name": "Test customer",
"text": "Exchange completed successfully.",
"tracking_id": "example-tracking-id"
}
{
"state": 0,
"message": "<string>",
"result": {
"review": {
"id": 123,
"status": {
"id": 123,
"name": "published",
"is_published": true
},
"name": "<string>",
"text": "<string>",
"rating": 123,
"order": {},
"timestamps": {}
}
},
"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
}
]
}
}
}
Reviews
Create review for own order
Submit a review for an order owned by the current client.
POST
/
private
/
reviews
POST /api/v3/private/reviews 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: application/json
{
"name": "Test customer",
"text": "Exchange completed successfully.",
"tracking_id": "example-tracking-id"
}
{
"state": 0,
"message": "<string>",
"result": {
"review": {
"id": 123,
"status": {
"id": 123,
"name": "published",
"is_published": true
},
"name": "<string>",
"text": "<string>",
"rating": 123,
"order": {},
"timestamps": {}
}
},
"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:reviews:write scope. Accepts Idempotency-Key.
Use a nonblank tracking_id or order_id for an order owned by the current client. When both are nonblank, the API looks up tracking_id. When both ratings are present, rate_speed takes precedence. A duplicate review returns a validation error for order_id.
The HTTP example uses test values. Substitute identifiers from your test installation and sign the data you actually send.
Related methods
POST /api/v3/private/reviews 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: application/json
{
"name": "Test customer",
"text": "Exchange completed successfully.",
"tracking_id": "example-tracking-id"
}
Authorizations
Headers
Body
application/json
- Option 1
- Option 2
Pass a nonblank order_id or tracking_id. If both are nonblank, tracking_id is used. If both ratings are nonnull, rate_speed is used.