Skip to main content
POST
Buy packs

Authorizations

Authorization
string
header
required

Your API key, sent as a bearer token. Keep it on your server. See Authentication. A request from a location we refuse gets a 403 with Access denied, whether or not it has a valid key: where you can call from.

Headers

Idempotency-Key
string
required

Your order id, 8–128 characters of A-Za-z0-9_-, unique per account across pack and card orders. Reuse it to retry the same order safely, and use a new one for every new order.

Pattern: ^[A-Za-z0-9_-]{8,128}$

Body

application/json
pack_type
string
required

A pack_type from List packs.

Maximum string length: 100
category
enum<string>
default:pokemon

A catalog that has packs and listings.

Available options:
pokemon,
onepiece,
sports,
riftbound,
watches
quantity
integer
default:1

Up to the pack's max_quantity.

Required range: 1 <= x <= 10
risk_level
enum<string>
default:standard
Available options:
chill,
standard,
aggressive

Response

The order and every pull in it. A retry of a finished order returns the original body with idempotent_replay: true, and charges nothing. If we closed the order after its response was lost, the retry returns a shorter body with reconciled: true and no pulls, summary or remaining_balance: see Idempotency.

checkout_id
string
required

Our id for the order. Get an order takes it.

pack_type
string
required
quantity
integer
required
total_charged
number | null
required
remaining_balance
number
summary
object
pulls
object[]
idempotent_replay
boolean

This answers a retry of a finished order. Nothing was charged again.

reconciled
boolean

Present and true on the shorter body we return when we closed the order after its response was lost. It has pull_ids and a message, and no pulls, summary or remaining_balance.

pull_ids
string[]

Present with reconciled. The pulls in the order

message
string

Present with reconciled.