---
title: "sendInvoice"
method: POST
path: "/messaging/v1/orders/{amazonOrderId}/messages/invoice"
tags: ["Messaging v1"]
---

# sendInvoice

`POST /messaging/v1/orders/{amazonOrderId}/messages/invoice`

Sends a message providing the buyer an invoice

## Path parameters

- `amazonOrderId` string, required

## Query parameters

- `marketplaceIds` string[], required

## Request body

- InvoiceRequest — The request schema for the `sendInvoice` operation.
  - `attachments` Attachment[] — Attachments to include in the message to the buyer.
    - `uploadDestinationId` string, required — The identifier for the upload destination. To retrieve this value, call the Uploads API [`createUploadDestinationForResource`](https://developer-docs.amazon.com/sp-api/reference/createuploaddestinationforresource) operation.
    - `fileName` string, required — The name of the file, including the extension. This is the file name that will appear in the message. This does not need to match the file name of the file that you uploaded.

## Response `201`

The message was created for the order.

## Other responses

- `400` — Request has missing or invalid parameters and cannot be parsed.
- `403` — 403 can be caused for reasons like Access Denied, Unauthorized, Expired Token, Invalid Signature or Resource Not Found.
- `404` — The resource specified does not exist.
- `413` — The request size exceeded the maximum accepted size.
- `415` — The entity of the request is in a format not supported by the requested resource.
- `429` — The frequency of requests was greater than allowed.
- `500` — Encountered an unexpected condition which prevented the server from fulfilling the request.
- `503` — Temporary overloading or maintenance of the server.

---

[API](https://skmtc.net/aws-samples/apis/a-content-management-v2020-11-01.md) · [All operations](https://skmtc.net/aws-samples/apis/a-content-management-v2020-11-01/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws-samples/a-content-management-v2020-11-01/revisions/815a5b6dbaa6/schema)
