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

Taxes attribute is bad formed in JSON response #346

Open
javiquiros opened this issue Sep 10, 2020 · 0 comments
Open

Taxes attribute is bad formed in JSON response #346

javiquiros opened this issue Sep 10, 2020 · 0 comments

Comments

@javiquiros
Copy link
Contributor

When recovering an invoice via API, "taxes" attribute is bad formed:

"taxes": {
   "{\\"id\\"=>4, \\"name\\"=>\\"VAT 21%\\", \\"value\\"=>\\"21.0\\", \\"active\\"=>true, \\"default\\"=>true, \\"deleted_at\\"=>nil}":"1.89"
}

Expected value:

"taxes": [{
    "id": 4,
    "name": "VAT 21%",
    "value": 21.0,
    "active": true,
    "default": true
}]
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