E-Invoicing Documents
An E-Invoicing Document represents the regulatory (e-invoicing or e-reporting) processing record for an Invoice or Credit Note. It tracks the processing status, regulatory artifacts, the recipient's response, and processing errors.
GET /api/v1/billing/e_invoicing_documents/{id}GET /api/v1/billing/e_invoicing_documents
Retrieve an E-Invoicing DocumentEarly access
GET /api/v1/billing/e_invoicing_documents/{id}
Retrieves the details of an E-Invoicing Document by ID.
The ID of the E-Invoicing Document.
Downloadable regulatory artifacts. Empty when no artifact has been produced.
Time when the attached file record was created, in ISO8601 format.
Original file name, including the file extension.
URL to access and download the attachment file.
Time when the E-Invoicing Document was created, in ISO8601 format.
ID of the source Credit Note. Set only when type is CREDIT_NOTE, otherwise null.
Errors from the latest failed processing attempt. Empty unless status is FAILED.
Stable, machine-readable error code.
Human-readable description of the error. Do not use this field for programmatic decisions.
Conditional key-value object containing additional details about the error.
Name of the request parameter or resource field that caused the error, when available.
Unique identifier of the E-Invoicing Document.
ID of the source Invoice. Set only when type is INVOICE, otherwise null.
The customer's original response to the E-Invoice. null when no response has been received.
Current regulatory processing status. When FAILED, see errors for details.
PROCESSINGRegulatory processing is in progress.
SUCCEEDEDRegulatory processing completed successfully.
FAILEDRegulatory processing failed. See errors for details.
Type of the underlying billing document.
INVOICEThe underlying billing document is an Invoice.
CREDIT_NOTEThe underlying billing document is a Credit Note.
Time when the E-Invoicing Document was last updated, in ISO8601 format.
| Error status | Description |
|---|---|
| 400 | Bad Request. Possible error codes: |
| 401 | Unauthorized. Possible error codes: |
| 404 | Not Found. Possible error codes: |
| 500 | Server Error. Possible error codes: |
$curl --request GET \> --url 'https://api.sandbox.airwallex.com/api/v1/billing/e_invoicing_documents/einv_hkpd49cskgblns6iimw' \> --header 'Authorization: Bearer {{ACCESS_TOKEN}}' \> --header 'Content-Type: application/json'
1{2 "id": "einv_hkpd49cskgblns6iimw",3 "type": "INVOICE",4 "status": "SUCCEEDED",5 "attachments": [6 {7 "file_name": "invoice_2026_001.xml",8 "file_url": "https://invoice.airwallex.com/billing/e_invoicing_documents/attachment?s=jwt_token",9 "created_at": "2026-08-19T08:30:15+0000"10 },11 {12 "file_name": "invoice_2026_001.pdf",13 "file_url": "https://invoice.airwallex.com/billing/e_invoicing_documents/attachment?s=jwt_token",14 "created_at": "2026-08-19T08:30:15+0000"15 }16 ],17 "original_customer_response": "APPROVAL",18 "errors": [],19 "invoice_id": "inv_hkpd49cskgblns6iimw",20 "credit_note_id": null,21 "created_at": "2026-08-19T08:30:00+0000",22 "updated_at": "2026-08-19T08:31:10+0000"23}
Get list of E-Invoicing DocumentsEarly access
GET /api/v1/billing/e_invoicing_documents
Retrieves a list of E-Invoicing Documents based on the query parameters.
Type of the underlying billing document, one of INVOICE or CREDIT_NOTE.
INVOICECREDIT_NOTEThe start date of created_at in ISO8601 format (inclusive).
The start date of updated_at in ISO8601 format (inclusive).
A bookmark for use in pagination to retrieve either the next page or the previous page of results. You can fetch the value for this identifier from the response of the previous API call. To retrieve the next page of results, pass the value of page_after (if not null) from the response to a subsequent call. To retrieve the previous page of results, pass the value of page_before (if not null) from the response to a subsequent call.
Number of E-Invoicing Documents per page. Defaults to 20.
Regulatory processing status, one of PROCESSING, SUCCEEDED or FAILED.
PROCESSINGSUCCEEDEDFAILEDThe end date of created_at in ISO8601 format (exclusive).
The end date of updated_at in ISO8601 format (exclusive).
Paged results.
Downloadable regulatory artifacts. Empty when no artifact has been produced.
Time when the attached file record was created, in ISO8601 format.
Original file name, including the file extension.
URL to access and download the attachment file.
Time when the E-Invoicing Document was created, in ISO8601 format.
Errors from the latest failed processing attempt. Empty unless status is FAILED.
Stable, machine-readable error code.
Human-readable description of the error. Do not use this field for programmatic decisions.
Conditional key-value object containing additional details about the error.
Name of the request parameter or resource field that caused the error, when available.
Unique identifier of the E-Invoicing Document.
Current regulatory processing status. When FAILED, see errors for details.
PROCESSINGRegulatory processing is in progress.
SUCCEEDEDRegulatory processing completed successfully.
FAILEDRegulatory processing failed. See errors for details.
Type of the underlying billing document.
INVOICEThe underlying billing document is an Invoice.
CREDIT_NOTEThe underlying billing document is a Credit Note.
Time when the E-Invoicing Document was last updated, in ISO8601 format.
ID of the source Credit Note. Set only when type is CREDIT_NOTE, otherwise null.
ID of the source Invoice. Set only when type is INVOICE, otherwise null.
The customer's original response to the E-Invoice. null when no response has been received.
The page cursor used for searching after page.
The page cursor used for search before page.
| Error status | Description |
|---|---|
| 400 | Bad Request. Possible error codes: |
| 401 | Unauthorized. Possible error codes: |
| 500 | Server Error. Possible error codes: |
$curl --request GET \> --url 'https://api.sandbox.airwallex.com/api/v1/billing/e_invoicing_documents?type=INVOICE&status=SUCCEEDED' \> --header 'Authorization: Bearer {{ACCESS_TOKEN}}' \> --header 'Content-Type: application/json'
1{2 "items": [3 {4 "id": "einv_hkpd49cskgblns6iimw",5 "type": "INVOICE",6 "status": "SUCCEEDED",7 "attachments": [8 {9 "file_name": "invoice_2026_001.xml",10 "file_url": "https://invoice.airwallex.com/billing/e_invoicing_documents/attachment?s=jwt_token",11 "created_at": "2026-08-19T08:30:15+0000"12 },13 {14 "file_name": "invoice_2026_001.pdf",15 "file_url": "https://invoice.airwallex.com/billing/e_invoicing_documents/attachment?s=jwt_token",16 "created_at": "2026-08-19T08:30:15+0000"17 }18 ],19 "original_customer_response": "APPROVAL",20 "errors": [],21 "invoice_id": "inv_hkpd49cskgblns6iimw",22 "credit_note_id": null,23 "created_at": "2026-08-19T08:30:00+0000",24 "updated_at": "2026-08-19T08:31:10+0000"25 }26 ],27 "page_after": "<string>",28 "page_before": "<string>"29}