coupon_recipients
Create a coupon recipient
Changed onCreate a coupon recipient
post/coupon_recipients
Request
- Base URLhttps://{your_organization_slug}.commercelayer.io/api
- URLhttps://{your_organization_slug}.commercelayer.io/api/coupon_recipients
- AuthHTTP bearer
Request body
Example request
{
"data": {
"attributes": {
"email": "john@example.com",
"first_name": "John",
"last_name": "Smith",
"reference": "ANY-EXTERNAL-REFEFERNCE",
"reference_origin": "ANY-EXTERNAL-REFEFERNCE-ORIGIN",
"metadata": {
"foo": "bar"
}
},
"relationships": {
"customer": {
"data": {
"id": "XAyRWNUzyN"
}
}
}
}
}Response
The created coupon recipient object
Changes
- breaking
added the new required request property
/// - breaking
request property
/was restricted to a list of enum values - warning
removed the request property
/// - warning
removed the request property
/// - info
the
request property default valuecoupon_recipientswas removed - info
added the new
coupon_recipientsenum value to the request property/ - info
added the media type
application/vnd.api+jsonfor the response with the status
- breaking