Stylograph API

Cancel a send-later note by the Idempotency-Key it was sent with

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.

DELETE
/api/v1/notes

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.

Authorization

ApiKeyAuth
headerAuthorizationBearer <API key (sg_live_...)>

An API key from Settings.

Query Parameters

idempotency_key*string

The Idempotency-Key the note was sent with.

Match^[!-~]{1,255}$
Length1 <= length <= 255

Response Body

The note as it now stands: cancelled, with its refund. A note that was already cancelled answers the same, with nothing more refunded.

application/json
  1. response
data*
Example Request
curl -X DELETE 'https://composer.stylograph.ai/api/v1/notes?idempotency_key=string'
Example Response
{  "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    }  }}