Crear Productos en una Tienda

POST https://api.software.madkting.com/shops/(shop_pk)/products/
Parameters:
  • shop_pk – El id de la tienda de la que se quieren obtener el producto.

Objeto de peticion Producto

en el caso del objeto de Image solo se envia el campo de url, ejemplo:

[
    {
        "url": "https://software.madkting.com/gallery/None/products/2259485f-5c80-449d-8598-33e579f62977.jpg"
    },
    {
        "url": "https://software.madkting.com/gallery/None/products/01ef1c7a-2429-4440-8d8f-d91aeb504d07.jpg"
    }
]
Status Codes:

Ejemplo con 1 Producto

Ejemplo de petición

POST https://api.software.madkting.com/shops/2/products/ HTTP/1.1
Accept: application/json
Authorization: Token 54f2d8bcfc49e7821da31a83ab95e40213c0a5c1
{
    "availability": "in_stock",
    "brand": "Microsoft",
    "category_pk": 538,
    "color": "plateado",
    "condition": "new",
    "created_at": "2016-09-08T01:05:41",
    "deleted_at": null,
    "depth": 20.0,
    "description": "Don\u2019t miss a thing\u2014enjoy high-quality 720p HD widescreen video together with crystal clear audio, with the LifeCam Cinema. Relax while the camera automatically sharpens your images and TrueColor adjusts exposure for bright, vibrant footage. And for even sharper video, take advantage of the high-precision glass lens and ClearFrame Technology to improve the picture even in low light conditions.",
    "dimensions_unit": "cm",
    "discount": null,
    "discount_from": null,
    "discount_to": null,
    "gender": "unisex",
    "height": 10.0,
    "is_default": false,
    "name": "LifeCam Cinema",
    "price": 1200.0,
    "shipping_depth": 20.0,
    "shipping_height": 10.0,
    "shipping_price_mia": 2.0,
    "shipping_width": 20.0,
    "size": "u",
    "sku": "LCC",
    "sku_simple": "LCC",
    "stock": 3,
    "updated_at": "2016-09-09T20:58:20",
    "weight": 360.0,
    "weight_unit": "kg",
    "width": 20.0
}

Ejemplo de respuesta

HTTP/1.1 201 CREATED
Vary: Accept
Content-Type: application/json
Location: https://api.software.madkting.com/feeds/WsS4nORWt9RGGaQTgxFOuWxC1d5hWwg1/
Allow: GET, POST, PUT, DELETE, OPTIONS

Ejemplo con 2 Productos

Ejemplo de petición

POST https://api.software.madkting.com/shops/2/products/ HTTP/1.1
Accept: application/json
Authorization: Token 54f2d8bcfc49e7821da31a83ab95e40213c0a5c1
[
    {
        "availability": "preorder",
        "brand": "Wallace-Smith",
        "category_pk": 510,
        "color": "ocre",
        "condition": "used",
        "depth": -161483060.6,
        "description": "Voluptatum earum eveniet delectus quasi asperiores totam nemo odio. Molestiae ex et rem mollitia nulla cum animi. Repellendus fugiat distinctio eveniet doloremque odit consequuntur consectetur.Temporibus debitis non earum illo. Ea ex eligendi aspernatur ullam corporis aliquam reiciendis vitae. Doloribus praesentium neque accusantium placeat placeat.Magnam magnam voluptatum impedit repellat adipisci. Illo nostrum cumque nisi quisquam sint vero voluptates. Laborum quam id aliquid necessitatibus accusantium dicta.",
        "dimensions_unit": "cm",
        "gender": "boy",
        "height": 157957402492.8,
        "images": [
            "https://placeholdit.imgix.net/~text?txtsize=55&txt=15\u00d7237&w=15&h=237",
            "https://placeholdit.imgix.net/~text?txtsize=55&txt=396\u00d7250&w=396&h=250",
            "http://www.lorempixel.com/408/587",
            "http://www.lorempixel.com/903/560",
            "https://placeholdit.imgix.net/~text?txtsize=55&txt=767\u00d7424&w=767&h=424"
        ],
        "name": "[TEST] eveniet quasi nisi maiores rerum",
        "price": 167095856927732.0,
        "shipping": 0,
        "shipping_depth": 9430300076372.6,
        "shipping_height": 657.101534,
        "shipping_width": -1827810747671.26,
        "size": "38dd",
        "sku": "HRRFjLigJU",
        "sku_simple": "HRRFjLigJUiqcMc",
        "stock": 0,
        "weight": 7394590005.4214,
        "weight_unit": "kg",
        "width": 10612444149179.0
    },
    {
        "availability": "out_of_stock",
        "brand": "Smith, Buchanan and Hernandez",
        "category_pk": 510,
        "color": "plateado",
        "condition": "refurbished",
        "depth": -107.4,
        "description": "Dolorum commodi facere minima eveniet sunt repellat. Cumque magnam aspernatur modi maxime sed beatae ipsam quod.Amet non magnam voluptatem nulla totam nesciunt in. Odit repellendus expedita aperiam repellendus beatae necessitatibus reprehenderit. Aut dolorum quam quidem aperiam nostrum. Laborum voluptatum minus minima excepturi.Ipsa tempore culpa adipisci ex aliquam. Quas assumenda tenetur consequuntur voluptatibus. Labore necessitatibus cumque fuga facere quasi officiis voluptatum.",
        "dimensions_unit": "cm",
        "gender": "boy",
        "height": 38127595363872.7,
        "images": [
            "http://dummyimage.com/552x960"
        ],
        "name": "[TEST] assumenda debitis hic reiciendis rem",
        "price": 926255214957861.0,
        "shipping": 0,
        "shipping_depth": -60491.2075137,
        "shipping_height": -5680371402.6,
        "shipping_width": 36524778904.793,
        "size": "xxs",
        "sku": "HAswLEHPDL",
        "sku_simple": "HAswLEHPDLBNXcv",
        "stock": 1,
        "weight": -7666265.0,
        "weight_unit": "oz",
        "width": 5232200680.7
    }
]

Ejemplo de respuesta

HTTP/1.1 201 CREATED
Vary: Accept
Content-Type: application/json
Location: https://api.software.madkting.com/feeds/WsS4nORWt9RGGaQTgxFOuWxC1d5hWwg1/
Allow: GET, POST, PUT, DELETE, OPTIONS

Ejemplo con Variaciones

Ejemplo de petición

