SkyHub API

products

Recurso de produtos

products Overview

{
  "sku": "foo",
String

Sku do produto

  "name": "foo",
String
  "description": "foo",
String
  "status": "enabled",
String
  "qty": 0,
Integer
  "price": 0,
Integer
  "promotional_price": 0,
Integer
  "cost": 0,
Integer

Custo do produto

  "weight": 0,
Integer
  "height": 0,
Integer
  "width": 0,
Integer
  "length": 0,
Integer
  "brand": "foo",
String
  "ean": "foo",
String
  "nbm": "foo",
String
  categories: [
Array
    {
    { ... }
Object

Categories

      "code": "foo",
String
      "name": "foo"
String
    }
  ]
  "images": [
    "foo",
    "foo",
    "foo"
  ],
Array
  specifications: [
Array
    {
    { ... }
Object

Specifications

      "key": "foo",
String
      "value": "foo"
String
    }
  ]
  variations: [
Array
    {
    { ... }
Object

Variations

      "sku": "foo",
String
      "qty": 0,
Integer
      "ean": "foo",
String
      "images": [
    "foo",
    "foo",
    "foo"
  ],
Array
      specifications: [
Array
        {
        { ... }
Object

Specifications

          "key": "foo",
String
          "value": "foo"
String
        }
      ]
    }
  ]
  "variation_attributes": [
    "foo",
    "foo",
    "foo"
  ]
Array
}
{
  products: [
Array
    {
    { ... }
Object

Get Product

      "sku": "foo",
String

Sku do produto

      "name": "foo",
String
      "description": "foo",
String
      "status": "enabled",
String
      "qty": 0,
Integer
      "price": 0,
Integer
      "promotional_price": 0,
Integer
      "cost": 0,
Integer

Custo do produto

      "weight": 0,
Integer
      "height": 0,
Integer
      "width": 0,
Integer
      "length": 0,
Integer
      "brand": "foo",
String
      "ean": "foo",
String
      "nbm": "foo",
String
      categories: [
Array
        {
        { ... }
Object

Categories

          "code": "foo",
String
          "name": "foo"
String
        }
      ]
      "images": [
    "foo",
    "foo",
    "foo"
  ],
Array
      specifications: [
Array
        {
        { ... }
Object

Specifications

          "key": "foo",
String
          "value": "foo"
String
        }
      ]
      variations: [
Array
        {
        { ... }
Object

Variations

          "sku": "foo",
String
          "qty": 0,
Integer
          "ean": "foo",
String
          "images": [
    "foo",
    "foo",
    "foo"
  ],
Array
          specifications: [
Array
            {
            { ... }
Object

Specifications

              "key": "foo",
String
              "value": "foo"
String
            }
          ]
        }
      ]
      "variation_attributes": [
    "foo",
    "foo",
    "foo"
  ]
Array
    }
  ]
  "total": 999,
Integer
  "next": "http://api.skyhub.com.br/products?cursor=..."
String
}

Receber uma lista de produtos

Open in API Explorer
GET /products

Retorna os produtos cadastrados na Skyhub

Example Request

Format:
curl --request GET \
  --url 'https://desenvolvedores.skyhub.com.br/products?%5Bstatus%5D=filters%5Bstatus%5D%3D' \
  --header 'accept: application/json' \
  --header 'content-type: foo' \
  --header 'x-accountmanager-key: foo' \
  --header 'x-api-key: YOUR API KEY HERE' \
  --header 'x-user-email: seu@email.com'
require 'uri'
require 'net/http'

url = URI("https://desenvolvedores.skyhub.com.br/products?%5Bstatus%5D=filters%5Bstatus%5D%3D")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Get.new(url)
request["x-api-key"] = 'YOUR API KEY HERE'
request["accept"] = 'application/json'
request["content-type"] = 'foo'
request["x-user-email"] = 'seu@email.com'
request["x-accountmanager-key"] = 'foo'

response = http.request(request)
puts response.read_body
var http = require("https");

var options = {
  "method": "GET",
  "hostname": "desenvolvedores.skyhub.com.br",
  "port": null,
  "path": "/products?%5Bstatus%5D=filters%5Bstatus%5D%3D",
  "headers": {
    "x-api-key": "YOUR API KEY HERE",
    "accept": "application/json",
    "content-type": "foo",
    "x-user-email": "seu@email.com",
    "x-accountmanager-key": "foo"
  }
};

