---
title: "Changes to Crear Invoice"
method: POST
path: "/invoices"
---

# Changes to Crear Invoice

`POST /invoices`

> Every recorded change to this operation, newest first.

## Timeline

Changed in 1 of 2 revisions.

- **2026-11-03** `a6ef070075b1`: 26 breaking, 12 warning, 56 info

## Changes

- **2026-11-03** `a6ef070075b1`: 26 breaking, 12 warning, 56 info
  - request body became required
  - for the `header` request parameter `x-account-key`, default value `` was added
  - added `#/components/schemas/CurrencyIso` to the `currency_code` request property `allOf` list
  - added `#/components/schemas/ReceiptType` to the `receipt_type` request property `allOf` list
  - removed the enum value `DELETE` of the request property `expiration_action`
  - removed the enum value `VOID` of the request property `expiration_action`
  - request property `max_collection_attempts` list-of-types was narrowed by removing types `number` from media type `application/json`
  - added the pattern `^((https://)|(http://))[a-zA-Z0-9.\-_~+#,%&=*;:@!/()?`_{}\[\]|~]+$` to the request property `link_payment`
  - added the pattern `^(?:[^ \n](?:[^\n]*[^ \n])?)?$` to the request property `product_id`
  - added the pattern `^\S+$` to the request property `due_date`
  - the `currency_code` request property type changed from `string` to no type
  - the `expiration_action` request property type changed from `string` to no type
  - the `id_receipt` request property type changed from `string` to `integer`
  - the `metadata` request property type changed from `string` to `object`, and format from `json` to no format
  - the `receipt_type` request property type changed from `string` to no type
  - the `amount` response's property type changed from `integer` to `number` for status `200`
  - the `amount` response's property type changed from `integer` to `number` for status `201`
  - the `currency_code` response's property type changed from `string` to no type for status `200`
  - the `currency_code` response's property type changed from `string` to no type for status `201`
  - the `id_receipt` response's property type changed from no type to `integer` for status `200`
  - the `id_receipt` response's property type changed from no type to `integer` for status `201`
  - the `receipt_type` response's property type changed from no type to `string` for status `200`
  - the `receipt_type` response's property type changed from no type to `string` for status `201`
  - the `source` response's property type changed from no type to `string` for status `200`
  - the `source` response's property type changed from no type to `string` for status `201`
  - the `status` response's property type changed from `string` to no type for status `200`
  - the `amount` request property's exclusiveMaximum was set to `1000000000000000.00`
  - the `due_date` request property's maxLength was set to `256`
  - the `invoice_external_id` request property's maxLength was set to `256`
  - the `product_id` request property's maxLength was set to `256`
  - the `amount` request property's min was set to `0.00`
  - removed the optional property `error` from the response with the `404` status
  - removed the optional property `error/body` from the response with the `422` status
  - removed the optional property `error/details` from the response with the `422` status
  - removed the optional property `metadata/car_brand` from the response with the `200` status
  - removed the optional property `metadata/car_brand` from the response with the `201` status
  - removed the optional property `metadata/car_model` from the response with the `200` status
  - removed the optional property `metadata/car_model` from the response with the `201` status
  - api operation id `crear-invoice` removed and replaced with `create_or_update_invoice`
  - api tag `Invoices` added
  - …54 more

---

[Operation](https://skmtc.dev/trytoku/apis/toku-api/docs/invoices/post.md) - [API](https://skmtc.dev/trytoku/apis/toku-api.md) - [Page](https://skmtc.dev/trytoku/apis/toku-api/changes/invoices/post)
