Partner Provisioning

Create a Stripe PaymentIntent for an owned order

Create a Stripe PaymentIntent for an owned order's unpaid proforma and return its client_secret + publishable_key + mode. Collect the card on your page with Stripe.js Payment Element using these, confirm, then call POST …/pay with the payment_intent_id. Single Stripe account — no Shared Payment Token needed.

Pass mode ("live" — default, or "test") to choose the environment per call: "test" creates the PaymentIntent with the sandbox key set so you can dry-run a sale with a Stripe test card (no real money). The chosen mode is pinned to the order, so the follow-up /pay and any webhook confirmation process it with the matching keys.

post/v1/partner/orders/{order_number}/pay-intent

Request

  • Base URL: https://developers.servera.co.uk
  • URL: https://developers.servera.co.uk/v1/partner/orders/{order_number}/pay-intent
  • Auth: HTTP bearer

Path parameters

order_numberstring required

Request body

mode'live' | 'test' nullable

Processing environment: 'live' (default) or 'test'.

Example request

{
  "mode": "test"
}

Response

Successful Response

payment_intent_idstring required
client_secretstring required
publishable_keystring required
mode'live' | 'test'

Environment this PaymentIntent was created in. Confirm it on your page with the matching Stripe.js publishable key (returned above).

amountnumber required
currencystring
invoice_idinteger required
invoice_numberstring nullable

Changes

No recorded changes to this operation across all 1 revision of this API.