post https://api.piriod.com/coupons/
Creates a new Coupon object.
Response
Creates a new Coupon object.
xxxxxxxxxx
13curl --request POST \
--url https://api.piriod.com/coupons/ \
--header 'Authorization: Token YOUR_USER_API_KEY' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'x-simple-workspace: YOUR_ORGANIZATION_ID' \
--data '
{
"apply_on": "invoice",
"discount_scheme": "%",
"duration_scheme": "one_time"
}
'