var req = http.request(options, function (res) {
  var chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    var body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
import http.client

conn = http.client.HTTPSConnection("desenvolvedores.skyhub.com.br")

headers = {
    'x-api-key': "YOUR API KEY HERE",
    'accept': "application/json",
    'content-type': "foo",
    'x-user-email': "seu@email.com",
    'x-accountmanager-key': "foo"
    }

conn.request("GET", "/products?%5Bstatus%5D=filters%5Bstatus%5D%3D", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://desenvolvedores.skyhub.com.br/products?%5Bstatus%5D=filters%5Bstatus%5D%3D",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => array(
    "accept: application/json",
    "content-type: foo",
    "x-accountmanager-key: foo",
    "x-api-key: YOUR API KEY HERE",
    "x-user-email: seu@email.com"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "https://desenvolvedores.skyhub.com.br/products?%5Bstatus%5D=filters%5Bstatus%5D%3D"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "YOUR API KEY HERE")
	req.Header.Add("accept", "application/json")
	req.Header.Add("content-type", "foo")
	req.Header.Add("x-user-email", "seu@email.com")
	req.Header.Add("x-accountmanager-key", "foo")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Request Headers

Name Type Required Description Example
Accept String Required application/json
Content-Type String Required foo
X-User-Email String Required seu@email.com
x-accountmanager-key String Required

Identificador da sua integração com a SkyHub

foo

Query Parameters

Name Type Required Description Example
[status] String Optional filters%5Bstatus%5D%3D

Responses

200 Success

O campo "next" representa a próxima URL que deve ser acessada para obter os próximos resultados. OBS: O next tem um período de vida de 10 minutos

products List products
{
  products: [
Array
    {
    { ... }
Object

Get Product

      "sku": "foo",
String

Sku do produto

      "name": "foo",
String
      "description": "foo",
String
      "status": "enabled",
String
      "qty": 0,
Integer
      "price": 0,
Integer
      "promotional_price": 0,
Integer
      "cost": 0,
Integer

Custo do produto

      "weight": 0,
Integer
      "height": 0,
Integer
      "width": 0,
Integer
      "length": 0,
Integer
      "brand": "foo",
String
      "ean": "foo",
String
      "nbm": "foo",
String
      categories: [
Array
        {
        { ... }
Object

Categories

          "code": "foo",
String
          "name": "foo"
String
        }
      ]
      "images": [
    "foo",
    "foo",
    "foo"
  ],
Array
      specifications: [
Array
        {
        { ... }
Object

Specifications

          "key": "foo",
String
          "value": "foo"
String
        }
      ]
      variations: [
Array
        {
        { ... }
Object

Variations

          "sku": "foo",
String
          "qty": 0,
Integer
          "ean": "foo",
String
          "images": [
    "foo",
    "foo",
    "foo"
  ],
Array
          specifications: [
Array
            {
            { ... }
Object

Specifications

              "key": "foo",
String
              "value": "foo"
String
            }
          ]
        }
      ]
      "variation_attributes": [
    "foo",
    "foo",
    "foo"
  ]
Array
    }
  ]
  "total": 999,
Integer
  "next": "http://api.skyhub.com.br/products?cursor=..."
String
}

Receber um produto

Open in API Explorer
GET /products/{sku}

Retorna um produto específico

Example Request

Format:
curl --request GET \
  --url https://desenvolvedores.skyhub.com.br/products/sku123 \
  --header 'accept: application/json' \
  --header 'content-type: application/json' \
  --header 'x-accountmanager-key: foo' \
  --header 'x-api-key: YOUR API KEY HERE' \
  --header 'x-user-email: seu@email.com'
require 'uri'
require 'net/http'

url = URI("https://desenvolvedores.skyhub.com.br/products/sku123")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Get.new(url)
request["x-api-key"] = 'YOUR API KEY HERE'
request["accept"] = 'application/json'
request["content-type"] = 'application/json'
request["x-user-email"] = 'seu@email.com'
request["x-accountmanager-key"] = 'foo'

response = http.request(request)
puts response.read_body
var http = require("https");

var options = {
  "method": "GET",
  "hostname": "desenvolvedores.skyhub.com.br",
  "port": null,
  "path": "/products/sku123",
  "headers": {
    "x-api-key": "YOUR API KEY HERE",
    "accept": "application/json",
    "content-type": "application/json",
    "x-user-email": "seu@email.com",
    "x-accountmanager-key": "foo"
  }
};

var req = http.request(options, function (res) {
  var chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    var body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
import http.client

conn = http.client.HTTPSConnection("desenvolvedores.skyhub.com.br")

headers = {
    'x-api-key': "YOUR API KEY HERE",
    'accept': "application/json",
    'content-type': "application/json",
    'x-user-email': "seu@email.com",
    'x-accountmanager-key': "foo"
    }

conn.request("GET", "/products/sku123", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://desenvolvedores.skyhub.com.br/products/sku123",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => array(
    "accept: application/json",
    "content-type: application/json",
    "x-accountmanager-key: foo",
    "x-api-key: YOUR API KEY HERE",
    "x-user-email: seu@email.com"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "https://desenvolvedores.skyhub.com.br/products/sku123"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "YOUR API KEY HERE")
	req.Header.Add("accept", "application/json")
	req.Header.Add("content-type", "application/json")
	req.Header.Add("x-user-email", "seu@email.com")
	req.Header.Add("x-accountmanager-key", "foo")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Path Parameters

Name Type Required Description Example
sku String Required sku123

Request Headers

Name Type Required Description Example
Accept String Required application/json
Content-Type String Required application/json
X-User-Email String (email) Required seu@email.com
x-accountmanager-key String Required

Identificador da sua integração com a SkyHub

foo

Responses

200 Success products Get product
{
  "sku": "foo",
String

Sku do produto

  "name": "foo",
String
  "description": "foo",
String
  "status": "enabled",
String
  "qty": 0,
Integer
  "price": 0,
Integer
  "promotional_price": 0,
Integer
  "cost": 0,
Integer

Custo do produto

  "weight": 0,
Integer
  "height": 0,
Integer
  "width": 0,
Integer
  "length": 0,
Integer
  "brand": "foo",
String
  "ean": "foo",
String
  "nbm": "foo",
String
  categories: [
Array
    {
    { ... }
Object

Categories

      "code": "foo",
String
      "name": "foo"
String
    }
  ]
  "images": [
    "foo",
    "foo",
    "foo"
  ],
Array
  specifications: [
Array
    {
    { ... }
Object

Specifications

      "key": "foo",
String
      "value": "foo"
String
    }
  ]
  variations: [
Array
    {
    { ... }
Object

Variations

      "sku": "foo",
String
      "qty": 0,
Integer
      "ean": "foo",
String
      "images": [
    "foo",
    "foo",
    "foo"
  ],
Array
      specifications: [
Array
        {
        { ... }
Object

Specifications

          "key": "foo",
String
          "value": "foo"
String
        }
      ]
    }
  ]
  "variation_attributes": [
    "foo",
    "foo",
    "foo"
  ]
Array
}

Cria um produto

Open in API Explorer
POST /products

Cria um produto na SkyHub
A B2W aceita no máximo 25 caracteres no sku

Example Request

Format:
curl --request POST \
  --url https://desenvolvedores.skyhub.com.br/products \
  --header 'accept: application/json' \
  --header 'content-type: application/json' \
  --header 'x-accountmanager-key: foo' \
  --header 'x-api-key: YOUR API KEY HERE' \
  --header 'x-user-email: seu@email.com' \
  --data '{"product":{"sku":"foo","name":"foo","description":"foo","status":"enabled","qty":0,"price":0,"promotional_price":0,"cost":0,"weight":0,"height":0,"width":0,"length":0,"brand":"foo","ean":"foo","nbm":"foo","categories":[{"code":"foo","name":"foo"}],"images":["foo","foo","foo"],"specifications":[{"key":"foo","value":"foo"}],"variations":[{"sku":"foo","qty":0,"ean":"foo","images":["foo","foo","foo"],"specifications":[{"key":"foo","value":"foo"}]}],"variation_attributes":["foo","foo","foo"]}}'
require 'uri'
require 'net/http'

url = URI("https://api.skyhub.com.br/products")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Post.new(url)
request["x-user-token"] = 'YOUR API KEY HERE'
request["accept"] = 'application/json'
request["content-type"] = 'application/json'
request["x-user-email"] = 'seu@email.com'
request.body = "{\"product\":{\"name\":\"foo\",\"description\":\"foo\",\"status\":"enabled",\"qty\":0,\"price\":0,\"promotional_price\":0,\"cost\":0,\"weight\":0,\"height\":0,\"width\":0,\"length\":0,\"brand\":\"foo\",\"ean\":\"foo\",\"nbm\":\"foo\",\"categories\":[{\"code\":\"foo\",\"name\":\"foo\"}],\"images\":[\"foo\",\"foo\",\"foo\"],\"specifications\":[{\"key\":\"foo\",\"value\":\"foo\"}],\"variations\":[{\"sku\":\"foo\",\"qty\":0,\"ean\":\"foo\",\"images\":[\"foo\",\"foo\",\"foo\"],\"specifications\":[{\"key\":\"foo\",\"value\":\"foo\"}]}],\"variation_attributes\":[\"foo\",\"foo\",\"foo\"]}}"

response = http.request(request)
puts response.read_body
var http = require("https");

var options = {
  "method": "POST",
  "hostname": "desenvolvedores.skyhub.com.br",
  "port": null,
  "path": "/products",
  "headers": {
    "x-api-key": "YOUR API KEY HERE",
    "accept": "application/json",
    "content-type": "application/json",
    "x-user-email": "seu@email.com",
    "x-accountmanager-key": "foo"
  }
};

var req = http.request(options, function (res) {
  var chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    var body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({ product: 
   { sku: 'foo',
     name: 'foo',
     description: 'foo',
     status: 'enabled',
     qty: 0,
     price: 0,
     promotional_price: 0,
     cost: 0,
     weight: 0,
     height: 0,
     width: 0,
     length: 0,
     brand: 'foo',
     ean: 'foo',
     nbm: 'foo',
     categories: [ { code: 'foo', name: 'foo' } ],
     images: [ 'foo', 'foo', 'foo' ],
     specifications: [ { key: 'foo', value: 'foo' } ],
     variations: 
      [ { sku: 'foo',
          qty: 0,
          ean: 'foo',
          images: [ 'foo', 'foo', 'foo' ],
          specifications: [ { key: 'foo', value: 'foo' } ] } ],
     variation_attributes: [ 'foo', 'foo', 'foo' ] } }));
req.end();
import http.client

conn = http.client.HTTPSConnection("desenvolvedores.skyhub.com.br")

payload = "{\"product\":{\"sku\":\"foo\",\"name\":\"foo\",\"description\":\"foo\",\"status\":\"enabled\",\"qty\":0,\"price\":0,\"promotional_price\":0,\"cost\":0,\"weight\":0,\"height\":0,\"width\":0,\"length\":0,\"brand\":\"foo\",\"ean\":\"foo\",\"nbm\":\"foo\",\"categories\":[{\"code\":\"foo\",\"name\":\"foo\"}],\"images\":[\"foo\",\"foo\",\"foo\"],\"specifications\":[{\"key\":\"foo\",\"value\":\"foo\"}],\"variations\":[{\"sku\":\"foo\",\"qty\":0,\"ean\":\"foo\",\"images\":[\"foo\",\"foo\",\"foo\"],\"specifications\":[{\"key\":\"foo\",\"value\":\"foo\"}]}],\"variation_attributes\":[\"foo\",\"foo\",\"foo\"]}}"

headers = {
    'x-api-key': "YOUR API KEY HERE",
    'accept': "application/json",
    'content-type': "application/json",
    'x-user-email': "seu@email.com",
    'x-accountmanager-key': "foo"
    }

conn.request("POST", "/products", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://desenvolvedores.skyhub.com.br/products",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => "{\"product\":{\"sku\":\"foo\",\"name\":\"foo\",\"description\":\"foo\",\"status\":\"enabled\",\"qty\":0,\"price\":0,\"promotional_price\":0,\"cost\":0,\"weight\":0,\"height\":0,\"width\":0,\"length\":0,\"brand\":\"foo\",\"ean\":\"foo\",\"nbm\":\"foo\",\"categories\":[{\"code\":\"foo\",\"name\":\"foo\"}],\"images\":[\"foo\",\"foo\",\"foo\"],\"specifications\":[{\"key\":\"foo\",\"value\":\"foo\"}],\"variations\":[{\"sku\":\"foo\",\"qty\":0,\"ean\":\"foo\",\"images\":[\"foo\",\"foo\",\"foo\"],\"specifications\":[{\"key\":\"foo\",\"value\":\"foo\"}]}],\"variation_attributes\":[\"foo\",\"foo\",\"foo\"]}}",
  CURLOPT_HTTPHEADER => array(
    "accept: application/json",
    "content-type: application/json",
    "x-accountmanager-key: foo",
    "x-api-key: YOUR API KEY HERE",
    "x-user-email: seu@email.com"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "https://desenvolvedores.skyhub.com.br/products"

	payload := strings.NewReader("{\"product\":{\"sku\":\"foo\",\"name\":\"foo\",\"description\":\"foo\",\"status\":\"enabled\",\"qty\":0,\"price\":0,\"promotional_price\":0,\"cost\":0,\"weight\":0,\"height\":0,\"width\":0,\"length\":0,\"brand\":\"foo\",\"ean\":\"foo\",\"nbm\":\"foo\",\"categories\":[{\"code\":\"foo\",\"name\":\"foo\"}],\"images\":[\"foo\",\"foo\",\"foo\"],\"specifications\":[{\"key\":\"foo\",\"value\":\"foo\"}],\"variations\":[{\"sku\":\"foo\",\"qty\":0,\"ean\":\"foo\",\"images\":[\"foo\",\"foo\",\"foo\"],\"specifications\":[{\"key\":\"foo\",\"value\":\"foo\"}]}],\"variation_attributes\":[\"foo\",\"foo\",\"foo\"]}}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("x-api-key", "YOUR API KEY HERE")
	req.Header.Add("accept", "application/json")
	req.Header.Add("content-type", "application/json")
	req.Header.Add("x-user-email", "seu@email.com")
	req.Header.Add("x-accountmanager-key", "foo")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Request Body

Name Type Required Description Example
body Object Required

Parâmetros e valores para criar produtos

{
  "product": {
  "product": { ... }
Object
    "sku": "foo",
String

Sku do produto

    "name": "foo",
String
    "description": "foo",
String
    "status": "enabled",
String
    "qty": 0,
Integer
    "price": 0,
Integer
    "promotional_price": 0,
Integer
    "cost": 0,
Integer

Custo do produto

    "weight": 0,
Integer
    "height": 0,
Integer
    "width": 0,
Integer
    "length": 0,
Integer
    "brand": "foo",
String
    "ean": "foo",
String
    "nbm": "foo",
String
    categories: [
Array
      {
      { ... }
Object

Categories

        "code": "foo",
String
        "name": "foo"
String
      }
    ]
    "images": [
    "foo",
    "foo",
    "foo"
  ],
Array
    specifications: [
Array
      {
      { ... }
Object

Specifications

        "key": "foo",
String
        "value": "foo"
String
      }
    ]
    variations: [
Array
      {
      { ... }
Object

Variations

        "sku": "foo",
String
        "qty": 0,
Integer
        "ean": "foo",
String
        "images": [
    "foo",
    "foo",
    "foo"
  ],
Array
        specifications: [
Array
          {
          { ... }
Object

Specifications

            "key": "foo",
String
            "value": "foo"
String
          }
        ]
      }
    ]
    "variation_attributes": [
    "foo",
    "foo",
    "foo"
  ]
Array
  }
}

Request Headers

Name Type Required Description Example
Accept String Required application/json
Content-Type String Required application/json
X-User-Email String Required seu@email.com
x-accountmanager-key String Required

Identificador da sua integração com a SkyHub

foo

Atualizar um produto

Open in API Explorer
PUT /products/{sku}

Atualiza um produto na Skyhub!

Em caso de atualização do produto para "disabled" é necessário que o estoque do produto seja zerado.

Example Request

Format:
curl --request PUT \
  --url https://desenvolvedores.skyhub.com.br/products/sku123 \
  --header 'accept: application/json' \
  --header 'content-type: foo' \
  --header 'x-accountmanager-key: foo' \
  --header 'x-api-key: YOUR API KEY HERE' \
  --header 'x-user-email: seu@email.com' \
  --data '{"product":{"name":"foo","description":"foo","status":"enabled","qty":0,"price":0,"promotional_price":0,"cost":0,"weight":0,"height":0,"width":0,"length":0,"brand":"foo","ean":"foo","nbm":"foo","categories":[{"code":"foo","name":"foo"}],"images":["foo","foo","foo"],"specifications":[{"key":"foo","value":"foo"}],"variations":[{"sku":"foo","qty":0,"ean":"foo","images":["foo","foo","foo"],"specifications":[{"key":"foo","value":"foo"}]}],"variation_attributes":["foo","foo","foo"]}}'
require 'uri'
require 'net/http'

url = URI("https://desenvolvedores.skyhub.com.br/products/sku123")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Put.new(url)
request["x-api-key"] = 'YOUR API KEY HERE'
request["accept"] = 'application/json'
request["content-type"] = 'foo'
request["x-user-email"] = 'seu@email.com'
request["x-accountmanager-key"] = 'foo'
request.body = "{\"product\":{\"name\":\"foo\",\"description\":\"foo\",\"status\":\"enabled\",\"qty\":0,\"price\":0,\"promotional_price\":0,\"cost\":0,\"weight\":0,\"height\":0,\"width\":0,\"length\":0,\"brand\":\"foo\",\"ean\":\"foo\",\"nbm\":\"foo\",\"categories\":[{\"code\":\"foo\",\"name\":\"foo\"}],\"images\":[\"foo\",\"foo\",\"foo\"],\"specifications\":[{\"key\":\"foo\",\"value\":\"foo\"}],\"variations\":[{\"sku\":\"foo\",\"qty\":0,\"ean\":\"foo\",\"images\":[\"foo\",\"foo\",\"foo\"],\"specifications\":[{\"key\":\"foo\",\"value\":\"foo\"}]}],\"variation_attributes\":[\"foo\",\"foo\",\"foo\"]}}"

response = http.request(request)
puts response.read_body
var http = require("https");

var options = {
  "method": "PUT",
  "hostname": "desenvolvedores.skyhub.com.br",
  "port": null,
  "path": "/products/sku123",
  "headers": {
    "x-api-key": "YOUR API KEY HERE",
    "accept": "application/json",
    "content-type": "foo",
    "x-user-email": "seu@email.com",
    "x-accountmanager-key": "foo"
  }
};

var req = http.request(options, function (res) {
  var chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    var body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({ product: 
   { name: 'foo',
     description: 'foo',
     status: 'enabled',
     qty: 0,
     price: 0,
     promotional_price: 0,
     cost: 0,
     weight: 0,
     height: 0,
     width: 0,
     length: 0,
     brand: 'foo',
     ean: 'foo',
     nbm: 'foo',
     categories: [ { code: 'foo', name: 'foo' } ],
     images: [ 'foo', 'foo', 'foo' ],
     specifications: [ { key: 'foo', value: 'foo' } ],
     variations: 
      [ { sku: 'foo',
          qty: 0,
          ean: 'foo',
          images: [ 'foo', 'foo', 'foo' ],
          specifications: [ { key: 'foo', value: 'foo' } ] } ],
     variation_attributes: [ 'foo', 'foo', 'foo' ] } }));
req.end();
import http.client

conn = http.client.HTTPSConnection("desenvolvedores.skyhub.com.br")

payload = "{\"product\":{\"name\":\"foo\",\"description\":\"foo\",\"status\":\"enabled\",\"qty\":0,\"price\":0,\"promotional_price\":0,\"cost\":0,\"weight\":0,\"height\":0,\"width\":0,\"length\":0,\"brand\":\"foo\",\"ean\":\"foo\",\"nbm\":\"foo\",\"categories\":[{\"code\":\"foo\",\"name\":\"foo\"}],\"images\":[\"foo\",\"foo\",\"foo\"],\"specifications\":[{\"key\":\"foo\",\"value\":\"foo\"}],\"variations\":[{\"sku\":\"foo\",\"qty\":0,\"ean\":\"foo\",\"images\":[\"foo\",\"foo\",\"foo\"],\"specifications\":[{\"key\":\"foo\",\"value\":\"foo\"}]}],\"variation_attributes\":[\"foo\",\"foo\",\"foo\"]}}"

headers = {
    'x-api-key': "YOUR API KEY HERE",
    'accept': "application/json",
    'content-type': "foo",
    'x-user-email': "seu@email.com",
    'x-accountmanager-key': "foo"
    }

conn.request("PUT", "/products/sku123", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://desenvolvedores.skyhub.com.br/products/sku123",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => "{\"product\":{\"name\":\"foo\",\"description\":\"foo\",\"status\":\"enabled\",\"qty\":0,\"price\":0,\"promotional_price\":0,\"cost\":0,\"weight\":0,\"height\":0,\"width\":0,\"length\":0,\"brand\":\"foo\",\"ean\":\"foo\",\"nbm\":\"foo\",\"categories\":[{\"code\":\"foo\",\"name\":\"foo\"}],\"images\":[\"foo\",\"foo\",\"foo\"],\"specifications\":[{\"key\":\"foo\",\"value\":\"foo\"}],\"variations\":[{\"sku\":\"foo\",\"qty\":0,\"ean\":\"foo\",\"images\":[\"foo\",\"foo\",\"foo\"],\"specifications\":[{\"key\":\"foo\",\"value\":\"foo\"}]}],\"variation_attributes\":[\"foo\",\"foo\",\"foo\"]}}",
  CURLOPT_HTTPHEADER => array(
    "accept: application/json",
    "content-type: foo",
    "x-accountmanager-key: foo",
    "x-api-key: YOUR API KEY HERE",
    "x-user-email: seu@email.com"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "https://desenvolvedores.skyhub.com.br/products/sku123"

	payload := strings.NewReader("{\"product\":{\"name\":\"foo\",\"description\":\"foo\",\"status\":\"enabled\",\"qty\":0,\"price\":0,\"promotional_price\":0,\"cost\":0,\"weight\":0,\"height\":0,\"width\":0,\"length\":0,\"brand\":\"foo\",\"ean\":\"foo\",\"nbm\":\"foo\",\"categories\":[{\"code\":\"foo\",\"name\":\"foo\"}],\"images\":[\"foo\",\"foo\",\"foo\"],\"specifications\":[{\"key\":\"foo\",\"value\":\"foo\"}],\"variations\":[{\"sku\":\"foo\",\"qty\":0,\"ean\":\"foo\",\"images\":[\"foo\",\"foo\",\"foo\"],\"specifications\":[{\"key\":\"foo\",\"value\":\"foo\"}]}],\"variation_attributes\":[\"foo\",\"foo\",\"foo\"]}}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("x-api-key", "YOUR API KEY HERE")
	req.Header.Add("accept", "application/json")
	req.Header.Add("content-type", "foo")
	req.Header.Add("x-user-email", "seu@email.com")
	req.Header.Add("x-accountmanager-key", "foo")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Path Parameters

Name Type Required Description Example
sku String Required sku123

Request Body

Name Type Required Description Example
body Object Required
{
  "product": {
  "product": { ... }
Object
    "name": "foo",
String
    "description": "foo",
String
    "status": "enabled",
String
    "qty": 0,
Integer
    "price": 0,
Integer
    "promotional_price": 0,
Integer
    "cost": 0,
Integer
    "weight": 0,
Integer
    "height": 0,
Integer
    "width": 0,
Integer
    "length": 0,
Integer
    "brand": "foo",
String
    "ean": "foo",
String
    "nbm": "foo",
String
    categories: [
Array
      {
      { ... }
Object

Categories

        "code": "foo",
String
        "name": "foo"
String
      }
    ]
    "images": [
    "foo",
    "foo",
    "foo"
  ],
Array
    specifications: [
Array
      {
      { ... }
Object

Specifications

        "key": "foo",
String
        "value": "foo"
String
      }
    ]
    variations: [
Array
      {
      { ... }
Object

Variations

        "sku": "foo",
String
        "qty": 0,
Integer
        "ean": "foo",
String
        "images": [
    "foo",
    "foo",
    "foo"
  ],
Array
        specifications: [
Array
          {
          { ... }
Object

Specifications

            "key": "foo",
String
            "value": "foo"
String
          }
        ]
      }
    ]
    "variation_attributes": [
    "foo",
    "foo",
    "foo"
  ]
Array
  }
}

Request Headers

Name Type Required Description Example
Accept String Required application/json
Content-Type String Required foo
X-User-Email String Required seu@email.com
x-accountmanager-key String Required

Identificador da sua integração com a SkyHub

foo

Remove um produto

Open in API Explorer
DELETE /products/{sku}

Remove um produto da Skyhub caso o item esteja desconectado na Skyhub

Example Request

Format:
curl --request DELETE \
  --url https://desenvolvedores.skyhub.com.br/products/sku123 \
  --header 'accept: application/json' \
  --header 'content-type: foo' \
  --header 'x-accountmanager-key: foo' \
  --header 'x-api-key: YOUR API KEY HERE' \
  --header 'x-user-email: seu@email.com'
require 'uri'
require 'net/http'

url = URI("https://desenvolvedores.skyhub.com.br/products/sku123")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Delete.new(url)
request["x-api-key"] = 'YOUR API KEY HERE'
request["accept"] = 'application/json'
request["content-type"] = 'foo'
request["x-user-email"] = 'seu@email.com'
request["x-accountmanager-key"] = 'foo'

response = http.request(request)
puts response.read_body
var http = require("https");

var options = {
  "method": "DELETE",
  "hostname": "desenvolvedores.skyhub.com.br",
  "port": null,
  "path": "/products/sku123",
  "headers": {
    "x-api-key": "YOUR API KEY HERE",
    "accept": "application/json",
    "content-type": "foo",
    "x-user-email": "seu@email.com",
    "x-accountmanager-key": "foo"
  }
};

var req = http.request(options, function (res) {
  var chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    var body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
import http.client

conn = http.client.HTTPSConnection("desenvolvedores.skyhub.com.br")

headers = {
    'x-api-key': "YOUR API KEY HERE",
    'accept': "application/json",
    'content-type': "foo",
    'x-user-email': "seu@email.com",
    'x-accountmanager-key': "foo"
    }

conn.request("DELETE", "/products/sku123", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://desenvolvedores.skyhub.com.br/products/sku123",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
  CURLOPT_HTTPHEADER => array(
    "accept: application/json",
    "content-type: foo",
    "x-accountmanager-key: foo",
    "x-api-key: YOUR API KEY HERE",
    "x-user-email: seu@email.com"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "https://desenvolvedores.skyhub.com.br/products/sku123"

	req, _ := http.NewRequest("DELETE", url, nil)

	req.Header.Add("x-api-key", "YOUR API KEY HERE")
	req.Header.Add("accept", "application/json")
	req.Header.Add("content-type", "foo")
	req.Header.Add("x-user-email", "seu@email.com")
	req.Header.Add("x-accountmanager-key", "foo")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Path Parameters

Name Type Required Description Example
sku String Required sku123

Request Headers

Name Type Required Description Example
Accept String Required application/json
Content-Type String Required foo
X-User-Email String Required seu@email.com
x-accountmanager-key String Required

Identificador da sua integração com a SkyHub

foo

Responses

204 Success

Executada com sucesso

(Empty Response)
404 Não encontrado

Recurso não encontrado

(Empty Response)

Criar variação no produto

Open in API Explorer
POST /products/{sku}/variations

Example Request

Format:
curl --request POST \
  --url https://desenvolvedores.skyhub.com.br/products/sku123/variations \
  --header 'accept: application/json' \
  --header 'content-type: foo' \
  --header 'x-accountmanager-key: foo' \
  --header 'x-api-key: YOUR API KEY HERE' \
  --header 'x-user-email: seu@email.com' \
  --data '{"variation":{"sku":"99","qty":10,"ean":"foo","images":["foo","foo","foo"],"specifications":[{"key":"Tamanho","value":"1.00 M"}]}}'
require 'uri'
require 'net/http'

url = URI("https://desenvolvedores.skyhub.com.br/products/sku123/variations")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Post.new(url)
request["x-api-key"] = 'YOUR API KEY HERE'
request["accept"] = 'application/json'
request["content-type"] = 'foo'
request["x-user-email"] = 'seu@email.com'
request["x-accountmanager-key"] = 'foo'
request.body = "{\"variation\":{\"sku\":\"99\",\"qty\":10,\"ean\":\"foo\",\"images\":[\"foo\",\"foo\",\"foo\"],\"specifications\":[{\"key\":\"Tamanho\",\"value\":\"1.00 M\"}]}}"

response = http.request(request)
puts response.read_body
var http = require("https");

var options = {
  "method": "POST",
  "hostname": "desenvolvedores.skyhub.com.br",
  "port": null,
  "path": "/products/sku123/variations",
  "headers": {
    "x-api-key": "YOUR API KEY HERE",
    "accept": "application/json",
    "content-type": "foo",
    "x-user-email": "seu@email.com",
    "x-accountmanager-key": "foo"
  }
};

var req = http.request(options, function (res) {
  var chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    var body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({ variation: 
   { sku: '99',
     qty: 10,
     ean: 'foo',
     images: [ 'foo', 'foo', 'foo' ],
     specifications: [ { key: 'Tamanho', value: '1.00 M' } ] } }));
req.end();
import http.client

conn = http.client.HTTPSConnection("desenvolvedores.skyhub.com.br")

payload = "{\"variation\":{\"sku\":\"99\",\"qty\":10,\"ean\":\"foo\",\"images\":[\"foo\",\"foo\",\"foo\"],\"specifications\":[{\"key\":\"Tamanho\",\"value\":\"1.00 M\"}]}}"

headers = {
    'x-api-key': "YOUR API KEY HERE",
    'accept': "application/json",
    'content-type': "foo",
    'x-user-email': "seu@email.com",
    'x-accountmanager-key': "foo"
    }

conn.request("POST", "/products/sku123/variations", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://desenvolvedores.skyhub.com.br/products/sku123/variations",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => "{\"variation\":{\"sku\":\"99\",\"qty\":10,\"ean\":\"foo\",\"images\":[\"foo\",\"foo\",\"foo\"],\"specifications\":[{\"key\":\"Tamanho\",\"value\":\"1.00 M\"}]}}",
  CURLOPT_HTTPHEADER => array(
    "accept: application/json",
    "content-type: foo",
    "x-accountmanager-key: foo",
    "x-api-key: YOUR API KEY HERE",
    "x-user-email: seu@email.com"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "https://desenvolvedores.skyhub.com.br/products/sku123/variations"

	payload := strings.NewReader("{\"variation\":{\"sku\":\"99\",\"qty\":10,\"ean\":\"foo\",\"images\":[\"foo\",\"foo\",\"foo\"],\"specifications\":[{\"key\":\"Tamanho\",\"value\":\"1.00 M\"}]}}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("x-api-key", "YOUR API KEY HERE")
	req.Header.Add("accept", "application/json")
	req.Header.Add("content-type", "foo")
	req.Header.Add("x-user-email", "seu@email.com")
	req.Header.Add("x-accountmanager-key", "foo")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Path Parameters

Name Type Required Description Example
sku String Required

Código do produto

sku123

Request Body

Name Type Required Description Example
body Object Required

Corpo da requisição

{
  "variation": {
  "variation": { ... }
Object
    "sku": "99",
String
    "qty": 10,
Integer
    "ean": "foo",
String
    "images": [
    "foo",
    "foo",
    "foo"
  ],
Array
    specifications: [
Array
      {
      { ... }
Object

Specifications

        "key": "Tamanho",
String
        "value": "1.00 M"
String
      }
    ]
  }
}

Request Headers

Name Type Required Description Example
Accept String Required application/json
Content-Type String Required foo
X-User-Email String Required seu@email.com
x-accountmanager-key String Required

Identificador da sua integração com a SkyHub

foo

Responses

201 Success

Criado com sucesso

(Empty Response)

Recebe URLs dos Markeplaces

Open in API Explorer
GET /products/urls

Retorna a URL dos produtos nos MarketPlaces (disponível B2W e Cnova)
Caso o seller possua mais de 10.000 produtos, é possivel paginar através do método "scroll".
Neste método deve ser passado no primeiro request o parâmetro scroll com o valor true, conforme a baixo:

api.skyhub.com.br/products/urls?scroll=true

Fazendo isso, os próximos requests retornarão um scroll_id, que deve ser passado como parâmetro para os próximos requests

api.skyhub.com.br/products/urls?scroll=true&scroll_id=SCROLL_ID_VALUE

Example Request

Format:
curl --request GET \
  --url https://desenvolvedores.skyhub.com.br/products/urls \
  --header 'accept: application/json' \
  --header 'content-type: foo' \
  --header 'x-accountmanager-key: foo' \
  --header 'x-api-key: YOUR API KEY HERE' \
  --header 'x-user-email: seu@email.com'
require 'uri'
require 'net/http'

url = URI("https://desenvolvedores.skyhub.com.br/products/urls")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Get.new(url)
request["x-api-key"] = 'YOUR API KEY HERE'
request["accept"] = 'application/json'
request["content-type"] = 'foo'
request["x-user-email"] = 'seu@email.com'
request["x-accountmanager-key"] = 'foo'

response = http.request(request)
puts response.read_body
var http = require("https");

var options = {
  "method": "GET",
  "hostname": "desenvolvedores.skyhub.com.br",
  "port": null,
  "path": "/products/urls",
  "headers": {
    "x-api-key": "YOUR API KEY HERE",
    "accept": "application/json",
    "content-type": "foo",
    "x-user-email": "seu@email.com",
    "x-accountmanager-key": "foo"
  }
};

var req = http.request(options, function (res) {
  var chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    var body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
import http.client

conn = http.client.HTTPSConnection("desenvolvedores.skyhub.com.br")

headers = {
    'x-api-key': "YOUR API KEY HERE",
    'accept': "application/json",
    'content-type': "foo",
    'x-user-email': "seu@email.com",
    'x-accountmanager-key': "foo"
    }

conn.request("GET", "/products/urls", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://desenvolvedores.skyhub.com.br/products/urls",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => array(
    "accept: application/json",
    "content-type: foo",
    "x-accountmanager-key: foo",
    "x-api-key: YOUR API KEY HERE",
    "x-user-email: seu@email.com"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "https://desenvolvedores.skyhub.com.br/products/urls"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "YOUR API KEY HERE")
	req.Header.Add("accept", "application/json")
	req.Header.Add("content-type", "foo")
	req.Header.Add("x-user-email", "seu@email.com")
	req.Header.Add("x-accountmanager-key", "foo")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Request Headers

Name Type Required Description Example
Accept String Required application/json
Content-Type String Required foo
X-User-Email String Required seu@email.com
x-accountmanager-key String Required

Identificador da sua integração com a SkyHub

foo

Responses

200 Success products Urls
{
  products: [
Array
    {
    { ... }
Object

Products

      "sku": "foo",
String
      "name": "foo",
String
      marketplaces: [
Array
        {
        { ... }
Object

Marketplaces

          "name": "foo",
String
          "href": "foo"
String
        }
      ]
      variations: [
Array
        {
        { ... }
Object

Variations

          "sku": "foo",
String
          "name": "foo",
String
          marketplaces: [
Array
            {
            { ... }
Object

Marketplaces

              "name": "foo",
String
              "href": "foo"
String
            }
          ]
        }
      ]
    }
  ]
}

Criar Produto com CrossDocking

Open in API Explorer
POST /products

Example Request

Format:
curl --request POST \
  --url https://desenvolvedores.skyhub.com.br/products \
  --header 'accept: application/json' \
  --header 'content-type: application/json' \
  --header 'x-accountmanager-key: foo' \
  --header 'x-api-key: SuaApiKey' \
  --header 'x-user-email: seu@email.com' \
  --data '{"product":{"sku":"1010","name":"CRIAR PRODUTO COM UMA VARIAÇÃO","description":"CRIAR PRODUTO COM UMA VARIAÇÃO","status":"enabled","price":30.0,"promotional_price":29.9,"cost":0.2,"weight":0.1,"height":20,"width":30,"length":20,"brand":"SKYHUB","nbm":"98769898","categories":[{"code":"01","name":"SKYHUB HOMOLOGAÇÃO"}],"specifications":[{"key":"CrossDocking","value":"10"}],"variations":[{"sku":"1011","qty":100,"ean":"9876543210987","images":["http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg","http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg","http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg"],"specifications":[{"key":"Cor","value":"Verde"}]}],"variation_attributes":["Cor","Cor","Cor"]}}'
require 'uri'
require 'net/http'

url = URI("https://desenvolvedores.skyhub.com.br/products")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Post.new(url)
request["accept"] = 'application/json'
request["content-type"] = 'application/json'
request["x-user-email"] = 'seu@email.com'
request["x-api-key"] = 'SuaApiKey'
request["x-accountmanager-key"] = 'foo'
request.body = "{\"product\":{\"sku\":\"1010\",\"name\":\"CRIAR PRODUTO COM UMA VARIAÇÃO\",\"description\":\"CRIAR PRODUTO COM UMA VARIAÇÃO\",\"status\":\"enabled\",\"price\":30.0,\"promotional_price\":29.9,\"cost\":0.2,\"weight\":0.1,\"height\":20,\"width\":30,\"length\":20,\"brand\":\"SKYHUB\",\"nbm\":\"98769898\",\"categories\":[{\"code\":\"01\",\"name\":\"SKYHUB HOMOLOGAÇÃO\"}],\"specifications\":[{\"key\":\"CrossDocking\",\"value\":\"10\"}],\"variations\":[{\"sku\":\"1011\",\"qty\":100,\"ean\":\"9876543210987\",\"images\":[\"http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg\",\"http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg\",\"http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg\"],\"specifications\":[{\"key\":\"Cor\",\"value\":\"Verde\"}]}],\"variation_attributes\":[\"Cor\",\"Cor\",\"Cor\"]}}"

response = http.request(request)
puts response.read_body
var http = require("https");

var options = {
  "method": "POST",
  "hostname": "desenvolvedores.skyhub.com.br",
  "port": null,
  "path": "/products",
  "headers": {
    "accept": "application/json",
    "content-type": "application/json",
    "x-user-email": "seu@email.com",
    "x-api-key": "SuaApiKey",
    "x-accountmanager-key": "foo"
  }
};

var req = http.request(options, function (res) {
  var chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    var body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({ product: 
   { sku: '1010',
     name: 'CRIAR PRODUTO COM UMA VARIAÇÃO',
     description: 'CRIAR PRODUTO COM UMA VARIAÇÃO',
     status: 'enabled',
     price: 30,
     promotional_price: 29.9,
     cost: 0.2,
     weight: 0.1,
     height: 20,
     width: 30,
     length: 20,
     brand: 'SKYHUB',
     nbm: '98769898',
     categories: [ { code: '01', name: 'SKYHUB HOMOLOGAÇÃO' } ],
     specifications: [ { key: 'CrossDocking', value: '10' } ],
     variations: 
      [ { sku: '1011',
          qty: 100,
          ean: '9876543210987',
          images: 
           [ 'http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg',
             'http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg',
             'http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg' ],
          specifications: [ { key: 'Cor', value: 'Verde' } ] } ],
     variation_attributes: [ 'Cor', 'Cor', 'Cor' ] } }));
req.end();
import http.client

conn = http.client.HTTPSConnection("desenvolvedores.skyhub.com.br")

payload = "{\"product\":{\"sku\":\"1010\",\"name\":\"CRIAR PRODUTO COM UMA VARIAÇÃO\",\"description\":\"CRIAR PRODUTO COM UMA VARIAÇÃO\",\"status\":\"enabled\",\"price\":30.0,\"promotional_price\":29.9,\"cost\":0.2,\"weight\":0.1,\"height\":20,\"width\":30,\"length\":20,\"brand\":\"SKYHUB\",\"nbm\":\"98769898\",\"categories\":[{\"code\":\"01\",\"name\":\"SKYHUB HOMOLOGAÇÃO\"}],\"specifications\":[{\"key\":\"CrossDocking\",\"value\":\"10\"}],\"variations\":[{\"sku\":\"1011\",\"qty\":100,\"ean\":\"9876543210987\",\"images\":[\"http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg\",\"http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg\",\"http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg\"],\"specifications\":[{\"key\":\"Cor\",\"value\":\"Verde\"}]}],\"variation_attributes\":[\"Cor\",\"Cor\",\"Cor\"]}}"

headers = {
    'accept': "application/json",
    'content-type': "application/json",
    'x-user-email': "seu@email.com",
    'x-api-key': "SuaApiKey",
    'x-accountmanager-key': "foo"
    }

conn.request("POST", "/products", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://desenvolvedores.skyhub.com.br/products",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => "{\"product\":{\"sku\":\"1010\",\"name\":\"CRIAR PRODUTO COM UMA VARIAÇÃO\",\"description\":\"CRIAR PRODUTO COM UMA VARIAÇÃO\",\"status\":\"enabled\",\"price\":30.0,\"promotional_price\":29.9,\"cost\":0.2,\"weight\":0.1,\"height\":20,\"width\":30,\"length\":20,\"brand\":\"SKYHUB\",\"nbm\":\"98769898\",\"categories\":[{\"code\":\"01\",\"name\":\"SKYHUB HOMOLOGAÇÃO\"}],\"specifications\":[{\"key\":\"CrossDocking\",\"value\":\"10\"}],\"variations\":[{\"sku\":\"1011\",\"qty\":100,\"ean\":\"9876543210987\",\"images\":[\"http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg\",\"http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg\",\"http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg\"],\"specifications\":[{\"key\":\"Cor\",\"value\":\"Verde\"}]}],\"variation_attributes\":[\"Cor\",\"Cor\",\"Cor\"]}}",
  CURLOPT_HTTPHEADER => array(
    "accept: application/json",
    "content-type: application/json",
    "x-accountmanager-key: foo",
    "x-api-key: SuaApiKey",
    "x-user-email: seu@email.com"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "https://desenvolvedores.skyhub.com.br/products"

	payload := strings.NewReader("{\"product\":{\"sku\":\"1010\",\"name\":\"CRIAR PRODUTO COM UMA VARIAÇÃO\",\"description\":\"CRIAR PRODUTO COM UMA VARIAÇÃO\",\"status\":\"enabled\",\"price\":30.0,\"promotional_price\":29.9,\"cost\":0.2,\"weight\":0.1,\"height\":20,\"width\":30,\"length\":20,\"brand\":\"SKYHUB\",\"nbm\":\"98769898\",\"categories\":[{\"code\":\"01\",\"name\":\"SKYHUB HOMOLOGAÇÃO\"}],\"specifications\":[{\"key\":\"CrossDocking\",\"value\":\"10\"}],\"variations\":[{\"sku\":\"1011\",\"qty\":100,\"ean\":\"9876543210987\",\"images\":[\"http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg\",\"http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg\",\"http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg\"],\"specifications\":[{\"key\":\"Cor\",\"value\":\"Verde\"}]}],\"variation_attributes\":[\"Cor\",\"Cor\",\"Cor\"]}}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("accept", "application/json")
	req.Header.Add("content-type", "application/json")
	req.Header.Add("x-user-email", "seu@email.com")
	req.Header.Add("x-api-key", "SuaApiKey")
	req.Header.Add("x-accountmanager-key", "foo")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Request Body

Name Type Required Description Example
Post Object Required
{
  "product": {
  "product": { ... }
Object
    "sku": "1010",
String
    "name": "CRIAR PRODUTO COM UMA VARIAÇÃO",
String
    "description": "CRIAR PRODUTO COM UMA VARIAÇÃO",
String
    "status": "enabled",
String
    "price": 30.0,
Number
    "promotional_price": 29.9,
Number
    "cost": 0.2,
Number
    "weight": 0.1,
Number
    "height": 20,
Integer
    "width": 30,
Integer
    "length": 20,
Integer
    "brand": "SKYHUB",
String
    "nbm": "98769898",
String
    categories: [
Array
      {
      { ... }
Object

Categories

        "code": "01",
String
        "name": "SKYHUB HOMOLOGAÇÃO"
String
      }
    ]
    specifications: [
Array
      {
      { ... }
Object

Specifications

        "key": "CrossDocking",
String
        "value": "10"
String
      }
    ]
    variations: [
Array
      {
      { ... }
Object

Variations

        "sku": "1011",
String
        "qty": 100,
Integer
        "ean": "9876543210987",
String
        "images": [
    "http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg",
    "http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg",
    "http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg"
  ],
Array
        specifications: [
Array
          {
          { ... }
Object

Specifications

            "key": "Cor",
String
            "value": "Verde"
String
          }
        ]
      }
    ]
    "variation_attributes": [
    "Cor",
    "Cor",
    "Cor"
  ]
Array
  }
}

Request Headers

Name Type Required Description Example
accept String Required application/json
content-type String Required application/json
x-user-email String Required seu@email.com
x-api-key String Required SuaApiKey
x-accountmanager-key String Required

Código identificador da sua integração

foo

Criar produto com variação de preço no SKU

Open in API Explorer
POST /products

Example Request

Format:
curl --request POST \
  --url https://desenvolvedores.skyhub.com.br/products \
  --header 'accept: application/json' \
  --header 'content-type: application/json' \
  --header 'x-accountmanager-key: foo' \
  --header 'x-api-key: SuaChavedeAPI' \
  --header 'x-user-email: seu@email.com' \
  --data '{"product":{"sku":"Skyhub","name":"CRIAR PRODUTO COM MAIS DE UMA VARIAÇÃO","description":"CRIAR PRODUTO COM MAIS DE UMA VARIAÇÃO","status":"enabled","price":0.0,"promotional_price":0.0,"cost":0.2,"weight":1.1,"height":20,"width":30,"length":20,"brand":"SKYHUB","nbm":"98769898","categories":[{"code":"01","name":"SKYHUB HOMOLOGAÇÃO"}],"images":["http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg","http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg","http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg"],"specifications":[{"key":"Especicações do Produto PAI","value":"Especificações do Produto PAI"}],"variations":[{"sku":"301","qty":100,"ean":"9876543210987","images":["http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg","http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg","http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg"],"specifications":[{"key":"price","value":"15.00"}]}],"variation_attributes":["foo","foo","foo"]}}'
require 'uri'
require 'net/http'

url = URI("https://desenvolvedores.skyhub.com.br/products")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Post.new(url)
request["accept"] = 'application/json'
request["content-type"] = 'application/json'
request["x-accountmanager-key"] = 'foo'
request["x-user-email"] = 'seu@email.com'
request["x-api-key"] = 'SuaChavedeAPI'
request.body = "{\"product\":{\"sku\":\"Skyhub\",\"name\":\"CRIAR PRODUTO COM MAIS DE UMA VARIAÇÃO\",\"description\":\"CRIAR PRODUTO COM MAIS DE UMA VARIAÇÃO\",\"status\":\"enabled\",\"price\":0.0,\"promotional_price\":0.0,\"cost\":0.2,\"weight\":1.1,\"height\":20,\"width\":30,\"length\":20,\"brand\":\"SKYHUB\",\"nbm\":\"98769898\",\"categories\":[{\"code\":\"01\",\"name\":\"SKYHUB HOMOLOGAÇÃO\"}],\"images\":[\"http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg\",\"http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg\",\"http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg\"],\"specifications\":[{\"key\":\"Especicações do Produto PAI\",\"value\":\"Especificações do Produto PAI\"}],\"variations\":[{\"sku\":\"301\",\"qty\":100,\"ean\":\"9876543210987\",\"images\":[\"http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg\",\"http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg\",\"http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg\"],\"specifications\":[{\"key\":\"price\",\"value\":\"15.00\"}]}],\"variation_attributes\":[\"foo\",\"foo\",\"foo\"]}}"

response = http.request(request)
puts response.read_body
var http = require("https");

var options = {
  "method": "POST",
  "hostname": "desenvolvedores.skyhub.com.br",
  "port": null,
  "path": "/products",
  "headers": {
    "accept": "application/json",
    "content-type": "application/json",
    "x-accountmanager-key": "foo",
    "x-user-email": "seu@email.com",
    "x-api-key": "SuaChavedeAPI"
  }
};

var req = http.request(options, function (res) {
  var chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    var body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({ product: 
   { sku: 'Skyhub',
     name: 'CRIAR PRODUTO COM MAIS DE UMA VARIAÇÃO',
     description: 'CRIAR PRODUTO COM MAIS DE UMA VARIAÇÃO',
     status: 'enabled',
     price: 0,
     promotional_price: 0,
     cost: 0.2,
     weight: 1.1,
     height: 20,
     width: 30,
     length: 20,
     brand: 'SKYHUB',
     nbm: '98769898',
     categories: [ { code: '01', name: 'SKYHUB HOMOLOGAÇÃO' } ],
     images: 
      [ 'http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg',
        'http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg',
        'http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg' ],
     specifications: 
      [ { key: 'Especicações do Produto PAI',
          value: 'Especificações do Produto PAI' } ],
     variations: 
      [ { sku: '301',
          qty: 100,
          ean: '9876543210987',
          images: 
           [ 'http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg',
             'http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg',
             'http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg' ],
          specifications: [ { key: 'price', value: '15.00' } ] } ],
     variation_attributes: [ 'foo', 'foo', 'foo' ] } }));
req.end();
import http.client

conn = http.client.HTTPSConnection("desenvolvedores.skyhub.com.br")

payload = "{\"product\":{\"sku\":\"Skyhub\",\"name\":\"CRIAR PRODUTO COM MAIS DE UMA VARIAÇÃO\",\"description\":\"CRIAR PRODUTO COM MAIS DE UMA VARIAÇÃO\",\"status\":\"enabled\",\"price\":0.0,\"promotional_price\":0.0,\"cost\":0.2,\"weight\":1.1,\"height\":20,\"width\":30,\"length\":20,\"brand\":\"SKYHUB\",\"nbm\":\"98769898\",\"categories\":[{\"code\":\"01\",\"name\":\"SKYHUB HOMOLOGAÇÃO\"}],\"images\":[\"http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg\",\"http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg\",\"http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg\"],\"specifications\":[{\"key\":\"Especicações do Produto PAI\",\"value\":\"Especificações do Produto PAI\"}],\"variations\":[{\"sku\":\"301\",\"qty\":100,\"ean\":\"9876543210987\",\"images\":[\"http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg\",\"http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg\",\"http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg\"],\"specifications\":[{\"key\":\"price\",\"value\":\"15.00\"}]}],\"variation_attributes\":[\"foo\",\"foo\",\"foo\"]}}"

headers = {
    'accept': "application/json",
    'content-type': "application/json",
    'x-accountmanager-key': "foo",
    'x-user-email': "seu@email.com",
    'x-api-key': "SuaChavedeAPI"
    }

conn.request("POST", "/products", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://desenvolvedores.skyhub.com.br/products",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => "{\"product\":{\"sku\":\"Skyhub\",\"name\":\"CRIAR PRODUTO COM MAIS DE UMA VARIAÇÃO\",\"description\":\"CRIAR PRODUTO COM MAIS DE UMA VARIAÇÃO\",\"status\":\"enabled\",\"price\":0.0,\"promotional_price\":0.0,\"cost\":0.2,\"weight\":1.1,\"height\":20,\"width\":30,\"length\":20,\"brand\":\"SKYHUB\",\"nbm\":\"98769898\",\"categories\":[{\"code\":\"01\",\"name\":\"SKYHUB HOMOLOGAÇÃO\"}],\"images\":[\"http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg\",\"http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg\",\"http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg\"],\"specifications\":[{\"key\":\"Especicações do Produto PAI\",\"value\":\"Especificações do Produto PAI\"}],\"variations\":[{\"sku\":\"301\",\"qty\":100,\"ean\":\"9876543210987\",\"images\":[\"http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg\",\"http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg\",\"http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg\"],\"specifications\":[{\"key\":\"price\",\"value\":\"15.00\"}]}],\"variation_attributes\":[\"foo\",\"foo\",\"foo\"]}}",
  CURLOPT_HTTPHEADER => array(
    "accept: application/json",
    "content-type: application/json",
    "x-accountmanager-key: foo",
    "x-api-key: SuaChavedeAPI",
    "x-user-email: seu@email.com"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "https://desenvolvedores.skyhub.com.br/products"

	payload := strings.NewReader("{\"product\":{\"sku\":\"Skyhub\",\"name\":\"CRIAR PRODUTO COM MAIS DE UMA VARIAÇÃO\",\"description\":\"CRIAR PRODUTO COM MAIS DE UMA VARIAÇÃO\",\"status\":\"enabled\",\"price\":0.0,\"promotional_price\":0.0,\"cost\":0.2,\"weight\":1.1,\"height\":20,\"width\":30,\"length\":20,\"brand\":\"SKYHUB\",\"nbm\":\"98769898\",\"categories\":[{\"code\":\"01\",\"name\":\"SKYHUB HOMOLOGAÇÃO\"}],\"images\":[\"http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg\",\"http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg\",\"http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg\"],\"specifications\":[{\"key\":\"Especicações do Produto PAI\",\"value\":\"Especificações do Produto PAI\"}],\"variations\":[{\"sku\":\"301\",\"qty\":100,\"ean\":\"9876543210987\",\"images\":[\"http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg\",\"http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg\",\"http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg\"],\"specifications\":[{\"key\":\"price\",\"value\":\"15.00\"}]}],\"variation_attributes\":[\"foo\",\"foo\",\"foo\"]}}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("accept", "application/json")
	req.Header.Add("content-type", "application/json")
	req.Header.Add("x-accountmanager-key", "foo")
	req.Header.Add("x-user-email", "seu@email.com")
	req.Header.Add("x-api-key", "SuaChavedeAPI")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Request Headers

Name Type Required Description Example
accept String Required application/json
content-type String Required application/json
x-accountmanager-key String Required

Código identificador da sua integração

foo
x-user-email String Required seu@email.com
x-api-key String Required SuaChavedeAPI

Request Body

Name Type Required Description Example
Variação por preço Object Required
{
  "product": {
  "product": { ... }
Object
    "sku": "Skyhub",
String
    "name": "CRIAR PRODUTO COM MAIS DE UMA VARIAÇÃO",
String
    "description": "CRIAR PRODUTO COM MAIS DE UMA VARIAÇÃO",
String
    "status": "enabled",
String
    "price": 0.0,
Number
    "promotional_price": 0.0,
Number
    "cost": 0.2,
Number
    "weight": 1.1,
Number
    "height": 20,
Integer
    "width": 30,
Integer
    "length": 20,
Integer
    "brand": "SKYHUB",
String
    "nbm": "98769898",
String
    categories: [
Array
      {
      { ... }
Object

Categories

        "code": "01",
String
        "name": "SKYHUB HOMOLOGAÇÃO"
String
      }
    ]
    "images": [
    "http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg",
    "http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg",
    "http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg"
  ],
Array
    specifications: [
Array
      {
      { ... }
Object

Specifications

        "key": "Especicações do Produto PAI",
String
        "value": "Especificações do Produto PAI"
String
      }
    ]
    variations: [
Array
      {
      { ... }
Object

Variations

        "sku": "301",
String
        "qty": 100,
Integer
        "ean": "9876543210987",
String
        "images": [
    "http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg",
    "http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg",
    "http://d26lpennugtm8s.cloudfront.net/stores/154/284/products/camiseta-lisa-verde-bandeira-algodo-p-ao-gg-pronta-entrega-355901-mlb20431777049_092015-o-07fadec89e5ed54705c1b9ab5411dec8-1024-1024.jpg"
  ],
Array
        specifications: [
Array
          {
          { ... }
Object

Specifications

            "key": "price",
String
            "value": "15.00"
String
          }
        ]
      }
    ]
    "variation_attributes": [
    "foo",
    "foo",
    "foo"
  ]
Array
  }
}