---
title: "createGovernmentInvoice"
method: POST
path: "/tax/invoices/2024-06-19/governmentInvoiceRequests"
tags: ["Invoices v2024-06-19"]
---

# createGovernmentInvoice

`POST /tax/invoices/2024-06-19/governmentInvoiceRequests`

## Request

- Base URL: `https://sellingpartnerapi-na.amazon.com`
- URL: `https://sellingpartnerapi-na.amazon.com/tax/invoices/2024-06-19/governmentInvoiceRequests`
- Auth: none declared

Submits an asynchronous government invoice creation request.

**Usage Plan:**

| Rate (requests per second) | Burst |
| ---- | ---- |
| 0.0167 | 1 |

For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.

## Request body

- GovernmentInvoiceRequest: Information required to create the government invoice.
  - `contexts` CarrierDetailsContext[]: Object that contains additional invoice creation information
    - `name` string: The name of the carrier, as registered in state and federal tax authorities.
    - `address` string: The address of the carrier, as registered in state and federal tax authorities.
    - `contextType` string: Type of additional information.
    - `federalTaxId` string: Tax Identification number of the carrier.
    - `regionCode` string: The code of the federal subdivision in which the carrier is registered.
    - `regionTaxId` string: The regional tax registration number of the carrier.
    - `vehicleLicensePlate` string: The identifier for the carrier vehicle as printed in its registration plate.
    - `vehicleRegistrationRegionCode` string: The code of the federal subdivision in which the carrier vehicle is registered.
  - `inboundPlanId` string: The unique InboundPlan identifier in which the shipment is contained and for which the invoice will be created.
  - `invoiceType` string, required: Marketplace specific classification of the invoice type. Check 'invoiceType' options using 'getInvoicesAttributes' operation.
  - `marketplaceId` string, required: The government invoices creation request will match the national authoritative source of the given marketplace.
  - `shipmentId` string, required: The unique shipment identifier to get an invoice for.
  - `transactionType` string, required: Marketplace specific classification of the transaction type that originated the invoice. Check 'transactionType' options using 'getInvoicesAttributes' operation.

## Response `204`

Successfully submitted a government invoice creation request.

## Other responses

- `400`: Request has missing or invalid parameters and cannot be parsed.
- `401`: A list of error responses returned when a request is unsuccessful.
- `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.
- `413`: The request size exceeded the maximum accepted size.
- `415`: The request payload is in an unsupported format.
- `429`: The frequency of requests was greater than allowed.
- `500`: An unexpected condition occurred that prevented the server from fulfilling the request.
- `503`: Temporary overloading or maintenance of the server.

---

[API](https://skmtc.dev/aws-samples/apis/a-content-management-v2020-11-01.md) - [All operations](https://skmtc.dev/aws-samples/apis/a-content-management-v2020-11-01/llms.txt) - [OpenAPI document](https://skmtc.dev/aws-samples/apis/a-content-management-v2020-11-01/revisions/815a5b6dbaa6?raw)
