Bulk add customers to a mailing list
POST
https://api.tamio.com/v2/customers/bulk/add-to-list
Adds multiple customers to a mailing list. Customers already subscribed are automatically skipped.
Body Parameters
customers
array of string*
Array of customer UUIDs
mailing_list
string*
UUID of the mailing list
Example
{
"customers": [
"550e8400-e29b-41d4-a716-446655440001",
"550e8400-e29b-41d4-a716-446655440002"
],
"mailing_list": "880e8400-e29b-41d4-a716-446655440000"
}
Responses
200
Customers added to mailing list
Customers added to mailing list
status
integer
customers
array of string
400
Validation or business-logic error.
Validation or business-logic error.
| Code | Description |
|---|---|
1002 | One or more customers or the mailing list not found |
status
integer
error
string
error_code
integer
401
Unauthorized – invalid or missing Bearer token
Unauthorized – invalid or missing Bearer token
status
integer
error
string