POST
/
rentals
/
checkout
curl --request POST \
  --url https://restapi.gputrader.io/v1/rentals/checkout \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "returnUrl": "<string>"
}'
{
  "id": "<string>",
  "client_secret": "<string>"
}

Authorizations

X-API-Key
string
header
required

Body

application/json
returnUrl
string
required

URL to redirect to after checkout completion

Response

200
application/json
Checkout session successfully created
id
string

ID of the created checkout session

client_secret
string

Stripe client secret