XISUITEDokumentation

form-builder-payments

3 Endpunkte. Basis-URL: https://xapi.ambertech.cloud/api/v1

Create a Stripe Checkout session for a form payment#

POST/spaces/{spaceId}/forms/{formId}/payments/checkout-sessionÖffentlich

Parameter

NameOrtTypBeschreibung
spaceIdPflichtPfadstring–
formIdPflichtPfadstring–
originPflichtHeaderstring–

Request-Bodyapplication/jsonCreateFormPaymentSessionDto

NameTypBeschreibung
field_keyPflichtstring

field_key of the `products` field being paid for.

selectionsPflichtFormPaymentSelectionDto[]

Selected products and their quantities.

selections[].product_idPflichtstring

Catalog product id, taken from the products field options.

selections[].quantityPflichtnumber

Requested quantity. Clamped server-side to the product min/max.

submission_dataPflichtobject

Full answer map keyed by field_key. Validated and saved as a draft submission before charging.

is_testboolean

Marks a preview/test payment from the builder — bypasses the published-status gate.

Standard: false

surfacestring

Where the form was filled; carried onto the draft so the paid submission honours its ticket switch.

Werte: wiki

Antworten

  • 200OK
Beispiel (cURL)
curl -X POST "https://xapi.ambertech.cloud/api/v1/spaces/{spaceId}/forms/{formId}/payments/checkout-session" \
  -H "Content-Type: application/json" \
  -d '{"field_key":"…","selections":[],"submission_data":{}}'

Get the non-secret payment config for the fill page#

GET/spaces/{spaceId}/forms/{formId}/payments/configÖffentlich

Parameter

NameOrtTypBeschreibung
spaceIdPflichtPfadstring–
formIdPflichtPfadstring–

Antworten

  • 200OK
Beispiel (cURL)
curl -X GET "https://xapi.ambertech.cloud/api/v1/spaces/{spaceId}/forms/{formId}/payments/config"

Get the status of a form payment checkout session#

GET/spaces/{spaceId}/forms/{formId}/payments/statusÖffentlich

Parameter

NameOrtTypBeschreibung
spaceIdPflichtPfadstring–
formIdPflichtPfadstring–
session_idPflichtQuerystring–

Antworten

  • 200OK
Beispiel (cURL)
curl -X GET "https://xapi.ambertech.cloud/api/v1/spaces/{spaceId}/forms/{formId}/payments/status"
Stand: 25. Oktober 2026© 2026 XISUITE · AmberTech Solutions