Add customers
Give the Discount to one or more customers
scopes:
- admin:discounts
- write:discounts
Authorizations
Bearer authentication (token authentication) should be used for accessing the API.
Use Get Token to get an access token for client credentials. Pass the token in the request header:
where the access_token is JSON Web Tokens (JWT).
Path Parameters
Body
Customers to give the discount to
Use the offering_constraint_id to limit customers
to only receive the discount once for a given offering_constraint_id value.
i.e. a customer that is given the same discounts in multiple requests
with the same offering_constraint_id will only have one discount available.
"stamp-2020"
Response
Discount added to customers
Additional metadata about the discount
Metadata prefixed with dintero:exclude:public: will
be excluded when listing the rules from the public endpoint
and included in all other endpoints that returns discount rules