Partner Provisioning

Settle an owned order with a confirmed Stripe PaymentIntent

Settle an owned order's proforma with a Stripe PaymentIntent (created by /pay-intent and confirmed on your page with Payment Element). Servera re-verifies the PI is succeeded and matches the invoice amount, then converts the proforma to VAT, reconciles the payment and activates the services — synchronously (you get status: paid back).

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

Request

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

Path parameters

order_numberstring required

Headers

Idempotency-Keystring nullable

Request body

payment_intent_idstring required

The Stripe PaymentIntent id (pi_…) returned by /pay-intent and confirmed on your page.

max_chargenumber nullable

Optional cap; refused if the invoice total exceeds it.

Example request

{
  "max_charge": 3920.4,
  "payment_intent_id": "pi_3Qabc..."
}

Response

Successful Response

invoice_idinteger required
invoice_numberstring nullable
document_type'proforma' | 'vat' nullable
converted_from_proformastring nullable
status'unpaid' | 'paid' | 'cancelled' | 'draft' | 'refunded' required
is_paidboolean nullable
already_paidboolean nullable
methodstring nullable
totalnumber nullable
netnumber nullable
vatnumber nullable
vat_ratenumber nullable
grossnumber nullable
currencystring nullable
pendingboolean nullable
payment_statestring nullable
notestring nullable

Changes

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