---
title: "getCustomerInvoices"
method: GET
path: "/vendor/directFulfillment/shipping/v1/customerInvoices"
tags: ["Vendor Direct Fulfillment Shipping v1"]
---

# getCustomerInvoices

`GET /vendor/directFulfillment/shipping/v1/customerInvoices`

Returns a list of customer invoices created during a time frame that you specify. You define the  time frame using the createdAfter and createdBefore parameters. You must use both of these parameters. The date range to search must be no more than 7 days.

**Usage Plan:**

| Rate (requests per second) | Burst |
| ---- | ---- |
| 10 | 10 |

The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).

## Query parameters

- `shipFromPartyId` string
- `limit` integer
- `createdAfter` string, date-time, required
- `createdBefore` string, date-time, required
- `sortOrder` 'ASC' | 'DESC'
- `nextToken` string

## Response `200`

Success.

- GetCustomerInvoicesResponse — The response schema for the getCustomerInvoices operation.
  - `payload` CustomerInvoiceList — Represents a list of customer invoices, potentially paginated.
    - `pagination` Pagination — The pagination elements required to retrieve the remaining data.
      - `nextToken` string — A generated string used to pass information to your next request. If NextToken is returned, pass the value of NextToken to the next request. If NextToken is not returned, there are no more shipment items to return.
    - `customerInvoices` CustomerInvoice[] — Represents a customer invoice within the `CustomerInvoiceList`.
      - `purchaseOrderNumber` string, required — The purchase order number for this order.
      - `content` string, required — The Base64 customer invoice.
  - `errors` Error[] — A list of error responses returned when a request is unsuccessful.
    - `code` string, required — An error code that identifies the type of error that occurred.
    - `message` string, required — A message that describes the error condition.
    - `details` string — Additional details that can help the caller understand or fix the issue.

## Other responses

- `400` — Request has missing or invalid parameters and cannot be parsed.
- `403` — Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.
- `404` — The resource specified does not exist.
- `415` — The request payload is in an unsupported format.
- `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)
