Create a partner hosted-checkout session
Changed onCreates a hosted checkout for the application invoice. Send exactly one of paymentProvider or paymentMethod. redirectUrl must use an approved redirect origin; Stripe returns the payer to redirectUrl?success=true on success and to redirectUrl on cancel. The response is { data: { url }, invoiceId }. Payment is confirmed asynchronously: poll the application until nextSteps.paymentRequired is false. Requires Idempotency-Key.
Request
- Base URLhttps://portal.eprospera.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Headers
8-128 URL-safe characters. Retained for 24 hours per integration and route. An identical retry replays the stored response with Idempotency-Replayed: true; a different body under the same key returns 409.
Request body
Response
Checkout session.
Changes
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- info
- breaking
the
headerrequest parameterIdempotency-Keybecame required - breaking
for the
headerrequest parameterIdempotency-Key, the minLength was increased from1to8 - breaking
added the pattern
^[A-Za-z0-9_.~-]+$to theheaderrequest parameterIdempotency-Key - warning
for the
headerrequest parameterIdempotency-Key, the maxLength was set to128 - info
added the non-success response with the status
- breaking