Skip to main content
PATCH
/
62f438e98dbce15ea4dac7e5
Update subscription plans
curl --request PATCH \
  --url http://staging.qshop.ng/apiv2/62f438e98dbce15ea4dac7e5 \
  --header 'Content-Type: application/json' \
  --data '
{
  "__v": 0,
  "amount": 50,
  "applyAutomatically": false,
  "code": "50% DISCOUNT",
  "created": "2022-08-10T23:02:01.737Z",
  "description": "50 percent discount on subscriptions",
  "expires": null,
  "isActive": true,
  "starts": "2022-08-10T00:00:00.000Z",
  "type": "percentage",
  "usableOn": "subscription",
  "usageCount": 0
}
'

Body

application/json
__v
number
Example:

0

amount
number
Example:

50

applyAutomatically
boolean
Example:

false

code
string
Example:

"50% DISCOUNT"

created
string
Example:

"2022-08-10T23:02:01.737Z"

description
string
Example:

"50 percent discount on subscriptions"

expires
unknown
isActive
boolean
Example:

true

starts
string
Example:

"2022-08-10T00:00:00.000Z"

type
string
Example:

"percentage"

usableOn
string
Example:

"subscription"

usageCount
number
Example:

0

Response

200 - undefined