Send Campaign
POST/print-mail/v1/campaigns/{id}/send
Send a campaign for processing.
This action transitions a campaign from the draft status to creating_orders.
You can optionally specify a future sendDate. Once sent, the campaign cannot be updated.
Send Campaign
curl https://api.postgrid.com/print-mail/v1/campaigns/$ID/send \
-H 'Content-Type: application/json' \
-H "X-API-Key: $POSTGRID_PRINT_MAIL_API_KEY" \
-d '{}'{
"id": "campaign_sqF12lZ1VlBb",
"createdAt": "2019-12-27T18:11:19.117Z",
"createdCount": 0,
"live": true,
"mailingList": "mailingList",
"status": "drafting",
"updatedAt": "2019-12-27T18:11:19.117Z",
"chequeProfile": "chequeProfile",
"defaultSenderContact": "defaultSenderContact",
"description": "description",
"errors": [
{
"message": "message",
"type": "processing_error"
}
],
"letterProfile": "letterProfile",
"metadata": {
"foo": "bar"
},
"orderPreviewURL": "https://example.com",
"postcardProfile": "postcardProfile",
"reportURL": "https://example.com",
"selfMailerProfile": "selfMailerProfile",
"sendDate": "2019-12-27T18:11:19.117Z"
}Returns Examples
{
"id": "campaign_sqF12lZ1VlBb",
"createdAt": "2019-12-27T18:11:19.117Z",
"createdCount": 0,
"live": true,
"mailingList": "mailingList",
"status": "drafting",
"updatedAt": "2019-12-27T18:11:19.117Z",
"chequeProfile": "chequeProfile",
"defaultSenderContact": "defaultSenderContact",
"description": "description",
"errors": [
{
"message": "message",
"type": "processing_error"
}
],
"letterProfile": "letterProfile",
"metadata": {
"foo": "bar"
},
"orderPreviewURL": "https://example.com",
"postcardProfile": "postcardProfile",
"reportURL": "https://example.com",
"selfMailerProfile": "selfMailerProfile",
"sendDate": "2019-12-27T18:11:19.117Z"
}