POST /subscriptions

Subscribe or Unsubscribe customer to/from mailing list for specified retailer.

If email address existing, the customer account will be subscribed to mailing list of the retailer, otherwise customer email will get created with minimal data.

Request
SubscribeRequest
{
  "name": "Test User",
  "email": "valid_email@myemail.org",
  "add_free_gifts": 1,
  "iso_code2": "gb",
  "action": "subscribe"
}

Responses

SuccessResponse
{
  "result": "subscribed"
}
ErrorResponse