Skip to main content
POST
Import a gift card

Authorizations

Authorization
string
header
default:your_token_here
required

Restaurant-scoped partner API token passed as Authorization: Bearer <token>.

Body

application/json
external_ref
string
required

Your reference for this card, unique per application. Replaying a create with the same reference and the same card returns it; with another card, 409.

Required string length: 1 - 255
code
string
required

The code as your customers read it, kept as is. Unique within the restaurant, whatever its case or separators.

Required string length: 4 - 64
amount
integer
required

Face value, in cents. An experience is consumed whole.

Required range: x > 0
currency
string
required

The restaurant's currency.

Required string length: 3
type
enum<string>
default:MONETARY
Available options:
MONETARY,
EXPERIENCE
label
string

Required on an experience: the name the team reads.

Required string length: 1 - 200
covers
integer

Required on an experience: how many guests it covers.

Required range: x > 0
product_id
string

An experience tied to a product of the catalog can pay for it online. Without it, it is declared and consumed at the table.

variant_id
string

The product's variant.

expires_on
string<date>

Last valid day, at the restaurant. Omitted: it never expires.

holder_name
string
Required string length: 1 - 200

Response

Already imported

data
object
required
result
enum<string>
required

matched: this reference already issued this card.

Available options:
created,
matched