Skip to main content
POST

Authorizations

Authorization
string
header
required

Send your API token prefixed by Bearer in the Authorization header.

Body

application/json
price_in_cents
integer
required

The value of the offer in cents.

id
string
required

A unique client-assigned identifier for the order. Idempotent on retry.

message
string

Reward email message. Required if no supplied template.

subject
string

Reward email subject. Required if no supplied template.

gift_template
string

The template id used for this order.

contacts
object[]

A list of contact objects. Required for email delivery.

brand_codes
string[]

Custom list of one or more brand_code. Not applicable to Full Catalog choice.

region
string

Region for the Full Catalog from which recipients select a brand.

delivery_type
enum<string>

Optional. Defaults to email delivery. Set to SHORTLINK to create shortlink rewards from this same /campaign endpoint instead of having Giftbit deliver the reward by email.

Available options:
GIFTBIT_EMAIL,
SHORTLINK

Optional. For shortlink orders, the number of reward links to generate. Include this when delivery_type is SHORTLINK.

expiry
string

The order's claim-before date (YYYY-MM-dd). May not exceed one year from creation.

Response

Order creation has begun.

info
object

Status information returned on successful requests.

status
integer
campaign
object

An order object.