Queries for retrieving Messages in the platform.

Queries

Query Messages

QUERYmessages
Arguments
where​
String​
sort​
Array of String​
limit​
Int​
offset​
Int​

Get Message

QUERYmessage
Arguments
id​
String​

Queries with specified ID

key​
String​

Queries with specified key

Output:Message

Output types

Message

This type is equivalent to Message in REST, with the following differences:
  • The fields that are specific to a Message Type, such as firstName on a Customer Message, aren't on the Message itself. They are on the payload field. In REST, they are on the Message.
  • resourceRef replaces the REST resource field and returns a Reference.
  • userProvidedIdentifiers replaces the REST resourceUserProvidedIdentifiers field.
id​
String​
type​
String​
sequenceNumber​
Long​
resourceRef​
resourceVersion​
Long​
userProvidedIdentifiers​
payload​
version​
Long​
createdAt​
lastModifiedAt​
createdBy​
lastModifiedBy​

MessageQueryResult

offset​
Int​
count​
Int​
total​
Long​
exists​
Boolean​
results​
Array of Message​

UserProvidedIdentifiers

User-provided identifiers present on the resource for which the Message is created. The value of the identifier stored in the Message corresponds to the one that was set on the resource at the version shown in resourceVersion.
key​
String​

User-provided unique identifier of the resource.

orderNumber​
String​
User-provided unique identifier of an Order.
customerNumber​
String​
User-provided unique identifier of a Customer.
externalId​
String​

User-provided unique identifier of the resource.

sku​
String​
Unique SKU of a Product Variant.
slug​
String​
Unique identifier usually used in deep-link URLs for a Product. The value corresponds to the slug in the current Product Projection.
slugAllLocales​
Array of LocalizedString​
Unique identifier usually used in deep-link URLs for a Product. The value corresponds to the slug in the current Product Projection.

MessagePayload

type​
String​

Message payload types

Each Message has a payload of a type that implements MessagePayload. The payload types are grouped by resource on the following pages: