Creates an email message.
Email message resource.
Email message created.
Location | string <uri> Location of the related resource. Example: "https://api.rebilly.com/example" |
Unauthorized access. Invalid credentials used.
Access forbidden.
Invalid data sent.
{- "status": "draft",
- "metadata": {
- "eventType": "subscription-canceled"
}, - "credentialHash": "b120c2ca-6c2b-4690-9dff-3b0d87852dc7",
- "from": "from-example@rebilly.com",
- "to": [
- "to-example@rebilly.com"
], - "cc": [
- "cc-example@rebilly.com"
], - "bcc": [
- "cc-example@rebilly.com"
], - "subject": "Welcome dear customer!",
- "text": "Email message text body",
- "html": "<p>Email message html body</p>",
- "attachments": [
- {
- "resourceType": "invoice",
- "resourceId": "INV-1"
}
]
}
{- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "status": "draft",
- "metadata": {
- "eventType": "subscription-canceled"
}, - "credentialHash": "b120c2ca-6c2b-4690-9dff-3b0d87852dc7",
- "from": "from-example@rebilly.com",
- "to": [
- "to-example@rebilly.com"
], - "cc": [
- "cc-example@rebilly.com"
], - "bcc": [
- "cc-example@rebilly.com"
], - "subject": "Welcome dear customer!",
- "text": "Email message text body",
- "html": "<p>Email message html body</p>",
- "attachments": [
- {
- "resourceType": "invoice",
- "resourceId": "INV-1"
}
], - "createdTime": "2019-08-24T14:15:22Z",
- "updatedTime": "2019-08-24T14:15:22Z",
- "_links": [
- {
- "href": "string",
- "rel": "self"
}
]
}