Skip to main content

Create gift card payment link

POST 

/gift-card/stripe/buy/

Create a new inactive gift card and return a Stripe payment link. The gift card will be activated when the payment is completed.

Request

Body

    value floatrequired

    The value of the gift card

    currency string

    Default value: CHF

    The currency of the gift card (default CHF, also supports EUR, USD)

    email email

    The email of the customer (optional)

Responses

The details of the new gift card and payment link.

Schema
    payment_link string

    The URL to the Stripe payment page

    checkout_id string

    The ID of the checkout session

    value float

    The value of the gift card

    currency string

    The currency of the gift card

    status string

    Possible values: [pending]

    The status of the payment

Loading...