---
updatedAt: 2026-06-12T12:48:18.000Z
agentTools:
  projectIndex: https://finexio.readme.io/llms.txt
---

# Batch Create Invoices

Submit an array of invoices.Request Format: Array of Invoice objects

## Example Request

```json
[
     {
          "discount_amount_cents": 0,
          "metadata": {},
          "status_detail": {},
          "amount_cents": 0,
          "currency": "USD",
          "invoice_date": "2022-02-20",
          "invoice_due_date": "2022-02-20",
          "invoice_number": "string",
          "note": "string",
          "originating_counterparty_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
          "receiving_counterparty_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
          "reconciliation_id": "ID",
          "account_number": "1234"
     }
]
```

See [Invoices Schema](https://finexio.readme.io/reference/invoices) for more details.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "v2",
    "title": "Finexio API Doc",
    "description": "Testing Staging API Doc (Prod)"
  },
  "security": [
    {
      "BasicAuth": []
    }
  ],
  "servers": [
    {
      "description": "Finexio API Staging",
      "url": "https://api.finexio-stage.com/v2"
    }
  ],
  "paths": {
    "/invoices/batch/": {
      "post": {
        "operationId": "Create Invoice Batch",
        "summary": "Batch Create Invoices",
        "description": "Submit an array of invoices.Request Format: Array of Invoice objects",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/LegacyApiInvoice"
                }
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/LegacyApiInvoice"
                }
              }
            },
            "multipart/form-data": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/LegacyApiInvoice"
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Invoice"
                }
              }
            },
            "description": "Created"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "example": "Try It to see the response"
                }
              }
            },
            "description": "Bad Request"
          }
        },
        "tags": [
          "Invoices"
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "BasicAuth": {
        "type": "http",
        "scheme": "basic"
      }
    },
    "schemas": {
      "Invoice": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the invoice. This field is read-only.",
            "readOnly": true
          },
          "created": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          },
          "updated": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          },
          "amount_cents": {
            "type": "integer",
            "description": "Invoice amount in specified currency's smallest unit. e.g. $10 would be represented as 1000.\nReturned as 0 for invoices to suppliers set up for International payments in a foreign currency (the amount is carried in foreign_amount_minor_units instead).",
            "maximum": 999999900,
            "minimum": 0
          },
          "currency": {
            "type": "string",
            "description": "ISO 4217 currency code of the invoice. 'USD' for domestic invoices; the supplier's destination currency (e.g. 'EUR', 'GBP') for invoices to suppliers set up for International payments."
          },
          "foreign_amount_minor_units": {
            "type": "integer",
            "format": "int64",
            "description": "For international payments, the supplier-facing amount in the supplier's 'currency', expressed in ISO 4217 minor units (e.g. euro-cents for EUR, pence for GBP), as submitted on the invoice. Returned as 0 for domestic (USD) invoices."
          },
          "discount_amount_cents": {
            "type": "integer",
            "default": 0,
            "description": "Optional invoice discount amount in specified currency's smallest unit.",
            "maximum": 999999900,
            "minimum": 1
          },
          "invoice_date": {
            "type": "string",
            "format": "date-time",
            "description": "Date of invoice provided by recipient. Must be +/- 365 days from today."
          },
          "invoice_due_date": {
            "type": "string",
            "format": "date-time",
            "description": "Optional invoice due date"
          },
          "invoice_number": {
            "type": "string",
            "description": "Uniquely identifies this invoice for recipient.",
            "maxLength": 49
          },
          "note": {
            "type": "string",
            "description": "Optional additional information you would like to include regarding this invoice.",
            "maxLength": 1000
          },
          "originating_counterparty_id": {
            "type": "string",
            "format": "uuid",
            "description": "The ID of one of your organization's internal counterparties (Buyer) that will send payment."
          },
          "receiving_counterparty_id": {
            "type": "string",
            "format": "uuid",
            "description": "The ID of one of your external counterparties (Supplier) that will receive invoice payment."
          },
          "metadata": {
            "type": "object",
            "description": "Additional private data represented as key-value pairs. Both the key and value must be strings or integers."
          },
          "payment_id": {
            "type": "string",
            "readOnly": true,
            "description": "The id of the most recent Payment associated with this invoice."
          },
          "reconciliation_id": {
            "type": "string",
            "readOnly": false,
            "maxLength": 50,
            "description": "A string to identify the invoice in your accounting system."
          },
          "account_number": {
            "type": "string",
            "readOnly": false,
            "maxLength": 250,
            "description": "This sensitive information is stored encrypted and can only be retrieved through the API."
          },
          "payment_group_id": {
            "type": "string",
            "description": "Optional value that will be used to group invoices into payments. When specified, only invoices with the same value will be included in a single payment.",
            "maxLength": 100
          },
          "can_be_resubmitted": {
            "type": "boolean",
            "description": "Indicates if the same invoice number can be submitted again. Resubmitting the same invoice number for a specific buyer and supplier is only allowed if the prior payment was refunded."
          },
          "accounting_id": {
            "type": "string",
            "readOnly": false,
            "maxLength": 70,
            "description": ""
          },
          "status": {
            "$ref": "#/components/schemas/InvoiceStatus"
          }
        }
      },
      "InvoiceLineItem": {
        "type": "object",
        "properties": {
          "description": {
            "type": "string"
          }
        }
      },
      "InvoiceStatus": {
        "enum": [
          "pending",
          "in-progress",
          "sent",
          "complete",
          "failed",
          "canceled"
        ],
        "type": "string",
        "readOnly": true,
        "description": "Current invoice status"
      },
      "LegacyApiInvoice": {
        "type": "object",
        "properties": {
          "amount_cents": {
            "type": "integer",
            "description": "Invoice amount in specified currency's smallest unit. e.g. $10 would be represented as 1000.\nMust be 0 when the target supplier is set up for International payments in a foreign currency (submit the amount in foreign_amount_minor_units instead)."
          },
          "foreign_amount_minor_units": {
            "type": "integer",
            "format": "int64",
            "minimum": 0,
            "description": "For international payments, the supplier-facing amount in the supplier's currency, expressed in ISO 4217 minor units (e.g. euro-cents for EUR, pence for GBP).\nRequired and must be greater than 0 when the target supplier is set up for International payments in a foreign currency; must be 0 or omitted when the supplier is domestic (USD)."
          },
          "invoice_date": {
            "type": "string",
            "format": "date",
            "description": "Date of invoice provided by recipient. Must be +/- 365 days from today."
          },
          "invoice_number": {
            "type": "string",
            "description": "Uniquely identifies this invoice for recipient.",
            "maxLength": 49
          },
          "invoice_due_date": {
            "type": "string",
            "format": "date",
            "description": "Optional invoice due date"
          },
          "discount_amount_cents": {
            "type": "integer",
            "default": 0,
            "description": "Optional invoice discount amount in specified currency's smallest unit.",
            "minimum": 0
          },
          "note": {
            "type": "string",
            "description": "The optional additional information you would like to include regarding this invoice."
          },
          "originating_counterparty_id": {
            "type": "string",
            "format": "uuid",
            "description": "The ID of one of your organization's internal counterparties (Buyer) that will send payment."
          },
          "receiving_counterparty_id": {
            "type": "string",
            "format": "uuid",
            "description": "The ID of one of your external counterparties (Supplier) that will receive payment."
          },
          "metadata": {
            "type": "object",
            "description": "Additional private data represented as key-value pairs. Both the key and value must be strings or integers."
          },
          "currency": {
            "type": "string",
            "description": "ISO 4217 currency code to be used for invoice payment. 'USD' (the default when omitted) for domestic suppliers.\nRequired when the target supplier is set up for International payments in a foreign currency, and must match that supplier's currency (e.g. 'EUR', 'GBP')."
          },
          "line_items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InvoiceLineItem"
            }
          },
          "reconciliation_id": {
            "type": "string",
            "readOnly": false,
            "maxLength": 50,
            "description": "A string to identify the invoice in your accounting system."
          },
          "account_number": {
            "type": "string",
            "readOnly": false,
            "maxLength": 250,
            "description": "This sensitive information is stored encrypted and can only be retrieved through the API."
          }
        },
        "required": [
          "amount_cents",
          "invoice_date",
          "invoice_number",
          "originating_counterparty_id",
          "receiving_counterparty_id"
        ]
      }
    }
  },
  "tags": [
    {
      "name": "Invoices",
      "description": "Invoices management"
    }
  ]
}
```