Skip to main content
PUT
/
discounts
/
{id}
Update discount
curl --request PUT \
  --url https://api.pocketsflow.com/discounts/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "code": "<string>",
  "value": 123,
  "active": true,
  "expiresAt": "2023-11-07T05:31:56Z"
}
'

Authorizations

Authorization
string
header
required

Enter your Pocketsflow API key (format: pk_live_... or pk_test_...)

Path Parameters

id
string
required

Discount ID

Body

application/json
code
string
value
number
active
boolean
expiresAt
string<date-time>

Response

200

Discount updated successfully