curl --request POST \
--url https://api.example.com/payment/create-subscription \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"billingName": "<string>",
"billingEmail": "[email protected]",
"billingFirstName": "<string>",
"billingLastName": "<string>",
"paymentMethodVendorId": 123,
"planID": 123,
"cardToken": "<string>"
}
'{
"success": true,
"data": "<unknown>"
}Stripe checkout Success
curl --request POST \
--url https://api.example.com/payment/create-subscription \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"billingName": "<string>",
"billingEmail": "[email protected]",
"billingFirstName": "<string>",
"billingLastName": "<string>",
"paymentMethodVendorId": 123,
"planID": 123,
"cardToken": "<string>"
}
'{
"success": true,
"data": "<unknown>"
}The access token received from the authorization server in the OAuth 2.0 flow.