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

BUG - The following parameters should not be a list: additional_info.item #140

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jorgekg
Copy link

@jorgekg jorgekg commented Sep 8, 2022

There is a bug in checkout where code sending array to array

For example:

The buggy code, send this json to checkout
"Items":[
[
{
"id":"55",
"title":"Cheese and Sauce Melting Tray",
"description":"1 x Cheese and Sauce Melting Tray",
"Quantity: 1,
"unit_price":1,
"picture_url":"https://5ainox.com.br/image/catalog/imgprodutos/Bandeja Melter Queijo e Sauces/NOVO-LAYOUT-PRODUTOS-BANDEJA.png",
"category_id":"others"
}
]
]

After the correction, a json is sent as the official documentation requires.
"Items": [
{
"id": "PR0001",
"title": "Mini Point",
"description": "Product Point for bills with tarjetas via bluetooth",
"picture_url": "https://http2.mlstatic.com/resources/frontend/statics/growth-sellers-landings/[email protected]",
"category_id": "electronics",
"Quantity: 1,
"unit_price": 58.8
}
],

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

Successfully merging this pull request may close these issues.

1 participant