Create or Update an Invoice

Request body example

{
    "files": [
        {
            "url": "https://s3-sa-east-1.amazonaws.com/pluggto-documents/129/6233103fbb7e-4281-4212-ba03-c6d1fbd78021.com/users/93092400/invoices/documents/xml/463781327/authorized",
            "type": "xml_authorization"
        },
        {
            "url": "https://s3-sa-east-1.amazonaws.com/pluggto-documents/129/62330fcc23bf-4c01-4d1e-86f2-9d86bfcea6a6.com/users/93092400/invoices/sites/MLB/documents/danfe/463781327",
            "type": "danfe_authorization"
        }
    ],
    "log_history": [],
    "number": "135110",
    "nfe_serie": "2",
    "xml_version": "4.00",
    "app_origin": "mercadolivre",
    "reference_order": "60bf664ae8937025962f6a0c",
    "app_sub_origin": "4SALE$",
    "nfe_type": "inbound",
    "nfe_key": "35210618232641000101550020001350991756071712",
    "nfe_date": "2021-06-09T18:41:50.717Z",
    "nfe_creation_date": "2021-06-09T18:41:50.000Z",
    "nfe_protocol": "2021-06-09T18:41:50.717Z",
    "nfe_receipt": "351006539916966",
    "nfe_receipt_date": "2021-06-09T18:41:55.000Z",
    "nfe_authorization_date": "2021-06-09T18:41:59.000Z",
    "nfe_status": "authorized"
}

Request object has the following properties:

AttributeTypeDescription
numberstringInvoice number
nfe_seriestringInvoice Series
reference_orderstringPlugg.to order ID
files typestringReturn the file type.
Values:
danfe_authorization
xml_authorization
danfe_cancellation
xml_cancellation
danfe_correction_letter
xml_correction_letter
other_xml
other_danfe
nfe_typestringInforms the type of invoice.
nfe_statusstringInform the invoice status.
Values:
authorized
canceled
forbidden_disablement
others
Language
Click Try It! to start a request and see the response here!