Limits, validations and responses of the ERP and base operations
The contract of the import templates and column mapping, series, articles and stock, sales orders, delivery notes and returns, purchase orders and expenses, invoices, storefront credentials, webhooks, automations, lists and MCP, with the codes, fields and limits each operation publishes. 286 operations updated.
2 December 2026 — This publication states, operation by operation, what the API v1 and MCP accept and what they answer in the areas below: the limits of every field, the status, code, subcode and param of each 422, 404 and 409, and the values that the sales order, the delivery note and the return publish. Nothing in it adds a resource. The operations of the ERP keep the shape they were published with, and the base operations keep theirs; what this page adds is the exact boundary of each field and the exact answer when a request is outside it.
Branch on error.code and, when it is present, error.subcode; error.param names the field. The message is Spanish text for people and can change.
Import templates and imports
Template format. GET /v1/companies/{company}/{entity}/import/template of warehouses, warehouse-stock, sales-orders, purchase-orders and contacts takes the query parameter format: csv (the default, only the headers) or xlsx (a workbook with the Data, Instructions, Examples and Allowed values sheets). Any other value answers 422 invalid_param_value with param format. A credential without the read scope of the entity is answered 403 insufficient_scope before the format is read.
Column mapping. The preview and the import of warehouses, warehouse-stock, sales-orders and purchase-orders, and their MCP tools, validate mapping before they register anything:
| Mapping | Answer |
|---|---|
| A value that is not a target field of the import, a negative one, or one longer than 255 characters | 422 with param mapping.<header>. |
| Two file columns mapped to the same field, a required field left unmapped, or an empty or repeated header | 422 business_rule_violation with subcode invalid_column_mapping and param mapping. |
A header named with a whole number (-1, 0, 2024) that the file does not have | 422 mapping_header_not_found. When the file has it, the column is mapped. |
No rejection of the mapping registers an import or queues work. The internal API of the application applies the same rules.
Rejected rows. The rows rejected by the imports of warehouses and of warehouse stock, in the preview and in the result, carry column, the header of the file that is mapped to the field that was rejected. A text that is too long is VALUE_TOO_LONG with params.max (255 for the address and its second line, 120 for the locality and the province, 20 for the postal code). A purchase-order import returns a row as rejected, and imports the rest of the file, when it finds a quantity or a cost with more than four decimals, a VAT, withholding or surcharge that is negative, has more than two decimals or exceeds 100 (INVALID_RANGE; the withholding is read as a magnitude), or a text longer than its limit (VALUE_TOO_LONG: 1,000 characters for the notes, 120 for the supplier reference, 255 for the line description, 100 for the order number). A sales-order preview marks with VALUE_TOO_LONG the row whose buyer, tax ID or address is longer than its column.
Keys. The key of the preview and the group_key of the results hold up to 240 characters: a longer key is published as its first 199 characters, ~ and the sha1 of the whole key. A long warehouse code, product reference or order number is therefore reported per row.
Contacts. The preview of a contact import marks as invalid, with its rejection on external_id, a row whose external_id starts with the reserved prefix channel-holder:.
See ERP imports.
Series
These rules apply to POST and PATCH of series and to the tools create_series and update_series.
initial_numberis an integer from 1 to 2,147,483,647, the maximum of the integer column. The schema declares it asmaximum. A greater value answers 422invalid_param_valuewithparaminitial_number.codeholds from 1 to 10 characters: letters, digits, hyphens and underscores (pattern^[A-Za-z0-9_-]+$). Any other value answers 422invalid_param_valuewithparamcode.number_formattakes up to 32 characters.GET /v1/companies/{company}/series/defaultwithoutdocument_typeanswers 422invalid_param_valuewithparamdocument_type.- Two simultaneous requests that create a series with the same
codeleave one series and answer the other 422invalid_param_valuewithparamcode. Two simultaneous creations of series of the same document type leave a single default series;PATCH …/series/{series}/defaultand unarchiving answer 422business_rule_violationwithsubcodeseries_default_already_existswhen another series took the default first.
Articles, offers and stock
- Description and name.
descriptionof an article admits up to 65,535 bytes in UTF-8. A longer one answers 422invalid_param_valuewithparamdescriptioninPOSTandPATCHof products and increate_productandupdate_product. Updating an article with an empty or blanknameanswers 422invalid_param_valuewithparamname. - Option graph. Creating an article with an invalid graph of options or combinations answers 422
invalid_param_valuewith the path of the field inparam(for exampleconfigurations.0.variant_id) and saves neither the article nor its option group. Creating, editing and the upsert byexternal_idwrite the article and synchronize the graph in one transaction. low_stock. The filter ofGET /v1/companies/{company}/productsand ofsearch_productsapplies the ownlow_stock_thresholdof the article and of its variants:trueselects the stock-managed articles or variants at or below it, or with a negative balance, andfalsethe rest. It is the criterion ofis_low_stock.search_productsdoes not takesupplier_id,item_kindorbase_unit: any of them answers 400parameter_unknownwith its name inparam, as the list does.- Default warehouse.
default_warehouse_idanddefault_warehouse_namecarry the warehouse that is saved on the article in the list (also with?sku=or?search=), in the search, infind-by-sku, infind-by-external-idand insearch_products. A warehouse of another company is published asnull. - Variants and presentations. Editing or deleting a variant or a presentation that does not exist under a real article, that was deleted, or that belongs to another article or company answers 404
resource_not_foundwithsubcodevariant_not_foundorpresentation_not_foundandparamid, through the API v1, MCP and the application. A reference to a variant or a presentation in a body or in a cursor keeps answering 422variant_invalidorpresentation_invalid. Anidthat is not well formed answers a short 422invalid_param_valuewithparamidindelete_product_variantanddelete_product_presentation, without repeating the value. - Supplier offers.
lead_time_daysis an integer from 0 to 65,535 days (maximumin the schema) inPOSTandPATCH …/supplier-offersand increate_supplier_product_offerandupdate_supplier_product_offer. A greater value answers 422 with the field inparam. - Weights and prices.
gross_weight_kgaccepts".5"as0.5000in the tools of variants and presentations.targets.*.current_unit_priceofresolve_many_catalog_pricesis a number from 0 to the ceiling of the column with at most four decimals; any other value answers 422invalid_param_valuewithparamtargets.N.current_unit_price. - Stores.
connect_storeandupdate_storetakesimplified_threshold_centsas an integer. A decimal with a fraction, a text, a boolean or a list answers 422invalid_param_valuewithparamsimplified_threshold_cents;30000,"30000"and40000.0are accepted.connect_storewith the key missing,nullor blank applies 40000, andupdate_storewithnullor blank answers 422. The range 0 to 300000 is decided by the domain. - Movements.
performed_byof a stock movement is published, with the same shape and type, on the movementsgoods_receipt_posted,goods_receipt_reverted,stock_transfer_dispatched,stock_transfer_receivedandstock_transfer_cancelledwhen a person executed them.
Stock adjustments in bulk
POST /v1/companies/{company}/products/bulk-update-stock and bulk_update_stock validate each entry of updates before they resolve any identifier: the product is a UUID, stock is a number that is not negative, with up to four decimals and within the ceiling of the column, operation is a known one, and warehouse_id and variant_id are text in UUID form. An invalid entry answers 422 invalid_param_value with param updates.N.<field>. stock accepts .5 and 5.. Adding to a balance that is at the ceiling, 9999999999.9999, answers 422 parameter_invalid_value with param stock in bulk_update_stock, in update_product_stock and in their API v1 operations.
The response publishes data.skipped: one {product_id, reason} per entry that was not applied, in the order sent. An entry is skipped when its product, variant or warehouse does not exist or belongs to another company, and both cases are reported the same way. It is [] when nothing was skipped, and updated does not count the skipped entries.
{
"data": {
"object": "product_stock_bulk_update_result",
"updated": 1,
"items": [
{
"product_id": "01934c8d-2e5f-7a1b-8c9d-4e5f6a7b8d40",
"variant_id": null,
"movement_id": "01934c8d-2e5f-7a1b-8c9d-4e5f6a7b8d91"
}
],
"skipped": [
{ "product_id": "01934c8d-2e5f-7a1b-8c9d-4e5f6a7b8d41", "reason": "not_found" }
]
}
}Availability by batch
POST /v1/companies/{company}/stock-availability/batch and get_stock_availability_batch answer 422 invalid_param_value with param references.N when a reference arrives as an object or a list, and with param references when the collection is an object with keys.
Sales orders, delivery notes and returns
Orders
- Series and contact. A series that does not belong to the company answers 422
business_rule_violationwithsubcodesales_order_series_not_foundinPOSTandPATCHof orders and increate_sales_orderandupdate_sales_order. A deleted contact at creation answers 422, as an unknown identifier does. - VAT of a line. In
POSTandPATCHof orders, inPOSTandPATCH …/lines, inbulk-createand in the tools, a line that names its VAT withvat_idand sends novat_ratetakes the rate of that tax. With avat_ratethat differs from the percentage of the tax it answers 422parameter_invalid_valuewithsubcodetax_rate_mismatch,paramlines.N.vat_rate(vat_rateon the single-line operations) andline_index; nothing is saved. A line with no rate, no tax and no default sales VAT in the company answers 422missing_required_paramwith the sameparam. Inbulk-create, the same answer is the row offailures[]witherror_code,subcodeandparam, and the batch goes on. - Withholding.
retention_rateis sent as a magnitude, from 0 to 100 with at most two decimals. A negative value answers 422invalid_param_valuewithparamlines.N.retention_rate(retention_rateon the single-line operations; in a batch, the failure of that row) and saves nothing. The same applies to the lines of purchase orders. - Lines of a draft. Deleting the only line of a draft, and confirming an order without lines, answer 422
business_rule_violationwithsubcodesales_order_requires_linesandparamlines. A line that is removed or updated and does not exist answers 404resource_not_foundwithsubcodesales_order_allocation_not_foundin the tools, with the same answer for a line of another order and of another company. - Conversion to invoice. A later
dateand anoperation_dateafter the issue date answer 422business_rule_violationwithsubcodeinvoice_date_in_futureandoperation_date_after_issue_date. A numeric date such as1e15answers 422invalid_param_valuewith the field inparam. The invoice of its201carriesrecipientanddocument_language, like every invoice; both arenullin an invoice converted from an order, because only the automatic invoicing of the account fills them. - Concurrent requests. Of two simultaneous orders over the same document (confirm, cancel, convert, link a contact, mark or move the shipment, repeat a delivery), the second answers the 422 of its rule and the order carries a single effect. The first confirmations of a company without an order series, made at the same time, create one series
PEDand number the orders consecutively. Several simultaneous services of orders without a contact, in a company that does not have the generic holder «Clientes particulares» yet, answer 201 and share it. - Activity. The activity of an order includes
invoice.created,invoice.number_assignedandinvoice.sentof the invoices that were born from it. - Values.
related_documents[].numberisnullwhile the delivery note or the invoice is a draft, and the same holds fordata[].numberin the answer ofconvert-to-delivery-notes; tell them apart byid.delivery_note_numberof the shipment, of the picking sheet and of the picking queue isnullwhile the delivery note has no number; the key is always present.fulfilment.served_percentdiscounts what was returned: an order of 3 units with 3 served and 2 returned publishes 33.33.fulfilment.remaining_to_invoice_amountof a draft is the total of the order.reservation.trackedof a line that is served in full carries its real value, withreservedandshortfallat zero. A delivery note created from an order publishesgross_weight_kgin its lines and in the picking sheet. Editing several lines of the delivery note of an order in one request updates the quantities of all of them in the order. - Bulk deletion.
POST …/sales-orders/bulk-deleteandPOST …/purchase-orders/bulk-deleteanswer{data: {total, successful, failed, failures[{id, error_code, error_message}]}}, as the application and MCP do, with noFactuarea-Versionheader.
Delivery notes and carriers
- Deleting and cancelling. Deleting or cancelling a delivery note whose goods back an invoice of the order answers 422
business_rule_violationwithsubcodedelivery_note_service_backed_by_invoiceinDELETE,POST …/cancel,bulk-deleteand the tools. Inbulk-deleteit is the failed row, witherror_coderesource_not_deletableand the samesubcode. The status ofinvalid_status_transitionon deleting and cancelling is 422 and the three descriptions say so. - Quantities.
quantityanddiscount_percentwith more than four decimals, andtax_rate,retention_rateandsurcharge_ratewith more than two, answer 422 in the creation and the edition of a delivery note and inupdate_delivery_note. - Delivery address.
delivery_postal_codeadmits letters, digits, spaces and hyphens, up to 20 characters.delivery_countryis free text of up to 100 characters. Anything else answers 422invalid_param_valuewithparamdelivery_postal_codeordelivery_country, inPOSTandPATCHof delivery notes and increate_delivery_noteandupdate_delivery_note. - Carriers. A tracking template without the placeholder
{tracking_number}, or with a scheme other thanhttpandhttps, answers 422business_rule_violationwithsubcodeinvalid_tracking_url_templateincarriers.createandcarriers.update. Acarrier_idthat does not exist or belongs to another company, in the shipment of a delivery note, answers 404carrier_not_found, and the answer does not tell which of the two it is. - Warehouses. A repeated code of a warehouse or of a location answers 422
business_rule_violationwithsubcodewarehouse_code_already_used(unique among the live warehouses of the company) orwarehouse_location_code_already_used(unique among the active locations of its warehouse) andparamcode, inPOSTandPATCHof warehouses and locations and in their tools. Sending the own code again in aPATCHanswers 200. - Stock transfers. The send of a transfer answers 500
send_failedwhen the delivery of the email fails;missing_required_paramwithparamtois the answer to a request that carries no recipient. Two identical sends of the same transfer made at the same time are serialized. - Plan.
GET …/stock-transfers/{id}/pdfandGET …/returns/{id}/pdfanswer 403feature_not_available_in_plan(typeauthorization_error) when the plan of the company does not includewarehousesorreturns, before the document is looked up.get_stock_transfer_pdfandget_return_pdfare not listed intools/listwithout those modules.
Returns
- Reason. The 422 of a reason outside the closed catalog (
merchandise_returned,order_cancelled,customer_request,product_defective) carries inmessagethe value received, cut to 80 characters with…, and the four admitted values.code,subcodeandparamare the same. - Receiving.
POST …/returns/{return}/receivewithlinesin the body on a return that does not exist or belongs to another company answers 404return_not_found, with the same body as withoutlines. A line of another return on a return of your own answers 422 onlines.N.id. The answer carriescovered_targets. - Quantities. The
messageof 422return_exceeds_delivered_quantitynames the line by its position in the request («la línea 2»).param,details.scope(documentorshipment) anddetails.returnableare the same. - Deleting. Deleting an authorized, received or refunded return answers 422
business_rule_violationwithsubcodereturn_order_cannot_be_edited; the message says that only a requested or a rejected return is deleted. Those two keep answering 204. - PDF. The file name of the sheet of a requested return, or of a rejected one that was never authorized, is
Devolucion_{id}.pdfwith its public identifier. With a definitive number it isDevolucion_{number}.pdf, with the slashes turned into hyphens.
Contacts
PATCH of a contact, POST and DELETE …/roles/{role}, …/archive and …/restore with an id that is not a UUID v7 answer 404 contact_not_found with param id.
See Sales orders, Inventory and warehouses and Fulfilment and returns.
Purchase orders, receipts and expenses
- Repeated requests. Two simultaneous sends of the same purchase order, through
…/mark-as-sentand…/send, publish a singlepurchase_order.sent; the emails whose content differs go out and each one leaves itspurchase_order.email_sent. Accepting, rejecting or unlinking the match of the same expense twice (POST …/match/accept,…/match/rejectand…/match/unlink) does not repeat the effect: the second request answers 422purchase_invoice_not_linked(unlink) orpurchase_invoice_match_not_resolvable(accept and reject). - Concurrent receipts. Creating receipts of different orders of the same company at the same time, and revising draft receipts without lines of different orders at the same time, are answered as every other request. A conflict that remains after three repetitions answers the retryable 409
resource_conflict. - Posting a receipt. Posting on an order that is already
receivedanswers 422goods_receipt_exceeds_ordered_quantitywhen the quantity declared does not fit in what is pending, which is zero. Draft, cancelled and invoiced orders answerpurchase_order_invalid_transition. - Unlinking.
POST …/purchase-invoices/{id}/match/unlinkpublishesstock.previously_linked_orderin its first answer. - Agreed values. The lines of a purchase order publish the
minimum_quantityand thelead_time_daysthat were agreed when the line was created.offer_idcomes from the live offer and isnullwhen it was withdrawn. - Number of an expense.
PATCH …/purchase-invoices/{id}andupdate_purchase_invoicewith the number of another expense of the company answer 409resource_already_existswithsubcodepurchase_invoice_already_existsandparamexternal_invoice_number; the expense keeps its number. Another expense that already uses theexternal_idanswers the same code withsubcodeexternal_id_already_exists, anddetails.existing_resource_idis its identifier. - Decimals of an expense.
lines[].tax_rate,lines[].retention_rateanddeductible_percentageadmit at most two decimals: more answers 422invalid_param_valuewithparamlines.N.tax_rate,lines.N.retention_rateordeductible_percentage. - Ceiling of a line. A quantity whose equivalent in the base unit exceeds the ceiling of the column, 9,999,999,999.9999, answers 422
business_rule_violationwithsubcodepurchase_order_line_amount_exceeds_columnandparamlines, when a purchase order or a line is created or updated and when a receipt is posted or created. - Dates and filters.
sent_onofmark-as-sentis astringwithformatdate, anditems[].expected_dateof the reorder preview and accept take a date. A number such as1e15answers 422invalid_param_valueon its field and creates no order. Asent_onthat is not text answersparameter_invalid_stringinerrors[].code. The filterspurchase_order_id,supplier_idandwarehouse_idofGET …/goods-receiptsandsupplier_idandwarehouse_idofGET …/purchase-ordersanswer 400parameter_invalid_uuid, with the filter inparam, to an identifier that is not well formed; a well-formed identifier that does not exist or belongs to another company answers the empty list. - Batches. In
bulk-createof purchase orders, a row with a supplier that does not have the supplier role, or with a line warehouse that does not resolve, is the failed row{index, error_code: "resource_not_found", error_message}and the batch goes on.
Invoices
- Decimals of a quantity.
lines[].quantityadmits at most four decimals: a longer one answers 422invalid_param_valueincreateInvoice,updateInvoiceandbulkCreateInvoicesand in the toolscreate_invoiceandupdate_invoice. The corrective invoice, the quote, the pro-forma, the delivery note, the order and the recurring invoice validate the same in their requests. - Payment and date. Creating an invoice with a payment and a future date answers the same 422
business_rule_violation(payment_date) through the API v1 and MCP, before anything is created. - Corrective invoice. The corrective invoice publishes the
operation_regimeand the exemption cause of the invoice it rectifies. A rectification by differences, or a substitution with lines that carry VAT, over a regime that requires a zero rate, or a line with its own cause (E1 to E6, N1, N2) and VAT, answers 422exemption_cause_contradicts_taxed_linesin…/invoices/{invoice}/correctiveandcreate_corrective_invoice. - Order of origin. Every invoice carries
sales_order, with theidand thenumberof the sales order it comes from, ornull; in the examplecomplete_without_recipient_tax_idofGET …/invoices/{invoice}it isnull.
Storefront and publishable credentials
expires_at.POST …/storefront-keys,create_storefront_key,POST /v1/accounts/{account}/api-keysandcreate_api_keytakeexpires_atas a date text. A number, a boolean, a list or an object answers 422invalid_param_valuewithparamexpires_at. On a publishable credential, dates after 19 January 2038, such as2999-01-01, are accepted, and the ceiling is the year 9999 in the time zone of the application (Europe/Madrid):9999-12-31T22:59:59Zis accepted and9999-12-31T23:00:00Zand later answer 422 withparamexpires_at. The value is saved and published as the instant requested, whatever the offset it arrives with (Z,+01:00,+03:00).- Origins. A repeated origin in the creation or the edition of a publishable credential answers 422
invalid_param_valuewithparamallowed_origins.Nfor the row that repeats it. - Messages. The 404
storefront_key_not_foundrepeats the identifier cut to 64 characters, and the 422 of an origin repeats it cut to 100, followed by…. A real UUID and a short origin are published whole. - Rotation. Rotating the secret of a publishable credential while another operation holds it answers the overlapping request 409
resource_locked, which is retryable and carries no secret. Only one of two overlapping rotations succeeds, and the other changes nothing. A credential of another company that is held answers 404storefront_key_not_found, never 409. The same applies to the toolrotate_storefront_key_secret. Idempotency-Key.PATCHof a session,revalidate,PATCHof the buyer identity andcheckoutof an order of the storefront declare noIdempotency-Keyand no 422idempotency_key_reused. The header stays declared in the creation of a session, in the creation of an order and in the confirmation of the payment.- Article without VAT. The creation of an order with an article that has no VAT rate, neither its own nor a default sales VAT in the company, answers 422
missing_required_paramwithparamlines.N.vat_rate. Itsmessageis «Este artículo no se puede comprar en este momento. Ponte en contacto con la tienda.». The other surfaces keep their own text. - Payment on a cancelled or deleted order. A payment that a buyer makes on an order that the merchant cancelled, or that was deleted, between the payment link and the confirmation is kept as to be refunded, and nothing is refunded on its own. The activity of the order (
…/sales-orders/{id}/activities,list_sales_order_activities) carries asales_order.payment_invoice_failedwithmetadata.codepayment_on_cancelled_orderorpayment_on_deleted_orderand a Spanishmetadata.messagewith the amount and what to do. Administrators receive a notice of the categoryerrorwithentity_typesales_orderanddata.kindstorefront_payment_refund_due, whichGET …/notificationsandlist_notificationsalso return.
See Storefront.
Webhooks and events
- URL. The creation and the edition of webhooks of a company and of an account, and their tools, accept a
urlof up to 2,048 characters. A URL that is not well formed (a port out of range, the host..) answers 422invalid_param_valuewithparamurl. - Filter.
GET /v1/companies/{company}/eventsapplies the filtertype[in]: a list returns the events of any of those types and an empty list returns none. - Test delivery. The
data.objectof the delivery ofPOST …/webhook-endpoints/{id}/test-eventcarries the canonical shape of the resource, with fictitious values and a new UUID v7idin each call. The202answer is the same. - Fulfilment events. The five events
fulfilment.prepared,fulfilment.handed_over,fulfilment.in_transit,fulfilment.failedandfulfilment.deliveredpublish indata.objectthe status of their own transition infulfilment_status,fulfilment_status_labelandfailure_reason; the last one isnullexcept infulfilment.failed, which carries the reason of the event.delivery_note_numberisnullwhile the delivery note is a draft, and the key is always present.
Automations
descriptionof a rule holds up to 16,383 characters, inPOSTandPATCHof rules and increate_automation_ruleandupdate_automation_rule; a longer one answers 422invalid_param_valuewithparamdescription.- A text parameter of an action with the wrong type (a number, a boolean, a list or an object), and
create_taskwithdue_onnext todue_from_payload_path(ordue_offset_dayswithout a field of the event), answer 422invalid_param_valuewhen the rule is saved, with the text that the dry run gives.paramstaysactions. - The notice of the dry run of a «create linked task» rule without a sample document names
event_aggregate_uuidin the application andevent_aggregate_idin the public API and MCP.
See Automations.
Emails, lists and the purchase scanner
- Emails.
related_entity_typeofGET …/emails,…/emails/{id}and…/emails/indicatorstakes ten values, among themsales_order,purchase_order,stock_transferandreturn_order. - Dates in lists. In the lists that declare their date fields, a date that does not exist (
2026-02-31) and a numeric Unix instant answer 400parameter_invalid_iso8601. A range (gte,lte,gt,lt) on a field that is not a range answers 400parameter_invalid_enumwith the exact list of operators of the field. The same applies tosearch_invoices,search_delivery_notes,search_purchase_invoices,search_stock_reservationsandsearch_products(created_from,created_to). - Pagination. The lists of sales orders, purchase orders and returns publish the 400 of pagination and filters (
parameter_invalid_integer,parameter_invalid_range,parameter_invalid_cursor,parameter_unknown) next to their 422. - Purchase scanner. Converting or saving the review of a scan that is already linked answers 422
purchase_scan_already_convertedin…/purchase-scans/{id}/convertand…/reviewand inconvert_purchase_scanandsave_purchase_scan_review. The code is published with the status 422, as the application answers.
MCP
- Required arguments. A tool whose required argument is missing,
nullor an empty string answers 422invalid_param_valuewith the field inparamand the textEl campo <name> es obligatorio..0,false,[]and'0'are values. The nullable required arguments (template_idandexpected_template_revision_idof the presentations) take an explicitnullas a value, theexpected_*arguments keep answering 428 when they are missing, andidempotency_keyis decided by the idempotency guard. A tool of managed accounts withoutmanaged_account_idanswers 422; an identifier that is present and does not resolve answers the 404 of its resource. - Batches. The rejection of a batch above its maximum number of items, in the 41 batch tools and in
bulk_send_invoices,bulk_send_quotes,bulk_send_proformasandbulk_send_delivery_notes, carries_metawith 422invalid_param_valueand ahint, andparamwith the name of the collection (ids,updates) when it is the only required array of the schema.bulk_create_sales_orders,bulk_delete_sales_orders,bulk_create_purchase_orders,bulk_delete_purchase_ordersandbulk_delete_productsanswer 422invalid_param_valuewithparam(sales_orders,purchase_orders,ids,ids.N) to an entry that is missing, empty, of the wrong type or with elements that are not of the expected type.bulk_delete_productsdeclaresminItems1 in the schema ofids. - Searches.
search_sales_orders,search_purchase_orders,search_goods_receipts,search_returns,search_warehouses,search_stock_availability,search_stock_reservations,list_storefront_keysandsearch_delivery_notestake the filter of their v1 route and answer the same status,codeandparam:limitthat is not an integer is 400parameter_invalid_integer, outside 1 to 100 it is 400parameter_invalid_range, a cursor that is not a UUID v7 is 400parameter_invalid_cursor, a value outside a closed catalog is 400parameter_invalid_enum, an unknownsortis 400parameter_unknown, an identifier that is not a UUID is 400parameter_invalid_uuidand a date that is unreadable or does not exist is 400parameter_invalid_iso8601.search_purchase_invoicesanswers the same forlimitand resolvessupplier_idas the v1 does. - Documents.
create_delivery_notevalidates asPOST …/delivery-notesdoes, and answers 422invalid_param_valuewith the field inparam:client_idwhen the contact is{}or does not exist. A line that is not an object, a price of 1e15 and a text of 10,000 characters create no delivery note.update_purchase_order_linewith an empty or blankdescriptionanswers 422 withparamdescription, andupdate_purchase_invoicekeeps the supplier offer of each line whenlinesis edited withoutsupplier_offer_id. - Rate-limit headers. The MCP transport publishes
X-RateLimit-Limit-TokenandX-RateLimit-Remaining-Tokenonly when the per-credential bucket of the call is enforced, andX-RateLimit-Limit-HourandX-RateLimit-Remaining-Houronly when the hourly bucket of the plan is enforced. The 429 is the same. See Errors and rate limits. - Idempotent replay. The repeated call of a tool returns
resolved_by_api_keyandspecial_authorizationwith their value.special_authorizationis part of the idempotency fingerprint ofissue_transport_documentandmodify_transport_document, so the same key with another authorization is another payload.
Validation messages
The 422 of validation names the fields in Spanish and not by their technical key, in the quotes, invoices, delivery notes, expenses, purchase orders, returns, reorder suggestions and transfers (for example client_id, valid_until, lines.N.unit_price, lines.N.reason, items.N.quantity, origin_id), and in what a required_without rule quotes from another line. Only the text of message and of errors[].message changes: param, code and the keys of errors keep the technical name.
Public document
GET /api/public/d/{id}, the public link of a document, which is not an operation of the API v1, does not publish supplier_offer_uuid_snapshot in the lines of invoices, quotes, delivery notes, pro-formas and orders. The public view of a pro-forma publishes total_vat, with withholding and surcharge when it has them.