Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle 202 status code in axios response #54

Open
Konosh93 opened this issue Mar 8, 2024 · 1 comment
Open

Handle 202 status code in axios response #54

Konosh93 opened this issue Mar 8, 2024 · 1 comment

Comments

@Konosh93
Copy link

Konosh93 commented Mar 8, 2024

Problem
Currently, an error may be thrown when calling checkInvoiceCompliance.

Reason
Currently when checking the status code from Zatca API only 200 status code is accepted while the Zatca API may return other values such as 201 or 202.

@Konosh93
Copy link
Author

Konosh93 commented Mar 8, 2024

Here is a PR with the proposed fix:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant