Skip to content

Instantly share code, notes, and snippets.

@tiagomatos
Created May 14, 2020 01:04
Show Gist options
  • Save tiagomatos/a801f26735d336038b50778702754873 to your computer and use it in GitHub Desktop.
Save tiagomatos/a801f26735d336038b50778702754873 to your computer and use it in GitHub Desktop.
Create an Order, via Jumpseller API, with Product Variants
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"
@tiagomatos
Copy link
Author

Esteban:

curl -X POST -d '{ "order": {"status": "Paid", "shipping_method_id": 178887, "products": [{ "id": 4614001, "variant_id": 9568613, "qty": 1}], "customer": {"id": 1601425}}}' "https://api.jumpseller.com/v1/orders.json?login=XXX&authtoken=XXX" -H "Content-Type:application/json"

@ediaz23
Copy link

ediaz23 commented May 14, 2020

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment