curl --request POST \
--url https://api.example.com/v1/ui/payment-intents \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"customerRef": "<string>",
"productRef": "<string>",
"planRef": "<string>",
"pricingTier": "<string>",
"purpose": "product",
"amount": 5000050,
"currency": "<string>",
"description": "<string>"
}
'{
"id": "<string>",
"amount": 123,
"currency": "<string>",
"clientSecret": "<string>",
"publishableKey": "<string>",
"accountId": "<string>"
}Creates a new payment intent for a plan purchase. Requires an idempotency key in the request header.
curl --request POST \
--url https://api.example.com/v1/ui/payment-intents \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"customerRef": "<string>",
"productRef": "<string>",
"planRef": "<string>",
"pricingTier": "<string>",
"purpose": "product",
"amount": 5000050,
"currency": "<string>",
"description": "<string>"
}
'{
"id": "<string>",
"amount": 123,
"currency": "<string>",
"clientSecret": "<string>",
"publishableKey": "<string>",
"accountId": "<string>"
}Unique idempotency key for the request
111product, credit_topup, usage_billing 100 < x < 10000000500