NewStripe: a buyer with a NIF always gets a standard invoice, and the simplified threshold is deprecated
BeeL
Get startedMulti-NIFVeriFactuRulesStripeAPI referenceChangelog
ErrorsBy category

Customers errors

All error codes returned by the Customers endpoints (34 total).


Every error returned by the Customers endpoints. Click any code for the full example response and localized messages.

CodeMessage
ALTERNATIVE_ID_ACTUALLY_IN_CENSUSThe identifier '‹value›' is registered in the AEAT census, so it cannot be declared as not registered (07). Enter it as a NIF instead.
ALTERNATIVE_ID_AND_NIF_EXCLUSIVEThe customer cannot carry both a NIF and an alternative identifier. Use only one
ALTERNATIVE_ID_COUNTRY_REQUIREDThe country of the alternative identifier is missing (alternative_id.country_code). It is required except for the PASSPORT and NOT_REGISTERED types, which are taken as Spanish when it is omitted.
ALTERNATIVE_ID_INVALIDThe alternative identifier is not valid
ALTERNATIVE_ID_REQUIRES_SPAINType NOT_REGISTERED (07) is only valid for Spain; received country: '‹value›'
ALTERNATIVE_ID_SPAIN_INVALID_TYPEFor customers with country ES only types PASSPORT (03) or NOT_REGISTERED (07) are allowed
ALTERNATIVE_ID_VAT_INVALID_FORMAT'‹value›' is not a valid EU VAT number for that country: it must be the prefix '‹value›' followed by the country's VAT number, in capital letters and without spaces. If it is the recipient of an invoice already issued, correct its data with an R4 corrective invoice
ALTERNATIVE_ID_VAT_REQUIRES_EU_COUNTRYAn EU VAT number (NIF_IVA, type 02) is only valid for an EU member state other than Spain; received country: '‹value›'. Identify a customer from outside the EU with another type, such as OTHER_DOCUMENT or COUNTRY_ID. If it is the recipient of an invoice already issued, correct its data with an R4 corrective invoice
BULK_VALIDATION_ERROROne or more customers in the batch are invalid; none were created
CLIENT_DUPLICATEA client with this NIF already exists
CLIENT_HAS_INVOICESThis customer has invoices and cannot be deleted: deleting it would release its identifier and allow another customer to be created with the same one, splitting a single identity across two records. To stop using it, deactivate it with active:false
CLIENT_NOT_FOUNDClient not found
CSV_FILE_TOO_LARGEThe file is too large: ‹value› bytes (maximum: ‹value› bytes)
CUSTOMER_ADDRESS_INVALIDThe address is not valid
CUSTOMER_DUPLICATED_IN_BATCHNIF duplicated within the batch
CUSTOMER_DUPLICATED_IN_FILECustomer with a NIF/CIF duplicated in the file
CUSTOMER_FIELD_INVALID_CHARACTERSThe field '‹value›' contains characters that are not allowed
CUSTOMER_FIELD_INVALID_FORMATInvalid format for '‹value›': expected ‹value›
CUSTOMER_FIELD_REQUIREDThe field '‹value›' is required
CUSTOMER_IDENTIFIER_REQUIREDProvide either a NIF or an alternative identifier.
CUSTOMER_NOT_SAVEDThe customer could not be saved
CUSTOMER_ROW_NOT_PROCESSEDUnexpected error while processing the row
DUPLICATE_HEADERFile ‹value› repeats column ‹value›: there is no way to tell which of the two counts. Leave it just once
EMPTY_FILEThe file is empty
ENCODING_ERRORFile encoding error: ‹value›
HEADER_ROW_NOT_FOUNDNo header row found in the first ‹value› lines of ‹value›. Required columns: ‹value›. ‹value›
INVALID_FORMATInvalid file format: ‹value›
MISSING_HEADERSThese required headers are missing: ‹value›. Headers found: ‹value›
NIF_INVALID_CONTROL_DIGITThe control digit of NIF '‹value›' is incorrect
NIF_INVALID_FORMATThe NIF '‹value›' has an invalid format
NIF_NOT_IN_CENSUSThe NIF '‹value›' does not exist in the AEAT census or the fiscal name does not match
NO_DATA_ROWSFile ‹value› carries only the header row: there is no data row to import
PARSING_ERRORError processing the file: ‹value›
TOO_MANY_RECORDSToo many records: ‹value› (maximum: ‹value›)

Keep exploring

On this page