Add new gift card

Gift Cards object that needs to be added. uuid is generated from BE. If you need to insert multiple Giftcards you can send and array of giftcards_body

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string

code generated to redeem the gift card. if it is null, will be generated from BE as a barcode ean13. Must be unique.

string

if it is not set, default currency of the shop will be used

number
required
≥ 0.01
boolean
Defaults to false

used to say if the gift card can be used more then once. If it is not set, but type_uuid.is_divisible is set, then giftcards.is_divisible = type_uuid.is_divisible

string

description of the giftcard

uuid

set by Be

boolean
Defaults to false

if it is true, can be used only from origin environment

uuid

origin sale generated from

uuid

uuid of the giftcards_types

uuid

uuidv4 must be unique if it is not set, backend will generated by default

date-time

if it is not set will be the same as created_at

date-time

if it is not set and type_uuid is set, then valid_until will be = days of giftcards_types.expire_after + Date.now(). Can not be less than valid_since

Responses

422

Error: Unprocessable Entity

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json