Idempotency
Usage
Idempotency-Key: order_12345Behavior
Example
# First request — creates the payment
curl -X POST https://apipay.byastra.ai/v1/api/payments \
-H "X-Api-Key: ap_live_your_api_key" \
-H "Idempotency-Key: order_12345" \
-H "Content-Type: application/json" \
-d '{"amount": 25, "token": "USDC", "network": "BASE"}'
# Retry with same key — returns cached response, no duplicate created
curl -X POST https://apipay.byastra.ai/v1/api/payments \
-H "X-Api-Key: ap_live_your_api_key" \
-H "Idempotency-Key: order_12345" \
-H "Content-Type: application/json" \
-d '{"amount": 25, "token": "USDC", "network": "BASE"}'Last updated