Skip to main content
PATCH
Update Plan Details

Authorizations

Authorization
string
header
required

Payaza {{Public API Key in Base 64}}

Path Parameters

planCode
string
required

The unique identifier of the subscription plan.

Body

application/json
name
string

The updated name of the subscription plan.

Example:

"Pro Monthly Plus"

description
string

The updated description of the plan.

Example:

"Updated monthly subscription"

trialPeriodDays
integer

The updated trial period in days.

Example:

7

billingLimit
integer

The updated maximum number of billing cycles.

Example:

24

Response

200 - application/json

Subscription plan details updated successfully

success
boolean

Indicates if the request was successful.

Example:

true

message
string

Descriptive message regarding the plan update operation.

Example:

"Plan updated"

data
object

The payload containing the details of the updated plan.