Skip to main content
POST
Create Subscription

Authorizations

Authorization
string
header
required

Payaza {{Public API Key in Base 64}}

Body

application/json
customerEmail
string<email>
required

The customer's email address. Used to identify the customer's subscription. An email address can only have one active subscription per plan.

Example:

"johndoe@gmail.com"

planCode
string
required

The unique plan code generated when the subscription plan was created. If omitted, a plan is automatically created from the request.

Example:

"PLN_906FE4B"

cardDetails
object
required

The card information used to enroll the customer for recurring billing.

Response

Subscription Created

success
boolean

Indicates if the request was successful.

Example:

true

message
string

Descriptive message regarding the subscription creation status.

Example:

"Subscription created"

data
object

The payload containing the combined results of the subscription enrollment and initialization charge.