POST
/
customers
/
authorization
Create authorization session for customer
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>"
}

Authorizations

Authorization
string
header
required

API key authentication

Body

application/json
email
string<email>
required

The email address of the consumer.

redirectUrl
string<uri>

The URL to redirect the consumer to after the subscription process is complete.

planId
string

The unique identifier for the plan.

merchantId
string

The unique identifier for the merchant organization.

Response

Authorization session created successfully

id
string
required
status
enum<string>
required
Available options:
pending,
completed,
expired
expiresAt
string<date-time>
required
url
string
required
email
string
merchantId
string
merchantName
string
planId
string
planName
string
redirectUrl
string
customerId
string