# Null Response from Compliance API – Need Help Debugging

**URL:** <https://zatca1.discourse.group/t/null-response-from-compliance-api-need-help-debugging/8334>\
**Category:** FATOORA portal and Simulation portal\
**Created:** [September 7, 2025, 6:49am UTC](https://zatca1.discourse.group/t/null-response-from-compliance-api-need-help-debugging/8334 "2025-09-07T06:49:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![usama\_zulifqar](https://dub1.discourse-cdn.com/flex013/user_avatar/zatca1.discourse.group/usama_zulifqar/32/1119_2.png) [@usama\_zulifqar](https://zatca1.discourse.group/u/usama_zulifqar)\
**Post date:** [September 7, 2025, 6:49am UTC](https://zatca1.discourse.group/t/null-response-from-compliance-api-need-help-debugging/8334/1 "2025-09-07T06:49:27Z")

</div>

Hi everyone,

I’m testing invoice submission in **developer mode** via the Compliance API.  
Instead of using the CLI SDK, I’m calling the API directly online.

* * *

### Scenario

- I’m submitting **multiple invoice types at the same time** :
  - Standard Invoice
  - Simplified Invoice
  - Standard Credit Note
  - Simplified Credit Note
  - Standard Debit Note
  - Simplified Debit Note

Each XML is generated according to the UBL 2.1 / EN16931 structure, with placeholders for PIH, QR, and proper ProfileID / CustomizationID values.

* * *

### API Call Details

- **Endpoint:**  
`https://gw-fatoora.zatca.gov.sa/e-invoicing/developer-portal/compliance/invoices`

- **Headers:**  
Authorization: Basic CSID:Secret  
Content-Type: application/json  
Accept-Version: v2  
Accept-Language: en

yaml  
Copy code

- **Payload format:**  
A JSON object with `"invoices": [{ "base64invoice": "<base64 XML>" }, ...]`  
(sending multiple documents in one request).

* * *

### Problem

- The request returns **HTTP 400**.
- The **response body is null/empty**.
- No validation error messages, no compliance rejection info.

* * *

### What I’ve Verified

- **Each XML passes** the web validator individually.
- **CSID + secret** are valid and tested on other endpoints.
- Testing via API only — **not using the CLI SDK** locally.

* * *

### Questions for the community

1. Is bulk submission of multiple invoice types supported in the Developer API?
2. Should I submit them **one by one** instead of batching?
3. Has anyone else experienced **empty/null responses** in developer mode?
4. Is there any way to view sandbox **compliance logs** for failed submissions?

Any guidance or shared experience would be highly appreciated 🙏

---

<div class="post-metadata">

**Author:** ![bahaeddine](https://avatars.discourse-cdn.com/v4/letter/b/3ec8ea/32.png) [@bahaeddine](https://zatca1.discourse.group/u/bahaeddine)\
**Post date:** [September 7, 2025, 8:44am UTC](https://zatca1.discourse.group/t/null-response-from-compliance-api-need-help-debugging/8334/2 "2025-09-07T08:44:38Z")

</div>

I don’t think you can send multiple invoices in one api . so bulk submission is not supported . try to send invoices one by one
