Create runtime Checkout Session

POST/v1/servers/{serverId}/runtime/payments/checkout-sessions

Create a Stripe Checkout Session through the payments resource bound to this runtime.

How to call this endpoint

Every ACP API request uses bearer authentication. The examples here show the actual request path, auth header, and body shape that the platform expects.

Path, query, and header parameters

These parameters control which ACP object the endpoint acts on and how the request is processed.

Path parameters
NameLocationTypeRequiredDescription
serverIdpathstringYesResource ID
Query parameters
None.

Body schema

Content type: application/json · Required

FieldTypeRequiredDescription
successUrlstringYes—
cancelUrlstringYes—
clientReferenceIdstringNo—
conversionIdstringNo—
lineItemsobject[]Yes—
lineItems[].namestringNoHuman-readable name.
lineItems[].unitAmountintegerNoAmount in the smallest currency unit.
lineItems[].currencystringNo—
lineItems[].quantityintegerNo—

What the API returns

Each response code below includes the documented payload shape for the ACP API.

201Checkout Session createdapplication/json
FieldTypeRequiredDescription
serverIdstringNoResource ID.
paymentsServerIdstringNo—
checkoutSessionobjectNo—
checkoutSession.idstringNoUnique identifier.
checkoutSession.objectstringNo—
checkoutSession.urlstringNo—
checkoutSession.statusstringNoCurrent lifecycle status.
urlstringNo—
Create runtime Checkout Session
Loading...
Response 201
Loading...
See the ACP quickstart and SDK flow