Getting started
Idempotency
A request that creates money movements or obligations can be safely retried after a network failure with the Idempotency-Key header: 8 to 128 printable ASCII characters, unique within the shop. A retry with the same key and body returns the previous result with status 200; with another body it gives 409 IDEMPOTENCY_CONFLICT.
POST /payouts: the key is required, otherwise a retry would really send a second payout;POST /invoices: the key is optional, but with it a retry does not create a second invoice. Your order number is a good key.