/
Retrying requests
Requests are not idempotent unless an endpoint says so. These endpoints act again every time they are sent, so a retry after a timeout can create a second order, charge or refund:
POST /ordersandPOST /payments/hosted-pagePOST /payments/saleandPOST /payments/authPUT /payments/refund
Before retrying, check whether the first request succeeded. Look up the order with GET /orders?origin_id=<the id you sent>, or its transactions with GET /transactions?order_id=<the id you sent>.
These endpoints are safe to retry:
PUT /subscriptions/resumeaccepts anIdempotency-Keyheader. A retry with the same key returns the subscription withreplayed: trueand does not charge again.POST /subscriptions/dime-billingrefuses a second debit for the same invoice with400 already_billed.POST /bridge/transfersrequires anIdempotency-Keyheader. A retry with the same key returns the original transfer and moves no money.