/api/public/express-checkout/confirm-payment
Public · no auth
Confirm payment and process order
Confirm a completed express checkout payment and finalise the order. Verifies the PaymentIntent has succeeded via the Stripe API, stamps the order with the customer's details and address, then runs the standard order-processing pipeline (fulfilment, automations, receipts). Idempotent: calling again on an already-paid order returns the same success response.
Body parameters
auto-derived Type, required, and constraints are read from this endpoint's validation rules at build time — they can't drift from the contract the API actually enforces.|
order_id
integer
required
|
Numeric order id from the createIntent response. |
|
payment_intent_id
string
required
|
Stripe PaymentIntent id from the createIntent response. |
|
customer_email
string · email
required
|
Buyer's email address for the order receipt. |
|
customer_name
string
optional
|
Buyer's display name. |
|
customer_phone
string
optional
|
— max: 40 |
|
shipping_address
object
optional
|
Address object supplied by the wallet sheet (physical products). |
|
billing_address
object
optional
|
Billing address object supplied by the wallet sheet. |
|
landing_page_slug
string
optional
|
Slug of the originating landing page, used to attach the order. |
|
utm_source
string
optional
|
Campaign source, stored on the order. |
|
utm_medium
string
optional
|
Campaign medium (e.g. "cpc"). |
|
utm_campaign
string
optional
|
Campaign name. |
|
utm_term
string
optional
|
Paid-search keyword term. |
|
utm_content
string
optional
|
Creative/content variant identifier. |
Responses
curl -X POST https://landing.pivotal.digital/api/public/express-checkout/confirm-payment \
-H "Content-Type: application/json" \
-d '{
"order_id": 4819,
"payment_intent_id": "pi_3Abc123",
"customer_email": "jane@acme.com",
"customer_name": "Jane Smith",
"utm_source": "google"
}'
{
"success": true,
"order_number": "ORD-20260531-4819",
"redirect_url": "https://landing.pivotal.digital/checkout/success/4819"
}
{ "error": "Payment not yet completed", "status": "requires_action" }
{ "error": "Payment mismatch" }
{ "error": "Order not found" }
{ "error": "Payment verification failed" }
{ "error": "An error occurred" }
/api/public/express-checkout/create-intent
Public · no auth
Create a PaymentIntent
Create a Stripe PaymentIntent for an express checkout session (Apple Pay / Google Pay). Returns a client secret that the browser's Payment Request API uses to mount the wallet sheet. A pending order is created immediately; customer details are collected at the confirmPayment step.
Rate limited.
Body parameters
auto-derived Type, required, and constraints are read from this endpoint's validation rules at build time — they can't drift from the contract the API actually enforces.|
product_id
integer
required
|
Numeric id of the product being purchased. |
|
variant_id
integer
optional
|
Numeric id of the selected product variant, if applicable. |
|
quantity
integer
required
|
Number of units. Must be at least 1. min: 1 |
|
currency
string
optional
|
ISO-4217 currency code (e.g. "gbp"). Falls back to the product's default currency. |
|
landing_page_slug
string
optional
|
Slug of the landing page the product lives on, used to resolve Stripe Connect routing. |
|
site
integer
optional
|
— |
|
shipping_country
string
optional
|
— |
|
shipping_rate_id
string
optional
|
— max: 40 |
|
shipping_postcode
string
optional
|
— max: 20 |
Responses
curl -X POST https://landing.pivotal.digital/api/public/express-checkout/create-intent \
-H "Content-Type: application/json" \
-d '{
"product_id": 42,
"quantity": 1,
"currency": "gbp",
"landing_page_slug": "my-product-page"
}'
{
"client_secret": "pi_3Abc123_secret_xyz",
"publishable_key": "pk_live_...",
"order_id": 4819,
"amount": 4999,
"currency": "gbp",
"requires_shipping": false,
"connected_account_id": null
}
{ "error": "Product not found" }
{ "error": "Insufficient stock" }
{ "error": "Payment not configured" }
/api/public/express-checkout/shipping-options
Public · no auth
Delivery options for a product
Delivery options for the wallet sheet BEFORE an order exists — a product card on a shop with shipping zones asks this when the buyer picks an address, so the sheet shows the same prices the basket would (weight bands and "free from" included). Display only: createIntent prices delivery again on the server.
Rate limited.
Body parameters
auto-derived Type, required, and constraints are read from this endpoint's validation rules at build time — they can't drift from the contract the API actually enforces.|
product_id
integer
required
|
Numeric id of the product on the card. |
|
variant_id
integer
optional
|
Numeric id of the selected variant, if any. |
|
quantity
integer
required
|
Number of units. Must be at least 1. max: 1000 min: 1 |
|
currency
string
required
|
Three-letter currency the card shows. |
|
site
integer
required
|
The shop the card sells in. |
|
country
string
optional
|
ISO-2 country of the address picked; empty = the shop's home zone. max: 2 |
|
postcode
string
optional
|
— max: 20 |
|
subtotal
number
required
|
What the items come to, as the card shows it (decides "free from"). max: 10000000 min: 0 |
Responses
curl -X POST https://landing.pivotal.digital/api/public/express-checkout/shipping-options \
-H "Content-Type: application/json" \
-d '{ "product_id": 7646, "quantity": 2, "currency": "GBP", "site": 42, "country": "GB", "subtotal": 49.98 }'
{
"zones": true,
"matched": true,
"country": "GB",
"shipping_options": [
{ "id": "r_std", "label": "Standard delivery", "detail": "3–5 working days", "amount": 499 }
]
}
{ "zones": false }
/api/public/express-checkout/update-shipping
Public · no auth
Update shipping options
Return available shipping options and a recalculated order total once the customer selects a shipping address in the wallet sheet. Currently returns the product's flat-rate shipping cost (or free shipping when no cost is set). The order and PaymentIntent are identified by the ids returned from createIntent.
Body parameters
auto-derived Type, required, and constraints are read from this endpoint's validation rules at build time — they can't drift from the contract the API actually enforces.|
order_id
integer
required
|
Numeric order id from the createIntent response. |
|
payment_intent_id
string
required
|
Stripe PaymentIntent id from the createIntent response. |
|
shipping_address
object
required
|
Address object provided by the browser's Payment Request API. |
|
site
integer
optional
|
— |
Responses
curl -X POST https://landing.pivotal.digital/api/public/express-checkout/update-shipping \
-H "Content-Type: application/json" \
-d '{
"order_id": 4819,
"payment_intent_id": "pi_3Abc123",
"shipping_address": { "country": "GB", "city": "London", "postalCode": "EC1A 1BB" }
}'
{
"shipping_options": [
{ "id": "standard", "label": "Standard Shipping", "amount": 499 }
],
"total": 5498
}
{ "error": "Order not found" }
{ "error": "Failed to calculate shipping" }
Landing Platform