Created
May 14, 2020 01:04
-
-
Save tiagomatos/a801f26735d336038b50778702754873 to your computer and use it in GitHub Desktop.
Create an Order, via Jumpseller API, with Product Variants
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -X POST -d '{ "order": {"status": "Paid", "products": [{ "id": 4803531,"variant_id": 9072280, "qty": 1}], "customer": {"id": 1609949}}}' "http://api.jumpseller.com/v1/orders.json?login=XXX&authtoken=XXX" -H "Content-Type:application/json" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hola sí, hice la prueba con un caso simple así como me muestras y funciona, mi error (que aún no sé si es un error), anteriormente estaba funcionando, entonces no sé si ahora no los puedo usar o ya no son modificables. Ejemplo
curl -X POST -d '{ "order": {"status": "Paid", "shipping_method_id": 178887, "products": [{ "discount": 0, "id": 4614001, "name": "prueba esteban (Color: AZUL)", "price": 1000, "qty": 3, "variant_id": 9568613, "weight": 0 }], "customer": {"id": 1601425}}}' "https://api.jumpseller.com/v1/orders.json?login=xxx&authtoken=xxx" -H "Content-Type:application/json"