Skip to main content
POST
/
plans
Create subscription plans
curl --request POST \
  --url http://staging.qshop.ng/apiv2/plans/ \
  --header 'Content-Type: application/json' \
  --data '
{
  "amount": 10,
  "children": [
    "62f3b6ac36ed9dfbe1903a83"
  ],
  "currency": "60aa6c829aed9f2aa1b677da",
  "description": "Monthly subscription",
  "duration": 1,
  "durationType": "month",
  "features": [],
  "name": "Yearly test"
}
'

Body

application/json
amount
number
Example:

10

children
string[]
Example:
["62f3b6ac36ed9dfbe1903a83"]
currency
string
Example:

"60aa6c829aed9f2aa1b677da"

description
string
Example:

"Monthly subscription"

duration
number
Example:

1

durationType
string
Example:

"month"

features
any[]
Example:
[]
name
string
Example:

"Yearly test"

Response

200 - undefined