> For the complete documentation index, see [llms.txt](https://masters-india-1.gitbook.io/ksa-e-invoicing-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://masters-india-1.gitbook.io/ksa-e-invoicing-api/generate-einvoice-api/callback-response.md).

# Callback Response

### Schema

| Parameter                   | Value                                         | Description                                                         |
| --------------------------- | --------------------------------------------- | ------------------------------------------------------------------- |
| message                     | "Operation Successful/Unsuccessful"           | Basic message returned by us                                        |
| info\_messages              | \[]                                           | List of info messages returned by ZATCA                             |
| warning\_messages           | \[]                                           | List of warning messages returned by ZATCA                          |
| status                      | "REPORTED/NOT\_REPORTED/CLEARED/NOT\_CLEARED" | Reporting/Clearance Status of the invoice retunred by ZATCA         |
| schematron\_overall\_status | PASS/WARNING/FAIL                             | over schematron status of the invoice returned by ZATCA             |
| invoice                     | base64 encoded XML/None                       | Updated XML document. Value can be Null in case of clearance errors |
| qr\_code                    | ""                                            | Raw QR code generated                                               |
| icv                         | 123                                           | Invoice Counter Value                                               |
| pih                         | ""                                            | Hash of the previous invoice that was processed                     |
| invoice\_hash               | AVBC                                          | Invoice Hash calculated by us for the given XML                     |
| invoice\_id                 | 1                                             | Invoice ID                                                          |
| invoice\_uuid               | 484fde54-9439-453a-ae33-86b637c43c38          | Invoice UUID                                                        |
| zatca\_rsp\_code            | 200/400/202                                   | Response code from ZATCA indiicated approval/rejection              |
| error\_code                 | 0                                             | Value based on the application response processing                  |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://masters-india-1.gitbook.io/ksa-e-invoicing-api/generate-einvoice-api/callback-response.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