POST https://api.software.madkting.com/shops/2/products/ HTTP/1.1
Accept: application/json
Authorization: Token 54f2d8bcfc49e7821da31a83ab95e40213c0a5c1
[
    {
        "availability": "preorder",
        "brand": "Estrada Inc",
        "category_pk": 510,
        "color": "azul",
        "condition": "new",
        "delivery_time": 2,
        "depth": 35575303.173,
        "description": "Enim rem asperiores qui doloribus iste. Fugiat accusantium sapiente architecto facere accusamus in.Illo laudantium fugiat nostrum illo placeat pariatur vitae. Sequi molestias asperiores iste consequuntur iste. Dolorem velit autem quam nostrum minus rem nemo eveniet.Maxime mollitia aut consectetur omnis eveniet quo illo minus. Quam aperiam excepturi repellat nihil fuga quis. Aperiam aut ad nisi quod vero.",
        "dimensions_unit": "in",
        "discount": 46,
        "discount_from": "1988-06-15T14:37:09",
        "discount_to": "2016-02-02T17:59:19",
        "gender": "girl",
        "height": -59251883318.325,
        "images": [
            "http://homedecorstuff.com/wp-content/uploads/2015/07/e4ee6d27a056.jpg",
            "http://g01.a.alicdn.com/kf/HTB1L2EdJFXXXXXiXVXXq6xXFXXXh/Wholesale-5-leading-star-Convenient-Bathroom-Toothbrush-Stuff-font-b-Ladybug-b-font-Wall-Suction-Holder.jpg",
            "http://homedecorstuff.com/wp-content/uploads/2015/07/e4ee6d27a056.jpg",
            "https://iecologics.files.wordpress.com/2013/12/escaladegrises_bossa_artesanal.jpg"
        ],
        "name": "[TEST] culpa corrupti fugiat ipsum atque",
        "price": -950165168.71128,
        "secondary_color": "piel",
        "shipping": 0,
        "shipping_depth": 4.352879426,
        "shipping_height": 8979083668226.73,
        "shipping_width": 53381545.2,
        "short_description": "Beatae quidem omnis eveniet eaque officiis id et eveniet. Consequatur in veritatis numquam nobis aliquid harum minus fugiat. Optio perspiciatis doloremque nulla ex.Autem necessitatibus ab eos odit. Et ipsum exercitationem magnam earum voluptas doloribus. Libero voluptate necessitatibus reprehenderit dolore blanditiis repudiandae. Similique illum aperiam eos expedita est.Ab ab quos id provident aspernatur itaque. Ipsam porro quidem accusamus est alias a. Doloribus necessitatibus perferendis officia fugiat molestias harum. Dolor et laborum est nihil accusamus corrupti eveniet.",
        "size": "32",
        "sku": "RTSqnlWZUe",
        "sku_simple": "RTSqnlWZUeGgRGv",
        "stock": 13,
        "tax": "8",
        "variations": [
            {
                "availability": "out_of_stock",
                "color": "azul acero",
                "condition": "used",
                "discount": 18,
                "discount_from": "1981-10-18T17:41:19",
                "discount_to": "1982-12-31T19:19:58",
                "images": [
                    "http://homedecorstuff.com/wp-content/uploads/2015/07/e4ee6d27a056.jpg",
                    "http://g01.a.alicdn.com/kf/HTB1L2EdJFXXXXXiXVXXq6xXFXXXh/Wholesale-5-leading-star-Convenient-Bathroom-Toothbrush-Stuff-font-b-Ladybug-b-font-Wall-Suction-Holder.jpg",
                    "http://homedecorstuff.com/wp-content/uploads/2015/07/e4ee6d27a056.jpg",
                    "https://iecologics.files.wordpress.com/2013/12/escaladegrises_bossa_artesanal.jpg"
                ],
                "price": 73591223135.0,
                "secondary_color": "azul marino",
                "size": "25.5",
                "sku": "IWQgDYMlXJ",
                "stock": 42
            },
            {
                "availability": "out_of_stock",
                "color": "celeste",
                "condition": "new",
                "discount": 5,
                "discount_from": "1970-12-08T20:47:56",
                "discount_to": "1995-06-23T19:45:12",
                "images": [
                    "https://iecologics.files.wordpress.com/2013/12/escaladegrises_bossa_artesanal.jpg",
                    "http://g01.a.alicdn.com/kf/HTB1BLiMMpXXXXcsXXXXq6xXFXXXL/Mujeres-de-tacón-alto-sandalias-de-gran-tamaño-del-dedo-del-pie-abierto-zapatos-de-plataforma.jpg"
                ],
                "price": -8686.68673271,
                "secondary_color": "dorado",
                "size": "43",
                "sku": "cGXrQWHsRa",
                "stock": 10
            }
        ],
        "weight": -499.66066539143,
        "weight_unit": "oz",
        "width": -3612036988219.0
    },
    {
        "availability": "out_of_stock",
        "brand": "Wilson-Allen",
        "category_pk": 510,
        "color": "azul marino",
        "condition": "used",
        "delivery_time": 4,
        "depth": -2.77980228302809,
        "description": "Voluptates accusantium necessitatibus dignissimos quos deserunt aliquid odit. Aperiam fuga qui ut odit iure sed eum. Quod corrupti accusantium ipsum consequuntur deleniti quaerat.Earum amet odit neque fugit ipsum reiciendis. Occaecati nam explicabo corporis odio magni. Eaque accusamus recusandae ab dolores voluptatibus corrupti autem. Totam ipsa reiciendis cumque. Quo aperiam optio nostrum.Qui in nam dolore minima. Aliquid perspiciatis iure sint ex itaque. Nisi laboriosam est quasi sit facere.",
        "dimensions_unit": "cm",
        "discount": 26,
        "discount_from": "1974-01-27T12:05:05",
        "discount_to": "1991-11-04T20:00:08",
        "gender": "female",
        "height": 901408.17,
        "images": [
            "https://iecologics.files.wordpress.com/2013/12/escaladegrises_bossa_artesanal.jpg",
            "http://homedecorstuff.com/wp-content/uploads/2015/07/e4ee6d27a056.jpg",
            "http://g01.a.alicdn.com/kf/HTB1BLiMMpXXXXcsXXXXq6xXFXXXL/Mujeres-de-tacón-alto-sandalias-de-gran-tamaño-del-dedo-del-pie-abierto-zapatos-de-plataforma.jpg",
            "https://iecologics.files.wordpress.com/2013/12/escaladegrises_bossa_artesanal.jpg"
        ],
        "name": "[TEST] magni laborum doloremque ad facere",
        "price": -396856849793.1,
        "secondary_color": "verde",
        "shipping": 0,
        "shipping_depth": -755801264.8,
        "shipping_height": -3426666.4761,
        "shipping_width": 1.8723,
        "short_description": "Fuga earum numquam sed reiciendis eaque in asperiores. Commodi rem nesciunt eius deleniti quod. Laborum tempora ipsa voluptates dignissimos rerum impedit dolores.Iure dolore reprehenderit nam voluptatum tenetur temporibus blanditiis. Provident porro tenetur enim ipsum sequi itaque odio. Laudantium modi in rem cupiditate quas.Tempora ipsum minus necessitatibus soluta. Aut quidem voluptatem totam omnis expedita iusto quo. Quae ipsa odit enim consectetur culpa eligendi.",
        "size": "34a",
        "sku": "VQQJIrGiqX",
        "sku_simple": "VQQJIrGiqXpLOrk",
        "stock": 9,
        "tax": "8",
        "variations": [
            {
                "availability": "preorder",
                "color": "cafe",
                "condition": "used",
                "discount": 1,
                "discount_from": "1978-07-25T19:29:42",
                "discount_to": "1973-12-07T17:21:37",
                "images": [
                    "http://homedecorstuff.com/wp-content/uploads/2015/07/e4ee6d27a056.jpg",
                    "http://g01.a.alicdn.com/kf/HTB1L2EdJFXXXXXiXVXXq6xXFXXXh/Wholesale-5-leading-star-Convenient-Bathroom-Toothbrush-Stuff-font-b-Ladybug-b-font-Wall-Suction-Holder.jpg"
                ],
                "price": 91.7032824636827,
                "secondary_color": "azul oscuro",
                "size": "4.5",
                "sku": "BsvfFLzbLB",
                "stock": 1
            },
            {
                "availability": "out_of_stock",
                "color": "blanco",
                "condition": "refurbished",
                "discount": 26,
                "discount_from": "2009-05-31T14:36:18",
                "discount_to": "1992-12-24T17:57:45",
                "images": [
                    "http://g01.a.alicdn.com/kf/HTB1L2EdJFXXXXXiXVXXq6xXFXXXh/Wholesale-5-leading-star-Convenient-Bathroom-Toothbrush-Stuff-font-b-Ladybug-b-font-Wall-Suction-Holder.jpg",
                    "http://homedecorstuff.com/wp-content/uploads/2015/07/e4ee6d27a056.jpg"
                ],
                "price": -802107032512.67,
                "secondary_color": "lavanda",
                "size": "70 cm",
                "sku": "xAbdfqQTAc",
                "stock": 13
            },
            {
                "availability": "preorder",
                "color": "gris",
                "condition": "refurbished",
                "discount": 40,
                "discount_from": "2000-10-11T04:42:56",
                "discount_to": "1993-04-11T14:58:04",
                "images": [
                    "https://iecologics.files.wordpress.com/2013/12/escaladegrises_bossa_artesanal.jpg",
                    "https://iecologics.files.wordpress.com/2013/12/escaladegrises_bossa_artesanal.jpg"
                ],
                "price": 19116831136.0,
                "secondary_color": "salmon",
                "size": "34d",
                "sku": "nevmeRzOiG",
                "stock": 8
            },
            {
                "availability": "preorder",
                "color": "naranja",
                "condition": "new",
                "discount": 10,
                "discount_from": "1991-01-23T14:26:50",
                "discount_to": "1984-10-27T05:42:30",
                "images": [
                    "http://homedecorstuff.com/wp-content/uploads/2015/07/e4ee6d27a056.jpg",
                    "http://g01.a.alicdn.com/kf/HTB1BLiMMpXXXXcsXXXXq6xXFXXXL/Mujeres-de-tacón-alto-sandalias-de-gran-tamaño-del-dedo-del-pie-abierto-zapatos-de-plataforma.jpg",
                    "https://iecologics.files.wordpress.com/2013/12/escaladegrises_bossa_artesanal.jpg"
                ],
                "price": -8968690.0,
                "secondary_color": "rosa",
                "size": "28",
                "sku": "KOieQBYRvr",
                "stock": 4
            },
            {
                "availability": "preorder",
                "color": "violeta oscuro",
                "condition": "refurbished",
                "discount": 46,
                "discount_from": "1983-08-04T03:28:40",
                "discount_to": "2011-03-27T09:09:44",
                "images": [
                    "http://g01.a.alicdn.com/kf/HTB1L2EdJFXXXXXiXVXXq6xXFXXXh/Wholesale-5-leading-star-Convenient-Bathroom-Toothbrush-Stuff-font-b-Ladybug-b-font-Wall-Suction-Holder.jpg",
                    "http://homedecorstuff.com/wp-content/uploads/2015/07/e4ee6d27a056.jpg"
                ],
                "price": 64.126446,
                "secondary_color": "verde claro",
                "size": "42dd",
                "sku": "xqnqTNEZWl",
                "stock": 48
            }
        ],
        "weight": 91.72821,
        "weight_unit": "kg",
        "width": -1208354.13331
    },
    {
        "availability": "in_stock",
        "brand": "Nunez, Mason and Dunlap",
        "category_pk": 510,
        "color": "amarillo",
        "condition": "used",
        "delivery_time": 4,
        "depth": 71497869145.17,
        "description": "Voluptatem numquam culpa iure vero. Officia cum rerum occaecati cumque neque quas. Possimus ut maiores recusandae ad atque rem.Tenetur veritatis quia placeat at iusto. Maiores quasi minus tempore dicta ex asperiores consequatur enim. Cum labore qui adipisci minus.Incidunt maiores quaerat at non distinctio excepturi aliquid. Magni vel quae unde corporis laboriosam. Eius eaque nisi deleniti vero consequatur eveniet. Nulla magni voluptates eum aliquid voluptates repellendus. Odio tenetur laudantium velit accusamus commodi.",
        "dimensions_unit": "cm",
        "discount": 35,
        "discount_from": "2010-10-25T05:21:39",
        "discount_to": "1984-09-23T02:36:43",
        "gender": "female",
        "height": 783392.532,
        "images": [
            "http://g01.a.alicdn.com/kf/HTB1L2EdJFXXXXXiXVXXq6xXFXXXh/Wholesale-5-leading-star-Convenient-Bathroom-Toothbrush-Stuff-font-b-Ladybug-b-font-Wall-Suction-Holder.jpg",
            "http://homedecorstuff.com/wp-content/uploads/2015/07/e4ee6d27a056.jpg",
            "http://g01.a.alicdn.com/kf/HTB1BLiMMpXXXXcsXXXXq6xXFXXXL/Mujeres-de-tacón-alto-sandalias-de-gran-tamaño-del-dedo-del-pie-abierto-zapatos-de-plataforma.jpg",
            "http://homedecorstuff.com/wp-content/uploads/2015/07/e4ee6d27a056.jpg"
        ],
        "name": "[TEST] consectetur voluptas earum similique molestiae",
        "price": -9143196022.0,
        "secondary_color": "ocre",
        "shipping": 0,
        "shipping_depth": 203084422775.0,
        "shipping_height": -739644117862132.0,
        "shipping_width": -856744651775466.0,
        "short_description": "Modi laudantium distinctio atque fuga reprehenderit in. Commodi placeat ad rem quas neque aut eos. Nisi facere quae in aliquam ea excepturi asperiores. Beatae provident nisi qui fugit quia.Sint accusamus dolore perspiciatis suscipit aspernatur cum. Id accusantium omnis aliquam. Occaecati nesciunt itaque dicta error nemo consectetur molestiae.Excepturi aliquam vitae illum quis. Impedit iusto cum pariatur pariatur. Dolor at fugiat itaque necessitatibus ea atque autem. Aspernatur labore ex aliquid officiis. Molestias harum minus nulla veniam.",
        "size": "14",
        "sku": "jASYioObYM",
        "sku_simple": "jASYioObYMuNvKB",
        "stock": 9,
        "tax": "16",
        "variations": [
            {
                "availability": "in_stock",
                "color": "azul acero",
                "condition": "refurbished",
                "discount": 8,
                "discount_from": "1990-12-14T21:30:43",
                "discount_to": "1977-07-03T01:31:05",
                "images": [
                    "http://g01.a.alicdn.com/kf/HTB1BLiMMpXXXXcsXXXXq6xXFXXXL/Mujeres-de-tacón-alto-sandalias-de-gran-tamaño-del-dedo-del-pie-abierto-zapatos-de-plataforma.jpg"
                ],
                "price": -72850.2606,
                "secondary_color": "rosa",
                "size": "8",
                "sku": "mjQiYLdryf",
                "stock": 12
            },
            {
                "availability": "preorder",
                "color": "lila",
                "condition": "refurbished",
                "discount": 29,
                "discount_from": "1986-12-16T22:41:37",
                "discount_to": "1989-10-02T13:16:35",
                "images": [
                    "http://g01.a.alicdn.com/kf/HTB1L2EdJFXXXXXiXVXXq6xXFXXXh/Wholesale-5-leading-star-Convenient-Bathroom-Toothbrush-Stuff-font-b-Ladybug-b-font-Wall-Suction-Holder.jpg"
                ],
                "price": -209983769719910.0,
                "secondary_color": "crema",
                "size": "35",
                "sku": "ocMHssqvhW",
                "stock": 25
            },
            {
                "availability": "in_stock",
                "color": "purpura",
                "condition": "refurbished",
                "discount": 5,
                "discount_from": "2003-11-06T21:26:46",
                "discount_to": "2005-01-14T03:30:20",
                "images": [
                    "http://g01.a.alicdn.com/kf/HTB1L2EdJFXXXXXiXVXXq6xXFXXXh/Wholesale-5-leading-star-Convenient-Bathroom-Toothbrush-Stuff-font-b-Ladybug-b-font-Wall-Suction-Holder.jpg",
                    "http://g01.a.alicdn.com/kf/HTB1BLiMMpXXXXcsXXXXq6xXFXXXL/Mujeres-de-tacón-alto-sandalias-de-gran-tamaño-del-dedo-del-pie-abierto-zapatos-de-plataforma.jpg",
                    "https://iecologics.files.wordpress.com/2013/12/escaladegrises_bossa_artesanal.jpg"
                ],
                "price": 407129999459179.0,
                "secondary_color": "violeta",
                "size": "46a",
                "sku": "BYJUNmgPrl",
                "stock": 39
            }
        ],
        "weight": -83882.0,
        "weight_unit": "kg",
        "width": -749410980.84642
    }
]

Ejemplo de respuesta

HTTP/1.1 201 CREATED
Vary: Accept
Content-Type: application/json
Location: https://api.software.madkting.com/feeds/WsS4nORWt9RGGaQTgxFOuWxC1d5hWwg1/
Allow: GET, POST, PUT, DELETE, OPTIONS