Skip to main content
POST
Русская версия 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.

Authorizations

Authorization
string
header
required

Sanctum token in Authorization: Bearer <token> format.

X-Api-Timestamp
string
header
required

Positive Unix seconds or an absolute ISO 8601 timestamp with seconds and a numeric offset or Z. A fractional second may contain up to six digits.

X-Api-Nonce
string
header
required

Unique nonce per token within the signing window. Use 8 to 128 characters from A–Z, a–z, 0–9, period, underscore, colon and hyphen.

X-Api-Signature
string
header
required

Hex HMAC-SHA256 signature, optionally prefixed with sha256=.

Headers

X-Api-Signature-Version
string
required

Required version of the request signature. Use v2 on the first line of the canonical string. The eighth line is the trimmed Idempotency-Key or an empty line when there is no key. Sign the originally parsed query values.

Allowed value: "v2"
Idempotency-Key
string

The usual replay window defaults to 24 hours. Successful order creation, payment receipt uploads and partner payouts use durable receipts.

Required string length: 8 - 191
Pattern: ^[A-Za-z0-9._:-]{8,191}$
X-Correlation-Id
string

Client-defined id used to correlate API request and webhook events.

Maximum string length: 128

Body

application/json

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.

order_id
string
required
Maximum string length: 64
Pattern: \S
name
string
required
Maximum string length: 40
text
string
required
Maximum string length: 200
rating
integer | null
Required range: 1 <= x <= 5
rate_speed
integer | null
Required range: 1 <= x <= 5
tracking_id
string | null
Maximum string length: 64

Response

Review sent to moderation.

state
enum<integer>
required
Available options:
0
message
string
required
result
object
required
meta
object
required