Last active
April 6, 2016 15:09
-
-
Save mdamaceno/aec9667ec9043b7af810b633f890019b to your computer and use it in GitHub Desktop.
Objeto enviado para API Trustvox
This file contains hidden or 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
| { | |
| "order_id": 202, | |
| "delivery_date": "2016-02-29 18:17:22", | |
| "client": { | |
| "first_name": "Marco Antonio", | |
| "last_name": "Damaceno", | |
| "email": "[email protected]" | |
| }, | |
| "items": [ | |
| { | |
| "name": "XYZ", | |
| "id": "906", | |
| "url": "http://192.168.0.33/catalog/product/view/id/906", | |
| "price": 150, | |
| "photos_urls": [ | |
| "http://192.168.0.33/media/catalog/product/m/a/maia.png" | |
| ] | |
| } | |
| ] | |
| } |
Author
Author
O header que estou enviando é:
{"ContentType":"application/json; charset=utf-8","Accept":"application/vnd.trustvox.com; version=1","Authorization":"token token_ocultado"}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
O retorno da API sempre é
{"client"=>["não pode ficar em branco ou não é válido"], "order_id"=>["não pode ficar em branco ou não é válido"], "delivery_date"=>["não pode ficar em branco ou não é válido"], "items"=>["não podem conter menos de 1 item"]}