Bulk-create SKUs for a style
curl --request POST \
--url http://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/styles/{styleId}/skus \
--header 'Content-Type: application/json' \
--data '
[
{
"number": "<string>",
"state": null,
"colorId": 123,
"sizeId": 123
}
]
'import requests
url = "http://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/styles/{styleId}/skus"
payload = [
{
"number": "<string>",
"state": None,
"colorId": 123,
"sizeId": 123
}
]
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify([{number: '<string>', state: null, colorId: 123, sizeId: 123}])
};
fetch('http://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/styles/{styleId}/skus', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "http://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/styles/{styleId}/skus",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
[
'number' => '<string>',
'state' => null,
'colorId' => 123,
'sizeId' => 123
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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"
)
func main() {
url := "http://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/styles/{styleId}/skus"
payload := strings.NewReader("[\n {\n \"number\": \"<string>\",\n \"state\": null,\n \"colorId\": 123,\n \"sizeId\": 123\n }\n]")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("http://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/styles/{styleId}/skus")
.header("Content-Type", "application/json")
.body("[\n {\n \"number\": \"<string>\",\n \"state\": null,\n \"colorId\": 123,\n \"sizeId\": 123\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("http://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/styles/{styleId}/skus")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "[\n {\n \"number\": \"<string>\",\n \"state\": null,\n \"colorId\": 123,\n \"sizeId\": 123\n }\n]"
response = http.request(request)
puts response.read_body{
"status": "<unknown>",
"code": "<string>",
"data": [
{
"id": 123,
"number": "<string>",
"state": "<unknown>",
"barcode": "<string>",
"barcodeId": 123,
"styleId": 123,
"color": {
"id": 123,
"name": "<string>",
"customId1": "<string>",
"customId2": "<string>",
"state": "<string>"
},
"size": {
"id": 123,
"name": "<string>",
"sizeId": "<string>",
"state": "<unknown>"
},
"customFields": [
{
"id": 123,
"customId1": "<string>",
"type": "<string>",
"name": "<string>",
"value": {
"id": 123,
"value": "<string>",
"customId": "<string>"
},
"values": [
{
"id": 123,
"value": "<string>",
"customId": "<string>"
}
]
}
],
"prices": [
{
"id": 123,
"variantType": "<unknown>",
"futureDate": "2023-11-07T05:31:56Z",
"brandComments": "<string>",
"supplierComments": "<string>",
"futurePriceBrandComments": "<string>",
"futurePriceSupplierComments": "<string>",
"priceNegotiations": [
{
"value": 123,
"futurePrice": 123,
"priceCalculation": {
"id": 123,
"ref": "<string>",
"name": "<string>",
"type": "<unknown>",
"currency": {
"id": 123,
"code": "<string>",
"name": "<string>"
},
"formula": "<string>",
"position": 123,
"properties": [
"<string>"
]
}
}
],
"properties": [
"<string>"
]
}
],
"properties": [
"<string>"
]
}
]
}{
"status": "<unknown>",
"code": "<string>",
"error": {
"operation": "<string>",
"total_items": 123,
"failed_items": 123,
"summary": "<string>",
"details": [
{
"type": "<string>",
"field": "<string>",
"value": "<string>"
}
]
}
}{
"status": "<unknown>",
"code": "<string>",
"error": {
"details": [
{
"type": "<string>",
"field": "<string>",
"value": "<string>"
}
]
}
}{
"status": "<unknown>",
"code": "<string>",
"error": {
"operation": "<string>",
"total_items": 123,
"failed_items": 123,
"summary": "<string>",
"details": [
{
"type": "<string>",
"field": "<string>",
"value": "<string>"
}
]
}
}{
"status": "<unknown>",
"code": "<string>",
"error": {
"operation": "<string>",
"total_items": 123,
"failed_items": 123,
"summary": "<string>",
"details": [
{
"type": "<string>",
"field": "<string>",
"value": "<string>"
}
]
}
}{
"status": "<unknown>",
"code": "<string>",
"error": {
"operation": "<string>",
"total_items": 123,
"failed_items": 123,
"summary": "<string>",
"details": [
{
"type": "<string>",
"field": "<string>",
"value": "<string>"
}
]
}
}{
"status": "<unknown>",
"code": "<string>",
"error": {
"details": [
{
"type": "<string>",
"field": "<string>",
"value": "<string>"
}
]
}
}StyleSkus
Bulk-create SKUs for a style
Creates one or more SKUs in a single all-or-nothing transaction. Body must be an array. Capped at 200 items per request. Requires Barcodes module + barcodes permission. A style the caller cannot reach (another organization or nonexistent) returns 404; 403 if the caller lacks barcodes permission.
POST
/
api
/
styles
/
{styleId}
/
skus
Bulk-create SKUs for a style
curl --request POST \
--url http://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/styles/{styleId}/skus \
--header 'Content-Type: application/json' \
--data '
[
{
"number": "<string>",
"state": null,
"colorId": 123,
"sizeId": 123
}
]
'import requests
url = "http://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/styles/{styleId}/skus"
payload = [
{
"number": "<string>",
"state": None,
"colorId": 123,
"sizeId": 123
}
]
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify([{number: '<string>', state: null, colorId: 123, sizeId: 123}])
};
fetch('http://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/styles/{styleId}/skus', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "http://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/styles/{styleId}/skus",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
[
'number' => '<string>',
'state' => null,
'colorId' => 123,
'sizeId' => 123
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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"
)
func main() {
url := "http://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/styles/{styleId}/skus"
payload := strings.NewReader("[\n {\n \"number\": \"<string>\",\n \"state\": null,\n \"colorId\": 123,\n \"sizeId\": 123\n }\n]")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("http://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/styles/{styleId}/skus")
.header("Content-Type", "application/json")
.body("[\n {\n \"number\": \"<string>\",\n \"state\": null,\n \"colorId\": 123,\n \"sizeId\": 123\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("http://ca-delogue-service-prod.bravepebble-62e34dbe.westeurope.azurecontainerapps.io/api/styles/{styleId}/skus")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "[\n {\n \"number\": \"<string>\",\n \"state\": null,\n \"colorId\": 123,\n \"sizeId\": 123\n }\n]"
response = http.request(request)
puts response.read_body{
"status": "<unknown>",
"code": "<string>",
"data": [
{
"id": 123,
"number": "<string>",
"state": "<unknown>",
"barcode": "<string>",
"barcodeId": 123,
"styleId": 123,
"color": {
"id": 123,
"name": "<string>",
"customId1": "<string>",
"customId2": "<string>",
"state": "<string>"
},
"size": {
"id": 123,
"name": "<string>",
"sizeId": "<string>",
"state": "<unknown>"
},
"customFields": [
{
"id": 123,
"customId1": "<string>",
"type": "<string>",
"name": "<string>",
"value": {
"id": 123,
"value": "<string>",
"customId": "<string>"
},
"values": [
{
"id": 123,
"value": "<string>",
"customId": "<string>"
}
]
}
],
"prices": [
{
"id": 123,
"variantType": "<unknown>",
"futureDate": "2023-11-07T05:31:56Z",
"brandComments": "<string>",
"supplierComments": "<string>",
"futurePriceBrandComments": "<string>",
"futurePriceSupplierComments": "<string>",
"priceNegotiations": [
{
"value": 123,
"futurePrice": 123,
"priceCalculation": {
"id": 123,
"ref": "<string>",
"name": "<string>",
"type": "<unknown>",
"currency": {
"id": 123,
"code": "<string>",
"name": "<string>"
},
"formula": "<string>",
"position": 123,
"properties": [
"<string>"
]
}
}
],
"properties": [
"<string>"
]
}
],
"properties": [
"<string>"
]
}
]
}{
"status": "<unknown>",
"code": "<string>",
"error": {
"operation": "<string>",
"total_items": 123,
"failed_items": 123,
"summary": "<string>",
"details": [
{
"type": "<string>",
"field": "<string>",
"value": "<string>"
}
]
}
}{
"status": "<unknown>",
"code": "<string>",
"error": {
"details": [
{
"type": "<string>",
"field": "<string>",
"value": "<string>"
}
]
}
}{
"status": "<unknown>",
"code": "<string>",
"error": {
"operation": "<string>",
"total_items": 123,
"failed_items": 123,
"summary": "<string>",
"details": [
{
"type": "<string>",
"field": "<string>",
"value": "<string>"
}
]
}
}{
"status": "<unknown>",
"code": "<string>",
"error": {
"operation": "<string>",
"total_items": 123,
"failed_items": 123,
"summary": "<string>",
"details": [
{
"type": "<string>",
"field": "<string>",
"value": "<string>"
}
]
}
}{
"status": "<unknown>",
"code": "<string>",
"error": {
"operation": "<string>",
"total_items": 123,
"failed_items": 123,
"summary": "<string>",
"details": [
{
"type": "<string>",
"field": "<string>",
"value": "<string>"
}
]
}
}{
"status": "<unknown>",
"code": "<string>",
"error": {
"details": [
{
"type": "<string>",
"field": "<string>",
"value": "<string>"
}
]
}
}Path Parameters
Body
application/jsontext/jsonapplication/*+json
⌘I