Skip to main content
POST
Create a gift card listing

Авторизации

Authorization
string
header
обязательно

Your API key, from the cabinet under Seller → API keys.

Тело

application/json

A gift card is one redemption code, handed over instantly — there is no delivery type to pick and no handover time to promise.

game
string
обязательно

The game's slug.

title
string
обязательно
Required string length: 8 - 128
price
integer<int64>
обязательно

US cents.

delivery_method
string
обязательно

A key from GET /v1/offers/delivery-methodsactivation_code.

units
object[]
обязательно

The codes themselves, one opaque JSON payload each. Encrypted at rest; never read back.

Minimum array length: 1
description
string
Maximum string length: 4096
images
string<uri>[]

Optional — the marketplace renders the pack tile.

Maximum array length: 10
tags
string[]

Up to 500 characters in all, counted as the tags joined with ", ". No commas inside a tag. Stored trimmed, lower-cased and deduplicated.

attributes
object

The category's own fields — read them from its schema.

Ответ

Created

What every category's listing carries, whatever it sells.

id
string<uuid>
title
string
description
string
attributes
object

The category's own fields, keyed by the schema's key.

tags
string[]
status
enum<string>

draft on create, then active once you publish it. paused and archived are yours too, through pause and DELETE. reserved and sold follow an order. removed is a takedown after publishing, which no call in this API performs.

Доступные опции:
draft,
active,
paused,
reserved,
sold,
removed,
archived
created_at
string<date-time> | null
updated_at
string<date-time> | null
published_at
string<date-time> | null

When publish put it on the marketplace. null while it is a draft, and written once — pausing and unpausing leave it alone.

price
integer<int64>

US cents.

currency
string

Always USD.

Пример:

"USD"

images
string<uri>[]
delivery_method
string | null

The key this listing hands over by.