curl --request POST \
--url https://api.pocketsflow.com/discounts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"code": "<string>",
"type": "percentage",
"value": 123,
"productIds": [
"<string>"
],
"maxUses": 123,
"expiresAt": "2023-11-07T05:31:56Z"
}
'