cURL
curl --request POST \ --url https://api.fourthwall.com/open-api/v1.0/promotions \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "code": "<string>", "discount": { "percentage": 123, "shipping": "Excluded", "type": "<string>", "money": { "value": 10, "currency": "USD" }, "freeShipping": true }, "type": "<string>", "codes": [ "<string>" ], "subscriptionType": { "type": "<string>" }, "tiers": { "type": "<string>" } } '
200
Example
{ "id": "<string>", "code": "<string>", "discount": { "percentage": 123, "type": "<string>", "money": { "value": 10, "currency": "USD" }, "freeShipping": true, "shippingOption": "Included" }, "status": "Live", "requirements": { "minimumOrderValue": { "value": 10, "currency": "USD" } }, "usageCount": 123, "limits": { "maximumUsesNumber": 123, "oneUsePerCustomer": true }, "appliesTo": { "type": "<string>" }, "type": "<string>", "title": "<string>" }
Creates a promotion
promotions_write
The access token received from the authorization server in the OAuth 2.0 flow.
Show child attributes
"MEMBERSHIPS_MULTI"
OK
Live
Ended
Archived
AllUsed
"SHOP_AUTO_APPLYING"