Method: importar
The Webservice CFDI33 importar method receives data from a connector of one or multiple invoices to import them into the system.
-
A field is required if thus stated in column "Required":
- Yes: this field is required.
- No: this field is not mandatory.
- Conditional: this field may be required or not, depending on other fields.
- Method fields
-
Name Description Required usuario xs:string
Registered username
Yes password xs:string
Username's password
Yes archivoConector xs:base64Binary
Invoice data, which must be encoded in base64
Yes nombreArchivo xs:string
Connector file's name
No
Request example
Download this example
Returns
- The method returns a compound type: importarResponse, whose fields are described in the following table.
-
importarResponse's fieldsName Description Required estatus xs:int
The operation's status code. See the list Operation's status codes for a description of each code.
Yes mensaje xs:string
Response message, describing the operation's status.
Yes resultadosCreacion Compound type ResultadoCreacion. Fields are describe in table "ResultadoCreacion's fields".
Yes Name Description Required estatus xs:int
CFDI import attempt's status code. See the list CFDI import's status codes for a description of each code.
Yes mensaje xs:string
Response message, describing the import's status.
Yes uuid xs:string
CFDI's fiscal folio.
Conditional folio xs:long
CFDI's commercial folio.
Conditional serie xs:string
CFDI's commercial serie.
Conditional emailReceptor xs:string
CFDI import's attempt notification email.
Conditional
Response example
Download this example
-
Operation's status codes
More detailed descriptions may appear in mensaje field
- 200 — Process successful.
- 500 — The process could not be finished due to errors. Please retry.
- 501 — Failed attempting to connect to Database. Please retry.
- 502 — Failed attempting to store or retrieve data from Database.
- 503 — The maximum number of concurrent Database access attempts has been reached.
- 601 — Authentication error, please verify your credentials.
- 602 — This account is blocked.
- 603 — The account's password has expired.
- 604 — The maximum number of retry attempts due to failed authentication has been reached. The account will be blocked.
- 610 — The requested action is not supported in you implementation because either the implementation is not yet configured for such an action or is not possible its accomplishment. For the importar method this means your implementation has no connector configured yet.
- 611 — One or several required fields are missing in the request.
- 612 — Malformed file. The file format is different to the one expected.
- 613 — The numeric sequence has reached the end.
- 620 — You do not have permission to do this action.
- 621 — Invalid field.
- 622 — Unsupported action.
- 623 — Data not found.
- 624 — Uniqueness restriction violation.
- 625 — This action cannot be completed because it requires a previous action to complete.
- 626 — Implementation's configuration error.
- 630 — Your implementation's contract has expired.
- 631 — Your contract's payment date has passed.
- 632 — The maximum number of usage attempts for this implementation has been reached.
- 633 — This implementation is inactive.
-
CFDI import's status codes
- 1 — The import process has finished successfully.
- -1 — The process could not be finished due to errors.