Buy gift card (Stripe)
POST/gift-card/stripe/buy/
Create a new gift card and return a Stripe payment link. The gift card will be activated when the payment is completed.
Request
- application/json
Body
required
value floatrequired
The value of the gift card
currency stringrequired
Default value: CHF
Currency code (e.g., CHF, EUR, USD)
email emailrequired
The email address of the customer
recipient_email email
The recipient email address (optional)
Responses
- 200
The details of the new gift card and payment link.
- application/json
- Schema
- Example (from schema)
Schema
checkout_url urirequired
Stripe checkout URL for payment
checkout_id uuidrequired
Unique checkout ID for tracking
value floatrequired
Gift card value
currency stringrequired
Currency code (e.g., CHF, EUR, USD)
status stringrequired
Checkout status (initially 'pending')
{
"checkout_url": "string",
"checkout_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"value": 0,
"currency": "string",
"status": "string"
}
Loading...