Skip to main content
POST
/
v1
/
checkout-sessions
/
{sessionId}
/
select-plan
Select a plan for a checkout session and create payment intent (public)
curl --request POST \
  --url https://api.example.com/v1/checkout-sessions/{sessionId}/select-plan \
  --header 'Content-Type: application/json' \
  --data '
{
  "planRef": "<string>"
}
'

Path Parameters

sessionId
string
required

Checkout session ID

Body

application/json
planRef
string
required
Minimum string length: 1

Response

Plan selected and payment intent created successfully