Skip to main content
This walks through placing an order with a sandbox key and fetching its codes.

1. Create a sandbox key

In your reseller dashboard, create an API key in the test environment. It is prefixed sc_test_ and shown once — copy it now.

2. Browse the catalog

Each catalog item is a purchasable denomination. Its id is what you order.
Response
Some products require purchase-form values (a game top-up needs a player id, for example). They carry an inputFields array — see Purchase input fields. This gift card needs none.

3. Place an order

An order carries one or more lines, each a product id and a quantity. Include an Idempotency-Key so a retry never places the order twice (see Idempotency).
Response
The response carries the order id and its status. In the sandbox an order is fulfilled at once, so it is born completed; a live order settles asynchronously — follow it on the order lifecycle.

4. Fetch the codes

Once the order is completed — you receive an order.fulfilled webhook, or you poll GET /v1/orders/{id} — fetch the codes:
Response
In the sandbox the codes are deterministic TEST- values. Switch to a sc_live_ key to order against your real wallet and supply.