Skip to content

Idempotency ​

POST /api/v1/merchant/orders requires:

http
Idempotency-Key: <your-stable-key>

The key is scoped to this API key and this operation. Maximum length is 200 characters.

A missing or empty key returns 400 MERCHANT_API_IDEMPOTENCY_KEY_REQUIRED.

Reuse the same key when you retry the same logical request. Do not generate a new key for every attempt.

You sendThe API returns
Same key, same body, after a successThe original success response
Same key, different body409 MERCHANT_API_IDEMPOTENCY_CONFLICT
Same key while another request with that key is still runningWait, then retry the same key and the same body. If the first request finished, you get its response. If it is still running, 409 MERCHANT_API_IDEMPOTENCY_IN_PROGRESS
Same key after a failed requestThe failed attempt is not kept. Retry the same key and the same body

externalOrderId is separate. It is your order id, unique for this API key. Sending it again does not create a second Chuchu order. If the later body does not match the commercial data already stored for that id, the API returns 409 EXTERNAL_ORDER_CONFLICT.

You may use your order number as Idempotency-Key. That only deduplicates retries. It does not replace externalOrderId.

Public documentation. No login.