Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- POST /loads/products
- - Só JSON.
- - Verificar o Content-Encoding. Enviar JSON aberto.
- - dimensions obrigatório.
- 201 - Created
- [
- {
- "skuId": "",
- "skuSellerId": "",
- "productSellerId": "",
- "title": "",
- "description": "",
- "brand": "",
- "gtin": [ "" ],
- "categories": [ "ABC>DEF>GHI" ],
- "images": [ "http://..." ],
- "videos": [ "http://..." ],
- "price": {
- "default": 0.00,
- "offer": 0.00
- },
- "stock": {
- "quantity": 0,
- "crossDockingTime": 0
- },
- "dimensions": {
- "weight": 0.00,
- "length": 0.00,
- "width": 0.00,
- "height": 0.00
- },
- "giftWrap": {
- "available": true,
- "value": 0.00,
- "messageSupport": true
- },
- "attributes": [
- {
- "name": "",
- "value": ""
- }
- ]
- }
- ]
- GET /loads/products?status=error,canceled,available,pending&createdAt=2013-06-28T08:54:00.000-03:00,*
- 200 - OK
- {
- "skus": [
- {
- "skuSeller": {
- "id": "123456",
- "href": "/loads/products/123456"
- },
- "status": "pending,error,canceled,available",
- "createdAt": "2013-06-28T08:54:00.000-03:00",
- }
- ],
- "metadata": [
- { "key": "", "value": "" }
- ]
- }
- GET /loads/products/{skuSellerId}
- 200 - OK
- {
- "skuId": "",
- "skuSellerId": "",
- "productSellerId": "",
- "title": "",
- "description": "",
- "brand": "",
- "gtin": [ "" ],
- "categories": [ "ABC>DEF>GHI" ],
- "images": [ "http://..." ],
- "videos": [ "http://..." ],
- "price": {
- "default": 0.00,
- "offer": 0.00
- },
- "stock": {
- "quantity": 0,
- "crossDockingTime": 0
- },
- "dimensions": {
- "weight": 0.00,
- "length": 0.00,
- "width": 0.00,
- "height": 0.00
- },
- "giftWrap": {
- "available": true,
- "value": 0.00,
- "messageSupport": true
- },
- "attributes": [
- {
- "name": "",
- "value": ""
- }
- ],
- "errors": [
- {
- "code": "",
- "type": "",
- "message": "",
- "skuSellerId": ""
- }
- ]
- }
- PUT /loads/products/{skuSellerId}
- 204 - No Content
- {
- "skuId": "",
- "productSellerId": "",
- "title": "",
- "description": "",
- "brand": "",
- "gtin": [ "" ],
- "categories": [ "ABC>DEF>GHI" ],
- "images": [ "http://..." ],
- "videos": [ "http://..." ],
- "price": {
- "default": 0.00,
- "offer": 0.00
- },
- "stock": {
- "quantity": 0,
- "crossDockingTime": 0
- },
- "dimensions": {
- "weight": 0.00,
- "length": 0.00,
- "width": 0.00,
- "height": 0.00
- },
- "giftWrap": {
- "available": true,
- "value": 0.00,
- "messageSupport": true
- },
- "attributes": [
- {
- "name": "",
- "value": ""
- }
- ]
- }
- DELETE /loads/products
- {
- "skus": [ "123456", "123456" ]
- }
- 204 - No Content
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement