Skip to main content
PATCH
/
{shopId}
/
coupons
/
627e1b7d514f2d760748f68c
Update shop coupon
curl --request PATCH \
  --url http://staging.qshop.ng/apiv2/{shopId}/coupons/627e1b7d514f2d760748f68c \
  --header 'Content-Type: application/json' \
  --data '
{
  "amount": 10,
  "applyAutomatically": true,
  "applyOn": "products",
  "code": "APRILEASTEREGGS",
  "code_type": "percentage",
  "created": "2022-01-14T23:00:00.000Z",
  "description": "Easter coupons for your lovely use",
  "expires": "2022-12-19T22:59:59.999Z",
  "isActive": true,
  "isPublic": false,
  "mediaType": "VIDEO",
  "min_order": 3500,
  "starts": "2022-01-14T23:00:00.000Z",
  "uuid": "aa84053e-8de5-4ffb-a9c8-f53202e2fb27"
}
'

Body

application/json
amount
number
Example:

10

applyAutomatically
boolean
Example:

true

applyOn
string
Example:

"products"

code
string
Example:

"APRILEASTEREGGS"

code_type
string
Example:

"percentage"

created
string
Example:

"2022-01-14T23:00:00.000Z"

description
string
Example:

"Easter coupons for your lovely use"

expires
string
Example:

"2022-12-19T22:59:59.999Z"

isActive
boolean
Example:

true

isPublic
boolean
Example:

false

mediaType
string
Example:

"VIDEO"

min_order
number
Example:

3500

starts
string
Example:

"2022-01-14T23:00:00.000Z"

uuid
string
Example:

"aa84053e-8de5-4ffb-a9c8-f53202e2fb27"

Response

200 - undefined