Landing Platform Landing Platform
Developer Express Checkout
POST /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
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

200 { "success": true, "order_number": "ORD-20260531-4819", "redirect_url": "https:/...
400 { "error": "Payment not yet completed", "status": "requires_action" }
400 { "error": "Payment mismatch" }
404 { "error": "Order not found" }
500 { "error": "Payment verification failed" }
500 { "error": "An error occurred" }
response
{
  "success": true,
  "order_number": "ORD-20260531-4819",
  "redirect_url": "https://landing.pivotal.digital/checkout/success/4819"
}
POST /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
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

200 { "client_secret": "pi_3Abc123_secret_xyz", "publishable_key": "pk_live_...", "o...
404 { "error": "Product not found" }
422 { "error": "Insufficient stock" }
500 { "error": "Payment not configured" }
response
{
  "client_secret": "pi_3Abc123_secret_xyz",
  "publishable_key": "pk_live_...",
  "order_id": 4819,
  "amount": 4999,
  "currency": "gbp",
  "requires_shipping": false,
  "connected_account_id": null
}
POST /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
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

200 { "zones": true, "matched": true, "country": "GB", "shipping_options": [ { "id":...
200 { "zones": false }
response
{
  "zones": true,
  "matched": true,
  "country": "GB",
  "shipping_options": [
    { "id": "r_std", "label": "Standard delivery", "detail": "3–5 working days", "amount": 499 }
  ]
}
POST /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
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

200 { "shipping_options": [ { "id": "standard", "label": "Standard Shipping", "amoun...
404 { "error": "Order not found" }
500 { "error": "Failed to calculate shipping" }
response
{
  "shipping_options": [
    { "id": "standard", "label": "Standard Shipping", "amount": 499 }
  ],
  "total": 5498
}