---
title: "Generate an Order Invoice batch"
method: POST
path: "/v2/user/marketplaces/orders/invoices/generate"
tags: ["OM Invoice - API - Generation"]
---

# Generate an Order Invoice batch

`POST /v2/user/marketplaces/orders/invoices/generate`

## Request

- Base URL: `https://api.beezup.com`
- URL: `https://api.beezup.com/v2/user/marketplaces/orders/invoices/generate`
- Auth: none declared
- TypeScript: <https://skmtc.dev/beezup/apis/beezup-merchant-api/docs/v2/user/marketplaces/orders/invoices/generate/post.ts> (a function with typed inputs; its response is checked against the schema)

## Query parameters

- `userName` string, required

## Request body

- GenerateBatchOrderInvoiceRequestItem[]
  - `marketplaceTechnicalCode` string, required: Marketplace Technical Code
  - `accountId` integer, required: Marketplace Account Identifier
  - `beezUPOrderUUID` string, required: beezUPOrderUUID
  - `invoiceSequenceNumber` integer, required: Invoice Sequence Number

## Response `202`

The locations of the generated invoice. Might take a few seconds to be available

- GenerateOrderInvoiceResponse[]
  - `marketplaceTechnicalCode` string, required: Marketplace Technical Code
  - `accountId` integer, required: Marketplace Account Identifier
  - `beezUPOrderUUID` string, required: beezUPOrderUUID
  - `invoiceSequenceNumber` integer: Invoice Sequence Number
  - `invoiceLocation` string

## Other responses

- `400`: GenerateBatchOrderInvoiceErrorResponse
- `403`: OwnerId not authorized The required order invoice settings have not been set BeezUPOrderStatus forbidden
- `404`: The order cannot be retrieved
- `409`: The InvoiceNumber is already used There is already an invoice for this order
- `429`: Too many Requests. Please retry in a few seconds
- `default`: Occurs when something goes wrong

## Changes

- **2026-07-13** `557b7feddf8a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/beezup/apis/beezup-merchant-api/changes/v2/user/marketplaces/orders/invoices/generate/post.md)

---

[API](https://skmtc.dev/beezup/apis/beezup-merchant-api.md) - [All operations](https://skmtc.dev/beezup/apis/beezup-merchant-api/llms.txt) - [OpenAPI document](https://skmtc.dev/beezup/apis/beezup-merchant-api/revisions/e5f75cb8243a?raw)
