Skip to Content

Send buyer messages

Check which message types are available for an order and send a message to the buyer.

Send a message to a buyer when you need to confirm details of their order, share a document, or let them know about a problem. Each message is tied to one order, and you can only send the message types available for that order.

Before you begin

  • Get an access token for the seller. See Authentication.
  • Have the order identifier and the marketplace in which the order was placed. See Retrieve orders.

Step 1: Get the available message types

Call Get the available message types for an order. Pass the order identifier in the path and one marketplace in marketplaceIds.

GET /messaging/v4/orders/1234567891234?marketplaceIds=<marketplace-id>
Authorization: Bearer <access_token>

The response is a JSON object that describes the message types you can send for this order. Send only those types.

Step 2: Check the message attributes (optional)

Call Get the message attributes available for an order to see the message attributes available for the order.

GET /messaging/v4/orders/1234567891234/attributes?marketplaceIds=<marketplace-id>
Authorization: Bearer <access_token>

Step 3: Send the message

Each message type has its own operation. All of them take the order identifier in the path, marketplaceIds in the query, and a JSON request body.

ToCall
Confirm customization detailsPOST .../messages/confirmCustomizationDetails
Confirm delivery detailsPOST .../messages/confirmDeliveryDetails
Confirm order detailsPOST .../messages/confirmOrderDetails
Confirm service detailsPOST .../messages/confirmServiceDetails
Send a digital access keyPOST .../messages/digitalAccessKey
Send an invoicePOST .../messages/invoice
Send a legal disclosurePOST .../messages/legalDisclosure
Report an unexpected problemPOST .../messages/unexpectedProblem
Send warranty informationPOST .../messages/warranty

For example, to tell the buyer about an unexpected problem with their order:

POST /messaging/v4/orders/1234567891234/messages/unexpectedProblem?marketplaceIds=<marketplace-id>
Authorization: Bearer <access_token>
Content-Type: application/json
{}

Request and response bodies

The request body is a JSON object, and the API reference doesn't define a fixed set of fields for it. The success response is also a JSON object without fixed fields. Check the reference page of the message type you send for the latest body definition.

A successful call returns 200.

Errors and edge cases

  • 400: the request is malformed, for example marketplaceIds is missing or has more than one value.
  • 401: the access token is missing, expired or invalid. Get a new token and retry.
  • 403: you don't have access to this order or operation.
  • 404: the order wasn't found.
  • 429: you exceeded the rate limit. Back off and retry.
  • Failed requests return an RFC 9457 problem details object with an errors array. Each error has a code and a message.

On this page