Create order
create_orderCreate a gift card order and receive a Lightning invoice for payment. Use the returned invoice to pay, then poll order status for the reveal link.
Instructions
Create an order and get a Lightning invoice to pay. After payment, poll get_order_status for the reveal link. Needs the variantId from get_product.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | optional: also send the reveal link here | ||
| amount | Yes | face value as a decimal string, e.g. "50" | |
| currency | Yes | ISO 4217, e.g. EUR | |
| productId | Yes | ||
| variantId | Yes | ||
| idempotencyKey | Yes | unique key so a retry never double-charges |