You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to create an invoice using the admin API with nodejs.
But I'm getting a response body message: Undefined array key "tax"
I've tried a number of things, like setting the tax to a string, setting it to the ID of the tax type I have set in crater, giving it a higher number than 0, but they all result in the same error message.
However the invoice does get created in Crater, but the items aren't there. I'm guessing this might have to do because I'm getting an error message.
I have used the default body code that can be found on the API documentation. (https://api-docs.craterapp.com/#admin-invoices-POSTapi-v1-invoices)
All I have changed is the item ID to the item ID of that item which is 3. I have checked this by doing an API call and getting the items:
I'm trying to create an invoice using the admin API with nodejs.
But I'm getting a response body message: Undefined array key "tax"
I've tried a number of things, like setting the tax to a string, setting it to the ID of the tax type I have set in crater, giving it a higher number than 0, but they all result in the same error message.
However the invoice does get created in Crater, but the items aren't there. I'm guessing this might have to do because I'm getting an error message.
I have used the default body code that can be found on the API documentation. (https://api-docs.craterapp.com/#admin-invoices-POSTapi-v1-invoices)
All I have changed is the item ID to the item ID of that item which is 3. I have checked this by doing an API call and getting the items:
I'm not sure how to fix this. What am I doing wrong? Is this a bug?
The text was updated successfully, but these errors were encountered: