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
- application/json
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
- 201
The details of the new gift card and payment link.
- application/json
- Schema
- Example (from schema)
- Example
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
{
"payment_link": "string",
"checkout_id": "string",
"value": 0,
"currency": "string",
"status": "pending"
}
{
"payment_link": "https://buy.stripe.com/test_bIY28F2j4dzYbrqbJ3",
"checkout_id": "0c869910-3f24-48b7-b260-947303033943",
"value": 100,
"currency": "USD",
"status": "pending"
}
Loading...