# What should the user expect as a response if calling "Clearance API" was a Success?

**URL:** <https://zatca1.discourse.group/t/what-should-the-user-expect-as-a-response-if-calling-clearance-api-was-a-success/318>\
**Category:** Clearance and Reporting\
**Created:** [July 15, 2023, 11:43pm UTC](https://zatca1.discourse.group/t/what-should-the-user-expect-as-a-response-if-calling-clearance-api-was-a-success/318 "2023-07-15T23:43:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ehab](https://avatars.discourse-cdn.com/v4/letter/e/e36b37/32.png) [@Ehab](https://zatca1.discourse.group/u/Ehab)\
**Post date:** [July 15, 2023, 11:43pm UTC](https://zatca1.discourse.group/t/what-should-the-user-expect-as-a-response-if-calling-clearance-api-was-a-success/318/1 "2023-07-15T23:43:42Z")

</div>

What should the user expect as a response if calling “Clearance API” was a Success?

---

<div class="post-metadata">

**Author:** ![Ehab](https://avatars.discourse-cdn.com/v4/letter/e/e36b37/32.png) [@Ehab](https://zatca1.discourse.group/u/Ehab)\
**Post date:** [July 15, 2023, 11:44pm UTC](https://zatca1.discourse.group/t/what-should-the-user-expect-as-a-response-if-calling-clearance-api-was-a-success/318/2 "2023-07-15T23:44:46Z")

</div>

The response will be 200 HTTP Ok with a Retrieved object containing 4 values : `"invoiceHash","Status" ,"Warnings", "errors"`.  
Retrieved object Example:

```auto
{
 ""invoiceHash"": ""TODO Add Invoice Hash"",
 ""status"": ""Reported"",
 ""warnings"": null,
 ""errors"": null
}

```

More information can be found on the Integration Sandbox section of the Developer Portal.
