curl --request POST \
--url https://api.paygentic.io/v0/customers/authorization \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"email": "jsmith@example.com",
"redirectUrl": "<string>",
"planId": "<string>",
"merchantId": "<string>"
}'
{
"id": "<string>",
"email": "<string>",
"merchantId": "<string>",
"merchantName": "<string>",
"planId": "<string>",
"planName": "<string>",
"redirectUrl": "<string>",
"status": "pending",
"expiresAt": "2023-11-07T05:31:56Z",
"customerId": "<string>",
"url": "<string>"
}
Create an authorization session for a customer. An authorization session is used to create customer and subscription resources for a consumer. The URL generated can be sent to the consumer for them to complete the subscription process.
curl --request POST \
--url https://api.paygentic.io/v0/customers/authorization \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"email": "jsmith@example.com",
"redirectUrl": "<string>",
"planId": "<string>",
"merchantId": "<string>"
}'
{
"id": "<string>",
"email": "<string>",
"merchantId": "<string>",
"merchantName": "<string>",
"planId": "<string>",
"planName": "<string>",
"redirectUrl": "<string>",
"status": "pending",
"expiresAt": "2023-11-07T05:31:56Z",
"customerId": "<string>",
"url": "<string>"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Authorization session created successfully
The response is of type object
.