Advertisement
Guest User

loads

a guest
Aug 28th, 2014
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. POST /loads/products
  2. - Só JSON.
  3. - Verificar o Content-Encoding. Enviar JSON aberto.
  4. - dimensions obrigatório.
  5. 201 - Created
  6. [
  7.   {
  8.     "skuId": "",
  9.     "skuSellerId": "",
  10.     "productSellerId": "",
  11.     "title": "",
  12.     "description": "",
  13.     "brand": "",
  14.     "gtin": [ "" ],
  15.     "categories": [ "ABC>DEF>GHI" ],
  16.     "images": [ "http://..." ],
  17.     "videos": [ "http://..." ],
  18.     "price": {
  19.       "default": 0.00,
  20.       "offer": 0.00
  21.     },
  22.     "stock": {
  23.       "quantity": 0,
  24.       "crossDockingTime": 0
  25.     },
  26.     "dimensions": {
  27.       "weight": 0.00,
  28.       "length": 0.00,
  29.       "width": 0.00,
  30.       "height": 0.00
  31.     },
  32.     "giftWrap": {
  33.       "available": true,
  34.       "value": 0.00,
  35.       "messageSupport": true
  36.     },
  37.     "attributes": [
  38.       {
  39.         "name": "",
  40.         "value": ""
  41.       }
  42.     ]
  43.   }
  44. ]
  45.  
  46. GET /loads/products?status=error,canceled,available,pending&createdAt=2013-06-28T08:54:00.000-03:00,*
  47. 200 - OK
  48. {
  49.   "skus": [
  50.     {
  51.       "skuSeller": {
  52.         "id": "123456",
  53.         "href": "/loads/products/123456"
  54.       },
  55.       "status": "pending,error,canceled,available",
  56.       "createdAt": "2013-06-28T08:54:00.000-03:00",
  57.     }
  58.   ],
  59.   "metadata": [
  60.     { "key": "", "value": "" }
  61.   ]
  62. }
  63.  
  64. GET /loads/products/{skuSellerId}
  65. 200 - OK
  66. {
  67.   "skuId": "",
  68.   "skuSellerId": "",
  69.   "productSellerId": "",
  70.   "title": "",
  71.   "description": "",
  72.   "brand": "",
  73.   "gtin": [ "" ],
  74.   "categories": [ "ABC>DEF>GHI" ],
  75.   "images": [ "http://..." ],
  76.   "videos": [ "http://..." ],
  77.   "price": {
  78.     "default": 0.00,
  79.     "offer": 0.00
  80.   },
  81.   "stock": {
  82.     "quantity": 0,
  83.     "crossDockingTime": 0
  84.   },
  85.   "dimensions": {
  86.     "weight": 0.00,
  87.     "length": 0.00,
  88.     "width": 0.00,
  89.     "height": 0.00
  90.   },
  91.   "giftWrap": {
  92.     "available": true,
  93.     "value": 0.00,
  94.     "messageSupport": true
  95.   },
  96.   "attributes": [
  97.     {
  98.       "name": "",
  99.       "value": ""
  100.     }
  101.   ],
  102.   "errors": [
  103.     {
  104.         "code": "",
  105.         "type": "",
  106.         "message": "",
  107.         "skuSellerId": ""
  108.     }
  109.   ]
  110. }
  111.  
  112. PUT /loads/products/{skuSellerId}
  113. 204 - No Content
  114. {
  115.   "skuId": "",
  116.   "productSellerId": "",
  117.   "title": "",
  118.   "description": "",
  119.   "brand": "",
  120.   "gtin": [ "" ],
  121.   "categories": [ "ABC>DEF>GHI" ],
  122.   "images": [ "http://..." ],
  123.   "videos": [ "http://..." ],
  124.   "price": {
  125.     "default": 0.00,
  126.     "offer": 0.00
  127.   },
  128.   "stock": {
  129.     "quantity": 0,
  130.     "crossDockingTime": 0
  131.   },
  132.   "dimensions": {
  133.     "weight": 0.00,
  134.     "length": 0.00,
  135.     "width": 0.00,
  136.     "height": 0.00
  137.   },
  138.   "giftWrap": {
  139.     "available": true,
  140.     "value": 0.00,
  141.     "messageSupport": true
  142.   },
  143.   "attributes": [
  144.     {
  145.       "name": "",
  146.       "value": ""
  147.     }
  148.   ]
  149. }
  150.  
  151. DELETE /loads/products
  152. {
  153.     "skus": [ "123456", "123456" ]
  154. }
  155. 204 - No Content
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement