To update send email to a customer, use the following request:
Panel |
---|
POST /customers/id/email |
Request Parameters
...
where:
- id
...
- (integer) is the customer ID.
Request JSON Objects
Valid JSON parameters include the following.
Parameter | Type | Required | Definition |
---|---|---|---|
subject | string | No | Email subject |
body | string | No | Email body |
Example request
Code Block |
---|
PATCH /customers/1/email HTTP/1.1
Content-Type: application/json
Authorization: Bearer f794846b7c26621688e1e06164975b4eae8ce2f6
{
"subject": "email subject",
"body": "message content",
} |
...
The LAC REST API returns the standard HTTP response codes described in the following table.
Status Code | Description |
---|---|
200 OK |
Email sent. | |
403 Forbidden | Invalid or expired token provided. |
404 Not Found | Customer id does not exist. |
Example Response
Code Block |
---|
HTTP/1.1 200 OK Content-Type: application/json { "message": "Success!" } |
...