Create a coupon recipient
How to create a coupon recipient via API
Last updated
How to create a coupon recipient via API
Last updated
To a new coupon recipient, send a POST
request to the /api/coupon_recipients
endpoint, passing the resource arguments in the request body.
POST https://yourdomain.commercelayer.io/api/coupon_recipients
type
string
Required
attributes.email
string
Required
attributes.first_name
string
Optional
attributes.last_name
string
Optional
attributes.reference
string
Optional
attributes.reference_origin
string
Optional
attributes.metadata
object
Optional
relationships.customer
object
Optional
The following request creates a new coupon recipient: