comecerodocs

Get a notification

GET
/notifications/{notification_id}

Gets one notification, with the body that was sent. Send debug=true to see retry details and why the last attempt failed. Secret, trusted and limited tokens may call it. A limited token only sees notifications to the customer it is bound to (403 otherwise).

Authorization

headerAuthorizationBearer <token>

A secret, trusted or limited token. See Authentication.

Path Parameters

notification_id*string

The notification id.

Query Parameters

debug?boolean

When true, the notification also has retry_count, date_last_delivery_attempt, date_next_delivery_attempt and last_failure_meta.

Defaultfalse
timezone?string

An IANA time zone name, such as America/New_York or UTC. It sets how date_start and date_end are read and the time zone of every date in the response. The default is the account's time zone (Settings, Technical), or UTC when it has none. A name that is not known is a 400.

expand?string

Comma-separated child objects to return in full instead of as a URL, for example customer,payments. Use dot notation for nested objects (items.product), up to four levels deep. A single object takes up to 12 paths; a list takes up to 2, applied to every item. Extra paths are dropped without an error. See Expanding objects.

show?string

Comma-separated fields to return; all others are left out. Use dot notation for child fields (customer.email). You cannot send show and hide together (400). See Customizing output.

hide?string

Comma-separated fields to leave out of the response. Use dot notation for child fields (customer.email). You cannot send show and hide together (400). See Customizing output.

formatted?boolean

When true, the object also has a formatted child with amounts and dates as display text in the shopper's language and currency (for example $19.99 or November 7, 2026). The default is false. See Localized formatting.

Defaultfalse

Response Body

The notification.

application/json
  1. response

One email Comecero sent, or will send, to a customer because a notification subscription matched. Notifications are kept for 120 days (15 days in test mode).

object?"notification"

Always notification.

Value in"notification"
url?|

The URL of this notification in the API. null on one sent with POST /notifications.

Formaturi
notification_id?|

The notification id. null on one sent with POST /notifications, which is not saved.

test?boolean

true for a test mode notification.

account_id?string

The account that sent it.

type?|

The kind of email. null on one sent with POST /notifications.

method?"email"

How it was sent. Only email today.

Value in"email"
from?|

The sender address. notification@comecero.com unless the subscription names one of your verified addresses.

from_name?|

The sender name. Defaults to your public company name.

reply_to?|

The reply-to address. When the subscription sets none and the email goes from Comecero's address, your support email is used.

bcc?|

Addresses that got a blind copy, comma-separated.

destination?|

Who it went to: the customer's email, plus the billing address email when that is different (separated by ;).

subject?|

The subject line, after placeholders were filled in.

notification_subscription?||

The notification subscription that sent it: its URL, or the full object with expand=notification_subscription. Left out when the token may not read notification subscriptions.

customer?||

The customer it was sent to: a URL, or the full object with expand=customer. Left out when the token may not read customers.

status?string

queued: not sent yet (an order confirmation waits here until every license key in the order is assigned). delivered: sent. retry: the last attempt failed and another is planned. failed: no more attempts.

Value in"queued""delivered""retry""failed"
date_created?string

When the notification was made.

Formatdate-time
date_modified?string

When it last changed, for example at its last send attempt.

Formatdate-time
data?|

The data the template was filled with: the order, payment, customer and account the email is about.

body?|

The HTML that was sent. In a list this holds a short note instead; get the notification by id to read the body.

retry_count?integer

How many automatic retries were made. Only with debug=true on a single notification.

date_last_delivery_attempt?|

When it was last tried. Only with debug=true on a single notification.

Formatdate-time
date_next_delivery_attempt?|

When the next attempt is planned. Only with debug=true on a single notification, and only when one is planned.

Formatdate-time
last_failure_meta?|

Why the last attempt failed. Only with debug=true on a single notification.

formatted?

Dates as display text. Only returned with formatted=true.

Example Request
curl -X GET 'https://api.comecero.com/api/v1/notifications/string'
Example Response
{  "object": "notification",  "url": "https://api.comecero.com/api/v1/notifications/1102611073905NOq2Lx7Pv",  "notification_id": "1102611073905NOq2Lx7Pv",  "test": true,  "account_id": "AB1234",  "type": "order:confirmation",  "method": "email",  "from": "notification@comecero.com",  "from_name": "Example Shop",  "reply_to": "support@example.com",  "bcc": null,  "destination": "john@example.com",  "subject": "Your Order Confirmation",  "notification_subscription": "https://api.comecero.com/api/v1/notification_subscriptions/1102500112233NSd4Kw9Tz",  "customer": "https://api.comecero.com/api/v1/customers/1102611073801CUa8Hn2Lq",  "status": "delivered",  "date_created": "2026-11-07T14:32:12Z",  "date_modified": "2026-11-07T14:32:14Z",  "data": {    "order": {      "order_id": "7393-GMRFY-954",      "total": 99.95,      "currency": "USD"    }  },  "body": "<html><body><h1>Thanks for your order</h1></body></html>"}