Nostraddeveloper documentationDocumentationDeveloper console

One-time purchase lifecycle

What happens to a consumable or a non-consumable, step by step. Subscriptions have their own page: Subscription lifecycle.

The steps

StepHow it gets thereWhat GET /v1/purchases/<token> says
Purchase page openPOST /v1/purchases. It lasts 24 hours. If it's left, or the person chooses Cancel, nothing is boughtThere's no token yet
Bought, waiting for youThe person chose Buy, and the price left their creditstate purchased, acknowledgement pending, with acknowledge_by
AcknowledgedPOST /v1/purchases/<token>/acknowledge, after you deliveredacknowledgement acknowledged, acknowledge_by null
Consumed (consumables)POST /v1/purchases/<token>/consume. It acknowledges too. The product can be bought againconsumption consumed
Refunded, keptA refund without revokeStill purchased; refunded shows the credits
Taken backA refund with revoke, an approved refund request, or no acknowledgement in timestate cancelled: take away what you gave

Owning a product

If you don't acknowledge

A purchase not acknowledged within 3 days is refunded in full and taken back, with voided_reason unacknowledged_purchase. You get VOIDED_PURCHASE and ONE_TIME_PRODUCT_CANCELED. A test purchase has 3 minutes, not 3 days.