Files
medusa-store/docs/api/admin/code_samples/Shell/discounts/postundefined
2022-09-05 10:23:46 +03:00

12 lines
294 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"
}
}'