Skip to main content

POST /market-messages/{mpid}/{message_id}/resend

Requests a resend of an eligible outbound market message for the authenticated supplier.

Request​

Method and path:

  • POST /market-messages/{mpid}/{message_id}/resend

Headers:

  • X-API-KEY or Authorization: Bearer <token> (one required). API key takes precedence when both are supplied.
  • X-IDEMPOTENCY-KEY (required): non-empty string.
  • X-TEST-MODE (optional): has no effect on resend requests.

Path parameters:

  • mpid (required): string supplier MPID authorized for the authenticated tenant.
  • message_id (required): UUID of the message to resend.

Request body:

  • None.

Response​

Success:

  • 200 OK.
  • Body type: object.
{
"message": "Message resend queued successfully",
"message_id": "72f30f06-afcc-4ad8-8c1f-78e556ea9cbc",
"queue_id": "ea12efad-051c-4f03-a076-b8729675bddb",
"status": "queued"
}

Other documented responses:

  • 400 Bad Request if the resend cannot be initiated.
  • 401 Unauthorized for invalid authentication or when mpid does not match the authenticated supplier.
  • 403 Forbidden when the tenant has no access to the requested supplier.
  • 404 Not Found when the message is not found as an outbound message owned by that supplier.
  • 409 Conflict when a dispatchable queue entry already exists for the message with an active dispatch status.
  • 422 Unprocessable Entity when message_id is not a UUID.
  • 428 Precondition Required when X-IDEMPOTENCY-KEY is missing or empty.
  • 500 Internal Server Error for an unexpected resend error.

Notes:

  • Resend does not filter by message status.
  • queue_id identifies the persistent outbound queue entry. Delivery is asynchronous.
  • A successful response is cached for the idempotency key for up to 72 hours; a replay returns the stored response.

Field-level constraints: