AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Saudi Einvoice

skill-moshe-ship-hurmoz-saudi-einvoice · by Moshe-ship

ZATCA e-invoicing integration for Saudi tax compliance (Fatoorah platform)

No reviews yet
0 installs
22 views
0.0% view→install

Install

$ agentstack add skill-moshe-ship-hurmoz-saudi-einvoice

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access Used
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-moshe-ship-hurmoz-saudi-einvoice)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
2mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Saudi Einvoice? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

الفوترة الإلكترونية — زاتكا (فاتورة)

> تنبيه: استخدم بيانات اختبار فقط. لا تستخدم هويات وطنية حقيقية أو توكنات دفع حية أثناء التجربة. استخدم بيئة الاختبار (sandbox) دائماً. احذف السجلات بعد الانتهاء.

منصة فاتورة الرسمية من هيئة الزكاة والضريبة والجمارك (ZATCA) للفوترة الإلكترونية في المملكة العربية السعودية.

الإعداد

  1. سجّل في بوابة الاختبار: https://sandbox.zatca.gov.sa
  2. احصل على شهادة الامتثال (Compliance CSID) من البوابة
  3. اضبط المتغير: export ZATCA_API_KEY=your_base64_certificate

المصادقة تتم عبر Basic Auth باستخدام الشهادة المشفرة بـ base64:

Authorization: Basic 

الحصول على شهادة الامتثال (Compliance CSID)

curl -s -X POST "https://gw-fatoora.zatca.gov.sa/e-invoicing/core/compliance" \
  -H "Content-Type: application/json" \
  -H "Accept-Version: V2" \
  -H "Authorization: Basic $ZATCA_API_KEY" \
  -d '{
    "csr": "BASE64_ENCODED_CSR"
  }'

إبلاغ فاتورة مبسطة (B2C)

الفواتير المبسطة (أفراد) تُرسل عبر نظام الإبلاغ (Reporting):

curl -s -X POST "https://gw-fatoora.zatca.gov.sa/e-invoicing/core/invoices/reporting/single" \
  -H "Content-Type: application/json" \
  -H "Accept-Version: V2" \
  -H "Accept-Language: ar" \
  -H "Authorization: Basic $ZATCA_API_KEY" \
  -d '{
    "invoiceHash": "INVOICE_HASH",
    "uuid": "INVOICE_UUID",
    "invoice": "BASE64_ENCODED_XML"
  }'

اعتماد فاتورة ضريبية (B2B)

الفواتير الضريبية (شركات) تُرسل عبر نظام الاعتماد (Clearance):

curl -s -X POST "https://gw-fatoora.zatca.gov.sa/e-invoicing/core/invoices/clearance/single" \
  -H "Content-Type: application/json" \
  -H "Accept-Version: V2" \
  -H "Accept-Language: ar" \
  -H "Authorization: Basic $ZATCA_API_KEY" \
  -d '{
    "invoiceHash": "INVOICE_HASH",
    "uuid": "INVOICE_UUID",
    "invoice": "BASE64_ENCODED_XML"
  }'

فحص الامتثال

curl -s -X POST "https://gw-fatoora.zatca.gov.sa/e-invoicing/core/compliance/invoices" \
  -H "Content-Type: application/json" \
  -H "Accept-Version: V2" \
  -H "Accept-Language: ar" \
  -H "Authorization: Basic $ZATCA_API_KEY" \
  -d '{
    "invoiceHash": "INVOICE_HASH",
    "uuid": "INVOICE_UUID",
    "invoice": "BASE64_ENCODED_XML"
  }'

أنواع الفواتير

| النوع | الوصف | الآلية | |-------|-------|--------| | فاتورة مبسطة (B2C) | للأفراد | إبلاغ (Reporting) | | فاتورة ضريبية (B2B) | للشركات | اعتماد (Clearance) | | إشعار دائن | إرجاع/خصم | نفس آلية الفاتورة الأصلية | | إشعار مدين | إضافة مبلغ | نفس آلية الفاتورة الأصلية |

عرض النتيجة

نتيجة الفوترة الإلكترونية:

  • الحالة: [مقبولة/مرفوضة/معلّقة]
  • رقم الفاتورة: [UUID]
  • نوع الفاتورة: [مبسطة/ضريبية]
  • حالة الامتثال: [ناجح/فاشل]
  • التحذيرات: [قائمة التحذيرات إن وُجدت]
  • الأخطاء: [قائمة الأخطاء إن وُجدت]

متى تستخدم

  • المستخدم يسأل عن الفوترة الإلكترونية
  • يريد إصدار فاتورة عبر زاتكا أو فاتورة
  • يسأل عن متطلبات الامتثال للفوترة
  • يريد معرفة الفرق بين B2B و B2C
  • يسأل "كيف أربط نظامي مع زاتكا؟"

تنبيه

  • استخدم بيئة الاختبار (sandbox) أولا قبل الإنتاج
  • الفاتورة يجب أن تكون بصيغة XML متوافقة مع UBL 2.1
  • يجب تضمين رمز QR في الفواتير المبسطة
  • المرحلة الثانية (الربط والتكامل) إلزامية لجميع المنشآت

المراجع

  • بوابة الفوترة الإلكترونية: https://zatca.gov.sa/en/E-Invoicing/
  • بوابة المطورين: https://sandbox.zatca.gov.sa
  • مواصفات الفاتورة: https://zatca.gov.sa/en/E-Invoicing/SystemsDevelopers/

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.