Cancel a queued note before the printer starts on it
Scope: `notes:send`. Cancels a queued note the printer hasn't started on yet, sent to print right away or for a later day, and gives back the credits it was charged. Nothing is mailed. A repeat cancel answers 200 with the note and refunds nothing more. Once the printer has it, or for a campaign note: 409 `NOTE_NOT_CANCELLABLE`. Someone else's note and an unknown id both answer 404. To change the date, cancel and send again with a new `Idempotency-Key`.
Scope: notes:send. Cancels a queued note the printer hasn't started on yet, sent to print right away or for a later day, and gives back the credits it was charged. Nothing is mailed. A repeat cancel answers 200 with the note and refunds nothing more. Once the printer has it, or for a campaign note: 409 NOTE_NOT_CANCELLABLE. Someone else's note and an unknown id both answer 404. To change the date, cancel and send again with a new Idempotency-Key.
ApiKeyAuthAuthorizationBearer <API key (sg_live_...)>An API key from Settings.
noteId*stringuuidThe note as it now stands: cancelled, with its refund. A note that was already cancelled answers the same, with nothing more refunded.
application/json- response
data*curl -X DELETE 'https://composer.stylograph.ai/api/v1/notes/497f6eca-6276-4993-bfeb-53cbbbba6f08'{ "data": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "reference": "string", "status": "queued", "format": "folded", "source": "api", "client": "string", "recipient": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "first_name": "string", "last_name": "string" }, "content_purged": true, "content_purged_at": "2019-08-24T14:15:22Z", "failure_code": "string", "refund": { "credits": 1, "refunded_at": "2019-08-24T14:15:22Z" }, "card_back": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string" }, "letter_design": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string" }, "qr_url": "string", "stylograph_back": true, "scheduled_for": "2019-08-24", "cta": { "type": "referral", "verbal_cue": "string", "qr": true, "scans": 0 }, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z", "status_history": [ { "status": "queued", "at": "2019-08-24T14:15:22Z" } ], "estimated_delivery": { "estimated_delivery_at": "2019-08-24T14:15:22Z", "basis": "usps", "business_days": 0 } }}Add a recipient without mailing them POST
Adds someone to the address book of the key's team, so a later send can name them by `recipient_id`. Nothing is mailed or charged, and no address check runs here: the send checks the address. Takes the fields a send's `recipient` takes and nothing more (never an email, notes about the person or a birthday). Someone already in the address book with the same name and address (ignoring case) is answered with their entry and `created: false`. The key's member needs a role that can change recipients (Org Admin, Team Admin or Operator). A team adds at most 1000 recipients in any 24 hours through the API.
Cancel a send-later note by the Idempotency-Key it was sent with DELETE
Scope: `notes:send`. The same cancel as DELETE /api/v1/notes/{noteId}, for a caller that knows its own key (an order number, say) and not the note id. 400 `IDEMPOTENCY_KEY_REQUIRED` without the parameter, and 404 when no note was sent with that key.