Skip to content

Commit 39ac072

Browse files
committed
fix: Fixed zatca api endpoints in ZatcaAPI.php #fix-api-requests
1 parent fe08eb4 commit 39ac072

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ZatcaAPI.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public function validateInvoiceCompliance(
131131
try {
132132
return $this->sendRequest(
133133
'POST',
134-
'compliance/invoices',
134+
'/compliance/invoices',
135135
['Accept-Language' => 'en', 'Content-Type' => 'application/json'],
136136
[
137137
'invoiceHash' => $invoiceHash,
@@ -162,7 +162,7 @@ public function requestProductionCertificate(
162162
): ProductionCertificateResult {
163163
$response = $this->sendRequest(
164164
'POST',
165-
'production/csids',
165+
'/production/csids',
166166
['Content-Type' => 'application/json'],
167167
['compliance_request_id' => $complianceRequestId],
168168
$this->createAuthHeaders($certificate, $secret)
@@ -195,7 +195,7 @@ public function submitClearanceInvoice(
195195
): array {
196196
return $this->sendRequest(
197197
'POST',
198-
'invoices/clearance/single',
198+
'/invoices/clearance/single',
199199
['Clearance-Status' => '1', 'Accept-Language' => 'en'],
200200
[
201201
'invoiceHash' => $invoiceHash,

0 commit comments

Comments
 (0)