Nostraddeveloper documentationDocumentationDeveloper console

Refunds and voided purchases

Refunds and refund requests

Refunding an order

From your server with POST /v1/orders/<order_id>/refund, or under Monetize, Orders in the console:

curl https://gateway.nostrad.ai/v1/orders/NOS.1234-5678-9012-34567/refund -H "Authorization: Bearer $SALES_KEY" \
  -H "content-type: application/json" -H "Idempotency-Key: refund-7f3a" -d '{"amount": 100, "revoke": false}'

Voided purchases

GET /v1/purchases/voided lists the purchases taken back in the last 30 days, up to 1,000 a page (start, end in milliseconds; cursor from next_cursor): each with purchase_token, order_id, purchased_at, voided_at, voided_source (developer, customer or nostrad), voided_reason (one of the reasons above, or unacknowledged_purchase) and, for some of the quantity, voided_quantity. Take back what each gave.

Refund requests

A buyer can ask Nostrad for a refund within 48 hours of buying, once per purchase; after that they're told to contact you, and you can still refund from Orders for 3 years. They ask under Credit, Purchases on their account, with one of Apple's reasons: bought by mistake, didn't get it or it didn't work, not what they expected, a legal reason, something else. You get REFUND_REQUESTED. Answer from your server, with the buyer's consent, as Apple's consumption information:

curl https://gateway.nostrad.ai/v1/purchases/$PURCHASE_TOKEN/consumption -H "Authorization: Bearer $SALES_KEY" \
  -H "content-type: application/json" \
  -d '{"customer_consented": true, "delivery": "delivered", "consumed_percent": 25000, "sample_provided": false, "preference": "decline"}'
FieldValues
customer_consentedMust be true: the buyer agreed you may share this
deliverydelivered, undelivered_quality_issue, undelivered_wrong_item, undelivered_server_outage, undelivered_other
consumed_percentOptional: how much was used, in thousandths of a percent (0 to 100000). 0 when not delivered
sample_providedtrue or false: whether a free sample was offered before
preferenceOptional: approve, approve_prorated, decline or neutral

Only your first answer counts. Nostrad decides: a refund in full that takes the purchase back (VOIDED_PURCHASE), or a decline (REFUND_DECLINED). With no request, the command answers 404 no_refund_request.