Files
medusa-store/docs/api/admin/code_samples/Shell/discounts/postundefined
2022-12-22 17:09:49 +02:00

13 lines
327 B
Plaintext

curl --location --request POST 'https://medusa-url.com/admin/discounts' \
--header 'Authorization: Bearer {api_token}' \
--header 'Content-Type: application/json' \
--data-raw '{
"code": "TEST",
"rule": {
"type": "fixed",
"value": 10,
"allocation": "item"
},
"regions": ["reg_XXXXXXXX"]
}'