Skip to content

Instantly share code, notes, and snippets.

@mudassaralichouhan
Created February 15, 2026 10:11
Show Gist options
  • Select an option

  • Save mudassaralichouhan/1f075942c7d9dcf2a372cc1ffa10b5d9 to your computer and use it in GitHub Desktop.

Select an option

Save mudassaralichouhan/1f075942c7d9dcf2a372cc1ffa10b5d9 to your computer and use it in GitHub Desktop.
{
"info": {
"_postman_id": "ec28b39c-0db5-4f71-b34e-15dbe9d21e07",
"name": "zatca",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "17171175"
},
"item": [
{
"name": "auth",
"item": [
{
"name": "login",
"request": {
"auth": {
"type": "noauth"
},
"method": "POST",
"header": [
{
"key": "zatca-mode",
"value": "developer-portal",
"type": "text"
},
{
"key": "zatca-mode",
"value": "simulation",
"type": "text",
"disabled": true
},
{
"key": "zatca-mode",
"value": "abc",
"type": "text",
"disabled": true
}
],
"body": {
"mode": "raw",
"raw": "{\n \"email\": \"fepuly@forexnews.bg\",\n \"password\": \"pass@123\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{base_url}}/auth/login",
"host": [
"{{base_url}}"
],
"path": [
"auth",
"login"
]
}
},
"response": [
{
"name": "login",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "zatca-mode",
"value": "developer-portal",
"type": "text"
},
{
"key": "zatca-mode",
"value": "simulation",
"type": "text",
"disabled": true
},
{
"key": "zatca-mode",
"value": "abc",
"type": "text",
"disabled": true
}
],
"body": {
"mode": "raw",
"raw": "{\n \"email\": \"navoj32602@knilok.com\",\n \"password\": \"pass@123\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{base_url}}/auth/login",
"host": [
"{{base_url}}"
],
"path": [
"auth",
"login"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": null,
"header": [
{
"key": "Server",
"value": "nginx"
},
{
"key": "Content-Type",
"value": "application/json; charset=utf-8"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/8.4.12"
},
{
"key": "X-Content-Type-Options",
"value": "nosniff"
},
{
"key": "X-Frame-Options",
"value": "DENY"
},
{
"key": "Referrer-Policy",
"value": "no-referrer"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Wed, 10 Sep 2025 17:43:01 GMT"
}
],
"cookie": [],
"body": "{\n \"success\": true,\n \"code\": 200,\n \"data\": {\n \"access_token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTc1MjYxODEsImV4cCI6MTc1NzUzNjk4MSwianRpIjoiZmRlODAzMjA4YjdmMzI0ZDg3ZDI5M2JlYjRlMzdjMjUiLCJpZCI6MiwiZW1haWwiOiJuYXZvajMyNjAyQGtuaWxvay5jb20iLCJ6YXRjYV9tb2RlIjoiZGV2ZWxvcGVyLXBvcnRhbCJ9.G4qfHM0Jc3C7gxLeu8tCUyztopI094vr7SxZ9xNysrI\",\n \"token_type\": \"Bearer\",\n \"expires_in\": 10800\n },\n \"errors\": [],\n \"meta\": []\n}"
}
]
},
{
"name": "register",
"request": {
"auth": {
"type": "noauth"
},
"method": "POST",
"header": [
{
"key": "zatca-mode",
"value": "developer-portal",
"type": "text"
},
{
"key": "zatca-mode",
"value": "simulation",
"type": "text",
"disabled": true
},
{
"key": "zatca-mode",
"value": "abc",
"type": "text",
"disabled": true
}
],
"body": {
"mode": "raw",
"raw": "{\n \"email\": \"fepuly@forexnews.bg\",\n \"password\": \"pass@123\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{base_url}}/auth/register",
"host": [
"{{base_url}}"
],
"path": [
"auth",
"register"
]
}
},
"response": [
{
"name": "register",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "zatca-mode",
"value": "developer-portal",
"type": "text"
},
{
"key": "zatca-mode",
"value": "simulation",
"type": "text",
"disabled": true
}
],
"body": {
"mode": "raw",
"raw": "{\n \"email\": \"navoj32602@knilok.com\",\n \"password\": \"pass@123\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{base_url}}/auth/register",
"host": [
"{{base_url}}"
],
"path": [
"auth",
"register"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": null,
"header": [
{
"key": "Server",
"value": "nginx"
},
{
"key": "Content-Type",
"value": "application/json; charset=utf-8"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/8.4.12"
},
{
"key": "X-Content-Type-Options",
"value": "nosniff"
},
{
"key": "X-Frame-Options",
"value": "DENY"
},
{
"key": "Referrer-Policy",
"value": "no-referrer"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Wed, 10 Sep 2025 17:41:45 GMT"
}
],
"cookie": [],
"body": "{\n \"success\": true,\n \"code\": 200,\n \"data\": {\n \"message\": \"Registered successfully. Please check your email for the confirmation code.\",\n \"user\": {\n \"id\": 2,\n \"email\": \"navoj32602@knilok.com\"\n }\n },\n \"errors\": [],\n \"meta\": []\n}"
}
]
},
{
"name": "resend-mail",
"request": {
"auth": {
"type": "noauth"
},
"method": "POST",
"header": [
{
"key": "zatca-mode",
"value": "developer-portal",
"type": "text"
},
{
"key": "zatca-mode",
"value": "simulation",
"type": "text",
"disabled": true
}
],
"body": {
"mode": "raw",
"raw": "{\n \"email\": \"lalalabi@forexnews.bg\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{base_url}}/auth/mail/resend",
"host": [
"{{base_url}}"
],
"path": [
"auth",
"mail",
"resend"
]
}
},
"response": [
{
"name": "resend-mail",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "zatca-mode",
"value": "developer-portal",
"type": "text"
},
{
"key": "zatca-mode",
"value": "simulation",
"type": "text",
"disabled": true
}
],
"body": {
"mode": "raw",
"raw": "{\n \"email\": \"nyxeho@cyclelove.cc\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{base_url}}/auth/mail/resend",
"host": [
"{{base_url}}"
],
"path": [
"auth",
"mail",
"resend"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": null,
"header": [
{
"key": "Server",
"value": "nginx"
},
{
"key": "Content-Type",
"value": "application/json; charset=utf-8"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/8.4.12"
},
{
"key": "X-Content-Type-Options",
"value": "nosniff"
},
{
"key": "X-Frame-Options",
"value": "DENY"
},
{
"key": "Referrer-Policy",
"value": "no-referrer"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Wed, 10 Sep 2025 17:45:38 GMT"
}
],
"cookie": [],
"body": "{\n \"success\": true,\n \"code\": 200,\n \"data\": {\n \"message\": \"Please check your email for the confirmation code.\",\n \"user\": {\n \"id\": 1,\n \"email\": \"nyxeho@cyclelove.cc\"\n }\n },\n \"errors\": [],\n \"meta\": []\n}"
}
]
},
{
"name": "me",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{base_url}}/auth/me",
"host": [
"{{base_url}}"
],
"path": [
"auth",
"me"
]
}
},
"response": [
{
"name": "me",
"originalRequest": {
"method": "GET",
"header": [],
"url": {
"raw": "{{base_url}}/auth/me",
"host": [
"{{base_url}}"
],
"path": [
"auth",
"me"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.22.1"
},
{
"key": "Content-Type",
"value": "application/json; charset=utf-8"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/8.4.7"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Mon, 23 Jun 2025 16:05:53 GMT"
}
],
"cookie": [],
"body": "{\n \"user\": {\n \"id\": 2,\n \"email\": \"residential.armadillo.wzqz@letterprotect.net\",\n \"zatca_mode\": \"developer-portal\",\n \"iat\": 1750694726,\n \"exp\": 1750705526\n }\n}"
}
]
}
]
},
{
"name": "API-key",
"item": [
{
"name": "all",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{base_url}}/auth/key",
"host": [
"{{base_url}}"
],
"path": [
"auth",
"key"
]
}
},
"response": [
{
"name": "all",
"originalRequest": {
"method": "GET",
"header": [],
"url": {
"raw": "{{base_url}}/auth/key",
"host": [
"{{base_url}}"
],
"path": [
"auth",
"key"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.22.1"
},
{
"key": "Content-Type",
"value": "application/json; charset=utf-8"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/8.4.7"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Mon, 23 Jun 2025 16:24:54 GMT"
}
],
"cookie": [],
"body": "{\n \"current_page\": 1,\n \"data\": [\n {\n \"id\": 1,\n \"user_id\": 2,\n \"type\": \"ip\",\n \"value\": \"192.168.65.1\",\n \"created_at\": \"2025-06-23 16:23:31\"\n }\n ],\n \"first_page_url\": \"/?page=1\",\n \"from\": 1,\n \"last_page\": 1,\n \"last_page_url\": \"/?page=1\",\n \"links\": [\n {\n \"url\": null,\n \"label\": \"Previous\",\n \"active\": false\n },\n {\n \"url\": \"/?page=1\",\n \"label\": \"1\",\n \"active\": true\n },\n {\n \"url\": null,\n \"label\": \"Next\",\n \"active\": false\n }\n ],\n \"next_page_url\": null,\n \"path\": \"/\",\n \"per_page\": 15,\n \"prev_page_url\": null,\n \"to\": 1,\n \"total\": 1\n}"
}
]
},
{
"name": "create or update",
"request": {
"method": "PATCH",
"header": [],
"body": {
"mode": "raw",
"raw": "[\n {\n \"type\": \"ip\",\n \"value\": \"127.0.0.1\"\n },\n {\n \"type\": \"domain\",\n \"value\": \"localhost\"\n }\n]",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{base_url}}/auth/key",
"host": [
"{{base_url}}"
],
"path": [
"auth",
"key"
]
}
},
"response": [
{
"name": "create or update",
"originalRequest": {
"method": "PATCH",
"header": [],
"body": {
"mode": "raw",
"raw": "[\n {\n \"type\": \"ip\",\n \"value\": \"192.168.65.1\"\n }\n]",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{base_url}}/auth/key",
"host": [
"{{base_url}}"
],
"path": [
"auth",
"key"
]
}
},
"status": "Created",
"code": 201,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.22.1"
},
{
"key": "Content-Type",
"value": "application/json; charset=utf-8"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/8.4.7"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Mon, 23 Jun 2025 16:23:31 GMT"
}
],
"cookie": [],
"body": "{\n \"current_page\": 1,\n \"data\": [\n {\n \"type\": \"ip\",\n \"value\": \"192.168.65.1\",\n \"created_at\": \"2025-06-23 16:23:31\"\n }\n ],\n \"first_page_url\": \"/?page=1\",\n \"from\": 1,\n \"last_page\": 1,\n \"last_page_url\": \"/?page=1\",\n \"links\": [\n {\n \"url\": null,\n \"label\": \"Previous\",\n \"active\": false\n },\n {\n \"url\": \"/?page=1\",\n \"label\": \"1\",\n \"active\": true\n },\n {\n \"url\": null,\n \"label\": \"Next\",\n \"active\": false\n }\n ],\n \"next_page_url\": null,\n \"path\": \"/\",\n \"per_page\": 15,\n \"prev_page_url\": null,\n \"to\": 1,\n \"total\": 1\n}"
}
]
},
{
"name": "re-generate",
"request": {
"method": "PUT",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{base_url}}/auth/key",
"host": [
"{{base_url}}"
],
"path": [
"auth",
"key"
]
}
},
"response": [
{
"name": "re-generate",
"originalRequest": {
"method": "PUT",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{base_url}}/auth/key",
"host": [
"{{base_url}}"
],
"path": [
"auth",
"key"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.22.1"
},
{
"key": "Content-Type",
"value": "application/json; charset=utf-8"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/8.4.7"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Mon, 23 Jun 2025 16:24:28 GMT"
}
],
"cookie": [],
"body": "{\n \"api_key\": \"aWUxbDZqQkhXQ3IySkdpRnRsTmZxdXNvTUFMNTNoQmpPaFZMU01WU0NCWCt0MTJkVCtTWS9Pbm8yVDFGYVovVTo6zpwIHtcfgt5/a3iFcdP0Hw==\"\n}"
}
]
},
{
"name": "FLUSH",
"request": {
"method": "DELETE",
"header": [],
"url": {
"raw": "{{base_url}}/auth/key/flush",
"host": [
"{{base_url}}"
],
"path": [
"auth",
"key",
"flush"
]
}
},
"response": []
},
{
"name": "destroy",
"request": {
"method": "DELETE",
"header": [],
"url": {
"raw": "{{base_url}}/auth/key?value=185.85.0.29",
"host": [
"{{base_url}}"
],
"path": [
"auth",
"key"
],
"query": [
{
"key": "value",
"value": "185.85.0.29"
}
]
}
},
"response": [
{
"name": "destroy",
"originalRequest": {
"method": "DELETE",
"header": [],
"url": {
"raw": "{{base_url}}/auth/key?value=192.168.1.1",
"host": [
"{{base_url}}"
],
"path": [
"auth",
"key"
],
"query": [
{
"key": "value",
"value": "192.168.1.1"
}
]
}
},
"status": "No Content",
"code": 204,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.22.1"
},
{
"key": "Content-Type",
"value": "application/json; charset=utf-8"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/8.4.7"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Mon, 23 Jun 2025 16:26:36 GMT"
}
],
"cookie": [],
"body": null
}
]
}
]
},
{
"name": "fatoora",
"item": [
{
"name": "csr",
"item": [
{
"name": "/csid/compliance",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"otp\": \"456789\",\n \"common_name\": \"EGS-Unit-1\",\n \"organization_identifier\": \"399999999900003\",\n \"organization_name\": \"Maximum Speed Tech Supply LTD\",\n \"organization_unit\": \"2322234344\",\n \"country\": \"SA\",\n \"address\": \"Ryan Navarro\",\n \"business_category\": \"Omnis voluptatibus q\",\n \"invoice_type\": \"1100\",\n \"egs_solution_name\": \"World-Touch-EGS\",\n \"egs_model\": \"GSP-Model-1\",\n \"egs_serial_number\": \"GSP-SN001\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{base_url}}/csid/compliance",
"host": [
"{{base_url}}"
],
"path": [
"csid",
"compliance"
]
}
},
"response": [
{
"name": "403",
"originalRequest": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"otp\": \"456789\",\n \"common_name\": \"EGS-Unit-1\",\n \"organization_identifier\": \"399999999900003\",\n \"organization_name\": \"Maximum Speed Tech Supply LTD\",\n \"organization_unit\": \"2322234344\",\n \"country\": \"SA\",\n \"address\": \"Ryan Navarro\",\n \"business_category\": \"Omnis voluptatibus q\",\n \"invoice_type\": \"1100\",\n \"egs_solution_name\": \"World-Touch-EGS\",\n \"egs_model\": \"GSP-Model-1\",\n \"egs_serial_number\": \"GSP-SN001\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{base_url}}/csid/compliance",
"host": [
"{{base_url}}"
],
"path": [
"csid",
"compliance"
]
}
},
"status": "Forbidden",
"code": 403,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.22.1"
},
{
"key": "Content-Type",
"value": "application/json; charset=utf-8"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/8.4.7"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Mon, 23 Jun 2025 16:30:54 GMT"
}
],
"cookie": [],
"body": "{\n \"message\": \"Client IP or domain not whitelisted\",\n \"errors\": {\n \"ip\": \"192.168.65.1\",\n \"host\": \"192.168.65.1\"\n }\n}"
},
{
"name": "ok",
"originalRequest": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"otp\": \"456789\",\n \"common_name\": \"EGS-Unit-1\",\n \"organization_identifier\": \"399999999900003\",\n \"organization_name\": \"Maximum Speed Tech Supply LTD\",\n \"organization_unit\": \"2322234344\",\n \"country\": \"SA\",\n \"address\": \"Ryan Navarro\",\n \"business_category\": \"Omnis voluptatibus q\",\n \"invoice_type\": \"1100\",\n \"egs_solution_name\": \"World-Touch-EGS\",\n \"egs_model\": \"GSP-Model-1\",\n \"egs_serial_number\": \"GSP-SN001\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{base_url}}/csid/compliance",
"host": [
"{{base_url}}"
],
"path": [
"csid",
"compliance"
]
}
},
"status": "Created",
"code": 201,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.22.1"
},
{
"key": "Content-Type",
"value": "application/json; charset=utf-8"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/8.4.7"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Mon, 23 Jun 2025 16:32:50 GMT"
}
],
"cookie": [],
"body": "{\n \"request_id\": 30368\n}"
}
]
},
{
"name": "/csid/compliance",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{base_url}}/csid/compliance?vat=399999999900003&page=1",
"host": [
"{{base_url}}"
],
"path": [
"csid",
"compliance"
],
"query": [
{
"key": "vat",
"value": "399999999900003"
},
{
"key": "page",
"value": "1"
}
]
}
},
"response": []
},
{
"name": "csid/production",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{base_url}}/csid/production?vat=399999999900003&page=1",
"host": [
"{{base_url}}"
],
"path": [
"csid",
"production"
],
"query": [
{
"key": "vat",
"value": "399999999900003"
},
{
"key": "page",
"value": "1"
}
]
}
},
"response": []
}
]
},
{
"name": "reporting",
"item": [
{
"name": "simplified invoice",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"note\": \"\",\n \"note_language_id\": \"ar\",\n \"issue_date\": \"2025-09-14\",\n \"issue_time\": \"17:34:20\",\n \"currency_code\": \"SAR\",\n \"payment_means_code\": \"bank_account\",\n \"invoice_sub_type\": {\n \"simplified\": true,\n \"third_party\": false,\n \"nominal\": false,\n \"exports\": false,\n \"summary\": false,\n \"self_billed\": false\n },\n \"invoice_type\": \"invoice\",\n \"instruction_note\": null,\n \"billing_reference\": null,\n \"accounting_supplier_party\": {\n \"postal_address\": {\n \"street_name\": \"Aretha Pugh\",\n \"building_number\": \"3683\",\n \"plot_identification\": \"9694\",\n \"city_subdivision_name\": \"Sequi recusandae Do\",\n \"city_name\": \"Diriyah\",\n \"postal_zone\": \"20222\",\n \"country_subentity\": null,\n \"additional_street_name\": \"Accusantium voluptas\",\n \"country_identification_code\": \"SA\"\n },\n \"party_identification\": {\n \"id\": \"7134134134\",\n \"scheme_id\": \"700\"\n }\n },\n \"accounting_customer_party\": {\n \"postal_address\": {\n \"country_identification_code\": \"SA\"\n },\n \"party_legal_entity\": {\n \"registration_name\": \"محمد نواز فقير الاعوان\"\n }\n },\n \"delivery\": null,\n \"allowance_charges\": [\n {\n \"charge_indicator\": false,\n \"allowance_charge_reason\": \"discount\",\n \"amount\": \"0.00\",\n \"currency_id\": \"SAR\",\n \"tax_categories\": [\n {\n \"tax_percent\": \"15\"\n },\n {\n \"tax_percent\": \"15\"\n }\n ]\n }\n ],\n \"tax_totals\": [\n {\n \"tax_amount\": \"92069.99\"\n },\n {\n \"tax_amount\": \"92069.99\",\n \"tax_subtotal_amount\": \"92069.99\",\n \"taxable_amount\": \"613799.94\",\n \"tax_category\": {\n \"tax_percent\": \"15.00\",\n \"tax_exemption_reason_code\": null,\n \"tax_exemption_reason\": null\n }\n }\n ],\n \"legal_monetary_total\": {\n \"line_extension_amount\": \"613799.94\",\n \"tax_exclusive_amount\": \"613799.94\",\n \"tax_inclusive_amount\": \"705869.93\",\n \"allowance_total_amount\": \"0.00\",\n \"prepaid_amount\": \"0.00\",\n \"payable_amount\": \"705869.93\"\n },\n \"invoice_lines\": [\n {\n \"invoiced_quantity\": 78,\n \"invoiced_quantity_unit_code\": \"PCE\",\n \"line_extension_amount\": \"13420.68\",\n \"tax_total\": {\n \"tax_amount\": \"2013.10\",\n \"rounding_amount\": \"15433.78\"\n },\n \"item\": {\n \"name\": \"dahua-dh-xa5\"\n },\n \"price\": {\n \"price_amount\": \"172.06\",\n \"allowance_charge\": {\n \"charge_indicator\": false,\n \"allowance_charge_reason\": \"discount\",\n \"amount\": \"0.00\",\n \"currency_id\": \"SAR\",\n \"tax_category\": null,\n \"add_tax_category\": false,\n \"add_id\": false,\n \"tax_categories\": []\n }\n }\n },\n {\n \"invoiced_quantity\": 76,\n \"invoiced_quantity_unit_code\": \"PCE\",\n \"line_extension_amount\": \"23217.24\",\n \"tax_total\": {\n \"tax_amount\": \"3482.59\",\n \"rounding_amount\": \"26699.83\"\n },\n \"item\": {\n \"name\": \"dahua-dhi-ara43-w2(868)\"\n },\n \"price\": {\n \"price_amount\": \"305.49\",\n \"allowance_charge\": {\n \"charge_indicator\": false,\n \"allowance_charge_reason\": \"discount\",\n \"amount\": \"0.00\",\n \"currency_id\": \"SAR\",\n \"tax_category\": null,\n \"add_tax_category\": false,\n \"add_id\": false,\n \"tax_categories\": []\n }\n }\n },\n {\n \"invoiced_quantity\": 234,\n \"invoiced_quantity_unit_code\": \"PCE\",\n \"line_extension_amount\": \"340762.50\",\n \"tax_total\": {\n \"tax_amount\": \"51114.38\",\n \"rounding_amount\": \"391876.88\"\n },\n \"item\": {\n \"name\": \"dahua-dhi-lm43-f200\"\n },\n \"price\": {\n \"price_amount\": \"1456.25\",\n \"allowance_charge\": {\n \"charge_indicator\": false,\n \"allowance_charge_reason\": \"discount\",\n \"amount\": \"0.00\",\n \"currency_id\": \"SAR\",\n \"tax_category\": null,\n \"add_tax_category\": false,\n \"add_id\": false,\n \"tax_categories\": []\n }\n }\n },\n {\n \"invoiced_quantity\": 98,\n \"invoiced_quantity_unit_code\": \"PCE\",\n \"line_extension_amount\": \"236399.52\",\n \"tax_total\": {\n \"tax_amount\": \"35459.93\",\n \"rounding_amount\": \"271859.45\"\n },\n \"item\": {\n \"name\": \"dahua-dhi-nvr5432-ei\"\n },\n \"price\": {\n \"price_amount\": \"2412.24\",\n \"allowance_charge\": {\n \"charge_indicator\": false,\n \"allowance_charge_reason\": \"discount\",\n \"amount\": \"0.00\",\n \"currency_id\": \"SAR\",\n \"tax_category\": null,\n \"add_tax_category\": false,\n \"add_id\": false,\n \"tax_categories\": []\n }\n }\n }\n ]\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{base_url}}/reporting?request_id=30368",
"host": [
"{{base_url}}"
],
"path": [
"reporting"
],
"query": [
{
"key": "request_id",
"value": "30368"
}
]
}
},
"response": [
{
"name": "error",
"originalRequest": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"invoice_id\": 1,\n \"note\": \"ABC\",\n \"note_language_id\": \"ar\",\n \"issue_date\": \"2025-05-18\",\n \"issue_time\": \"17:41:08\",\n \"currency_code\": \"SAR\",\n \"payment_means_code\": \"bank_card\",\n \"invoice_sub_type\": {\n \"simplified\": true,\n \"third_party\": false,\n \"nominal\": false,\n \"exports\": false,\n \"summary\": false,\n \"self_billed\": false\n },\n \"invoice_type\": \"invoice\",\n \"instruction_note\": null,\n \"billing_reference\": null,\n \"accounting_supplier_party\": {\n \"postal_address\": {\n \"street_name\": \"شارع خالد بن الوليد\",\n \"building_number\": \"2568\",\n \"plot_identification\": \"6273\",\n \"city_subdivision_name\": \"الشرقية\",\n \"city_name\": \"الطائف\",\n \"postal_zone\": \"26523\",\n \"country_subentity\": null,\n \"additional_street_name\": null\n },\n \"party_identification\": {\n \"id\": \"324223432432432\"\n }\n },\n \"accounting_customer_party\": {\n \"postal_address\": {\n \"city_subdivision_name\": \"حي العليا\",\n \"country_identification_code\": \"SA\"\n }\n },\n \"delivery\": null,\n \"allowance_charges\": [\n {\n \"charge_indicator\": false,\n \"allowance_charge_reason\": \"discount\",\n \"amount\": \"0.00\",\n \"currency_id\": \"SAR\",\n \"tax_categories\": [\n {\n \"tax_percent\": \"15\"\n },\n {\n \"tax_percent\": \"15\"\n }\n ]\n }\n ],\n \"tax_totals\": [\n {\n \"tax_amount\": \"30.15\"\n },\n {\n \"tax_amount\": \"30.15\",\n \"tax_subtotal_amount\": \"30.15\",\n \"taxable_amount\": \"201.00\",\n \"tax_category\": {\n \"tax_percent\": \"15.00\"\n }\n }\n ],\n \"legal_monetary_total\": {\n \"line_extension_amount\": \"201.00\",\n \"tax_exclusive_amount\": \"201.00\",\n \"tax_inclusive_amount\": \"231.15\",\n \"allowance_total_amount\": \"0.00\",\n \"prepaid_amount\": \"0.00\",\n \"payable_amount\": \"231.15\"\n },\n \"invoice_lines\": [\n {\n \"invoiced_quantity\": \"33.000000\",\n \"invoiced_quantity_unit_code\": \"PCE\",\n \"line_extension_amount\": \"99.00\",\n \"tax_total\": {\n \"tax_amount\": \"14.85\",\n \"rounding_amount\": \"113.85\"\n },\n \"item\": {\n \"name\": \"كتاب\"\n },\n \"price\": {\n \"price_amount\": \"3.00\",\n \"allowance_charge\": {\n \"charge_indicator\": false,\n \"allowance_charge_reason\": \"discount\",\n \"amount\": \"0.00\",\n \"currency_id\": \"SAR\",\n \"tax_category\": null,\n \"add_tax_category\": false,\n \"add_id\": false,\n \"tax_categories\": []\n }\n }\n },\n {\n \"invoiced_quantity\": \"3.000000\",\n \"invoiced_quantity_unit_code\": \"PCE\",\n \"line_extension_amount\": \"102.00\",\n \"tax_total\": {\n \"tax_amount\": \"15.30\",\n \"rounding_amount\": \"117.30\"\n },\n \"item\": {\n \"name\": \"قلم\"\n },\n \"price\": {\n \"price_amount\": \"34.00\",\n \"allowance_charge\": {\n \"charge_indicator\": false,\n \"allowance_charge_reason\": \"discount\",\n \"amount\": \"0.00\",\n \"currency_id\": \"SAR\",\n \"tax_category\": null,\n \"add_tax_category\": false,\n \"add_id\": false,\n \"tax_categories\": []\n }\n }\n }\n ]\n}\n",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{base_url}}/reporting?request_id=30368",
"host": [
"{{base_url}}"
],
"path": [
"reporting"
],
"query": [
{
"key": "request_id",
"value": "30368"
}
]
}
},
"status": "Bad Request",
"code": 400,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.22.1"
},
{
"key": "Date",
"value": "Sun, 18 May 2025 20:49:07 GMT"
},
{
"key": "Content-Type",
"value": "application/json; charset=utf-8"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/8.4.7"
}
],
"cookie": [],
"body": "{\n \"error\": \"Bad Request\",\n \"issues\": {\n \"error\": \"ZATCA simplified invoice failed\",\n \"zatca\": {\n \"validationResults\": {\n \"infoMessages\": [\n {\n \"type\": \"INFO\",\n \"code\": \"XSD_ZATCA_VALID\",\n \"category\": \"XSD validation\",\n \"message\": \"Complied with UBL 2.1 standards in line with ZATCA specifications\",\n \"status\": \"PASS\"\n }\n ],\n \"warningMessages\": [],\n \"errorMessages\": [\n {\n \"type\": \"ERROR\",\n \"code\": \"certificate-permissions\",\n \"category\": \"CERTIFICATE_ERRORS\",\n \"message\": \"User only allowed to use the vat number that exists in the authentication certificate\",\n \"status\": \"ERROR\"\n }\n ],\n \"status\": \"ERROR\"\n },\n \"reportingStatus\": \"NOT_REPORTED\"\n }\n }\n}"
}
]
},
{
"name": "simplified credit",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"invoice_id\": 1,\n \"note\": \"ABC\",\n \"note_language_id\": \"ar\",\n \"issue_date\": \"2025-05-16\",\n \"issue_time\": \"17:41:08\",\n \"currency_code\": \"SAR\",\n \"payment_means_code\": \"bank_card\",\n \"invoice_sub_type\": {\n \"simplified\": true,\n \"third_party\": false,\n \"nominal\": false,\n \"exports\": false,\n \"summary\": false,\n \"self_billed\": false\n },\n \"invoice_type\": \"credit\",\n \"instruction_note\": \"Refunded because customer ordered by mistake\",\n \"billing_reference\": {\n \"invoice_id\": \"SIM_20250516-04470\",\n \"issue_date\": \"2025-05-08\"\n },\n \"delivery\": {\n \"actual_delivery_date\": \"2025-05-08\",\n \"latest_delivery_date\": \"2025-05-08\"\n },\n \"accounting_supplier_party\": {\n \"postal_address\": {\n \"street_name\": \"شارع خالد بن الوليد\",\n \"building_number\": \"2568\",\n \"plot_identification\": \"6273\",\n \"city_subdivision_name\": \"الشرقية\",\n \"city_name\": \"الطائف\",\n \"postal_zone\": \"26523\",\n \"country_subentity\": null,\n \"additional_street_name\": null\n },\n \"party_identification\": {\n \"id\": \"324223432432432\"\n }\n },\n \"accounting_customer_party\": {\n \"postal_address\": {\n \"city_subdivision_name\": \"حي العليا\",\n \"country_identification_code\": \"SA\"\n }\n },\n \"allowance_charges\": [\n {\n \"charge_indicator\": false,\n \"allowance_charge_reason\": \"discount\",\n \"amount\": \"0.00\",\n \"currency_id\": \"SAR\",\n \"tax_categories\": [\n {\n \"tax_percent\": \"15\"\n },\n {\n \"tax_percent\": \"15\"\n }\n ]\n }\n ],\n \"tax_totals\": [\n {\n \"tax_amount\": \"30.15\"\n },\n {\n \"tax_amount\": \"30.15\",\n \"tax_subtotal_amount\": \"30.15\",\n \"taxable_amount\": \"201.00\",\n \"tax_category\": {\n \"tax_percent\": \"15.00\",\n \"tax_exemption_reason_code\": null,\n \"tax_exemption_reason\": null\n }\n }\n ],\n \"legal_monetary_total\": {\n \"line_extension_amount\": \"201.00\",\n \"tax_exclusive_amount\": \"201.00\",\n \"tax_inclusive_amount\": \"231.15\",\n \"allowance_total_amount\": \"0.00\",\n \"prepaid_amount\": \"0.00\",\n \"payable_amount\": \"231.15\"\n },\n \"invoice_lines\": [\n {\n \"invoiced_quantity\": 33,\n \"invoiced_quantity_unit_code\": \"PCE\",\n \"line_extension_amount\": \"99.00\",\n \"tax_total\": {\n \"tax_amount\": \"14.85\",\n \"rounding_amount\": \"113.85\"\n },\n \"item\": {\n \"name\": \"كتاب\"\n },\n \"price\": {\n \"price_amount\": \"3.00\",\n \"allowance_charge\": {\n \"charge_indicator\": false,\n \"allowance_charge_reason\": \"discount\",\n \"amount\": \"0.00\",\n \"currency_id\": \"SAR\",\n \"tax_category\": null,\n \"add_tax_category\": false,\n \"add_id\": false,\n \"tax_categories\": []\n }\n }\n },\n {\n \"invoiced_quantity\": 3,\n \"invoiced_quantity_unit_code\": \"PCE\",\n \"line_extension_amount\": \"102.00\",\n \"tax_total\": {\n \"tax_amount\": \"15.30\",\n \"rounding_amount\": \"117.30\"\n },\n \"item\": {\n \"name\": \"قلم\"\n },\n \"price\": {\n \"price_amount\": \"34.00\",\n \"allowance_charge\": {\n \"charge_indicator\": false,\n \"allowance_charge_reason\": \"discount\",\n \"amount\": \"0.00\",\n \"currency_id\": \"SAR\",\n \"tax_category\": null,\n \"add_tax_category\": false,\n \"add_id\": false,\n \"tax_categories\": []\n }\n }\n }\n ]\n}\n",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{base_url}}/reporting?request_id=28401259039",
"host": [
"{{base_url}}"
],
"path": [
"reporting"
],
"query": [
{
"key": "request_id",
"value": "28401259039"
}
]
}
},
"response": []
},
{
"name": "simplified debit",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"invoice_id\": 1,\n \"note\": \"ABC\",\n \"note_language_id\": \"ar\",\n \"issue_date\": \"2025-05-16\",\n \"issue_time\": \"17:41:08\",\n \"currency_code\": \"SAR\",\n \"payment_means_code\": \"bank_card\",\n \"invoice_sub_type\": {\n \"simplified\": true,\n \"third_party\": false,\n \"nominal\": false,\n \"exports\": false,\n \"summary\": false,\n \"self_billed\": false\n },\n \"invoice_type\": \"debit\",\n \"instruction_note\": \"Refunded because customer ordered by mistake\",\n \"billing_reference\": {\n \"invoice_id\": \"SIM_20250516-04470\",\n \"issue_date\": \"2025-05-08\"\n },\n \"delivery\": {\n \"actual_delivery_date\": \"2025-05-08\",\n \"latest_delivery_date\": \"2025-05-08\"\n },\n \"accounting_supplier_party\": {\n \"postal_address\": {\n \"street_name\": \"شارع خالد بن الوليد\",\n \"building_number\": \"2568\",\n \"plot_identification\": \"6273\",\n \"city_subdivision_name\": \"الشرقية\",\n \"city_name\": \"الطائف\",\n \"postal_zone\": \"26523\",\n \"country_subentity\": null,\n \"additional_street_name\": null\n },\n \"party_identification\": {\n \"id\": \"324223432432432\"\n }\n },\n \"accounting_customer_party\": {\n \"postal_address\": {\n \"city_subdivision_name\": \"حي العليا\",\n \"country_identification_code\": \"SA\"\n }\n },\n \"allowance_charges\": [\n {\n \"charge_indicator\": false,\n \"allowance_charge_reason\": \"discount\",\n \"amount\": \"0.00\",\n \"currency_id\": \"SAR\",\n \"tax_categories\": [\n {\n \"tax_percent\": \"15\"\n },\n {\n \"tax_percent\": \"15\"\n }\n ]\n }\n ],\n \"tax_totals\": [\n {\n \"tax_amount\": \"30.15\"\n },\n {\n \"tax_amount\": \"30.15\",\n \"tax_subtotal_amount\": \"30.15\",\n \"taxable_amount\": \"201.00\",\n \"tax_category\": {\n \"tax_percent\": \"15.00\",\n \"tax_exemption_reason_code\": null,\n \"tax_exemption_reason\": null\n }\n }\n ],\n \"legal_monetary_total\": {\n \"line_extension_amount\": \"201.00\",\n \"tax_exclusive_amount\": \"201.00\",\n \"tax_inclusive_amount\": \"231.15\",\n \"allowance_total_amount\": \"0.00\",\n \"prepaid_amount\": \"0.00\",\n \"payable_amount\": \"231.15\"\n },\n \"invoice_lines\": [\n {\n \"invoiced_quantity\": \"33.000000\",\n \"invoiced_quantity_unit_code\": \"PCE\",\n \"line_extension_amount\": \"99.00\",\n \"tax_total\": {\n \"tax_amount\": \"14.85\",\n \"rounding_amount\": \"113.85\"\n },\n \"item\": {\n \"name\": \"كتاب\"\n },\n \"price\": {\n \"price_amount\": \"3.00\",\n \"allowance_charge\": {\n \"charge_indicator\": false,\n \"allowance_charge_reason\": \"discount\",\n \"amount\": \"0.00\",\n \"currency_id\": \"SAR\",\n \"tax_category\": null,\n \"add_tax_category\": false,\n \"add_id\": false,\n \"tax_categories\": []\n }\n }\n },\n {\n \"invoiced_quantity\": \"3.000000\",\n \"invoiced_quantity_unit_code\": \"PCE\",\n \"line_extension_amount\": \"102.00\",\n \"tax_total\": {\n \"tax_amount\": \"15.30\",\n \"rounding_amount\": \"117.30\"\n },\n \"item\": {\n \"name\": \"قلم\"\n },\n \"price\": {\n \"price_amount\": \"34.00\",\n \"allowance_charge\": {\n \"charge_indicator\": false,\n \"allowance_charge_reason\": \"discount\",\n \"amount\": \"0.00\",\n \"currency_id\": \"SAR\",\n \"tax_category\": null,\n \"add_tax_category\": false,\n \"add_id\": false,\n \"tax_categories\": []\n }\n }\n }\n ]\n}\n",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{base_url}}/reporting?request_id=28401259039",
"host": [
"{{base_url}}"
],
"path": [
"reporting"
],
"query": [
{
"key": "request_id",
"value": "28401259039"
}
]
}
},
"response": []
}
]
},
{
"name": "clearance",
"item": [
{
"name": "standard invoice",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"note\": \"\",\n \"note_language_id\": \"ar\",\n \"issue_date\": \"2025-09-14\",\n \"issue_time\": \"17:31:58\",\n \"currency_code\": \"SAR\",\n \"payment_means_code\": \"bank_account\",\n \"invoice_sub_type\": {\n \"simplified\": false,\n \"third_party\": false,\n \"nominal\": false,\n \"exports\": false,\n \"summary\": false,\n \"self_billed\": false\n },\n \"invoice_type\": \"invoice\",\n \"instruction_note\": null,\n \"billing_reference\": null,\n \"accounting_supplier_party\": {\n \"postal_address\": {\n \"street_name\": \"Aretha Pugh\",\n \"building_number\": \"3683\",\n \"plot_identification\": \"9694\",\n \"city_subdivision_name\": \"Sequi recusandae Do\",\n \"city_name\": \"Diriyah\",\n \"postal_zone\": \"20222\",\n \"country_subentity\": null,\n \"additional_street_name\": \"Accusantium voluptas\",\n \"country_identification_code\": \"SA\"\n },\n \"party_identification\": {\n \"id\": \"7134134134\",\n \"scheme_id\": \"700\"\n }\n },\n \"accounting_customer_party\": {\n \"postal_address\": {\n \"street_name\": \"Wyoming Rosa\",\n \"building_number\": \"2894\",\n \"plot_identification\": \"7094\",\n \"city_subdivision_name\": \"Maxime est doloremqu\",\n \"city_name\": \"Gurayat\",\n \"postal_zone\": \"88433\",\n \"additional_street_name\": \"Pariatur Incididunt\",\n \"country_identification_code\": \"SA\"\n },\n \"party_legal_entity\": {\n \"registration_name\": \"Emerson Howard\"\n },\n \"party_identification\": {\n \"id\": \"4341341341\",\n \"scheme_id\": \"CRN\"\n }\n },\n \"delivery\": {\n \"actual_delivery_date\": \"2025-06-16\",\n \"latest_delivery_date\": \"2025-06-24\"\n },\n \"allowance_charges\": [\n {\n \"charge_indicator\": false,\n \"allowance_charge_reason\": \"discount\",\n \"amount\": \"0.00\",\n \"currency_id\": \"SAR\",\n \"tax_categories\": [\n {\n \"tax_percent\": \"15\"\n },\n {\n \"tax_percent\": \"15\"\n }\n ]\n }\n ],\n \"tax_totals\": [\n {\n \"tax_amount\": \"17319.30\"\n },\n {\n \"tax_amount\": \"17319.30\",\n \"tax_subtotal_amount\": \"17319.30\",\n \"taxable_amount\": \"115461.97\",\n \"tax_category\": {\n \"tax_percent\": \"15.00\",\n \"tax_exemption_reason_code\": null,\n \"tax_exemption_reason\": null\n }\n }\n ],\n \"legal_monetary_total\": {\n \"line_extension_amount\": \"115461.97\",\n \"tax_exclusive_amount\": \"115461.97\",\n \"tax_inclusive_amount\": \"132781.27\",\n \"allowance_total_amount\": \"0.00\",\n \"prepaid_amount\": \"0.00\",\n \"payable_amount\": \"132781.27\"\n },\n \"invoice_lines\": [\n {\n \"invoiced_quantity\": 56,\n \"invoiced_quantity_unit_code\": \"PCE\",\n \"line_extension_amount\": \"10143.28\",\n \"tax_total\": {\n \"tax_amount\": \"1521.49\",\n \"rounding_amount\": \"11664.77\"\n },\n \"item\": {\n \"name\": \"dahua-dh-h4c\"\n },\n \"price\": {\n \"price_amount\": \"181.13\",\n \"allowance_charge\": {\n \"charge_indicator\": false,\n \"allowance_charge_reason\": \"discount\",\n \"amount\": \"0.00\",\n \"currency_id\": \"SAR\",\n \"tax_category\": null,\n \"add_tax_category\": false,\n \"add_id\": false,\n \"tax_categories\": []\n }\n }\n },\n {\n \"invoiced_quantity\": 76,\n \"invoiced_quantity_unit_code\": \"PCE\",\n \"line_extension_amount\": \"14354.88\",\n \"tax_total\": {\n \"tax_amount\": \"2153.23\",\n \"rounding_amount\": \"16508.11\"\n },\n \"item\": {\n \"name\": \"dahua-dh-xb5\"\n },\n \"price\": {\n \"price_amount\": \"188.88\",\n \"allowance_charge\": {\n \"charge_indicator\": false,\n \"allowance_charge_reason\": \"discount\",\n \"amount\": \"0.00\",\n \"currency_id\": \"SAR\",\n \"tax_category\": null,\n \"add_tax_category\": false,\n \"add_id\": false,\n \"tax_categories\": []\n }\n }\n },\n {\n \"invoiced_quantity\": 567,\n \"invoiced_quantity_unit_code\": \"PCE\",\n \"line_extension_amount\": \"90963.81\",\n \"tax_total\": {\n \"tax_amount\": \"13644.57\",\n \"rounding_amount\": \"104608.38\"\n },\n \"item\": {\n \"name\": \"dahua-dh-xb3\"\n },\n \"price\": {\n \"price_amount\": \"160.43\",\n \"allowance_charge\": {\n \"charge_indicator\": false,\n \"allowance_charge_reason\": \"discount\",\n \"amount\": \"0.00\",\n \"currency_id\": \"SAR\",\n \"tax_category\": null,\n \"add_tax_category\": false,\n \"add_id\": false,\n \"tax_categories\": []\n }\n }\n }\n ]\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{base_url}}/clearance?request_id=30368",
"host": [
"{{base_url}}"
],
"path": [
"clearance"
],
"query": [
{
"key": "request_id",
"value": "30368"
}
]
}
},
"response": [
{
"name": "error",
"originalRequest": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"invoice_id\": 1,\n \"note\": \"ABC\",\n \"note_language_id\": \"ar\",\n \"issue_date\": \"2025-05-16\",\n \"issue_time\": \"17:41:08\",\n \"currency_code\": \"SAR\",\n \"payment_means_code\": \"bank_card\",\n \"invoice_sub_type\": {\n \"simplified\": false,\n \"third_party\": false,\n \"nominal\": false,\n \"exports\": false,\n \"summary\": false,\n \"self_billed\": false\n },\n \"invoice_type\": \"invoice\",\n \"instruction_note\": null,\n \"billing_reference\": null,\n \"accounting_supplier_party\": {\n \"postal_address\": {\n \"street_name\": \"شارع خالد بن الوليد\",\n \"building_number\": \"2568\",\n \"plot_identification\": \"6273\",\n \"city_subdivision_name\": \"الشرقية\",\n \"city_name\": \"الطائف\",\n \"postal_zone\": \"26523\",\n \"country_subentity\": null,\n \"additional_street_name\": null\n },\n \"party_identification\": {\n \"id\": \"324223432432432\"\n }\n },\n \"accounting_customer_party\": {\n \"postal_address\": {\n \"street_name\": \"طريق الملك فهد\",\n \"building_number\": \"5566\",\n \"plot_identification\": \"7890\",\n \"city_subdivision_name\": \"حي العليا\",\n \"city_name\": \"الرياض | Riyadh\",\n \"postal_zone\": \"11564\",\n \"country_subentity\": \"منطقة الرياض\",\n \"additional_street_name\": \"بجوار البنك الأهلي\",\n \"country_identification_code\": \"SA\"\n },\n \"party_tax_scheme\": {\n \"company_id\": \"310123456700003\"\n },\n \"party_legal_entity\": {\n \"registration_name\": \"مؤسسة العالم الفني الامنية\"\n },\n \"party_identification\": {\n \"id\": \"987654321098765\"\n }\n },\n \"delivery\": {\n \"actual_delivery_date\": \"2025-05-08\"\n },\n \"allowance_charges\": [\n {\n \"charge_indicator\": false,\n \"allowance_charge_reason\": \"discount\",\n \"amount\": \"0.00\",\n \"currency_id\": \"SAR\",\n \"tax_categories\": [\n {\n \"tax_percent\": \"15\"\n },\n {\n \"tax_percent\": \"15\"\n }\n ]\n }\n ],\n \"tax_totals\": [\n {\n \"tax_amount\": \"30.15\"\n },\n {\n \"tax_amount\": \"30.15\",\n \"tax_subtotal_amount\": \"30.15\",\n \"taxable_amount\": \"201.00\",\n \"tax_category\": {\n \"tax_percent\": \"15.00\"\n }\n }\n ],\n \"legal_monetary_total\": {\n \"line_extension_amount\": \"201.00\",\n \"tax_exclusive_amount\": \"201.00\",\n \"tax_inclusive_amount\": \"231.15\",\n \"allowance_total_amount\": \"0.00\",\n \"prepaid_amount\": \"0.00\",\n \"payable_amount\": \"231.15\"\n },\n \"invoice_lines\": [\n {\n \"invoiced_quantity\": \"33.000000\",\n \"invoiced_quantity_unit_code\": \"PCE\",\n \"line_extension_amount\": \"99.00\",\n \"tax_total\": {\n \"tax_amount\": \"14.85\",\n \"rounding_amount\": \"113.85\"\n },\n \"item\": {\n \"name\": \"كتاب\"\n },\n \"price\": {\n \"price_amount\": \"3.00\",\n \"allowance_charge\": {\n \"charge_indicator\": false,\n \"allowance_charge_reason\": \"discount\",\n \"amount\": \"0.00\",\n \"currency_id\": \"SAR\",\n \"tax_category\": null,\n \"add_tax_category\": false,\n \"add_id\": false,\n \"tax_categories\": []\n }\n }\n },\n {\n \"invoiced_quantity\": \"3.000000\",\n \"invoiced_quantity_unit_code\": \"PCE\",\n \"line_extension_amount\": \"102.00\",\n \"tax_total\": {\n \"tax_amount\": \"15.30\",\n \"rounding_amount\": \"117.30\"\n },\n \"item\": {\n \"name\": \"قلم\"\n },\n \"price\": {\n \"price_amount\": \"34.00\",\n \"allowance_charge\": {\n \"charge_indicator\": false,\n \"allowance_charge_reason\": \"discount\",\n \"amount\": \"0.00\",\n \"currency_id\": \"SAR\",\n \"tax_category\": null,\n \"add_tax_category\": false,\n \"add_id\": false,\n \"tax_categories\": []\n }\n }\n }\n ]\n}\n",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{base_url}}/clearance?request_id=30368",
"host": [
"{{base_url}}"
],
"path": [
"clearance"
],
"query": [
{
"key": "request_id",
"value": "30368"
}
]
}
},
"status": "Bad Request",
"code": 400,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.22.1"
},
{
"key": "Date",
"value": "Sun, 18 May 2025 20:43:59 GMT"
},
{
"key": "Content-Type",
"value": "application/json; charset=utf-8"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/8.4.7"
}
],
"cookie": [],
"body": "{\n \"error\": \"Bad Request\",\n \"issues\": {\n \"error\": \"ZATCA standard invoice failed\",\n \"zatca\": {\n \"validationResults\": {\n \"infoMessages\": [\n {\n \"type\": \"INFO\",\n \"code\": \"XSD_ZATCA_VALID\",\n \"category\": \"XSD validation\",\n \"message\": \"Complied with UBL 2.1 standards in line with ZATCA specifications\",\n \"status\": \"PASS\"\n }\n ],\n \"warningMessages\": [],\n \"errorMessages\": [\n {\n \"type\": \"ERROR\",\n \"code\": \"certificate-permissions\",\n \"category\": \"CERTIFICATE_ERRORS\",\n \"message\": \"User only allowed to use the vat number that exists in the authentication certificate\",\n \"status\": \"ERROR\"\n }\n ],\n \"status\": \"ERROR\"\n },\n \"clearanceStatus\": \"NOT_CLEARED\",\n \"clearedInvoice\": null\n }\n }\n}"
}
]
},
{
"name": "standard credit",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"invoice_id\": 1,\n \"note\": \"ABC\",\n \"note_language_id\": \"ar\",\n \"issue_date\": \"2025-05-16\",\n \"issue_time\": \"17:41:08\",\n \"currency_code\": \"SAR\",\n \"payment_means_code\": \"bank_card\",\n \"invoice_sub_type\": {\n \"simplified\": false,\n \"third_party\": false,\n \"nominal\": false,\n \"exports\": false,\n \"summary\": false,\n \"self_billed\": false\n },\n \"invoice_type\": \"credit\",\n \"instruction_note\": \"Refunded because customer ordered by mistake\",\n \"billing_reference\": {\n \"invoice_id\": \"STD_20250516-08181\",\n \"issue_date\": \"2025-05-08\"\n },\n \"accounting_supplier_party\": {\n \"postal_address\": {\n \"street_name\": \"شارع خالد بن الوليد\",\n \"building_number\": \"2568\",\n \"plot_identification\": \"6273\",\n \"city_subdivision_name\": \"الشرقية\",\n \"city_name\": \"الطائف\",\n \"postal_zone\": \"26523\",\n \"country_subentity\": null,\n \"additional_street_name\": null\n },\n \"party_identification\": {\n \"id\": \"324223432432432\"\n }\n },\n \"accounting_customer_party\": {\n \"postal_address\": {\n \"street_name\": \"طريق الملك فهد\",\n \"building_number\": \"5566\",\n \"plot_identification\": \"7890\",\n \"city_subdivision_name\": \"حي العليا\",\n \"city_name\": \"الرياض | Riyadh\",\n \"postal_zone\": \"11564\",\n \"country_subentity\": \"منطقة الرياض\",\n \"additional_street_name\": \"بجوار البنك الأهلي\",\n \"country_identification_code\": \"SA\"\n },\n \"party_tax_scheme\": {\n \"company_id\": \"310123456700003\"\n },\n \"party_legal_entity\": {\n \"registration_name\": \"مؤسسة العالم الفني الامنية\"\n },\n \"party_identification\": {\n \"id\": \"987654321098765\"\n }\n },\n \"delivery\": {\n \"actual_delivery_date\": \"2025-05-08\",\n \"latest_delivery_date\": \"2025-05-08\"\n },\n \"allowance_charges\": [\n {\n \"charge_indicator\": false,\n \"allowance_charge_reason\": \"discount\",\n \"amount\": \"0.00\",\n \"currency_id\": \"SAR\",\n \"tax_categories\": [\n {\n \"tax_percent\": \"15\"\n },\n {\n \"tax_percent\": \"15\"\n }\n ]\n }\n ],\n \"tax_totals\": [\n {\n \"tax_amount\": \"30.15\"\n },\n {\n \"tax_amount\": \"30.15\",\n \"tax_subtotal_amount\": \"30.15\",\n \"taxable_amount\": \"201.00\",\n \"tax_category\": {\n \"tax_percent\": \"15.00\",\n \"tax_exemption_reason_code\": null,\n \"tax_exemption_reason\": null\n }\n }\n ],\n \"legal_monetary_total\": {\n \"line_extension_amount\": \"201.00\",\n \"tax_exclusive_amount\": \"201.00\",\n \"tax_inclusive_amount\": \"231.15\",\n \"allowance_total_amount\": \"0.00\",\n \"prepaid_amount\": \"0.00\",\n \"payable_amount\": \"231.15\"\n },\n \"invoice_lines\": [\n {\n \"invoiced_quantity\": 33,\n \"invoiced_quantity_unit_code\": \"PCE\",\n \"line_extension_amount\": \"99.00\",\n \"tax_total\": {\n \"tax_amount\": \"14.85\",\n \"rounding_amount\": \"113.85\"\n },\n \"item\": {\n \"name\": \"كتاب\"\n },\n \"price\": {\n \"price_amount\": \"3.00\",\n \"allowance_charge\": {\n \"charge_indicator\": false,\n \"allowance_charge_reason\": \"discount\",\n \"amount\": \"0.00\",\n \"currency_id\": \"SAR\",\n \"tax_category\": null,\n \"add_tax_category\": false,\n \"add_id\": false,\n \"tax_categories\": []\n }\n }\n },\n {\n \"invoiced_quantity\": 3,\n \"invoiced_quantity_unit_code\": \"PCE\",\n \"line_extension_amount\": \"102.00\",\n \"tax_total\": {\n \"tax_amount\": \"15.30\",\n \"rounding_amount\": \"117.30\"\n },\n \"item\": {\n \"name\": \"قلم\"\n },\n \"price\": {\n \"price_amount\": \"34.00\",\n \"allowance_charge\": {\n \"charge_indicator\": false,\n \"allowance_charge_reason\": \"discount\",\n \"amount\": \"0.00\",\n \"currency_id\": \"SAR\",\n \"tax_category\": null,\n \"add_tax_category\": false,\n \"add_id\": false,\n \"tax_categories\": []\n }\n }\n }\n ]\n}\n",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{base_url}}/clearance?request_id=28646260519",
"host": [
"{{base_url}}"
],
"path": [
"clearance"
],
"query": [
{
"key": "request_id",
"value": "28646260519"
}
]
}
},
"response": []
},
{
"name": "standard debit",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"invoice_id\": 1,\n \"note\": \"ABC\",\n \"note_language_id\": \"ar\",\n \"issue_date\": \"2025-05-16\",\n \"issue_time\": \"17:41:08\",\n \"currency_code\": \"SAR\",\n \"payment_means_code\": \"bank_card\",\n \"invoice_sub_type\": {\n \"simplified\": false,\n \"third_party\": false,\n \"nominal\": false,\n \"exports\": false,\n \"summary\": false,\n \"self_billed\": false\n },\n \"invoice_type\": \"debit\",\n \"instruction_note\": \"Refunded because customer ordered by mistake\",\n \"billing_reference\": {\n \"invoice_id\": \"STD_20250516-08181\",\n \"issue_date\": \"2025-05-08\"\n },\n \"accounting_supplier_party\": {\n \"postal_address\": {\n \"street_name\": \"شارع خالد بن الوليد\",\n \"building_number\": \"2568\",\n \"plot_identification\": \"6273\",\n \"city_subdivision_name\": \"الشرقية\",\n \"city_name\": \"الطائف\",\n \"postal_zone\": \"26523\",\n \"country_subentity\": null,\n \"additional_street_name\": null\n },\n \"party_identification\": {\n \"id\": \"324223432432432\"\n }\n },\n \"accounting_customer_party\": {\n \"postal_address\": {\n \"street_name\": \"طريق الملك فهد\",\n \"building_number\": \"5566\",\n \"plot_identification\": \"7890\",\n \"city_subdivision_name\": \"حي العليا\",\n \"city_name\": \"الرياض | Riyadh\",\n \"postal_zone\": \"11564\",\n \"country_subentity\": \"منطقة الرياض\",\n \"additional_street_name\": \"بجوار البنك الأهلي\",\n \"country_identification_code\": \"SA\"\n },\n \"party_tax_scheme\": {\n \"company_id\": \"310123456700003\"\n },\n \"party_legal_entity\": {\n \"registration_name\": \"مؤسسة العالم الفني الامنية\"\n },\n \"party_identification\": {\n \"id\": \"987654321098765\"\n }\n },\n \"delivery\": {\n \"actual_delivery_date\": \"2025-05-08\",\n \"latest_delivery_date\": \"2025-05-08\"\n },\n \"allowance_charges\": [\n {\n \"charge_indicator\": false,\n \"allowance_charge_reason\": \"discount\",\n \"amount\": \"0.00\",\n \"currency_id\": \"SAR\",\n \"tax_categories\": [\n {\n \"tax_percent\": \"15\"\n },\n {\n \"tax_percent\": \"15\"\n }\n ]\n }\n ],\n \"tax_totals\": [\n {\n \"tax_amount\": \"30.15\"\n },\n {\n \"tax_amount\": \"30.15\",\n \"tax_subtotal_amount\": \"30.15\",\n \"taxable_amount\": \"201.00\",\n \"tax_category\": {\n \"tax_percent\": \"15.00\",\n \"tax_exemption_reason_code\": null,\n \"tax_exemption_reason\": null\n }\n }\n ],\n \"legal_monetary_total\": {\n \"line_extension_amount\": \"201.00\",\n \"tax_exclusive_amount\": \"201.00\",\n \"tax_inclusive_amount\": \"231.15\",\n \"allowance_total_amount\": \"0.00\",\n \"prepaid_amount\": \"0.00\",\n \"payable_amount\": \"231.15\"\n },\n \"invoice_lines\": [\n {\n \"invoiced_quantity\": 33,\n \"invoiced_quantity_unit_code\": \"PCE\",\n \"line_extension_amount\": \"99.00\",\n \"tax_total\": {\n \"tax_amount\": \"14.85\",\n \"rounding_amount\": \"113.85\"\n },\n \"item\": {\n \"name\": \"كتاب\"\n },\n \"price\": {\n \"price_amount\": \"3.00\",\n \"allowance_charge\": {\n \"charge_indicator\": false,\n \"allowance_charge_reason\": \"discount\",\n \"amount\": \"0.00\",\n \"currency_id\": \"SAR\",\n \"tax_category\": null,\n \"add_tax_category\": false,\n \"add_id\": false,\n \"tax_categories\": []\n }\n }\n },\n {\n \"invoiced_quantity\": 3,\n \"invoiced_quantity_unit_code\": \"PCE\",\n \"line_extension_amount\": \"102.00\",\n \"tax_total\": {\n \"tax_amount\": \"15.30\",\n \"rounding_amount\": \"117.30\"\n },\n \"item\": {\n \"name\": \"قلم\"\n },\n \"price\": {\n \"price_amount\": \"34.00\",\n \"allowance_charge\": {\n \"charge_indicator\": false,\n \"allowance_charge_reason\": \"discount\",\n \"amount\": \"0.00\",\n \"currency_id\": \"SAR\",\n \"tax_category\": null,\n \"add_tax_category\": false,\n \"add_id\": false,\n \"tax_categories\": []\n }\n }\n }\n ]\n}\n",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{base_url}}/clearance?request_id=28401259039",
"host": [
"{{base_url}}"
],
"path": [
"clearance"
],
"query": [
{
"key": "request_id",
"value": "28401259039"
}
]
}
},
"response": []
}
]
}
],
"auth": {
"type": "noauth"
},
"event": [
{
"listen": "prerequest",
"script": {
"type": "text/javascript",
"packages": {},
"exec": [
"pm.request.headers.add({",
" key: \"X-API-KEY\",",
" value: pm.collectionVariables.get('x_api_key')",
"})"
]
}
},
{
"listen": "test",
"script": {
"type": "text/javascript",
"packages": {},
"exec": [
""
]
}
}
]
}
],
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{bearer_token}}",
"type": "string"
}
]
},
"event": [
{
"listen": "prerequest",
"script": {
"type": "text/javascript",
"packages": {},
"requests": {},
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"type": "text/javascript",
"packages": {},
"requests": {},
"exec": [
""
]
}
}
],
"variable": [
{
"key": "base_url",
"value": ""
},
{
"key": "base_url",
"value": "",
"disabled": true
},
{
"key": "x_api_key",
"value": ""
},
{
"key": "bearer_token",
"value": ""
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment