MENU navbar-image

Introduction

EcommerceN API Reference

This documentation aims to provide all the information you need to work with our API.

Authenticating requests

To authenticate requests, include an Authorization header with the value "Bearer {YOUR_AUTH_KEY}".

All authenticated endpoints are marked with a requires authentication badge in the documentation below.

You can retrieve your token by contacting us.

Barcode

POST erp/products/barcode

requires authentication

Example request:
curl --request POST \
    "http://api.your_site.ecommercen.com/erp/products/barcode" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"product\": 1,
    \"productCode\": \"15233\",
    \"barcode\": \"033984003804\"
}"
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/products/barcode"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "product": 1,
    "productCode": "15233",
    "barcode": "033984003804"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'http://api.your_site.ecommercen.com/erp/products/barcode',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'product' => 1,
            'productCode' => '15233',
            'barcode' => '033984003804',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/products/barcode'
payload = {
    "product": 1,
    "productCode": "15233",
    "barcode": "033984003804"
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (201):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 400
x-ratelimit-remaining: 380
access-control-allow-origin: *
 

{
    "data": {
        "id": 217,
        "product": 1,
        "productCode": "15233",
        "barcode": "033984003804"
    }
}
 

Request   

POST erp/products/barcode

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

product   integer   

The product id that barcode belongs to. Example: 1

productCode   string   

Any product code of the product that barcode belongs to. Example: 15233

barcode   string   

The barcode of the product. Example: 033984003804

GET erp/products/barcode/{id}

requires authentication

Example request:
curl --request GET \
    --get "http://api.your_site.ecommercen.com/erp/products/barcode/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/products/barcode/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://api.your_site.ecommercen.com/erp/products/barcode/1',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/products/barcode/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 400
x-ratelimit-remaining: 379
access-control-allow-origin: *
 

{
    "data": {
        "id": 1,
        "product": 1,
        "productCode": "1814682453042",
        "barcode": "8144003528597"
    }
}
 

Request   

GET erp/products/barcode/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The barcode id. Example: 1

PUT erp/products/barcode/{id}

requires authentication

Example request:
curl --request PUT \
    "http://api.your_site.ecommercen.com/erp/products/barcode/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"productCode\": \"15233\",
    \"barcode\": \"033984003804\"
}"
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/products/barcode/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "productCode": "15233",
    "barcode": "033984003804"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
    'http://api.your_site.ecommercen.com/erp/products/barcode/1',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'productCode' => '15233',
            'barcode' => '033984003804',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/products/barcode/1'
payload = {
    "productCode": "15233",
    "barcode": "033984003804"
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 400
x-ratelimit-remaining: 378
access-control-allow-origin: *
 

{
    "data": {
        "id": 1,
        "product": 1,
        "productCode": "15233",
        "barcode": "033984003804"
    }
}
 

Request   

PUT erp/products/barcode/{id}

PATCH erp/products/barcode/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The barcode id. Example: 1

Body Parameters

productCode   string  optional  

Any product code of the product that barcode belongs to. Example: 15233

barcode   string  optional  

The barcode of the product. Example: 033984003804

DELETE erp/products/barcode/{id}

requires authentication

Example request:
curl --request DELETE \
    "http://api.your_site.ecommercen.com/erp/products/barcode/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/products/barcode/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'http://api.your_site.ecommercen.com/erp/products/barcode/1',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/products/barcode/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 400
x-ratelimit-remaining: 377
access-control-allow-origin: *
 

{
    "message": "Barcode with id 1 deleted"
}
 

Request   

DELETE erp/products/barcode/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The barcode id. Example: 1

Get product collection

requires authentication

Example request:
curl --request GET \
    --get "http://api.your_site.ecommercen.com/erp/products/barcode?sort=product&page=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/products/barcode"
);

const params = {
    "sort": "product",
    "page": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://api.your_site.ecommercen.com/erp/products/barcode',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'sort' => 'product',
            'page' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/products/barcode'
params = {
  'sort': 'product',
  'page': '1',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 400
x-ratelimit-remaining: 381
access-control-allow-origin: *
 

{
    "data": [
        {
            "id": 1,
            "product": 1,
            "productCode": "1814682453042",
            "barcode": "8144003528597"
        },
        {
            "id": 2,
            "product": 1,
            "productCode": "1814682453042",
            "barcode": "6544922784951"
        },
        {
            "id": 3,
            "product": 1,
            "productCode": "1814682453042",
            "barcode": "4508194085361"
        },
        {
            "id": 4,
            "product": 1,
            "productCode": "1814682453042",
            "barcode": "0473300618402"
        },
        {
            "id": 5,
            "product": 1,
            "productCode": "1814682453042",
            "barcode": "2344103388060"
        },
        {
            "id": 6,
            "product": 1,
            "productCode": "1814682453042",
            "barcode": "6731210799395"
        },
        {
            "id": 12,
            "product": 2,
            "productCode": "3648572536946",
            "barcode": "3534841943518"
        },
        {
            "id": 11,
            "product": 2,
            "productCode": "3648572536946",
            "barcode": "4214316099009"
        },
        {
            "id": 10,
            "product": 2,
            "productCode": "3648572536946",
            "barcode": "8541536276535"
        },
        {
            "id": 9,
            "product": 2,
            "productCode": "3648572536946",
            "barcode": "8758627079160"
        },
        {
            "id": 8,
            "product": 2,
            "productCode": "3648572536946",
            "barcode": "8908590316834"
        },
        {
            "id": 7,
            "product": 2,
            "productCode": "3648572536946",
            "barcode": "8601407198080"
        },
        {
            "id": 14,
            "product": 3,
            "productCode": "ERP-1",
            "barcode": "7477529802225"
        },
        {
            "id": 15,
            "product": 3,
            "productCode": "ERP-1",
            "barcode": "1973715008915"
        },
        {
            "id": 16,
            "product": 3,
            "productCode": "ERP-1",
            "barcode": "6109749977421"
        }
    ],
    "links": {
        "first": "http://your_site.local/erp/products/barcode?page=1",
        "last": "http://your_site.local/erp/products/barcode?page=15",
        "prev": null,
        "next": "http://your_site.local/erp/products/barcode?page=2"
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 15,
        "links": [
            {
                "url": null,
                "label": "« Previous",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/products/barcode?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": "http://your_site.local/erp/products/barcode?page=2",
                "label": "2",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/products/barcode?page=3",
                "label": "3",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/products/barcode?page=4",
                "label": "4",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/products/barcode?page=5",
                "label": "5",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/products/barcode?page=6",
                "label": "6",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/products/barcode?page=7",
                "label": "7",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/products/barcode?page=8",
                "label": "8",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/products/barcode?page=9",
                "label": "9",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/products/barcode?page=10",
                "label": "10",
                "active": false
            },
            {
                "url": null,
                "label": "...",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/products/barcode?page=14",
                "label": "14",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/products/barcode?page=15",
                "label": "15",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/products/barcode?page=2",
                "label": "Next »",
                "active": false
            }
        ],
        "path": "http://your_site.local/erp/products/barcode",
        "per_page": 15,
        "to": 15,
        "total": 216
    }
}
 

Request   

GET erp/products/barcode

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

filter[id]   integer  optional  

barcode ids to filter. Exact match.

filter[product]   integer  optional  

product ids to filter. Exact match.

filter[productCode]   string  optional  

product codes to filter. Exact match.

filter[barcode]   string  optional  

barcodes to filter. Partial match.

sort   string  optional  

the sorting order. To sort ascending just use the name of the field, to sort descending use - before name. Available sorts are id, product, productCode. Example: product

page   integer  optional  

the requested page of the filtered results. Example: 1

Category

Get category collection

requires authentication

Example request:
curl --request GET \
    --get "http://api.your_site.ecommercen.com/erp/products/categories?sort=name.slug&page=2" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/products/categories"
);

const params = {
    "sort": "name.slug",
    "page": "2",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://api.your_site.ecommercen.com/erp/products/categories',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'sort' => 'name.slug',
            'page' => '2',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/products/categories'
params = {
  'sort': 'name.slug',
  'page': '2',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 400
x-ratelimit-remaining: 396
access-control-allow-origin: *
 

{
    "data": [
        {
            "id": 16,
            "parent": 1,
            "order": 9602488,
            "image": "http://your_site.local/files/product_category/BbYa1D55QR9w784eIxVLUAT1X7ZuW0Y1ZJRhsppC.jpg",
            "published": false,
            "isSensitive": false,
            "refCode": null,
            "name": {
                "el": "Dolore et voluptates quam illo ducimus molestiae laboriosam."
            },
            "slug": {
                "el": "nam-nemo-quis-possimus-animi-reprehenderit"
            },
            "content": {
                "el": "Qui quibusdam sit quam repellat qui. Mollitia ipsam impedit tenetur. Blanditiis consequatur voluptate consequatur et voluptatum alias quis.\n\nAutem quisquam quos delectus. Nobis mollitia nisi architecto fugit dolorem ex occaecati.\n\nOmnis odio quis veritatis ut quos deleniti ratione. Inventore distinctio repellat fugit at aliquam qui. Sint rerum recusandae molestiae doloremque asperiores maxime officia. Beatae possimus sit sint aut."
            }
        },
        {
            "id": 17,
            "parent": 4,
            "order": 9982,
            "image": "http://your_site.local/files/product_category/lgNuYljf4vByw3p7YGU2ppcT8553GHX4HTD2MyJJ.jpg",
            "published": true,
            "isSensitive": false,
            "refCode": null,
            "name": {
                "el": "Tempora molestiae quia excepturi praesentium quaerat iusto."
            },
            "slug": {
                "el": "illo-aut-qui-blanditiis-rerum-nostrum-provident-nesciunt-ducimus"
            },
            "content": {
                "el": "Doloremque accusantium vel deserunt deleniti at nesciunt velit. Et corrupti consequuntur expedita. Et nihil est sint quasi. Quis sed voluptatum quibusdam laborum voluptatibus magni. Sequi voluptatibus quas commodi dolor qui.\n\nEt velit dolor voluptatum tempora. Temporibus in nam doloribus. Omnis qui praesentium adipisci aut aperiam libero. Eaque possimus aspernatur et enim.\n\nBlanditiis eos ut est. Et ex quos id dicta ut. Et natus ut vero voluptas dolor repellat. Excepturi dolorem perspiciatis autem ex."
            }
        },
        {
            "id": 18,
            "parent": 4,
            "order": 62826785,
            "image": "http://your_site.local/files/product_category/McunaQPuUlVrDNaYzcVqWQnVlNHf4vXjpxRPFmIw.jpg",
            "published": true,
            "isSensitive": false,
            "refCode": null,
            "name": {
                "el": "Dolores saepe laborum non adipisci fugit fugit ut."
            },
            "slug": {
                "el": "voluptatem-impedit-magni-ex-magnam-placeat-vitae-voluptates"
            },
            "content": {
                "el": "Nesciunt possimus distinctio alias inventore. Ut quia expedita aperiam vel expedita dicta recusandae et. Facere sunt magnam incidunt.\n\nEst velit qui molestiae consequatur. Quis aut quas sint suscipit aspernatur. Cum autem non earum sit exercitationem.\n\nAsperiores quibusdam sed numquam aut vero nulla. Magni quibusdam perspiciatis dolorem. Sint expedita magni culpa corrupti distinctio fuga esse ullam. Eum laborum voluptatum sit neque dolorem."
            }
        },
        {
            "id": 19,
            "parent": 2,
            "order": 1,
            "image": "http://your_site.local/files/product_category/aTXl6JzLpuDrcBuHNCLfTaSXfAJKrRdJcccvc8Az.jpg",
            "published": true,
            "isSensitive": false,
            "refCode": null,
            "name": {
                "el": "Ut sunt provident rem eum."
            },
            "slug": {
                "el": "cupiditate-in-illo-sint-corrupti"
            },
            "content": {
                "el": "Quia est sapiente et qui qui. Voluptatem veniam ducimus magnam eum esse temporibus velit. In dignissimos voluptate repellat quia voluptatem.\n\nExcepturi nesciunt voluptates aut blanditiis harum eligendi. Rem praesentium molestiae ipsa numquam vitae. Autem ipsum at est minus.\n\nEius labore aperiam totam. Voluptatum ipsam molestiae magnam ut asperiores. Enim sapiente provident veritatis perferendis maxime nostrum quos beatae. Sed placeat accusantium dicta cum magni est harum."
            }
        },
        {
            "id": 20,
            "parent": 3,
            "order": 66,
            "image": "http://your_site.local/files/product_category/VA9G2ZDIo5wnI1rw4tFCRqkVpXcYK6Y8BtV8mVzl.jpg",
            "published": true,
            "isSensitive": false,
            "refCode": null,
            "name": {
                "el": "Quaerat est earum labore assumenda velit tempore."
            },
            "slug": {
                "el": "soluta-et-cupiditate-nulla-aspernatur"
            },
            "content": {
                "el": "Vel numquam praesentium aut magnam quo. Delectus facere occaecati officiis voluptatem assumenda quae voluptas. Rerum dolores non quaerat commodi. Quisquam eos aut placeat aut.\n\nDolores consequatur placeat saepe impedit sit animi sit cumque. Ipsam dicta nisi non voluptatibus explicabo sequi.\n\nPerferendis est consequatur debitis enim et eum dolores. Esse et fugit perferendis provident odio voluptas et. Neque accusantium quia facere deleniti et soluta nisi."
            }
        },
        {
            "id": 21,
            "parent": 3,
            "order": 5938,
            "image": "http://your_site.local/files/product_category/zsu1w89QI8RU5KfR0tcJJ4qAEE4jNQkNK6AYA3x1.jpg",
            "published": true,
            "isSensitive": false,
            "refCode": null,
            "name": {
                "el": "Odio vitae adipisci quibusdam omnis accusamus et omnis vero."
            },
            "slug": {
                "el": "impedit-repudiandae-et-unde-doloribus-tempore-facere-consectetur"
            },
            "content": {
                "el": "Sed et et amet beatae quidem repudiandae molestiae voluptas. Non ut modi eius architecto praesentium ratione officiis illum. Ducimus eligendi sequi quos earum. Officiis eveniet optio quibusdam in exercitationem harum recusandae.\n\nDolor rem expedita repellat voluptas officia at. Nisi quidem voluptatibus autem vitae architecto ab. Et adipisci quisquam consectetur alias et. Nulla id non ut et.\n\nEt voluptatem delectus voluptatem labore enim. Sit ab tenetur ipsum quisquam. Eos dicta sequi omnis vero. Harum id et voluptatem mollitia."
            }
        },
        {
            "id": 22,
            "parent": 2,
            "order": 4,
            "image": "http://your_site.local/files/product_category/sOadCcCaGZZs1KtjPvJnd3VSUjqzN5RyySvGjcyH.jpg",
            "published": true,
            "isSensitive": true,
            "refCode": null,
            "name": {
                "el": "Aspernatur nostrum ab reiciendis et quia eaque praesentium."
            },
            "slug": {
                "el": "aperiam-commodi-et-reprehenderit-consequuntur-corrupti"
            },
            "content": {
                "el": "Ex vitae sed sint est sed. Reprehenderit harum tenetur temporibus et qui incidunt deserunt recusandae. Dolorum asperiores ipsum dolorum facilis quam iure non. Maxime quia blanditiis enim quo et molestiae rerum recusandae.\n\nLibero iste optio quo neque et nesciunt. Sit praesentium vitae ullam cum hic asperiores. Eveniet corrupti cumque modi voluptatem porro commodi ex commodi. Reiciendis eum et voluptate tempora.\n\nSint numquam quis porro. Excepturi repellendus recusandae numquam dolore tempora. Laborum rerum sint dolor consequatur. Id aut vero aut quaerat mollitia molestiae minus."
            }
        },
        {
            "id": 23,
            "parent": 2,
            "order": 46,
            "image": "http://your_site.local/files/product_category/4iaxnuxEFv2sQeiX8LOzANc5eMkROnYDWi0mOlw3.jpg",
            "published": true,
            "isSensitive": false,
            "refCode": null,
            "name": {
                "el": "Fuga suscipit sit et tempora."
            },
            "slug": {
                "el": "officia-porro-voluptatem-quasi-ut"
            },
            "content": {
                "el": "Quisquam sed aliquam vitae vel. Nisi qui ipsa laboriosam in corporis vero. Itaque fugiat nemo consequuntur minus commodi.\n\nUt vel eum et non eos aut unde. Soluta similique est est accusamus. Quo quam totam porro doloremque. Sed saepe culpa cum non placeat.\n\nQuaerat est omnis corrupti earum. Aut ipsa dolorem sed eum soluta qui. Distinctio quibusdam accusamus porro id deleniti quo."
            }
        },
        {
            "id": 24,
            "parent": 1,
            "order": 870,
            "image": "http://your_site.local/files/product_category/u2BvlnARj6U0vHMKhDLzzdkMONkTmrKf503q1aY8.jpg",
            "published": false,
            "isSensitive": true,
            "refCode": null,
            "name": {
                "el": "Laboriosam natus deleniti a eum."
            },
            "slug": {
                "el": "qui-numquam-sunt-libero-dolorem-vel-eius-sapiente"
            },
            "content": {
                "el": "Doloremque inventore et quos maiores et nostrum minus ipsum. Et eos laboriosam consequuntur. Iusto placeat ratione eos velit.\n\nAtque quo aut sequi nam. Non dicta suscipit aut aut ad. Aliquam minus odio deleniti tempora cum dicta. Fugit sequi qui at voluptatum.\n\nVoluptates necessitatibus non sint perferendis voluptas nostrum in. Dolorem explicabo facilis ratione animi et. Harum animi fugit nobis ea sit ipsam dolores laudantium."
            }
        },
        {
            "id": 25,
            "parent": 2,
            "order": 1767481,
            "image": "http://your_site.local/files/product_category/WjChU6IRIHs6Gr30wQdwfBMVzzHMn9a4Sdwd8QyF.jpg",
            "published": false,
            "isSensitive": false,
            "refCode": null,
            "name": {
                "el": "Odit illum quia ducimus accusamus aut consequatur."
            },
            "slug": {
                "el": "ipsa-reprehenderit-rem-suscipit-molestias-quae-corporis"
            },
            "content": {
                "el": "Nihil iste et tempore rerum ea. Quia nemo et sunt. Tenetur neque eos iste saepe enim aut vitae dicta.\n\nDeleniti in corporis nostrum. Rerum ipsa cumque ut necessitatibus corporis voluptatibus. Consequuntur reprehenderit omnis velit. Placeat expedita non deleniti non eaque.\n\nAliquam sed eveniet itaque voluptate sunt. Animi aspernatur molestias omnis sapiente. Iure consequatur tempore error vel occaecati eaque. Fuga non ut non dolorem voluptatem eligendi voluptatem."
            }
        },
        {
            "id": 26,
            "parent": 13,
            "order": 1660043,
            "image": "http://your_site.local/files/product_category/X1C7Mn3Pee9zfyLm6oQ8IN1uSTxXHoOGEBrTQfDE.jpg",
            "published": true,
            "isSensitive": false,
            "refCode": null,
            "name": {
                "el": "Fuga id iure ab veniam."
            },
            "slug": {
                "el": "non-sit-dolor-quidem-accusantium-autem"
            },
            "content": {
                "el": "Quis nisi illum aperiam est tempora quidem dicta. Ut aut sed sed ipsa distinctio. Illum et odio reiciendis et qui sunt ut. Voluptates quisquam et ut et quod non.\n\nEst a reprehenderit nihil sed inventore sunt. Harum voluptas qui quasi et dolorem quia laboriosam. Fugit vel quo eos sed ipsa sed et.\n\nEt aliquid ut consequatur et. Sed quo beatae eum repudiandae pariatur amet architecto ipsam. At non pariatur deleniti libero dicta impedit accusamus. Omnis laudantium et perferendis. Cum quod consequatur voluptas sit."
            }
        },
        {
            "id": 27,
            "parent": 12,
            "order": 4,
            "image": "http://your_site.local/files/product_category/pH98CkDyk3BaX55bxQl3JkeBvVx03fstwifFHdhD.jpg",
            "published": false,
            "isSensitive": true,
            "refCode": null,
            "name": {
                "el": "Exercitationem illum expedita quibusdam porro animi a id."
            },
            "slug": {
                "el": "aut-sint-voluptas-doloremque-accusantium-sunt-culpa"
            },
            "content": {
                "el": "Sint quisquam est qui est ex aut voluptatum. Asperiores voluptas sint optio in. Velit quisquam quod maxime aliquam qui.\n\nQuo magni placeat magni porro. Velit eveniet quas nihil at. Quia quis sed sunt sit ducimus delectus. Amet expedita similique qui iste.\n\nAut earum nostrum possimus quas delectus eaque. Commodi enim ut quasi ut. Suscipit consequatur sint quam odit. Nam veniam consequuntur possimus."
            }
        },
        {
            "id": 28,
            "parent": 23,
            "order": 76,
            "image": "http://your_site.local/files/product_category/70dCXIoqDqDzm0gC9ZQpJGdIu4WoHQEoGTY63yoA.jpg",
            "published": false,
            "isSensitive": false,
            "refCode": null,
            "name": {
                "el": "Beatae aut corporis et quisquam assumenda excepturi."
            },
            "slug": {
                "el": "molestiae-quia-minus-et-non"
            },
            "content": {
                "el": "Suscipit consectetur aut vel molestiae. Et earum consequatur distinctio qui sit quam minus. Perspiciatis ex quia quia repellendus nihil doloremque.\n\nAtque pariatur explicabo mollitia illum eveniet aspernatur quo. Et molestiae esse placeat tenetur maiores rem. Praesentium numquam et qui qui non. Facere rem iste reiciendis inventore nihil ullam.\n\nQuis voluptas et quis illo omnis qui. Dolorum culpa accusamus ut laborum optio. Saepe quos laborum nemo ut."
            }
        },
        {
            "id": 29,
            "parent": 22,
            "order": 45,
            "image": "http://your_site.local/files/product_category/ot6LtVgVgT91oCjgSojf1MEX22sPzcia59C2o6vk.jpg",
            "published": true,
            "isSensitive": true,
            "refCode": null,
            "name": {
                "el": "Dignissimos aperiam quasi ducimus eius alias voluptatibus ea."
            },
            "slug": {
                "el": "deserunt-suscipit-natus-et-quia-saepe"
            },
            "content": {
                "el": "Pariatur sit numquam aut ullam in. Id quia est delectus sapiente rerum sit. Dicta error quaerat enim ducimus maiores quidem deleniti quibusdam.\n\nSed dolorem vero optio sit voluptate ex. Asperiores deserunt et illo laudantium. Non ipsam veniam debitis aut. Ut id ut omnis et occaecati ex non.\n\nDolorum deserunt tempora corporis aut laborum magnam. Et exercitationem voluptas saepe unde. Architecto blanditiis rerum non molestias omnis voluptas. Et molestiae quia fuga consequatur."
            }
        },
        {
            "id": 30,
            "parent": 14,
            "order": 952444543,
            "image": "http://your_site.local/files/product_category/GUS1rQ31Xhx52RsTQdVB9Ndhd5dMeWImtnEdjnqH.jpg",
            "published": false,
            "isSensitive": false,
            "refCode": null,
            "name": {
                "el": "Cupiditate facere repellendus ea at."
            },
            "slug": {
                "el": "accusamus-quasi-dolorem-eius-optio"
            },
            "content": {
                "el": "Voluptas voluptate ipsum voluptatem quos earum deserunt ipsam. Quo saepe nesciunt mollitia. Possimus earum in amet quibusdam quia. Eveniet voluptates id non saepe labore.\n\nTenetur nihil totam dignissimos autem dolorem. Omnis ut dolor dolor officia dolores commodi necessitatibus hic. Magnam quidem inventore occaecati ullam. Explicabo autem molestiae exercitationem dolore ipsum commodi ut.\n\nQuia non enim ut est nesciunt id. Ea ad natus assumenda aut suscipit. A quis exercitationem error dolorem quis laboriosam enim nemo. Aut nihil officiis non."
            }
        }
    ],
    "links": {
        "first": "http://your_site.local/erp/products/categories?page=1",
        "last": "http://your_site.local/erp/products/categories?page=5",
        "prev": "http://your_site.local/erp/products/categories?page=1",
        "next": "http://your_site.local/erp/products/categories?page=3"
    },
    "meta": {
        "current_page": 2,
        "from": 16,
        "last_page": 5,
        "links": [
            {
                "url": "http://your_site.local/erp/products/categories?page=1",
                "label": "« Previous",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/products/categories?page=1",
                "label": "1",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/products/categories?page=2",
                "label": "2",
                "active": true
            },
            {
                "url": "http://your_site.local/erp/products/categories?page=3",
                "label": "3",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/products/categories?page=4",
                "label": "4",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/products/categories?page=5",
                "label": "5",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/products/categories?page=3",
                "label": "Next »",
                "active": false
            }
        ],
        "path": "http://your_site.local/erp/products/categories",
        "per_page": 15,
        "to": 30,
        "total": 75
    }
}
 

Request   

GET erp/products/categories

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

filter[id]   string  optional  

categories ids to filter. Exact match.

filter[parent]   string  optional  

Parent category ids. Exact match.

filter[published]   boolean  optional  

Category marked as published. Exact match.

filter[refCode]   string  optional  

Reference code. Exact match.

filter[slug.el]   string  optional  

Category slugs to filter. Exact match.

filter[name.el]   string  optional  

Category names to filter. Partial match.

sort   string  optional  

the sorting order. To sort ascending just use the name of the field, to sort descending use - before name. Available sorts are id, order, name., slug.. Example: name.slug

page   integer  optional  

the requested page of the filtered results. Example: 2

Store Category

requires authentication

Example request:
curl --request POST \
    "http://api.your_site.ecommercen.com/erp/products/categories" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"parent\": 1,
    \"image\": \"https:\\/\\/bitbucket.org\\/devteamadvisable\\/assets\\/raw\\/0a1100b7126045e233c8bdb0bf0c24336ef0209e\\/api\\/images\\/no_photo.jpg\",
    \"published\": true,
    \"name\": {
        \"el\": \"Cosmetics\"
    }
}"
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/products/categories"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "parent": 1,
    "image": "https:\/\/bitbucket.org\/devteamadvisable\/assets\/raw\/0a1100b7126045e233c8bdb0bf0c24336ef0209e\/api\/images\/no_photo.jpg",
    "published": true,
    "name": {
        "el": "Cosmetics"
    }
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'http://api.your_site.ecommercen.com/erp/products/categories',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'parent' => 1,
            'image' => 'https://bitbucket.org/devteamadvisable/assets/raw/0a1100b7126045e233c8bdb0bf0c24336ef0209e/api/images/no_photo.jpg',
            'published' => true,
            'name' => [
                'el' => 'Cosmetics',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/products/categories'
payload = {
    "parent": 1,
    "image": "https:\/\/bitbucket.org\/devteamadvisable\/assets\/raw\/0a1100b7126045e233c8bdb0bf0c24336ef0209e\/api\/images\/no_photo.jpg",
    "published": true,
    "name": {
        "el": "Cosmetics"
    }
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (201):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 400
x-ratelimit-remaining: 395
access-control-allow-origin: *
 

{
    "data": {
        "id": 76,
        "parent": 1,
        "order": 0,
        "image": "http://your_site.local/files/product_category/5z8B95zdN43yAIPweKfdBgZvcIMqyM9uI53cXR41.jpg",
        "published": true,
        "isSensitive": false,
        "refCode": null,
        "name": {
            "el": "Cosmetics"
        },
        "slug": {
            "el": "veritatis-maxime-explicabo-non-amet-sed/cosmetics"
        },
        "content": {
            "el": ""
        }
    }
}
 

Request   

POST erp/products/categories

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

parent   integer  optional  

The category's parent id. Example: 1

order   integer  optional  

The sorting order.

image   string  optional  

The public image url to get. Example: https://bitbucket.org/devteamadvisable/assets/raw/0a1100b7126045e233c8bdb0bf0c24336ef0209e/api/images/no_photo.jpg

published   boolean  optional  

Whether the category is published. Example: true

isSensitive   boolean  optional  

Whether the category contains sensitive products:

name   object  optional  
el   string  optional  

The category name. Example: Cosmetics

slug   object.  optional  
el   string  optional  

The category slug which is auto generated if not supplied.

Get Category Resource

requires authentication

Example request:
curl --request GET \
    --get "http://api.your_site.ecommercen.com/erp/products/categories/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/products/categories/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://api.your_site.ecommercen.com/erp/products/categories/1',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/products/categories/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 400
x-ratelimit-remaining: 394
access-control-allow-origin: *
 

{
    "data": {
        "id": 1,
        "parent": 0,
        "order": 134063,
        "image": "http://your_site.local/files/product_category/NDml661u7sfZtenrlolKzfQSV8V8LinYG2QAGZCc.jpg",
        "published": true,
        "isSensitive": true,
        "refCode": null,
        "name": {
            "el": "Nemo nobis mollitia ad qui totam quis."
        },
        "slug": {
            "el": "veritatis-maxime-explicabo-non-amet-sed"
        },
        "content": {
            "el": "Consequatur debitis voluptatem non non ex et asperiores. Nobis ut omnis architecto laboriosam quaerat sunt. Laborum et illo commodi ipsam aliquid.\n\nEum illo tenetur id harum placeat itaque. Qui distinctio odio ea a doloremque quae doloremque. Adipisci suscipit explicabo quod soluta molestiae et.\n\nSint nam nihil unde. Quia fugit fuga tempore doloribus mollitia cupiditate. Aspernatur dolorem numquam rerum aliquam et. Culpa nihil voluptatibus animi non."
        }
    }
}
 

Request   

GET erp/products/categories/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The category's id. Example: 1

Update Category

requires authentication

Example request:
curl --request PUT \
    "http://api.your_site.ecommercen.com/erp/products/categories/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"order\": 6,
    \"image\": \"https:\\/\\/bitbucket.org\\/devteamadvisable\\/assets\\/raw\\/0a1100b7126045e233c8bdb0bf0c24336ef0209e\\/api\\/images\\/no_photo.jpg\",
    \"published\": true,
    \"name\": {
        \"el\": \"Cosmetics\"
    }
}"
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/products/categories/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "order": 6,
    "image": "https:\/\/bitbucket.org\/devteamadvisable\/assets\/raw\/0a1100b7126045e233c8bdb0bf0c24336ef0209e\/api\/images\/no_photo.jpg",
    "published": true,
    "name": {
        "el": "Cosmetics"
    }
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
    'http://api.your_site.ecommercen.com/erp/products/categories/1',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'order' => 6,
            'image' => 'https://bitbucket.org/devteamadvisable/assets/raw/0a1100b7126045e233c8bdb0bf0c24336ef0209e/api/images/no_photo.jpg',
            'published' => true,
            'name' => [
                'el' => 'Cosmetics',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/products/categories/1'
payload = {
    "order": 6,
    "image": "https:\/\/bitbucket.org\/devteamadvisable\/assets\/raw\/0a1100b7126045e233c8bdb0bf0c24336ef0209e\/api\/images\/no_photo.jpg",
    "published": true,
    "name": {
        "el": "Cosmetics"
    }
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 400
x-ratelimit-remaining: 393
access-control-allow-origin: *
 

{
    "data": {
        "id": 1,
        "parent": 0,
        "order": 6,
        "image": "http://your_site.local/files/product_category/lzu0qkVm0fIGpLXEBHinKu7Blv41WLIbf3oFhyma.jpg",
        "published": true,
        "isSensitive": true,
        "refCode": null,
        "name": {
            "el": "Cosmetics"
        },
        "slug": {
            "el": "veritatis-maxime-explicabo-non-amet-sed"
        },
        "content": {
            "el": "Consequatur debitis voluptatem non non ex et asperiores. Nobis ut omnis architecto laboriosam quaerat sunt. Laborum et illo commodi ipsam aliquid.\n\nEum illo tenetur id harum placeat itaque. Qui distinctio odio ea a doloremque quae doloremque. Adipisci suscipit explicabo quod soluta molestiae et.\n\nSint nam nihil unde. Quia fugit fuga tempore doloribus mollitia cupiditate. Aspernatur dolorem numquam rerum aliquam et. Culpa nihil voluptatibus animi non."
        }
    }
}
 

Request   

PUT erp/products/categories/{id}

PATCH erp/products/categories/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The category's id. Example: 1

Body Parameters

parent   integer  optional  

The category's parent id.

order   integer  optional  

The sorting order. 1 Example: 6

image   string  optional  

The public image url to get. Example: https://bitbucket.org/devteamadvisable/assets/raw/0a1100b7126045e233c8bdb0bf0c24336ef0209e/api/images/no_photo.jpg

published   boolean  optional  

Whether the category is published. Example: true

isSensitive   boolean  optional  

Whether the category contains sensitive products:

name   object  optional  
el   string  optional  

The category name. Example: Cosmetics

slug   object.  optional  
el   string  optional  

The category slug.

Delete Category Resource

requires authentication

Example request:
curl --request DELETE \
    "http://api.your_site.ecommercen.com/erp/products/categories/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/products/categories/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'http://api.your_site.ecommercen.com/erp/products/categories/1',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/products/categories/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (422):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 400
x-ratelimit-remaining: 392
access-control-allow-origin: *
 

{
    "status": "error",
    "error": "Category with id 1 has children"
}
 

Request   

DELETE erp/products/categories/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The category's id. Example: 1

Customer

Filter customers

requires authentication

Filter customers by ids, partial emails, exact billing postal, county and country

Example request:
curl --request GET \
    --get "http://api.your_site.ecommercen.com/erp/customer?filter%5Bmail%5D=hotmail%2Cgmail%2Cyahoo&sort=billing.country%2C-id&page=2" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/customer"
);

const params = {
    "filter[mail]": "hotmail,gmail,yahoo",
    "sort": "billing.country,-id",
    "page": "2",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://api.your_site.ecommercen.com/erp/customer',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'filter[mail]' => 'hotmail,gmail,yahoo',
            'sort' => 'billing.country,-id',
            'page' => '2',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/customer'
params = {
  'filter[mail]': 'hotmail,gmail,yahoo',
  'sort': 'billing.country,-id',
  'page': '2',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 400
x-ratelimit-remaining: 350
access-control-allow-origin: *
 

{
    "data": [
        {
            "id": 254,
            "mail": "chandler.west@gmail.com",
            "insecure": true,
            "totalPoints": 568,
            "hasAccess": true,
            "guest": false,
            "sanitized": false,
            "adminComments": "Debitis qui molestiae facere laudantium natus asperiores. Eaque quam illo quod totam reiciendis sit. Aut iusto ullam et debitis at recusandae. Pariatur velit beatae perferendis molestiae.",
            "language": "el",
            "registeredDate": "517709011",
            "billing": {
                "name": "Lenna",
                "surname": "Halvorson",
                "address": "12276 Alisa Keys\nEast Hugh, AZ 75214",
                "city": "Grahambury",
                "region": "Excepturi veritatis.",
                "postal": "45726-1173",
                "county": "AO-HUI",
                "country": "AO",
                "landPhone": "+1 (856) 421-7865",
                "mobilePhone": "520-754-5050"
            },
            "shipping": {
                "name": "Loyce",
                "surname": "Auer",
                "address": "798 Sigrid Shoals Apt. 290\nNew Frederique, RI 61808-4553",
                "city": "East Adeliastad",
                "region": "Voluptatem dolores rerum.",
                "postal": "28951-5434",
                "county": "RU-KC",
                "country": "RU",
                "landPhone": "(404) 589-3225",
                "mobilePhone": "252.922.9322"
            },
            "invoice": {
                "companyName": "Ullam est impedit.",
                "companyProfession": "Quam modi reprehenderit aut.",
                "companyVatId": "3156248097",
                "companyVatOffice": "Voluptas quia illo quam.",
                "companyAddress": "46025 Kyra Extension Apt. 611\nEast Adrielview, MN 29592"
            }
        },
        {
            "id": 24,
            "mail": "myles33@gmail.com",
            "insecure": false,
            "totalPoints": 173,
            "hasAccess": true,
            "guest": true,
            "sanitized": true,
            "adminComments": "Iste aperiam iure ea laudantium. Omnis enim earum voluptatem laborum. Aut mollitia numquam vel necessitatibus quo quis ut tempora.",
            "language": "el",
            "registeredDate": "59347561",
            "billing": {
                "name": "Alexis",
                "surname": "Bartoletti",
                "address": "14088 Metz Viaduct Apt. 628\nWest Savionville, WV 09197-7915",
                "city": "Bradyborough",
                "region": "Non amet.",
                "postal": "03248",
                "county": "AO-CAB",
                "country": "AO",
                "landPhone": "+13807410502",
                "mobilePhone": "386-343-4803"
            },
            "shipping": {
                "name": "Eric",
                "surname": "Murazik",
                "address": "764 Morissette Garden Suite 981\nNew Eusebio, WA 76246",
                "city": "Port Jaquelin",
                "region": "Et eos enim maiores.",
                "postal": "07354-4592",
                "county": "SR-SA",
                "country": "SR",
                "landPhone": "+19402422993",
                "mobilePhone": "(531) 360-6832"
            },
            "invoice": {
                "companyName": "Perferendis explicabo eos.",
                "companyProfession": "Possimus aut nam.",
                "companyVatId": "8049365127",
                "companyVatOffice": "Nisi minus.",
                "companyAddress": "601 Rohan Row\nKovacekbury, IL 58358-3276"
            }
        },
        {
            "id": 497,
            "mail": "beer.alphonso@medhurst.org",
            "insecure": false,
            "totalPoints": 1289,
            "hasAccess": true,
            "guest": false,
            "sanitized": true,
            "adminComments": "Sit at ut modi asperiores quas alias. Iusto dolorum corrupti error suscipit et est. Corporis omnis ipsam necessitatibus voluptatem facere. Qui et nam minus reprehenderit ipsa.",
            "language": "el",
            "registeredDate": "427924168",
            "billing": {
                "name": "Piper",
                "surname": "Larkin",
                "address": "7476 Filomena Lodge\nSouth Shanelleport, CT 68105-6579",
                "city": "West Asha",
                "region": "Fugit alias earum.",
                "postal": "81210-2780",
                "county": "AR-P",
                "country": "AR",
                "landPhone": "+15412358758",
                "mobilePhone": "508-552-4168"
            },
            "shipping": {
                "name": "Isom",
                "surname": "Stanton",
                "address": "7759 Heber Curve\nLake Claudiachester, AL 01959-4888",
                "city": "Port Ward",
                "region": "Natus ut unde.",
                "postal": "53753",
                "county": "TR-46",
                "country": "TR",
                "landPhone": "+1 (931) 735-0803",
                "mobilePhone": "+1-732-955-3787"
            },
            "invoice": {
                "companyName": "Maxime rerum.",
                "companyProfession": "Autem nemo ipsa qui.",
                "companyVatId": "7512439860",
                "companyVatOffice": "Et architecto libero.",
                "companyAddress": "731 Davin Viaduct Suite 053\nBlockfort, NE 39226-0891"
            }
        },
        {
            "id": 446,
            "mail": "gwiza@hotmail.com",
            "insecure": false,
            "totalPoints": 1571,
            "hasAccess": false,
            "guest": true,
            "sanitized": true,
            "adminComments": "Aperiam laborum qui voluptas expedita nemo rerum. Dolores quo nihil cumque blanditiis. Dolor reprehenderit voluptas nulla molestias.",
            "language": "el",
            "registeredDate": "731487006",
            "billing": {
                "name": "Gregory",
                "surname": "Bode",
                "address": "209 Schamberger Parkways Suite 822\nKochfort, TN 87147-9601",
                "city": "New Princess",
                "region": "Totam et voluptatem nobis.",
                "postal": "55312",
                "county": "AR-X",
                "country": "AR",
                "landPhone": "1-347-852-8056",
                "mobilePhone": "+1.805.582.8120"
            },
            "shipping": {
                "name": "Berniece",
                "surname": "Koss",
                "address": "10022 Johns Ferry Suite 231\nBergstromstad, TN 25482",
                "city": "New Alysa",
                "region": "Quas laudantium.",
                "postal": "58426-6809",
                "county": "LV-050",
                "country": "LV",
                "landPhone": "+1 (386) 569-1742",
                "mobilePhone": "479-226-7532"
            },
            "invoice": {
                "companyName": "Voluptas excepturi ut.",
                "companyProfession": "Pariatur error velit.",
                "companyVatId": "7824516903",
                "companyVatOffice": "Porro est.",
                "companyAddress": "4786 Kuhlman Corner Suite 964\nAndersonshire, OH 94009-8489"
            }
        },
        {
            "id": 112,
            "mail": "xorn@gmail.com",
            "insecure": true,
            "totalPoints": 494,
            "hasAccess": false,
            "guest": false,
            "sanitized": true,
            "adminComments": "Cumque consequuntur nihil tenetur est. Voluptatem nam quo eos perferendis illum quo. Laborum iusto incidunt adipisci veritatis sint.",
            "language": "el",
            "registeredDate": "278648044",
            "billing": {
                "name": "Sanford",
                "surname": "Reichert",
                "address": "53841 Maximillia Ports\nReynafort, NV 08597",
                "city": "Berylton",
                "region": "Aspernatur expedita eius rerum.",
                "postal": "50050-7682",
                "county": "AR-G",
                "country": "AR",
                "landPhone": "+1-678-503-1556",
                "mobilePhone": "1-781-370-9819"
            },
            "shipping": {
                "name": "Lisandro",
                "surname": "Trantow",
                "address": "5328 Cole Mills Suite 058\nNorth Dovie, KY 09248-2858",
                "city": "New Heber",
                "region": "Eligendi rerum ea.",
                "postal": "65494",
                "county": "EG-AST",
                "country": "EG",
                "landPhone": "505.635.9361",
                "mobilePhone": "(984) 730-8341"
            },
            "invoice": {
                "companyName": "Nihil unde.",
                "companyProfession": "Eum sit est.",
                "companyVatId": "0321658749",
                "companyVatOffice": "Est fugiat ut.",
                "companyAddress": "9626 Dooley Corner Apt. 052\nPort Winnifred, RI 11373-6553"
            }
        },
        {
            "id": 111,
            "mail": "jarmstrong@yahoo.com",
            "insecure": false,
            "totalPoints": 1946,
            "hasAccess": false,
            "guest": true,
            "sanitized": true,
            "adminComments": "Ratione laudantium ad autem sint non commodi. Iste quia non consequuntur libero dignissimos numquam quidem. Assumenda harum quis dicta molestias repudiandae. Omnis unde consequatur illum ut quia molestiae voluptatum sed.",
            "language": "el",
            "registeredDate": "899788841",
            "billing": {
                "name": "Annette",
                "surname": "Lakin",
                "address": "704 Haley Orchard\nHilariomouth, ME 55870-4483",
                "city": "West Emilio",
                "region": "Asperiores autem consequatur quasi.",
                "postal": "51063-0975",
                "county": "AR-H",
                "country": "AR",
                "landPhone": "+18058296029",
                "mobilePhone": "1-661-238-5331"
            },
            "shipping": {
                "name": "Quinten",
                "surname": "Morar",
                "address": "8712 Alana Centers\nWest Vitaville, NM 47842-2792",
                "city": "Lake Jedport",
                "region": "Quo atque et culpa.",
                "postal": "08144-6008",
                "county": "UZ-TK",
                "country": "UZ",
                "landPhone": "(859) 255-1427",
                "mobilePhone": "619-301-8252"
            },
            "invoice": {
                "companyName": "Aut ut et.",
                "companyProfession": "Qui facilis blanditiis.",
                "companyVatId": "0832615794",
                "companyVatOffice": "Repellendus illum.",
                "companyAddress": "7675 Luettgen Radial Suite 302\nEstashire, SC 39279"
            }
        },
        {
            "id": 476,
            "mail": "pjerde@zieme.biz",
            "insecure": false,
            "totalPoints": 1631,
            "hasAccess": true,
            "guest": true,
            "sanitized": false,
            "adminComments": "Voluptas aut nobis architecto voluptas in vel possimus. Qui possimus et sit quam ut aliquid. Deserunt in rem aut ipsum aut quis. Optio et deleniti voluptatem eveniet veniam exercitationem aspernatur.",
            "language": "el",
            "registeredDate": "846349414",
            "billing": {
                "name": "Lavada",
                "surname": "Jerde",
                "address": "3807 Fatima Flats Suite 881\nEast Luigishire, MD 07743-6202",
                "city": "North Marley",
                "region": "Earum necessitatibus consequatur.",
                "postal": "92048-3279",
                "county": "AT-2",
                "country": "AT",
                "landPhone": "(754) 343-0354",
                "mobilePhone": "+1.413.240.3349"
            },
            "shipping": {
                "name": "Nat",
                "surname": "Pagac",
                "address": "4077 Nathan Plains Suite 031\nWest Gideon, WI 30189-1147",
                "city": "Katherynmouth",
                "region": "Dolorum facilis sed et.",
                "postal": "62895",
                "county": "PH-40",
                "country": "PH",
                "landPhone": "469.665.4485",
                "mobilePhone": "+1-415-212-6255"
            },
            "invoice": {
                "companyName": "Voluptas corrupti exercitationem.",
                "companyProfession": "Odio ab maiores sed.",
                "companyVatId": "3960785142",
                "companyVatOffice": "Et autem officia.",
                "companyAddress": "4535 Strosin Squares\nSouth Flavie, MO 35300"
            }
        },
        {
            "id": 81,
            "mail": "elenora.koch@morar.com",
            "insecure": true,
            "totalPoints": 1774,
            "hasAccess": false,
            "guest": true,
            "sanitized": true,
            "adminComments": "Perferendis omnis ut corrupti deserunt. Rerum omnis quisquam debitis unde quis. Accusamus sit aut quod in.",
            "language": "el",
            "registeredDate": "418451414",
            "billing": {
                "name": "Christelle",
                "surname": "Hackett",
                "address": "2744 Reynolds Springs Apt. 106\nLake Muhammad, ID 19740-6200",
                "city": "North Cindy",
                "region": "Eum praesentium dolores.",
                "postal": "78893",
                "county": "AZ-SR",
                "country": "AZ",
                "landPhone": "+1.929.435.6614",
                "mobilePhone": "+1-419-939-5237"
            },
            "shipping": {
                "name": "Amira",
                "surname": "Tillman",
                "address": "3952 Yundt Summit Apt. 210\nPort Haroldberg, AZ 37173-2405",
                "city": "Rosarioberg",
                "region": "Et et eos id corrupti.",
                "postal": "96415",
                "county": "VN-30",
                "country": "VN",
                "landPhone": "+1-617-629-5491",
                "mobilePhone": "316.303.6434"
            },
            "invoice": {
                "companyName": "Quisquam quod.",
                "companyProfession": "Eveniet cumque tempora quas.",
                "companyVatId": "8957130246",
                "companyVatOffice": "Porro qui in quis.",
                "companyAddress": "857 Nienow Parks Apt. 746\nWest Jacques, AZ 18039"
            }
        },
        {
            "id": 467,
            "mail": "ajakubowski@yahoo.com",
            "insecure": true,
            "totalPoints": 425,
            "hasAccess": false,
            "guest": false,
            "sanitized": true,
            "adminComments": "Ab voluptas repellat dolorem inventore. Quia laboriosam commodi nemo itaque illum aut maxime. Provident soluta provident qui autem tenetur. Et unde autem est veniam.",
            "language": "el",
            "registeredDate": "1397187475",
            "billing": {
                "name": "Rae",
                "surname": "Maggio",
                "address": "8648 Harvey Island\nNorth Madonnaburgh, IN 19893",
                "city": "South Narciso",
                "region": "Et sit nam animi.",
                "postal": "64386",
                "county": "BB-02",
                "country": "BB",
                "landPhone": "940-230-8336",
                "mobilePhone": "+12022022863"
            },
            "shipping": {
                "name": "Santino",
                "surname": "Carroll",
                "address": "804 Elsie Lane Apt. 552\nNorth Monicamouth, NE 05778",
                "city": "South Cecilehaven",
                "region": "Ut velit qui ex.",
                "postal": "70154",
                "county": "VE-U",
                "country": "VE",
                "landPhone": "+1-980-420-8205",
                "mobilePhone": "1-352-779-4162"
            },
            "invoice": {
                "companyName": "Totam quos repellendus.",
                "companyProfession": "Non ut possimus.",
                "companyVatId": "8674192350",
                "companyVatOffice": "Tenetur rem iste in.",
                "companyAddress": "132 Caleigh Way\nHammesburgh, AZ 38834-4109"
            }
        },
        {
            "id": 181,
            "mail": "iadams@hotmail.com",
            "insecure": true,
            "totalPoints": 1320,
            "hasAccess": false,
            "guest": false,
            "sanitized": false,
            "adminComments": "Aliquid adipisci in possimus voluptatem rerum sunt soluta. Dolorum rerum veritatis est sunt dolorem voluptates. Sed autem architecto error ea ipsam qui laborum ut.",
            "language": "el",
            "registeredDate": "952915104",
            "billing": {
                "name": "Bartholome",
                "surname": "Rowe",
                "address": "164 Grimes Road Suite 037\nVancefurt, WV 65502-8187",
                "city": "New Diego",
                "region": "Fugit qui suscipit cupiditate.",
                "postal": "77501",
                "county": "BB-02",
                "country": "BB",
                "landPhone": "305-535-2762",
                "mobilePhone": "+1-364-738-1555"
            },
            "shipping": {
                "name": "Raegan",
                "surname": "Ratke",
                "address": "136 Bailey Dale\nMcGlynnfort, VA 14429-7957",
                "city": "Mohrhaven",
                "region": "Temporibus est numquam.",
                "postal": "09349",
                "county": "MD-GL",
                "country": "MD",
                "landPhone": "+1-802-593-7678",
                "mobilePhone": "+1 (657) 377-5167"
            },
            "invoice": {
                "companyName": "Nostrum voluptatibus recusandae.",
                "companyProfession": "Modi tenetur aspernatur.",
                "companyVatId": "1340275968",
                "companyVatOffice": "Voluptatem quia quas.",
                "companyAddress": "3642 Herman Loop\nFreedafurt, VT 88607-0888"
            }
        },
        {
            "id": 74,
            "mail": "quentin.pouros@grimes.com",
            "insecure": false,
            "totalPoints": 859,
            "hasAccess": true,
            "guest": true,
            "sanitized": false,
            "adminComments": "Recusandae asperiores non suscipit impedit fugiat recusandae. Commodi quos nisi architecto labore et nihil est in. Aut aut reprehenderit aut sed assumenda autem.",
            "language": "el",
            "registeredDate": "1192352330",
            "billing": {
                "name": "Joyce",
                "surname": "Abbott",
                "address": "949 Bosco Lock\nSouth Lew, IN 52749",
                "city": "Mekhiborough",
                "region": "Blanditiis et dolorem.",
                "postal": "19224",
                "county": "BB-10",
                "country": "BB",
                "landPhone": "1-614-831-8243",
                "mobilePhone": "+1-973-894-5745"
            },
            "shipping": {
                "name": "Agustin",
                "surname": "Blick",
                "address": "2062 Cormier Stravenue\nSouth Rubenmouth, WI 76463-2902",
                "city": "Wavahaven",
                "region": "Illo quae.",
                "postal": "54507-6240",
                "county": "SK-PV",
                "country": "SK",
                "landPhone": "(757) 564-8999",
                "mobilePhone": "+1.253.709.1777"
            },
            "invoice": {
                "companyName": "Alias tempora.",
                "companyProfession": "Labore distinctio tempora.",
                "companyVatId": "8167350942",
                "companyVatOffice": "Tenetur adipisci quas velit.",
                "companyAddress": "73741 Reilly Fort\nLeannonberg, AL 61849"
            }
        },
        {
            "id": 85,
            "mail": "lquitzon@hotmail.com",
            "insecure": true,
            "totalPoints": 436,
            "hasAccess": false,
            "guest": true,
            "sanitized": true,
            "adminComments": "Et consequuntur aut veritatis nulla aliquid rem. Omnis deleniti alias quibusdam maxime. Dolores sit praesentium aut. Nulla est dolorem et odit.",
            "language": "el",
            "registeredDate": "132253005",
            "billing": {
                "name": "Theresa",
                "surname": "Jakubowski",
                "address": "275 Dulce Squares\nKozeyville, WV 81980-3387",
                "city": "New Elisha",
                "region": "Distinctio natus ut inventore.",
                "postal": "07087",
                "county": "BE-WNA",
                "country": "BE",
                "landPhone": "(424) 775-6513",
                "mobilePhone": "320.278.2561"
            },
            "shipping": {
                "name": "Easton",
                "surname": "Hahn",
                "address": "9724 Keegan Lights Suite 032\nEast Adeliamouth, OH 05772-3549",
                "city": "Trudieberg",
                "region": "Quia quia molestias.",
                "postal": "79746",
                "county": "SN-KE",
                "country": "SN",
                "landPhone": "+14635835383",
                "mobilePhone": "956-515-7690"
            },
            "invoice": {
                "companyName": "Et rerum.",
                "companyProfession": "Adipisci inventore et eaque.",
                "companyVatId": "5061872943",
                "companyVatOffice": "Illum delectus similique et.",
                "companyAddress": "536 Clara Green Apt. 125\nBrennaton, OH 73308"
            }
        },
        {
            "id": 233,
            "mail": "varmstrong@lubowitz.com",
            "insecure": false,
            "totalPoints": 1800,
            "hasAccess": false,
            "guest": false,
            "sanitized": true,
            "adminComments": "Cupiditate doloribus ad repellat qui. Ullam sunt est quidem aliquam voluptas enim eum. Deserunt suscipit eius voluptas suscipit voluptatem tempora qui voluptatum. Incidunt iure mollitia nostrum maxime ea consequatur consequatur.",
            "language": "el",
            "registeredDate": "960154148",
            "billing": {
                "name": "Earline",
                "surname": "Sawayn",
                "address": "413 Yundt Manor Suite 705\nFeeneyfurt, NV 15341",
                "city": "South Wilhelmine",
                "region": "Sint enim qui.",
                "postal": "81838-9691",
                "county": "BF-12",
                "country": "BF",
                "landPhone": "854.325.5187",
                "mobilePhone": "330.987.0371"
            },
            "shipping": {
                "name": "Buster",
                "surname": "Carroll",
                "address": "40142 Moriah Plaza Apt. 568\nNorth Golden, HI 70991-6916",
                "city": "Maggioton",
                "region": "Officiis quod qui sunt.",
                "postal": "42698",
                "county": "RO-GL",
                "country": "RO",
                "landPhone": "1-479-352-7827",
                "mobilePhone": "623.899.7390"
            },
            "invoice": {
                "companyName": "Temporibus consequatur.",
                "companyProfession": "Qui quae iusto eum.",
                "companyVatId": "7035149826",
                "companyVatOffice": "Dolore ipsum neque perferendis.",
                "companyAddress": "182 Ward Parkways\nGerlachburgh, KY 14014-6104"
            }
        },
        {
            "id": 59,
            "mail": "sigurd59@gmail.com",
            "insecure": true,
            "totalPoints": 1490,
            "hasAccess": false,
            "guest": true,
            "sanitized": false,
            "adminComments": "Voluptas consectetur repellat autem ut adipisci. Et suscipit et explicabo rem. Similique numquam nobis eveniet quis aliquid maxime. Minus et est omnis dolorum quis quis.",
            "language": "el",
            "registeredDate": "840067220",
            "billing": {
                "name": "Iliana",
                "surname": "Medhurst",
                "address": "6814 Jessica Glens\nReannafurt, AK 93118",
                "city": "North Melba",
                "region": "Et molestiae perspiciatis.",
                "postal": "07216-3771",
                "county": "BF-06",
                "country": "BF",
                "landPhone": "934-942-5700",
                "mobilePhone": "512-252-7424"
            },
            "shipping": {
                "name": "Pasquale",
                "surname": "Spinka",
                "address": "26861 Frida Ville\nMillsmouth, ND 52223-7178",
                "city": "Port Kayliehaven",
                "region": "Quibusdam nostrum mollitia.",
                "postal": "91308-9415",
                "county": "GB-BIR",
                "country": "GB",
                "landPhone": "+1-269-973-6893",
                "mobilePhone": "270-871-8594"
            },
            "invoice": {
                "companyName": "Nihil quia.",
                "companyProfession": "Exercitationem odio quidem.",
                "companyVatId": "7354609182",
                "companyVatOffice": "Quo consequatur pariatur sint.",
                "companyAddress": "734 Swaniawski Canyon Suite 615\nWest Shanietown, AK 50047"
            }
        },
        {
            "id": 146,
            "mail": "torp.tess@yahoo.com",
            "insecure": false,
            "totalPoints": 1235,
            "hasAccess": false,
            "guest": true,
            "sanitized": false,
            "adminComments": "Ad voluptates velit eos ut. Laboriosam voluptatem unde dicta quia enim. Ipsam et inventore repellendus voluptas. Non consequuntur sint aut cupiditate facere quis accusantium.",
            "language": "el",
            "registeredDate": "306254373",
            "billing": {
                "name": "Antonietta",
                "surname": "Heaney",
                "address": "58926 Murray Isle\nThielville, PA 44503-4728",
                "city": "VonRuedenchester",
                "region": "Optio ea suscipit.",
                "postal": "35739",
                "county": "BG-08",
                "country": "BG",
                "landPhone": "210-391-1539",
                "mobilePhone": "+1 (445) 921-9976"
            },
            "shipping": {
                "name": "Rex",
                "surname": "Wiegand",
                "address": "220 Lupe Roads Suite 418\nNorth Buddy, SC 78972-5795",
                "city": "North Elbert",
                "region": "Possimus rerum et.",
                "postal": "59741",
                "county": "MD-SO",
                "country": "MD",
                "landPhone": "470-907-4693",
                "mobilePhone": "+1.361.795.3335"
            },
            "invoice": {
                "companyName": "Quod ipsam numquam.",
                "companyProfession": "Eveniet consequatur.",
                "companyVatId": "7859162304",
                "companyVatOffice": "Perspiciatis ad minima.",
                "companyAddress": "26907 Anderson Plains\nCollierburgh, LA 57142"
            }
        }
    ],
    "links": {
        "first": "http://your_site.local/erp/customer?page=1",
        "last": "http://your_site.local/erp/customer?page=34",
        "prev": "http://your_site.local/erp/customer?page=1",
        "next": "http://your_site.local/erp/customer?page=3"
    },
    "meta": {
        "current_page": 2,
        "from": 16,
        "last_page": 34,
        "links": [
            {
                "url": "http://your_site.local/erp/customer?page=1",
                "label": "« Previous",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/customer?page=1",
                "label": "1",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/customer?page=2",
                "label": "2",
                "active": true
            },
            {
                "url": "http://your_site.local/erp/customer?page=3",
                "label": "3",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/customer?page=4",
                "label": "4",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/customer?page=5",
                "label": "5",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/customer?page=6",
                "label": "6",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/customer?page=7",
                "label": "7",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/customer?page=8",
                "label": "8",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/customer?page=9",
                "label": "9",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/customer?page=10",
                "label": "10",
                "active": false
            },
            {
                "url": null,
                "label": "...",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/customer?page=33",
                "label": "33",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/customer?page=34",
                "label": "34",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/customer?page=3",
                "label": "Next »",
                "active": false
            }
        ],
        "path": "http://your_site.local/erp/customer",
        "per_page": 15,
        "to": 30,
        "total": 500
    }
}
 

Request   

GET erp/customer

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

filter[id]   string  optional  

Customer ids to filter.

filter[mail]   string  optional  

Partial customer emails to filter. Example: hotmail,gmail,yahoo

filter[billing.postal]   string  optional  

Billing counties to filter.

filter[billing.county]   string  optional  

Billing counties to filter.

filter[billing.country]   string  optional  

Billing countries to filter. Example: GR,AU,HU,CY,CR,CH,DE,SP,BE,GB

sort   string  optional  

the sorting order to sort asc just use the name of the field, to sort desc use - before name. Example: billing.country,-id

page   integer  optional  

the requested page of the filtered results. Example: 2

Get customer

requires authentication

Get customer by id

Example request:
curl --request GET \
    --get "http://api.your_site.ecommercen.com/erp/customer/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/customer/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://api.your_site.ecommercen.com/erp/customer/1',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/customer/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 400
x-ratelimit-remaining: 349
access-control-allow-origin: *
 

{
    "data": {
        "id": 1,
        "mail": "rodriguez.telly@deckow.com",
        "insecure": false,
        "totalPoints": 348,
        "hasAccess": true,
        "guest": true,
        "sanitized": true,
        "adminComments": "Beatae vel iste ullam necessitatibus aut rerum. Et doloribus in rerum dolore non voluptate voluptas. Modi quo impedit sit quis. Laudantium est ipsam quis saepe quibusdam harum dicta.",
        "language": "el",
        "registeredDate": "1027654407",
        "billing": {
            "name": "Susie",
            "surname": "Rodriguez",
            "address": "9262 Skiles Oval Suite 864\nWest Lorenzmouth, WV 05544-1824",
            "city": "West Johnathanview",
            "region": "Fugit possimus.",
            "postal": "89316-4233",
            "county": "LR-GB",
            "country": "LR",
            "landPhone": "+1-279-612-9138",
            "mobilePhone": "820-815-9913"
        },
        "shipping": {
            "name": "Santina",
            "surname": "Larson",
            "address": "4005 Alexanne Vista\nKihnfort, NM 65597",
            "city": "Abbottmouth",
            "region": "Consequatur inventore sit maiores.",
            "postal": "67775",
            "county": "MA-TAI",
            "country": "MA",
            "landPhone": "737.719.3395",
            "mobilePhone": "+16419108935"
        },
        "invoice": {
            "companyName": "Laborum in.",
            "companyProfession": "Temporibus ut labore.",
            "companyVatId": "5981064273",
            "companyVatOffice": "Vero omnis et.",
            "companyAddress": "34763 Cristobal Path Suite 785\nTobinton, OK 35418"
        }
    }
}
 

Request   

GET erp/customer/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

Example: 1

Media

POST erp/media

requires authentication

Example request:
curl --request POST \
    "http://api.your_site.ecommercen.com/erp/media" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "file=@D:\web\ADVISABLE\Advisable\AdvEshop\v5-clients\Orange\vendor\ecommercen\testing\files\noimage.jpg" 
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/media"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
};

const body = new FormData();
body.append('file', document.querySelector('input[name="file"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'http://api.your_site.ecommercen.com/erp/media',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'multipart/form-data',
            'Accept' => 'application/json',
        ],
        'multipart' => [
            [
                'name' => 'file',
                'contents' => fopen('D:\web\ADVISABLE\Advisable\AdvEshop\v5-clients\Orange\vendor\ecommercen\testing\files\noimage.jpg', 'r')
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/media'
files = {
  'file': open('D:\web\ADVISABLE\Advisable\AdvEshop\v5-clients\Orange\vendor\ecommercen\testing\files\noimage.jpg', 'rb')
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'multipart/form-data',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, files=files)
response.json()

Example response (201):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 400
x-ratelimit-remaining: 344
access-control-allow-origin: *
 

{
    "data": {
        "id": 52,
        "path": "http://your_site.local/files/tmp/oIoogOii96yKcWQv0ZP6wWztzo5x7zMxPsmBLqxm.jpg"
    }
}
 

Request   

POST erp/media

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: multipart/form-data

Accept      

Example: application/json

Body Parameters

file   file   

The image file. Example: ./vendor/ecommercen/testing/files/noimage.jpg

GET erp/media/{id}

requires authentication

Example request:
curl --request GET \
    --get "http://api.your_site.ecommercen.com/erp/media/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/media/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://api.your_site.ecommercen.com/erp/media/1',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/media/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 400
x-ratelimit-remaining: 343
access-control-allow-origin: *
 

{
    "data": {
        "id": 1,
        "path": "http://your_site.local/files/tmp/pC3UMqURStd4KpUTpy3P63TbVOkYlZJnz08ft73j.jpg"
    }
}
 

Request   

GET erp/media/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The media element id. Example: 1

POST erp/media/pdf

requires authentication

Example request:
curl --request POST \
    "http://api.your_site.ecommercen.com/erp/media/pdf" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "file=@D:\web\ADVISABLE\Advisable\AdvEshop\v5-clients\Orange\vendor\ecommercen\testing\files\sample.pdf" 
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/media/pdf"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
};

const body = new FormData();
body.append('file', document.querySelector('input[name="file"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'http://api.your_site.ecommercen.com/erp/media/pdf',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'multipart/form-data',
            'Accept' => 'application/json',
        ],
        'multipart' => [
            [
                'name' => 'file',
                'contents' => fopen('D:\web\ADVISABLE\Advisable\AdvEshop\v5-clients\Orange\vendor\ecommercen\testing\files\sample.pdf', 'r')
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/media/pdf'
files = {
  'file': open('D:\web\ADVISABLE\Advisable\AdvEshop\v5-clients\Orange\vendor\ecommercen\testing\files\sample.pdf', 'rb')
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'multipart/form-data',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, files=files)
response.json()

Example response (201):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 400
x-ratelimit-remaining: 345
access-control-allow-origin: *
 

{
    "data": {
        "id": 51,
        "path": "http://your_site.local/files/tmp/qOAPDwHuXxBGHj7DWRrfefHFtpEA51dhEHCIbDLw.pdf"
    }
}
 

Request   

POST erp/media/pdf

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: multipart/form-data

Accept      

Example: application/json

Body Parameters

file   file   

The pdf file. Example: ./vendor/ecommercen/testing/files/sample.pdf

Order

Order specific endpoints.

GET erp/orders/list

requires authentication

Example request:
curl --request GET \
    --get "http://api.your_site.ecommercen.com/erp/orders/list?sort=-id&page=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/orders/list"
);

const params = {
    "sort": "-id",
    "page": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://api.your_site.ecommercen.com/erp/orders/list',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'sort' => '-id',
            'page' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/orders/list'
params = {
  'sort': '-id',
  'page': '1',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 400
x-ratelimit-remaining: 399
access-control-allow-origin: *
 

{
    "data": [
        {
            "id": 50,
            "customerId": 351,
            "cancelId": 0,
            "store": 0,
            "transporter": 4,
            "orderSerial": "VP50",
            "webIgnore": false,
            "totalQuantity": 4,
            "currency": "EUR",
            "payWay": "apcopay",
            "receiptType": "receipt",
            "customerComments": "Temporibus doloribus magni id cupiditate ea maiores ratione fuga officiis et natus.",
            "adminComments": "Vel incidunt labore quisquam vitae sed ut sed et occaecati in accusantium neque enim dolorem.",
            "courierComments": "Adipisci incidunt id vel suscipit corrupti optio quos voluptates nemo rem.",
            "total": "210.77",
            "totalWithVat": "237.44",
            "transportationCost": "1.52",
            "deliveryCost": "0.00",
            "status": "PENDING_ACCEPTED_VOUCHER",
            "voucherNumber": null,
            "entryDateTime": "2023-03-24 17:59:09",
            "canceledDate": null,
            "invoicedDateTime": null,
            "printedDateTime": null,
            "sentDateTime": null,
            "coupon": 2,
            "couponValue": "4.61",
            "pointsUsed": 2000,
            "discountFromPoints": "2.00",
            "referer": "google",
            "billing": {
                "name": "Brad",
                "surname": "Maggio",
                "address": "26990 Dangelo Mews\nPort Fredrick, AL 56045",
                "city": "West Esther",
                "region": "Necessitatibus maiores consequatur.",
                "postal": "10397-8270",
                "county": "CY-01",
                "country": "CY",
                "landPhone": "678-524-3862",
                "mobilePhone": "(740) 900-4474"
            },
            "shipping": {
                "name": "Greta",
                "surname": "Dach",
                "address": "4111 Maryjane Passage\nSouth Michel, MD 94604",
                "city": "North Brittanyside",
                "region": "Quis rem omnis.",
                "postal": "36871-3013",
                "county": "GR-K",
                "country": "GR",
                "landPhone": "1-308-576-3471",
                "mobilePhone": "283-800-8644"
            },
            "invoice": {
                "companyName": "",
                "companyProfession": "",
                "companyVatId": "",
                "companyVatOffice": "",
                "companyAddress": ""
            },
            "invoicePdf": null,
            "guest": false,
            "isSkroutz": false,
            "cart": [
                {
                    "order": 50,
                    "productCodeId": 20,
                    "productCode": "8193467255815",
                    "productVat": "24.00",
                    "price": "51.03",
                    "points": 102,
                    "quantity": 1,
                    "subTotal": "51.03",
                    "discountString": "-41%",
                    "discountPrice": "35.46",
                    "originalPrice": "86.49",
                    "gift": null
                },
                {
                    "order": 50,
                    "productCodeId": 24,
                    "productCode": "3848263677822",
                    "productVat": "6.00",
                    "price": "53.43",
                    "points": 267,
                    "quantity": 2,
                    "subTotal": "106.86",
                    "discountString": "-21%",
                    "discountPrice": "14.20",
                    "originalPrice": "67.63",
                    "gift": null
                },
                {
                    "order": 50,
                    "productCodeId": 48,
                    "productCode": "6599190126057",
                    "productVat": "23.00",
                    "price": "84.64",
                    "points": 254,
                    "quantity": 1,
                    "subTotal": "84.64",
                    "discountString": "-42%",
                    "discountPrice": "61.29",
                    "originalPrice": "145.93",
                    "gift": null
                }
            ],
            "smartPoint": {
                "response": {
                    "id": "234",
                    "type": "apm",
                    "image": "",
                    "lat": "38.04753459",
                    "lng": "23.53554332",
                    "title": "ΠΛ. EΘNIKHΣ ANTIΣTAΣEΩΣ, 19200",
                    "name": "ΑΒ Πλ. Εθνικής Αντιστάσεως",
                    "postalCode": "19200",
                    "country": "GR",
                    "note": "Στο σούπερ μάρκετ \"ΑΒ Βασιλόπουλός\", με δυνατότητα στάθμευσης.",
                    "addressLine1": "Πλ. Eθνικής Aντιστάσεως & Λεωφ. Εθν. Αντιστάσεως",
                    "addressLine2": "Ελευσίνα",
                    "shopCity": "Ελευσίνα",
                    "shopAddress": "Πλ. Eθνικής Aντιστάσεως & Λεωφ. Εθν. Αντιστάσεως",
                    "shopZipcode": "19200"
                }
            }
        },
        {
            "id": 49,
            "customerId": 370,
            "cancelId": 0,
            "store": 0,
            "transporter": 2,
            "orderSerial": "VP49",
            "webIgnore": true,
            "totalQuantity": 30,
            "currency": "EUR",
            "payWay": "ethniki",
            "receiptType": "receipt",
            "customerComments": "Velit aut reprehenderit exercitationem aut id et voluptatem ut numquam quo dolores.",
            "adminComments": "Consequuntur at non quas dolor voluptatem ullam repudiandae eum sapiente molestiae illo maxime in.",
            "courierComments": "Mollitia illo accusantium totam voluptatum voluptate et ab quia omnis nam quae sit illum.",
            "total": "1601.36",
            "totalWithVat": "1780.63",
            "transportationCost": "1.38",
            "deliveryCost": "0.00",
            "status": "CANCELED",
            "voucherNumber": null,
            "entryDateTime": "2023-04-05 19:31:34",
            "canceledDate": "2023-04-10 10:11:11",
            "invoicedDateTime": null,
            "printedDateTime": null,
            "sentDateTime": null,
            "coupon": null,
            "couponValue": "0.00",
            "pointsUsed": 5000,
            "discountFromPoints": "5.00",
            "referer": "google",
            "billing": {
                "name": "Mohammad",
                "surname": "Goodwin",
                "address": "67612 Kautzer Walks\nPort Nelsborough, KY 42652-3595",
                "city": "North Davonte",
                "region": "Dolores ipsa qui nam.",
                "postal": "97351",
                "county": "GR-M",
                "country": "GR",
                "landPhone": "+1-878-325-0251",
                "mobilePhone": "+14428208994"
            },
            "shipping": {
                "name": "Mohammad",
                "surname": "Goodwin",
                "address": "67612 Kautzer Walks\nPort Nelsborough, KY 42652-3595",
                "city": "North Davonte",
                "region": "Dolores ipsa qui nam.",
                "postal": "97351",
                "county": "GR-M",
                "country": "GR",
                "landPhone": "+1-878-325-0251",
                "mobilePhone": "+14428208994"
            },
            "invoice": {
                "companyName": "",
                "companyProfession": "",
                "companyVatId": "",
                "companyVatOffice": "",
                "companyAddress": ""
            },
            "invoicePdf": null,
            "guest": true,
            "isSkroutz": true,
            "cart": [
                {
                    "order": 49,
                    "productCodeId": 120,
                    "productCode": "4991402030091",
                    "productVat": "0.00",
                    "price": "49.86",
                    "points": 249,
                    "quantity": 3,
                    "subTotal": "149.58",
                    "discountString": "-12%",
                    "discountPrice": "6.80",
                    "originalPrice": "56.66",
                    "gift": null
                },
                {
                    "order": 49,
                    "productCodeId": 103,
                    "productCode": "4532036202364",
                    "productVat": "13.00",
                    "price": "78.72",
                    "points": 157,
                    "quantity": 3,
                    "subTotal": "236.16",
                    "discountString": "-19%",
                    "discountPrice": "18.47",
                    "originalPrice": "97.19",
                    "gift": null
                },
                {
                    "order": 49,
                    "productCodeId": 105,
                    "productCode": "6365773933820",
                    "productVat": "0.00",
                    "price": "79.94",
                    "points": 160,
                    "quantity": 2,
                    "subTotal": "159.88",
                    "discountString": "-44%",
                    "discountPrice": "62.81",
                    "originalPrice": "142.75",
                    "gift": null
                },
                {
                    "order": 49,
                    "productCodeId": 26,
                    "productCode": "9537924107481",
                    "productVat": "6.00",
                    "price": "0.65",
                    "points": 1,
                    "quantity": 2,
                    "subTotal": "1.30",
                    "discountString": "-11%",
                    "discountPrice": "0.08",
                    "originalPrice": "0.73",
                    "gift": null
                },
                {
                    "order": 49,
                    "productCodeId": 128,
                    "productCode": "6789599192795",
                    "productVat": "6.00",
                    "price": "59.76",
                    "points": 239,
                    "quantity": 1,
                    "subTotal": "59.76",
                    "discountString": "-40%",
                    "discountPrice": "39.84",
                    "originalPrice": "99.60",
                    "gift": null
                },
                {
                    "order": 49,
                    "productCodeId": 129,
                    "productCode": "8010566092687",
                    "productVat": "23.00",
                    "price": "75.59",
                    "points": 151,
                    "quantity": 1,
                    "subTotal": "75.59",
                    "discountString": "-14%",
                    "discountPrice": "12.31",
                    "originalPrice": "87.90",
                    "gift": null
                },
                {
                    "order": 49,
                    "productCodeId": 54,
                    "productCode": "8039961949655",
                    "productVat": "13.00",
                    "price": "96.18",
                    "points": 192,
                    "quantity": 5,
                    "subTotal": "480.90",
                    "discountString": "-11%",
                    "discountPrice": "11.89",
                    "originalPrice": "108.07",
                    "gift": null
                },
                {
                    "order": 49,
                    "productCodeId": 130,
                    "productCode": "2165982024043",
                    "productVat": "6.50",
                    "price": "13.35",
                    "points": 67,
                    "quantity": 4,
                    "subTotal": "53.40",
                    "discountString": "-49%",
                    "discountPrice": "12.83",
                    "originalPrice": "26.18",
                    "gift": null
                },
                {
                    "order": 49,
                    "productCodeId": 25,
                    "productCode": "9632213485636",
                    "productVat": "13.00",
                    "price": "73.92",
                    "points": 74,
                    "quantity": 5,
                    "subTotal": "369.60",
                    "discountString": "-22%",
                    "discountPrice": "20.85",
                    "originalPrice": "94.77",
                    "gift": null
                },
                {
                    "order": 49,
                    "productCodeId": 71,
                    "productCode": "4798673515735",
                    "productVat": "23.00",
                    "price": "49.52",
                    "points": 198,
                    "quantity": 4,
                    "subTotal": "198.08",
                    "discountString": "-16%",
                    "discountPrice": "9.43",
                    "originalPrice": "58.95",
                    "gift": null
                }
            ],
            "smartPoint": null
        },
        {
            "id": 48,
            "customerId": 387,
            "cancelId": 5,
            "store": 5,
            "transporter": null,
            "orderSerial": "VP48",
            "webIgnore": false,
            "totalQuantity": 31,
            "currency": "EUR",
            "payWay": "paid_at_store",
            "receiptType": "receipt",
            "customerComments": "Facere quisquam iste id minus consequuntur dolor quia corporis dignissimos dolores ea aliquid tempore.",
            "adminComments": "Nobis exercitationem eum dolor voluptate in non excepturi aut illo.",
            "courierComments": "Labore nihil suscipit dolor voluptas maiores impedit eveniet qui.",
            "total": "1309.61",
            "totalWithVat": "1432.09",
            "transportationCost": "0.00",
            "deliveryCost": "0.00",
            "status": "PENDING_ACCEPTED_VOUCHER",
            "voucherNumber": null,
            "entryDateTime": "2023-04-04 22:26:12",
            "canceledDate": null,
            "invoicedDateTime": null,
            "printedDateTime": null,
            "sentDateTime": null,
            "coupon": null,
            "couponValue": "0.00",
            "pointsUsed": 4000,
            "discountFromPoints": "4.00",
            "referer": null,
            "billing": {
                "name": "Halie",
                "surname": "Effertz",
                "address": "9580 Jakubowski Knoll\nDwightmouth, OH 46159",
                "city": "Yundtport",
                "region": "Nesciunt neque et.",
                "postal": "66763-9262",
                "county": "GR-K",
                "country": "GR",
                "landPhone": "530.487.7218",
                "mobilePhone": "1-802-788-9079"
            },
            "shipping": {
                "name": "",
                "surname": "",
                "address": "257 Jeromy Camp Apt. 969\nLake Darienstad, ND 16172",
                "city": "Coltonview",
                "region": "Qui praesentium.",
                "postal": "49945",
                "county": "SI-034",
                "country": "SI",
                "landPhone": "956.316.1675",
                "mobilePhone": "863-278-9413"
            },
            "invoice": {
                "companyName": "",
                "companyProfession": "",
                "companyVatId": "",
                "companyVatOffice": "",
                "companyAddress": ""
            },
            "invoicePdf": null,
            "guest": true,
            "isSkroutz": false,
            "cart": [
                {
                    "order": 48,
                    "productCodeId": 68,
                    "productCode": "2684474278257",
                    "productVat": "24.00",
                    "price": "60.89",
                    "points": 61,
                    "quantity": 5,
                    "subTotal": "304.45",
                    "discountString": "-31%",
                    "discountPrice": "27.36",
                    "originalPrice": "88.25",
                    "gift": null
                },
                {
                    "order": 48,
                    "productCodeId": 47,
                    "productCode": "5849909132109",
                    "productVat": "0.00",
                    "price": "63.38",
                    "points": 317,
                    "quantity": 2,
                    "subTotal": "126.76",
                    "discountString": "-30%",
                    "discountPrice": "27.16",
                    "originalPrice": "90.54",
                    "gift": null
                },
                {
                    "order": 48,
                    "productCodeId": 24,
                    "productCode": "3848263677822",
                    "productVat": "6.00",
                    "price": "1.91",
                    "points": 4,
                    "quantity": 3,
                    "subTotal": "5.73",
                    "discountString": "-33%",
                    "discountPrice": "0.94",
                    "originalPrice": "2.85",
                    "gift": null
                },
                {
                    "order": 48,
                    "productCodeId": 83,
                    "productCode": "3450623882205",
                    "productVat": "0.00",
                    "price": "2.27",
                    "points": 11,
                    "quantity": 5,
                    "subTotal": "11.35",
                    "discountString": "-22%",
                    "discountPrice": "0.64",
                    "originalPrice": "2.91",
                    "gift": null
                },
                {
                    "order": 48,
                    "productCodeId": 56,
                    "productCode": "6884099969851",
                    "productVat": "13.00",
                    "price": "69.56",
                    "points": 70,
                    "quantity": 3,
                    "subTotal": "208.68",
                    "discountString": "-22%",
                    "discountPrice": "19.62",
                    "originalPrice": "89.18",
                    "gift": null
                },
                {
                    "order": 48,
                    "productCodeId": 17,
                    "productCode": "0384020786619",
                    "productVat": "0.00",
                    "price": "24.50",
                    "points": 74,
                    "quantity": 2,
                    "subTotal": "49.00",
                    "discountString": "-33%",
                    "discountPrice": "12.07",
                    "originalPrice": "36.57",
                    "gift": null
                },
                {
                    "order": 48,
                    "productCodeId": 141,
                    "productCode": "5105968488565",
                    "productVat": "0.00",
                    "price": "19.78",
                    "points": 40,
                    "quantity": 1,
                    "subTotal": "19.78",
                    "discountString": "-41%",
                    "discountPrice": "13.75",
                    "originalPrice": "33.53",
                    "gift": null
                },
                {
                    "order": 48,
                    "productCodeId": 125,
                    "productCode": "7198038457705",
                    "productVat": "0.00",
                    "price": "36.13",
                    "points": 36,
                    "quantity": 3,
                    "subTotal": "108.39",
                    "discountString": "-42%",
                    "discountPrice": "26.16",
                    "originalPrice": "62.29",
                    "gift": null
                },
                {
                    "order": 48,
                    "productCodeId": 41,
                    "productCode": "5071524634502",
                    "productVat": "6.00",
                    "price": "61.81",
                    "points": 247,
                    "quantity": 1,
                    "subTotal": "61.81",
                    "discountString": "-16%",
                    "discountPrice": "11.77",
                    "originalPrice": "73.58",
                    "gift": null
                },
                {
                    "order": 48,
                    "productCodeId": 30,
                    "productCode": "3372133289216",
                    "productVat": "6.00",
                    "price": "95.93",
                    "points": 288,
                    "quantity": 4,
                    "subTotal": "383.72",
                    "discountString": "-19%",
                    "discountPrice": "22.50",
                    "originalPrice": "118.43",
                    "gift": null
                },
                {
                    "order": 48,
                    "productCodeId": 55,
                    "productCode": "3028131174688",
                    "productVat": "13.00",
                    "price": "78.21",
                    "points": 313,
                    "quantity": 2,
                    "subTotal": "156.42",
                    "discountString": "-48%",
                    "discountPrice": "72.19",
                    "originalPrice": "150.40",
                    "gift": null
                }
            ],
            "smartPoint": null
        },
        {
            "id": 47,
            "customerId": 440,
            "cancelId": 0,
            "store": 0,
            "transporter": 4,
            "orderSerial": "VP47",
            "webIgnore": true,
            "totalQuantity": 18,
            "currency": "EUR",
            "payWay": "delivery",
            "receiptType": "receipt",
            "customerComments": "Est ea et magnam beatae error ad aliquid alias.",
            "adminComments": "Fugit incidunt corrupti qui aliquid a molestiae quia explicabo repellendus necessitatibus voluptas.",
            "courierComments": "Minus sit et laudantium quaerat ut aut vel qui omnis et.",
            "total": "859.52",
            "totalWithVat": "959.69",
            "transportationCost": "1.52",
            "deliveryCost": "0.33",
            "status": "INVOICED",
            "voucherNumber": "5605899782",
            "entryDateTime": "2023-03-23 00:11:21",
            "canceledDate": null,
            "invoicedDateTime": "2023-03-27 16:00:28",
            "printedDateTime": "2023-03-23 11:48:19",
            "sentDateTime": "2023-03-26 22:03:59",
            "coupon": null,
            "couponValue": "0.00",
            "pointsUsed": 3000,
            "discountFromPoints": "3.00",
            "referer": "google",
            "billing": {
                "name": "Leon",
                "surname": "Blanda",
                "address": "28769 Blanda Mountains\nVestaside, RI 20392-2264",
                "city": "West Talia",
                "region": "Ullam iusto at.",
                "postal": "60196-3595",
                "county": "GR-A",
                "country": "GR",
                "landPhone": "+1-540-521-2638",
                "mobilePhone": "1-262-958-7329"
            },
            "shipping": {
                "name": "Juvenal",
                "surname": "Kuhn",
                "address": "3392 Audreanne Isle Suite 149\nPort Richmondland, RI 20379",
                "city": "West Kadin",
                "region": "Laborum nemo sit rerum.",
                "postal": "20689",
                "county": "GR-K",
                "country": "GR",
                "landPhone": "+1 (541) 408-9470",
                "mobilePhone": "(979) 525-8526"
            },
            "invoice": {
                "companyName": "",
                "companyProfession": "",
                "companyVatId": "",
                "companyVatOffice": "",
                "companyAddress": ""
            },
            "invoicePdf": null,
            "guest": false,
            "isSkroutz": false,
            "cart": [
                {
                    "order": 47,
                    "productCodeId": 123,
                    "productCode": "4873130966739",
                    "productVat": "0.00",
                    "price": "83.62",
                    "points": 251,
                    "quantity": 3,
                    "subTotal": "250.86",
                    "discountString": "-31%",
                    "discountPrice": "37.57",
                    "originalPrice": "121.19",
                    "gift": null
                },
                {
                    "order": 47,
                    "productCodeId": 70,
                    "productCode": "4623078828039",
                    "productVat": "23.00",
                    "price": "68.92",
                    "points": 207,
                    "quantity": 3,
                    "subTotal": "206.76",
                    "discountString": "-42%",
                    "discountPrice": "49.91",
                    "originalPrice": "118.83",
                    "gift": null
                },
                {
                    "order": 47,
                    "productCodeId": 81,
                    "productCode": "2487070126164",
                    "productVat": "23.00",
                    "price": "34.19",
                    "points": 137,
                    "quantity": 4,
                    "subTotal": "136.76",
                    "discountString": "-47%",
                    "discountPrice": "30.32",
                    "originalPrice": "64.51",
                    "gift": null
                },
                {
                    "order": 47,
                    "productCodeId": 139,
                    "productCode": "7897096343998",
                    "productVat": "6.50",
                    "price": "62.08",
                    "points": 186,
                    "quantity": 4,
                    "subTotal": "248.32",
                    "discountString": "-48%",
                    "discountPrice": "57.30",
                    "originalPrice": "119.38",
                    "gift": null
                },
                {
                    "order": 47,
                    "productCodeId": 122,
                    "productCode": "2941677787475",
                    "productVat": "24.00",
                    "price": "55.55",
                    "points": 56,
                    "quantity": 2,
                    "subTotal": "111.10",
                    "discountString": "-17%",
                    "discountPrice": "11.38",
                    "originalPrice": "66.93",
                    "gift": null
                },
                {
                    "order": 47,
                    "productCodeId": 63,
                    "productCode": "2990527467524",
                    "productVat": "6.50",
                    "price": "3.52",
                    "points": 4,
                    "quantity": 2,
                    "subTotal": "7.04",
                    "discountString": "-10%",
                    "discountPrice": "0.39",
                    "originalPrice": "3.91",
                    "gift": null
                }
            ],
            "smartPoint": {
                "response": {
                    "id": "305",
                    "type": "apm",
                    "image": "",
                    "lat": "38.00288445",
                    "lng": "23.7195469",
                    "title": "ΠANOYPΓIA 15, 10443",
                    "name": "ΑΒ Ι.Ν. Αγ. Μελετίου",
                    "postalCode": "10443",
                    "country": "GR",
                    "note": "Στο σούπερ μάρκετ \"ΑΒ Βασιλόπουλος\", με δυνατότητα στάθμευσης.",
                    "addressLine1": "Αυλώνος 18 & Πανουργιά 15",
                    "addressLine2": "Σεπόλια",
                    "shopCity": "Σεπόλια",
                    "shopAddress": "Αυλώνος 18 & Πανουργιά 15",
                    "shopZipcode": "10443"
                }
            }
        },
        {
            "id": 46,
            "customerId": 166,
            "cancelId": 108737593,
            "store": 2,
            "transporter": null,
            "orderSerial": "VP46",
            "webIgnore": false,
            "totalQuantity": 5,
            "currency": "EUR",
            "payWay": "apcopay",
            "receiptType": "receipt",
            "customerComments": "Sint perspiciatis amet eum modi magni voluptates totam quia aut nemo iusto nisi.",
            "adminComments": "Ea quasi dolor non quia a necessitatibus ratione ratione temporibus porro autem.",
            "courierComments": "Tempora corrupti eveniet sit voluptate quis inventore nam et quia quo itaque vitae sit.",
            "total": "184.12",
            "totalWithVat": "208.05",
            "transportationCost": "0.00",
            "deliveryCost": "0.00",
            "status": "INVOICED",
            "voucherNumber": null,
            "entryDateTime": "2023-03-30 11:22:45",
            "canceledDate": null,
            "invoicedDateTime": "2023-04-01 17:25:53",
            "printedDateTime": "2023-03-31 02:44:43",
            "sentDateTime": "2023-03-31 04:45:00",
            "coupon": null,
            "couponValue": "0.00",
            "pointsUsed": 0,
            "discountFromPoints": "0.00",
            "referer": "fedra",
            "billing": {
                "name": "Geoffrey",
                "surname": "Oberbrunner",
                "address": "3004 Purdy Manor\nSiennaville, WA 40532-3330",
                "city": "Lakinmouth",
                "region": "Aliquam aut sed reiciendis.",
                "postal": "15580-7850",
                "county": "GR-C",
                "country": "GR",
                "landPhone": "+1-973-385-9764",
                "mobilePhone": "+1-534-975-6255"
            },
            "shipping": {
                "name": "",
                "surname": "",
                "address": "696 Price Mall Apt. 396\nO'Harafort, IN 73133-8461",
                "city": "North Jeremie",
                "region": "Quisquam amet.",
                "postal": "12240",
                "county": "TR-77",
                "country": "TR",
                "landPhone": "785.772.2905",
                "mobilePhone": "339-631-5757"
            },
            "invoice": {
                "companyName": "",
                "companyProfession": "",
                "companyVatId": "",
                "companyVatOffice": "",
                "companyAddress": ""
            },
            "invoicePdf": null,
            "guest": false,
            "isSkroutz": false,
            "cart": [
                {
                    "order": 46,
                    "productCodeId": 84,
                    "productCode": "1587552067884",
                    "productVat": "13.00",
                    "price": "41.61",
                    "points": 166,
                    "quantity": 5,
                    "subTotal": "208.05",
                    "discountString": "-49%",
                    "discountPrice": "39.98",
                    "originalPrice": "81.59",
                    "gift": null
                }
            ],
            "smartPoint": null
        },
        {
            "id": 45,
            "customerId": 28,
            "cancelId": 41318505,
            "store": 2,
            "transporter": null,
            "orderSerial": "VP45",
            "webIgnore": true,
            "totalQuantity": 54,
            "currency": "EUR",
            "payWay": "paid_at_store",
            "receiptType": "invoice",
            "customerComments": "Error provident et delectus nesciunt aut at totam consequatur labore voluptatem fugiat.",
            "adminComments": "Est illo culpa consequatur aperiam sed expedita accusamus numquam id aliquam.",
            "courierComments": "Ea ut totam architecto in voluptatem illo qui incidunt fugiat in incidunt.",
            "total": "3006.73",
            "totalWithVat": "3299.02",
            "transportationCost": "0.00",
            "deliveryCost": "0.00",
            "status": "CANCELED",
            "voucherNumber": null,
            "entryDateTime": "2023-04-06 00:23:49",
            "canceledDate": "2023-04-09 10:04:22",
            "invoicedDateTime": "2023-04-08 11:39:23",
            "printedDateTime": null,
            "sentDateTime": null,
            "coupon": null,
            "couponValue": "0.00",
            "pointsUsed": 0,
            "discountFromPoints": "0.00",
            "referer": "instagram",
            "billing": {
                "name": "Hermina",
                "surname": "Moore",
                "address": "6274 Feeney Lodge Apt. 423\nNew Stacy, IL 58161",
                "city": "West Kaialand",
                "region": "Porro quasi et est.",
                "postal": "49542-3082",
                "county": "CY-02",
                "country": "CY",
                "landPhone": "+1-704-431-5522",
                "mobilePhone": "(928) 705-7449"
            },
            "shipping": {
                "name": "",
                "surname": "",
                "address": "696 Price Mall Apt. 396\nO'Harafort, IN 73133-8461",
                "city": "North Jeremie",
                "region": "Quisquam amet.",
                "postal": "12240",
                "county": "TR-77",
                "country": "TR",
                "landPhone": "785.772.2905",
                "mobilePhone": "339-631-5757"
            },
            "invoice": {
                "companyName": "Quo quas ipsa.",
                "companyProfession": "Dolor iure et.",
                "companyVatId": "5897059483",
                "companyVatOffice": "Et.",
                "companyAddress": "5310 Wiza Street Suite 917\nEast Arictown, AR 62053-7632"
            },
            "invoicePdf": null,
            "guest": false,
            "isSkroutz": false,
            "cart": [
                {
                    "order": 45,
                    "productCodeId": 80,
                    "productCode": "6135595442844",
                    "productVat": "6.50",
                    "price": "91.24",
                    "points": 365,
                    "quantity": 1,
                    "subTotal": "91.24",
                    "discountString": "-38%",
                    "discountPrice": "55.92",
                    "originalPrice": "147.16",
                    "gift": null
                },
                {
                    "order": 45,
                    "productCodeId": 123,
                    "productCode": "4873130966739",
                    "productVat": "13.00",
                    "price": "8.38",
                    "points": 34,
                    "quantity": 2,
                    "subTotal": "16.76",
                    "discountString": "-10%",
                    "discountPrice": "0.93",
                    "originalPrice": "9.31",
                    "gift": null
                },
                {
                    "order": 45,
                    "productCodeId": 35,
                    "productCode": "3007076496352",
                    "productVat": "0.00",
                    "price": "84.96",
                    "points": 425,
                    "quantity": 5,
                    "subTotal": "424.80",
                    "discountString": "-14%",
                    "discountPrice": "13.83",
                    "originalPrice": "98.79",
                    "gift": null
                },
                {
                    "order": 45,
                    "productCodeId": 55,
                    "productCode": "3028131174688",
                    "productVat": "6.50",
                    "price": "67.38",
                    "points": 202,
                    "quantity": 4,
                    "subTotal": "269.52",
                    "discountString": "-10%",
                    "discountPrice": "7.49",
                    "originalPrice": "74.87",
                    "gift": null
                },
                {
                    "order": 45,
                    "productCodeId": 60,
                    "productCode": "1259731585662",
                    "productVat": "23.00",
                    "price": "41.14",
                    "points": 165,
                    "quantity": 3,
                    "subTotal": "123.42",
                    "discountString": "-21%",
                    "discountPrice": "10.94",
                    "originalPrice": "52.08",
                    "gift": null
                },
                {
                    "order": 45,
                    "productCodeId": 84,
                    "productCode": "1587552067884",
                    "productVat": "24.00",
                    "price": "85.10",
                    "points": 426,
                    "quantity": 4,
                    "subTotal": "340.40",
                    "discountString": "-46%",
                    "discountPrice": "72.49",
                    "originalPrice": "157.59",
                    "gift": null
                },
                {
                    "order": 45,
                    "productCodeId": 42,
                    "productCode": "9096428710011",
                    "productVat": "13.00",
                    "price": "98.68",
                    "points": 395,
                    "quantity": 1,
                    "subTotal": "98.68",
                    "discountString": "-18%",
                    "discountPrice": "21.66",
                    "originalPrice": "120.34",
                    "gift": null
                },
                {
                    "order": 45,
                    "productCodeId": 11,
                    "productCode": "1280737316660",
                    "productVat": "23.00",
                    "price": "51.15",
                    "points": 256,
                    "quantity": 4,
                    "subTotal": "204.60",
                    "discountString": "-15%",
                    "discountPrice": "9.03",
                    "originalPrice": "60.18",
                    "gift": null
                },
                {
                    "order": 45,
                    "productCodeId": 127,
                    "productCode": "4703302731226",
                    "productVat": "6.00",
                    "price": "44.81",
                    "points": 134,
                    "quantity": 5,
                    "subTotal": "224.05",
                    "discountString": "-48%",
                    "discountPrice": "41.36",
                    "originalPrice": "86.17",
                    "gift": null
                },
                {
                    "order": 45,
                    "productCodeId": 39,
                    "productCode": "0187120113008",
                    "productVat": "6.00",
                    "price": "87.29",
                    "points": 262,
                    "quantity": 4,
                    "subTotal": "349.16",
                    "discountString": "-28%",
                    "discountPrice": "33.95",
                    "originalPrice": "121.24",
                    "gift": null
                },
                {
                    "order": 45,
                    "productCodeId": 34,
                    "productCode": "3277645766272",
                    "productVat": "24.00",
                    "price": "92.94",
                    "points": 279,
                    "quantity": 2,
                    "subTotal": "185.88",
                    "discountString": "-43%",
                    "discountPrice": "70.11",
                    "originalPrice": "163.05",
                    "gift": null
                },
                {
                    "order": 45,
                    "productCodeId": 9,
                    "productCode": "6250802002557",
                    "productVat": "0.00",
                    "price": "1.07",
                    "points": 1,
                    "quantity": 1,
                    "subTotal": "1.07",
                    "discountString": "-32%",
                    "discountPrice": "0.50",
                    "originalPrice": "1.57",
                    "gift": null
                },
                {
                    "order": 45,
                    "productCodeId": 58,
                    "productCode": "3769826956409",
                    "productVat": "23.00",
                    "price": "16.67",
                    "points": 83,
                    "quantity": 2,
                    "subTotal": "33.34",
                    "discountString": "-25%",
                    "discountPrice": "5.56",
                    "originalPrice": "22.23",
                    "gift": null
                },
                {
                    "order": 45,
                    "productCodeId": 30,
                    "productCode": "3372133289216",
                    "productVat": "6.00",
                    "price": "27.37",
                    "points": 137,
                    "quantity": 5,
                    "subTotal": "136.85",
                    "discountString": "-36%",
                    "discountPrice": "15.40",
                    "originalPrice": "42.77",
                    "gift": null
                },
                {
                    "order": 45,
                    "productCodeId": 57,
                    "productCode": "4163550487540",
                    "productVat": "6.00",
                    "price": "80.28",
                    "points": 321,
                    "quantity": 5,
                    "subTotal": "401.40",
                    "discountString": "-18%",
                    "discountPrice": "17.62",
                    "originalPrice": "97.90",
                    "gift": null
                },
                {
                    "order": 45,
                    "productCodeId": 63,
                    "productCode": "2990527467524",
                    "productVat": "6.00",
                    "price": "60.70",
                    "points": 304,
                    "quantity": 2,
                    "subTotal": "121.40",
                    "discountString": "-28%",
                    "discountPrice": "23.61",
                    "originalPrice": "84.31",
                    "gift": null
                },
                {
                    "order": 45,
                    "productCodeId": 16,
                    "productCode": "0642161179258",
                    "productVat": "6.00",
                    "price": "79.97",
                    "points": 240,
                    "quantity": 3,
                    "subTotal": "239.91",
                    "discountString": "-27%",
                    "discountPrice": "29.58",
                    "originalPrice": "109.55",
                    "gift": null
                },
                {
                    "order": 45,
                    "productCodeId": 11,
                    "productCode": "1280737316660",
                    "productVat": "13.00",
                    "price": "36.54",
                    "points": 183,
                    "quantity": 1,
                    "subTotal": "36.54",
                    "discountString": "-45%",
                    "discountPrice": "29.90",
                    "originalPrice": "66.44",
                    "gift": null
                }
            ],
            "smartPoint": null
        },
        {
            "id": 44,
            "customerId": 326,
            "cancelId": 0,
            "store": 1,
            "transporter": null,
            "orderSerial": "VP44",
            "webIgnore": true,
            "totalQuantity": 55,
            "currency": "EUR",
            "payWay": "piraeus",
            "receiptType": "receipt",
            "customerComments": "Et qui quia repudiandae rerum itaque officiis.",
            "adminComments": "Fugit exercitationem aliquam ullam fuga fuga necessitatibus quibusdam qui.",
            "courierComments": "Sapiente neque nulla quas ullam laboriosam nam eum iusto rem non tenetur.",
            "total": "2514.77",
            "totalWithVat": "2744.49",
            "transportationCost": "0.00",
            "deliveryCost": "0.00",
            "status": "INVOICED",
            "voucherNumber": null,
            "entryDateTime": "2023-04-07 14:03:22",
            "canceledDate": null,
            "invoicedDateTime": "2023-04-07 16:41:13",
            "printedDateTime": "2023-04-07 16:27:39",
            "sentDateTime": "2023-04-07 15:29:40",
            "coupon": null,
            "couponValue": "0.00",
            "pointsUsed": 9000,
            "discountFromPoints": "9.00",
            "referer": null,
            "billing": {
                "name": "Hettie",
                "surname": "Hackett",
                "address": "3582 Conn Trail Apt. 561\nLake Arvilla, VA 69112-6262",
                "city": "West Jerrellborough",
                "region": "Totam quod alias tempora sed.",
                "postal": "10381",
                "county": "GR-H",
                "country": "GR",
                "landPhone": "1-847-480-5642",
                "mobilePhone": "+1-786-324-2118"
            },
            "shipping": {
                "name": "",
                "surname": "",
                "address": "649 Von Squares Suite 934\nSouth Trinitymouth, ND 83408-0297",
                "city": "Williamsonport",
                "region": "Hic neque alias.",
                "postal": "43915",
                "county": "GB-NWP",
                "country": "GB",
                "landPhone": "(442) 410-3055",
                "mobilePhone": "534-959-6900"
            },
            "invoice": {
                "companyName": "",
                "companyProfession": "",
                "companyVatId": "",
                "companyVatOffice": "",
                "companyAddress": ""
            },
            "invoicePdf": null,
            "guest": true,
            "isSkroutz": false,
            "cart": [
                {
                    "order": 44,
                    "productCodeId": 14,
                    "productCode": "3461598330998",
                    "productVat": "6.00",
                    "price": "32.55",
                    "points": 130,
                    "quantity": 3,
                    "subTotal": "97.65",
                    "discountString": "-24%",
                    "discountPrice": "10.28",
                    "originalPrice": "42.83",
                    "gift": null
                },
                {
                    "order": 44,
                    "productCodeId": 133,
                    "productCode": "8533782325648",
                    "productVat": "6.50",
                    "price": "41.44",
                    "points": 124,
                    "quantity": 1,
                    "subTotal": "41.44",
                    "discountString": "-46%",
                    "discountPrice": "35.30",
                    "originalPrice": "76.74",
                    "gift": null
                },
                {
                    "order": 44,
                    "productCodeId": 105,
                    "productCode": "6365773933820",
                    "productVat": "23.00",
                    "price": "23.90",
                    "points": 120,
                    "quantity": 3,
                    "subTotal": "71.70",
                    "discountString": "-12%",
                    "discountPrice": "3.26",
                    "originalPrice": "27.16",
                    "gift": null
                },
                {
                    "order": 44,
                    "productCodeId": 125,
                    "productCode": "7198038457705",
                    "productVat": "24.00",
                    "price": "83.42",
                    "points": 83,
                    "quantity": 2,
                    "subTotal": "166.84",
                    "discountString": "-24%",
                    "discountPrice": "26.34",
                    "originalPrice": "109.76",
                    "gift": null
                },
                {
                    "order": 44,
                    "productCodeId": 96,
                    "productCode": "9255986655671",
                    "productVat": "0.00",
                    "price": "98.76",
                    "points": 494,
                    "quantity": 3,
                    "subTotal": "296.28",
                    "discountString": "-22%",
                    "discountPrice": "27.86",
                    "originalPrice": "126.62",
                    "gift": null
                },
                {
                    "order": 44,
                    "productCodeId": 42,
                    "productCode": "9096428710011",
                    "productVat": "6.50",
                    "price": "67.98",
                    "points": 204,
                    "quantity": 4,
                    "subTotal": "271.92",
                    "discountString": "-28%",
                    "discountPrice": "26.44",
                    "originalPrice": "94.42",
                    "gift": null
                },
                {
                    "order": 44,
                    "productCodeId": 118,
                    "productCode": "5350997151014",
                    "productVat": "24.00",
                    "price": "99.72",
                    "points": 199,
                    "quantity": 2,
                    "subTotal": "199.44",
                    "discountString": "-12%",
                    "discountPrice": "13.60",
                    "originalPrice": "113.32",
                    "gift": null
                },
                {
                    "order": 44,
                    "productCodeId": 140,
                    "productCode": "1079710536573",
                    "productVat": "0.00",
                    "price": "46.42",
                    "points": 46,
                    "quantity": 2,
                    "subTotal": "92.84",
                    "discountString": "-45%",
                    "discountPrice": "37.98",
                    "originalPrice": "84.40",
                    "gift": null
                },
                {
                    "order": 44,
                    "productCodeId": 73,
                    "productCode": "0574706529634",
                    "productVat": "24.00",
                    "price": "81.83",
                    "points": 82,
                    "quantity": 1,
                    "subTotal": "81.83",
                    "discountString": "-39%",
                    "discountPrice": "52.32",
                    "originalPrice": "134.15",
                    "gift": null
                },
                {
                    "order": 44,
                    "productCodeId": 54,
                    "productCode": "8039961949655",
                    "productVat": "23.00",
                    "price": "33.81",
                    "points": 169,
                    "quantity": 1,
                    "subTotal": "33.81",
                    "discountString": "-40%",
                    "discountPrice": "22.54",
                    "originalPrice": "56.35",
                    "gift": null
                },
                {
                    "order": 44,
                    "productCodeId": 10,
                    "productCode": "1378638814931",
                    "productVat": "23.00",
                    "price": "14.26",
                    "points": 43,
                    "quantity": 4,
                    "subTotal": "57.04",
                    "discountString": "-41%",
                    "discountPrice": "9.91",
                    "originalPrice": "24.17",
                    "gift": null
                },
                {
                    "order": 44,
                    "productCodeId": 86,
                    "productCode": "4576430459771",
                    "productVat": "23.00",
                    "price": "78.91",
                    "points": 158,
                    "quantity": 1,
                    "subTotal": "78.91",
                    "discountString": "-38%",
                    "discountPrice": "48.36",
                    "originalPrice": "127.27",
                    "gift": null
                },
                {
                    "order": 44,
                    "productCodeId": 59,
                    "productCode": "8154228316046",
                    "productVat": "6.00",
                    "price": "92.60",
                    "points": 93,
                    "quantity": 3,
                    "subTotal": "277.80",
                    "discountString": "-16%",
                    "discountPrice": "17.64",
                    "originalPrice": "110.24",
                    "gift": null
                },
                {
                    "order": 44,
                    "productCodeId": 38,
                    "productCode": "7793358681290",
                    "productVat": "13.00",
                    "price": "51.87",
                    "points": 259,
                    "quantity": 1,
                    "subTotal": "51.87",
                    "discountString": "-33%",
                    "discountPrice": "25.55",
                    "originalPrice": "77.42",
                    "gift": null
                },
                {
                    "order": 44,
                    "productCodeId": 89,
                    "productCode": "3874039514886",
                    "productVat": "6.00",
                    "price": "58.09",
                    "points": 116,
                    "quantity": 4,
                    "subTotal": "232.36",
                    "discountString": "-46%",
                    "discountPrice": "49.48",
                    "originalPrice": "107.57",
                    "gift": null
                },
                {
                    "order": 44,
                    "productCodeId": 125,
                    "productCode": "7198038457705",
                    "productVat": "23.00",
                    "price": "3.11",
                    "points": 16,
                    "quantity": 5,
                    "subTotal": "15.55",
                    "discountString": "-36%",
                    "discountPrice": "1.75",
                    "originalPrice": "4.86",
                    "gift": null
                },
                {
                    "order": 44,
                    "productCodeId": 46,
                    "productCode": "1883576511816",
                    "productVat": "0.00",
                    "price": "19.43",
                    "points": 39,
                    "quantity": 5,
                    "subTotal": "97.15",
                    "discountString": "-42%",
                    "discountPrice": "14.07",
                    "originalPrice": "33.50",
                    "gift": null
                },
                {
                    "order": 44,
                    "productCodeId": 135,
                    "productCode": "9698882120711",
                    "productVat": "13.00",
                    "price": "11.14",
                    "points": 45,
                    "quantity": 2,
                    "subTotal": "22.28",
                    "discountString": "-50%",
                    "discountPrice": "11.14",
                    "originalPrice": "22.28",
                    "gift": null
                },
                {
                    "order": 44,
                    "productCodeId": 22,
                    "productCode": "4481576069572",
                    "productVat": "6.00",
                    "price": "79.87",
                    "points": 160,
                    "quantity": 5,
                    "subTotal": "399.35",
                    "discountString": "-30%",
                    "discountPrice": "34.23",
                    "originalPrice": "114.10",
                    "gift": null
                },
                {
                    "order": 44,
                    "productCodeId": 91,
                    "productCode": "5962493042354",
                    "productVat": "13.00",
                    "price": "55.81",
                    "points": 167,
                    "quantity": 3,
                    "subTotal": "167.43",
                    "discountString": "-20%",
                    "discountPrice": "13.95",
                    "originalPrice": "69.76",
                    "gift": null
                }
            ],
            "smartPoint": null
        },
        {
            "id": 43,
            "customerId": 391,
            "cancelId": 0,
            "store": 0,
            "transporter": 3,
            "orderSerial": "VP43",
            "webIgnore": true,
            "totalQuantity": 7,
            "currency": "EUR",
            "payWay": "eurobank",
            "receiptType": "receipt",
            "customerComments": "Dolorem reiciendis consequuntur quam placeat nihil modi libero velit in quo recusandae qui aut.",
            "adminComments": "Aperiam sint ratione maxime veniam voluptas illo sint necessitatibus dicta dolor doloribus quo.",
            "courierComments": "Quisquam impedit nulla molestiae aut dolorem maxime magnam non delectus voluptas eos molestiae.",
            "total": "511.81",
            "totalWithVat": "588.57",
            "transportationCost": "1.62",
            "deliveryCost": "0.00",
            "status": "PAID_SENT",
            "voucherNumber": "9928146398",
            "entryDateTime": "2023-04-02 16:35:57",
            "canceledDate": null,
            "invoicedDateTime": "2023-04-04 11:30:40",
            "printedDateTime": "2023-04-03 16:18:23",
            "sentDateTime": "2023-04-02 19:09:19",
            "coupon": 2,
            "couponValue": "4.61",
            "pointsUsed": 3000,
            "discountFromPoints": "3.00",
            "referer": null,
            "billing": {
                "name": "Jovanny",
                "surname": "Marquardt",
                "address": "328 Darrell Estate Suite 477\nKurtborough, CA 77828",
                "city": "Georgeland",
                "region": "Voluptas aut quo.",
                "postal": "18673",
                "county": "GR-A",
                "country": "GR",
                "landPhone": "(540) 465-5363",
                "mobilePhone": "+1-442-872-2978"
            },
            "shipping": {
                "name": "Jovanny",
                "surname": "Marquardt",
                "address": "328 Darrell Estate Suite 477\nKurtborough, CA 77828",
                "city": "Georgeland",
                "region": "Voluptas aut quo.",
                "postal": "18673",
                "county": "GR-A",
                "country": "GR",
                "landPhone": "(540) 465-5363",
                "mobilePhone": "+1-442-872-2978"
            },
            "invoice": {
                "companyName": "",
                "companyProfession": "",
                "companyVatId": "",
                "companyVatOffice": "",
                "companyAddress": ""
            },
            "invoicePdf": null,
            "guest": false,
            "isSkroutz": false,
            "cart": [
                {
                    "order": 43,
                    "productCodeId": 129,
                    "productCode": "8010566092687",
                    "productVat": "13.00",
                    "price": "79.02",
                    "points": 237,
                    "quantity": 5,
                    "subTotal": "395.10",
                    "discountString": "-22%",
                    "discountPrice": "22.29",
                    "originalPrice": "101.31",
                    "gift": null
                },
                {
                    "order": 43,
                    "productCodeId": 9,
                    "productCode": "6250802002557",
                    "productVat": "23.00",
                    "price": "99.73",
                    "points": 299,
                    "quantity": 2,
                    "subTotal": "199.46",
                    "discountString": "-14%",
                    "discountPrice": "16.24",
                    "originalPrice": "115.97",
                    "gift": null
                }
            ],
            "smartPoint": null
        },
        {
            "id": 42,
            "customerId": 291,
            "cancelId": 32560813,
            "store": 3,
            "transporter": null,
            "orderSerial": "VP42",
            "webIgnore": true,
            "totalQuantity": 42,
            "currency": "EUR",
            "payWay": "bank_transfer",
            "receiptType": "receipt",
            "customerComments": "Sit debitis aliquam id qui iste sint excepturi hic sed distinctio mollitia eaque autem.",
            "adminComments": "Vitae iusto maxime error voluptates quia nam.",
            "courierComments": "Alias qui consequatur facilis rerum dolorem at sit modi quo quis cumque dolore.",
            "total": "1454.59",
            "totalWithVat": "1612.73",
            "transportationCost": "0.00",
            "deliveryCost": "0.00",
            "status": "RETURN",
            "voucherNumber": null,
            "entryDateTime": "2023-03-24 15:33:46",
            "canceledDate": null,
            "invoicedDateTime": "2023-03-26 16:02:37",
            "printedDateTime": "2023-03-24 23:47:54",
            "sentDateTime": "2023-03-24 20:14:21",
            "coupon": null,
            "couponValue": "0.00",
            "pointsUsed": 6000,
            "discountFromPoints": "6.00",
            "referer": null,
            "billing": {
                "name": "Alva",
                "surname": "Botsford",
                "address": "37466 Ayla Causeway Apt. 124\nKirlinstad, AK 10369-9674",
                "city": "Bernhardville",
                "region": "Et sit quis totam.",
                "postal": "70049",
                "county": "GR-A",
                "country": "GR",
                "landPhone": "+1-667-942-6404",
                "mobilePhone": "435-578-5941"
            },
            "shipping": {
                "name": "",
                "surname": "",
                "address": "3754 Elwin Pines Apt. 134\nCaspermouth, SC 71111-3018",
                "city": "Alvinamouth",
                "region": "Nisi explicabo.",
                "postal": "03208",
                "county": "HU-SN",
                "country": "HU",
                "landPhone": "+1.726.931.1526",
                "mobilePhone": "407.645.4689"
            },
            "invoice": {
                "companyName": "",
                "companyProfession": "",
                "companyVatId": "",
                "companyVatOffice": "",
                "companyAddress": ""
            },
            "invoicePdf": null,
            "guest": false,
            "isSkroutz": false,
            "cart": [
                {
                    "order": 42,
                    "productCodeId": 27,
                    "productCode": "9106119158760",
                    "productVat": "6.50",
                    "price": "53.22",
                    "points": 266,
                    "quantity": 5,
                    "subTotal": "266.10",
                    "discountString": "-28%",
                    "discountPrice": "20.70",
                    "originalPrice": "73.92",
                    "gift": null
                },
                {
                    "order": 42,
                    "productCodeId": 40,
                    "productCode": "9753928230165",
                    "productVat": "23.00",
                    "price": "30.42",
                    "points": 122,
                    "quantity": 2,
                    "subTotal": "60.84",
                    "discountString": "-13%",
                    "discountPrice": "4.55",
                    "originalPrice": "34.97",
                    "gift": null
                },
                {
                    "order": 42,
                    "productCodeId": 76,
                    "productCode": "4525663935736",
                    "productVat": "6.00",
                    "price": "5.98",
                    "points": 18,
                    "quantity": 3,
                    "subTotal": "17.94",
                    "discountString": "-26%",
                    "discountPrice": "2.10",
                    "originalPrice": "8.08",
                    "gift": null
                },
                {
                    "order": 42,
                    "productCodeId": 12,
                    "productCode": "7453916637816",
                    "productVat": "6.50",
                    "price": "58.97",
                    "points": 118,
                    "quantity": 3,
                    "subTotal": "176.91",
                    "discountString": "-15%",
                    "discountPrice": "10.41",
                    "originalPrice": "69.38",
                    "gift": null
                },
                {
                    "order": 42,
                    "productCodeId": 73,
                    "productCode": "0574706529634",
                    "productVat": "24.00",
                    "price": "70.70",
                    "points": 141,
                    "quantity": 1,
                    "subTotal": "70.70",
                    "discountString": "-44%",
                    "discountPrice": "55.55",
                    "originalPrice": "126.25",
                    "gift": null
                },
                {
                    "order": 42,
                    "productCodeId": 72,
                    "productCode": "5199816283280",
                    "productVat": "23.00",
                    "price": "52.64",
                    "points": 158,
                    "quantity": 1,
                    "subTotal": "52.64",
                    "discountString": "-24%",
                    "discountPrice": "16.62",
                    "originalPrice": "69.26",
                    "gift": null
                },
                {
                    "order": 42,
                    "productCodeId": 77,
                    "productCode": "7517641906446",
                    "productVat": "23.00",
                    "price": "60.23",
                    "points": 60,
                    "quantity": 2,
                    "subTotal": "120.46",
                    "discountString": "-14%",
                    "discountPrice": "9.80",
                    "originalPrice": "70.03",
                    "gift": null
                },
                {
                    "order": 42,
                    "productCodeId": 75,
                    "productCode": "4446353935310",
                    "productVat": "6.50",
                    "price": "77.00",
                    "points": 154,
                    "quantity": 1,
                    "subTotal": "77.00",
                    "discountString": "-20%",
                    "discountPrice": "19.25",
                    "originalPrice": "96.25",
                    "gift": null
                },
                {
                    "order": 42,
                    "productCodeId": 129,
                    "productCode": "8010566092687",
                    "productVat": "6.00",
                    "price": "36.31",
                    "points": 145,
                    "quantity": 4,
                    "subTotal": "145.24",
                    "discountString": "-22%",
                    "discountPrice": "10.24",
                    "originalPrice": "46.55",
                    "gift": null
                },
                {
                    "order": 42,
                    "productCodeId": 130,
                    "productCode": "2165982024043",
                    "productVat": "24.00",
                    "price": "8.92",
                    "points": 27,
                    "quantity": 2,
                    "subTotal": "17.84",
                    "discountString": "-10%",
                    "discountPrice": "0.99",
                    "originalPrice": "9.91",
                    "gift": null
                },
                {
                    "order": 42,
                    "productCodeId": 62,
                    "productCode": "5531471610979",
                    "productVat": "6.50",
                    "price": "23.26",
                    "points": 93,
                    "quantity": 2,
                    "subTotal": "46.52",
                    "discountString": "-14%",
                    "discountPrice": "3.79",
                    "originalPrice": "27.05",
                    "gift": null
                },
                {
                    "order": 42,
                    "productCodeId": 114,
                    "productCode": "0857471989842",
                    "productVat": "6.50",
                    "price": "67.43",
                    "points": 202,
                    "quantity": 4,
                    "subTotal": "269.72",
                    "discountString": "-11%",
                    "discountPrice": "8.33",
                    "originalPrice": "75.76",
                    "gift": null
                },
                {
                    "order": 42,
                    "productCodeId": 135,
                    "productCode": "9698882120711",
                    "productVat": "6.00",
                    "price": "41.97",
                    "points": 126,
                    "quantity": 1,
                    "subTotal": "41.97",
                    "discountString": "-15%",
                    "discountPrice": "7.41",
                    "originalPrice": "49.38",
                    "gift": null
                },
                {
                    "order": 42,
                    "productCodeId": 129,
                    "productCode": "8010566092687",
                    "productVat": "23.00",
                    "price": "46.99",
                    "points": 94,
                    "quantity": 2,
                    "subTotal": "93.98",
                    "discountString": "-21%",
                    "discountPrice": "12.49",
                    "originalPrice": "59.48",
                    "gift": null
                },
                {
                    "order": 42,
                    "productCodeId": 29,
                    "productCode": "7542097252533",
                    "productVat": "24.00",
                    "price": "4.15",
                    "points": 17,
                    "quantity": 5,
                    "subTotal": "20.75",
                    "discountString": "-29%",
                    "discountPrice": "1.70",
                    "originalPrice": "5.85",
                    "gift": null
                },
                {
                    "order": 42,
                    "productCodeId": 51,
                    "productCode": "4401895827639",
                    "productVat": "0.00",
                    "price": "20.94",
                    "points": 21,
                    "quantity": 2,
                    "subTotal": "41.88",
                    "discountString": "-32%",
                    "discountPrice": "9.85",
                    "originalPrice": "30.79",
                    "gift": null
                },
                {
                    "order": 42,
                    "productCodeId": 64,
                    "productCode": "1205019739494",
                    "productVat": "24.00",
                    "price": "49.12",
                    "points": 147,
                    "quantity": 2,
                    "subTotal": "98.24",
                    "discountString": "-31%",
                    "discountPrice": "22.07",
                    "originalPrice": "71.19",
                    "gift": null
                }
            ],
            "smartPoint": null
        },
        {
            "id": 41,
            "customerId": 47,
            "cancelId": 0,
            "store": 0,
            "transporter": 2,
            "orderSerial": "VP41",
            "webIgnore": false,
            "totalQuantity": 41,
            "currency": "EUR",
            "payWay": "delivery",
            "receiptType": "receipt",
            "customerComments": "Non perferendis doloribus corrupti numquam mollitia quis aut doloremque voluptatem aut sapiente libero.",
            "adminComments": "Adipisci officiis eveniet voluptatem sit qui sapiente optio et doloribus asperiores soluta voluptatem qui.",
            "courierComments": "Sed ad in nihil sint dicta eum ad velit maiores.",
            "total": "1468.18",
            "totalWithVat": "1667.93",
            "transportationCost": "1.38",
            "deliveryCost": "1.56",
            "status": "SENT",
            "voucherNumber": "5851679183",
            "entryDateTime": "2023-03-25 20:32:43",
            "canceledDate": null,
            "invoicedDateTime": "2023-03-30 10:57:43",
            "printedDateTime": "2023-03-28 22:06:44",
            "sentDateTime": "2023-03-28 13:09:29",
            "coupon": null,
            "couponValue": "0.00",
            "pointsUsed": 2000,
            "discountFromPoints": "2.00",
            "referer": null,
            "billing": {
                "name": "Dominic",
                "surname": "Wisoky",
                "address": "52033 Vandervort Isle\nEast Tyreekview, RI 22457",
                "city": "East Leonelfort",
                "region": "Id id ipsa.",
                "postal": "28715",
                "county": "GR-K",
                "country": "GR",
                "landPhone": "+1-352-397-8193",
                "mobilePhone": "+1-657-940-2047"
            },
            "shipping": {
                "name": "Dominic",
                "surname": "Wisoky",
                "address": "52033 Vandervort Isle\nEast Tyreekview, RI 22457",
                "city": "East Leonelfort",
                "region": "Id id ipsa.",
                "postal": "28715",
                "county": "GR-K",
                "country": "GR",
                "landPhone": "+1-352-397-8193",
                "mobilePhone": "+1-657-940-2047"
            },
            "invoice": {
                "companyName": "",
                "companyProfession": "",
                "companyVatId": "",
                "companyVatOffice": "",
                "companyAddress": ""
            },
            "invoicePdf": null,
            "guest": true,
            "isSkroutz": false,
            "cart": [
                {
                    "order": 41,
                    "productCodeId": 53,
                    "productCode": "9253359883188",
                    "productVat": "6.50",
                    "price": "17.63",
                    "points": 71,
                    "quantity": 3,
                    "subTotal": "52.89",
                    "discountString": "-49%",
                    "discountPrice": "16.94",
                    "originalPrice": "34.57",
                    "gift": null
                },
                {
                    "order": 41,
                    "productCodeId": 40,
                    "productCode": "9753928230165",
                    "productVat": "23.00",
                    "price": "39.87",
                    "points": 40,
                    "quantity": 4,
                    "subTotal": "159.48",
                    "discountString": "-27%",
                    "discountPrice": "14.75",
                    "originalPrice": "54.62",
                    "gift": null
                },
                {
                    "order": 41,
                    "productCodeId": 38,
                    "productCode": "7793358681290",
                    "productVat": "13.00",
                    "price": "34.96",
                    "points": 70,
                    "quantity": 3,
                    "subTotal": "104.88",
                    "discountString": "-45%",
                    "discountPrice": "28.60",
                    "originalPrice": "63.56",
                    "gift": null
                },
                {
                    "order": 41,
                    "productCodeId": 15,
                    "productCode": "0673610427156",
                    "productVat": "23.00",
                    "price": "30.97",
                    "points": 31,
                    "quantity": 5,
                    "subTotal": "154.85",
                    "discountString": "-12%",
                    "discountPrice": "4.22",
                    "originalPrice": "35.19",
                    "gift": null
                },
                {
                    "order": 41,
                    "productCodeId": 115,
                    "productCode": "3176130777284",
                    "productVat": "0.00",
                    "price": "14.54",
                    "points": 15,
                    "quantity": 2,
                    "subTotal": "29.08",
                    "discountString": "-13%",
                    "discountPrice": "2.17",
                    "originalPrice": "16.71",
                    "gift": null
                },
                {
                    "order": 41,
                    "productCodeId": 54,
                    "productCode": "8039961949655",
                    "productVat": "13.00",
                    "price": "56.79",
                    "points": 170,
                    "quantity": 5,
                    "subTotal": "283.95",
                    "discountString": "-12%",
                    "discountPrice": "7.74",
                    "originalPrice": "64.53",
                    "gift": null
                },
                {
                    "order": 41,
                    "productCodeId": 50,
                    "productCode": "4456566559722",
                    "productVat": "23.00",
                    "price": "65.60",
                    "points": 262,
                    "quantity": 3,
                    "subTotal": "196.80",
                    "discountString": "-16%",
                    "discountPrice": "12.50",
                    "originalPrice": "78.10",
                    "gift": null
                },
                {
                    "order": 41,
                    "productCodeId": 41,
                    "productCode": "5071524634502",
                    "productVat": "13.00",
                    "price": "30.22",
                    "points": 91,
                    "quantity": 3,
                    "subTotal": "90.66",
                    "discountString": "-22%",
                    "discountPrice": "8.52",
                    "originalPrice": "38.74",
                    "gift": null
                },
                {
                    "order": 41,
                    "productCodeId": 42,
                    "productCode": "9096428710011",
                    "productVat": "0.00",
                    "price": "29.39",
                    "points": 59,
                    "quantity": 1,
                    "subTotal": "29.39",
                    "discountString": "-16%",
                    "discountPrice": "5.60",
                    "originalPrice": "34.99",
                    "gift": null
                },
                {
                    "order": 41,
                    "productCodeId": 14,
                    "productCode": "3461598330998",
                    "productVat": "0.00",
                    "price": "58.67",
                    "points": 59,
                    "quantity": 1,
                    "subTotal": "58.67",
                    "discountString": "-24%",
                    "discountPrice": "18.53",
                    "originalPrice": "77.20",
                    "gift": null
                },
                {
                    "order": 41,
                    "productCodeId": 51,
                    "productCode": "4401895827639",
                    "productVat": "6.00",
                    "price": "26.50",
                    "points": 27,
                    "quantity": 2,
                    "subTotal": "53.00",
                    "discountString": "-45%",
                    "discountPrice": "21.68",
                    "originalPrice": "48.18",
                    "gift": null
                },
                {
                    "order": 41,
                    "productCodeId": 64,
                    "productCode": "1205019739494",
                    "productVat": "0.00",
                    "price": "59.31",
                    "points": 178,
                    "quantity": 4,
                    "subTotal": "237.24",
                    "discountString": "-47%",
                    "discountPrice": "52.60",
                    "originalPrice": "111.91",
                    "gift": null
                },
                {
                    "order": 41,
                    "productCodeId": 68,
                    "productCode": "2684474278257",
                    "productVat": "24.00",
                    "price": "43.22",
                    "points": 130,
                    "quantity": 5,
                    "subTotal": "216.10",
                    "discountString": "-45%",
                    "discountPrice": "35.36",
                    "originalPrice": "78.58",
                    "gift": null
                }
            ],
            "smartPoint": null
        },
        {
            "id": 40,
            "customerId": 79,
            "cancelId": 31,
            "store": 1,
            "transporter": null,
            "orderSerial": "VP40",
            "webIgnore": true,
            "totalQuantity": 53,
            "currency": "EUR",
            "payWay": "paypal",
            "receiptType": "receipt",
            "customerComments": "Totam nihil nostrum reprehenderit veritatis minus omnis fugit iusto.",
            "adminComments": "Iusto quae corporis sapiente exercitationem aut dolores ut veniam nulla est.",
            "courierComments": "Qui temporibus laboriosam quia reiciendis maiores dolorem totam est.",
            "total": "2821.82",
            "totalWithVat": "3133.68",
            "transportationCost": "0.00",
            "deliveryCost": "0.00",
            "status": "PENDING_ACCEPTED",
            "voucherNumber": null,
            "entryDateTime": "2023-04-10 17:13:01",
            "canceledDate": null,
            "invoicedDateTime": null,
            "printedDateTime": null,
            "sentDateTime": null,
            "coupon": 4,
            "couponValue": "2.49",
            "pointsUsed": 0,
            "discountFromPoints": "0.00",
            "referer": null,
            "billing": {
                "name": "Lilla",
                "surname": "Hane",
                "address": "281 Predovic Common Apt. 546\nWest Reganshire, NJ 21209",
                "city": "West Felton",
                "region": "Architecto dolor illo.",
                "postal": "05459-2090",
                "county": "GR-H",
                "country": "GR",
                "landPhone": "+1-458-384-3150",
                "mobilePhone": "239-374-9489"
            },
            "shipping": {
                "name": "",
                "surname": "",
                "address": "649 Von Squares Suite 934\nSouth Trinitymouth, ND 83408-0297",
                "city": "Williamsonport",
                "region": "Hic neque alias.",
                "postal": "43915",
                "county": "GB-NWP",
                "country": "GB",
                "landPhone": "(442) 410-3055",
                "mobilePhone": "534-959-6900"
            },
            "invoice": {
                "companyName": "",
                "companyProfession": "",
                "companyVatId": "",
                "companyVatOffice": "",
                "companyAddress": ""
            },
            "invoicePdf": null,
            "guest": true,
            "isSkroutz": false,
            "cart": [
                {
                    "order": 40,
                    "productCodeId": 62,
                    "productCode": "5531471610979",
                    "productVat": "13.00",
                    "price": "67.18",
                    "points": 134,
                    "quantity": 5,
                    "subTotal": "335.90",
                    "discountString": "-11%",
                    "discountPrice": "8.30",
                    "originalPrice": "75.48",
                    "gift": null
                },
                {
                    "order": 40,
                    "productCodeId": 93,
                    "productCode": "1911808125057",
                    "productVat": "23.00",
                    "price": "89.77",
                    "points": 449,
                    "quantity": 4,
                    "subTotal": "359.08",
                    "discountString": "-23%",
                    "discountPrice": "26.81",
                    "originalPrice": "116.58",
                    "gift": null
                },
                {
                    "order": 40,
                    "productCodeId": 131,
                    "productCode": "8301111829606",
                    "productVat": "0.00",
                    "price": "80.68",
                    "points": 161,
                    "quantity": 4,
                    "subTotal": "322.72",
                    "discountString": "-18%",
                    "discountPrice": "17.71",
                    "originalPrice": "98.39",
                    "gift": null
                },
                {
                    "order": 40,
                    "productCodeId": 114,
                    "productCode": "0857471989842",
                    "productVat": "13.00",
                    "price": "90.84",
                    "points": 363,
                    "quantity": 5,
                    "subTotal": "454.20",
                    "discountString": "-13%",
                    "discountPrice": "13.57",
                    "originalPrice": "104.41",
                    "gift": null
                },
                {
                    "order": 40,
                    "productCodeId": 32,
                    "productCode": "5886007166186",
                    "productVat": "13.00",
                    "price": "56.84",
                    "points": 114,
                    "quantity": 4,
                    "subTotal": "227.36",
                    "discountString": "-48%",
                    "discountPrice": "52.47",
                    "originalPrice": "109.31",
                    "gift": null
                },
                {
                    "order": 40,
                    "productCodeId": 48,
                    "productCode": "6599190126057",
                    "productVat": "6.00",
                    "price": "81.36",
                    "points": 244,
                    "quantity": 5,
                    "subTotal": "406.80",
                    "discountString": "-27%",
                    "discountPrice": "30.09",
                    "originalPrice": "111.45",
                    "gift": null
                },
                {
                    "order": 40,
                    "productCodeId": 73,
                    "productCode": "0574706529634",
                    "productVat": "0.00",
                    "price": "51.68",
                    "points": 155,
                    "quantity": 2,
                    "subTotal": "103.36",
                    "discountString": "-39%",
                    "discountPrice": "33.04",
                    "originalPrice": "84.72",
                    "gift": null
                },
                {
                    "order": 40,
                    "productCodeId": 29,
                    "productCode": "7542097252533",
                    "productVat": "6.50",
                    "price": "54.60",
                    "points": 218,
                    "quantity": 2,
                    "subTotal": "109.20",
                    "discountString": "-27%",
                    "discountPrice": "20.19",
                    "originalPrice": "74.79",
                    "gift": null
                },
                {
                    "order": 40,
                    "productCodeId": 136,
                    "productCode": "9786111695700",
                    "productVat": "6.50",
                    "price": "5.36",
                    "points": 27,
                    "quantity": 4,
                    "subTotal": "21.44",
                    "discountString": "-12%",
                    "discountPrice": "0.73",
                    "originalPrice": "6.09",
                    "gift": null
                },
                {
                    "order": 40,
                    "productCodeId": 139,
                    "productCode": "7897096343998",
                    "productVat": "6.00",
                    "price": "4.17",
                    "points": 4,
                    "quantity": 1,
                    "subTotal": "4.17",
                    "discountString": "-19%",
                    "discountPrice": "0.98",
                    "originalPrice": "5.15",
                    "gift": null
                },
                {
                    "order": 40,
                    "productCodeId": 26,
                    "productCode": "9537924107481",
                    "productVat": "6.50",
                    "price": "2.19",
                    "points": 11,
                    "quantity": 3,
                    "subTotal": "6.57",
                    "discountString": "-20%",
                    "discountPrice": "0.55",
                    "originalPrice": "2.74",
                    "gift": null
                },
                {
                    "order": 40,
                    "productCodeId": 63,
                    "productCode": "2990527467524",
                    "productVat": "23.00",
                    "price": "85.95",
                    "points": 344,
                    "quantity": 4,
                    "subTotal": "343.80",
                    "discountString": "-26%",
                    "discountPrice": "30.20",
                    "originalPrice": "116.15",
                    "gift": null
                },
                {
                    "order": 40,
                    "productCodeId": 141,
                    "productCode": "5105968488565",
                    "productVat": "0.00",
                    "price": "48.06",
                    "points": 144,
                    "quantity": 3,
                    "subTotal": "144.18",
                    "discountString": "-46%",
                    "discountPrice": "40.94",
                    "originalPrice": "89.00",
                    "gift": null
                },
                {
                    "order": 40,
                    "productCodeId": 141,
                    "productCode": "5105968488565",
                    "productVat": "13.00",
                    "price": "38.04",
                    "points": 152,
                    "quantity": 1,
                    "subTotal": "38.04",
                    "discountString": "-16%",
                    "discountPrice": "7.25",
                    "originalPrice": "45.29",
                    "gift": null
                },
                {
                    "order": 40,
                    "productCodeId": 17,
                    "productCode": "0384020786619",
                    "productVat": "13.00",
                    "price": "7.73",
                    "points": 8,
                    "quantity": 3,
                    "subTotal": "23.19",
                    "discountString": "-32%",
                    "discountPrice": "3.64",
                    "originalPrice": "11.37",
                    "gift": null
                },
                {
                    "order": 40,
                    "productCodeId": 33,
                    "productCode": "6263694731696",
                    "productVat": "13.00",
                    "price": "78.72",
                    "points": 394,
                    "quantity": 3,
                    "subTotal": "236.16",
                    "discountString": "-11%",
                    "discountPrice": "9.73",
                    "originalPrice": "88.45",
                    "gift": null
                }
            ],
            "smartPoint": null
        },
        {
            "id": 39,
            "customerId": 285,
            "cancelId": 0,
            "store": 0,
            "transporter": 2,
            "orderSerial": "VP39",
            "webIgnore": true,
            "totalQuantity": 16,
            "currency": "EUR",
            "payWay": "bank_transfer",
            "receiptType": "receipt",
            "customerComments": "Mollitia laboriosam a optio quo velit ad nesciunt nihil adipisci eos molestiae omnis.",
            "adminComments": "Ut maiores atque velit reiciendis voluptatem repellat.",
            "courierComments": "Ad aut soluta veritatis qui dignissimos eius et.",
            "total": "424.50",
            "totalWithVat": "470.67",
            "transportationCost": "1.38",
            "deliveryCost": "0.00",
            "status": "PAID_SENT",
            "voucherNumber": "3496677754",
            "entryDateTime": "2023-04-04 20:41:16",
            "canceledDate": null,
            "invoicedDateTime": "2023-04-08 00:13:09",
            "printedDateTime": "2023-04-07 03:15:42",
            "sentDateTime": "2023-04-05 10:51:37",
            "coupon": null,
            "couponValue": "0.00",
            "pointsUsed": 6000,
            "discountFromPoints": "6.00",
            "referer": "google",
            "billing": {
                "name": "Dasia",
                "surname": "Langworth",
                "address": "7642 Terrell Walks Suite 124\nCollinsburgh, MN 23453-7932",
                "city": "Dickinsonchester",
                "region": "Quo adipisci ut dolor.",
                "postal": "23703",
                "county": "CY-03",
                "country": "CY",
                "landPhone": "706-943-2588",
                "mobilePhone": "+1 (267) 642-0479"
            },
            "shipping": {
                "name": "Dasia",
                "surname": "Langworth",
                "address": "7642 Terrell Walks Suite 124\nCollinsburgh, MN 23453-7932",
                "city": "Dickinsonchester",
                "region": "Quo adipisci ut dolor.",
                "postal": "23703",
                "county": "CY-03",
                "country": "CY",
                "landPhone": "706-943-2588",
                "mobilePhone": "+1 (267) 642-0479"
            },
            "invoice": {
                "companyName": "",
                "companyProfession": "",
                "companyVatId": "",
                "companyVatOffice": "",
                "companyAddress": ""
            },
            "invoicePdf": null,
            "guest": false,
            "isSkroutz": false,
            "cart": [
                {
                    "order": 39,
                    "productCodeId": 93,
                    "productCode": "1911808125057",
                    "productVat": "13.00",
                    "price": "77.19",
                    "points": 386,
                    "quantity": 5,
                    "subTotal": "385.95",
                    "discountString": "-31%",
                    "discountPrice": "34.68",
                    "originalPrice": "111.87",
                    "gift": null
                },
                {
                    "order": 39,
                    "productCodeId": 54,
                    "productCode": "8039961949655",
                    "productVat": "6.50",
                    "price": "43.38",
                    "points": 174,
                    "quantity": 1,
                    "subTotal": "43.38",
                    "discountString": "-17%",
                    "discountPrice": "8.89",
                    "originalPrice": "52.27",
                    "gift": null
                },
                {
                    "order": 39,
                    "productCodeId": 101,
                    "productCode": "0683669393678",
                    "productVat": "6.00",
                    "price": "0.34",
                    "points": 1,
                    "quantity": 2,
                    "subTotal": "0.68",
                    "discountString": "-41%",
                    "discountPrice": "0.24",
                    "originalPrice": "0.58",
                    "gift": null
                },
                {
                    "order": 39,
                    "productCodeId": 123,
                    "productCode": "4873130966739",
                    "productVat": "23.00",
                    "price": "2.91",
                    "points": 3,
                    "quantity": 3,
                    "subTotal": "8.73",
                    "discountString": "-28%",
                    "discountPrice": "1.13",
                    "originalPrice": "4.04",
                    "gift": null
                },
                {
                    "order": 39,
                    "productCodeId": 2,
                    "productCode": "3648572536946",
                    "productVat": "6.00",
                    "price": "7.31",
                    "points": 37,
                    "quantity": 5,
                    "subTotal": "36.55",
                    "discountString": "-40%",
                    "discountPrice": "4.87",
                    "originalPrice": "12.18",
                    "gift": null
                }
            ],
            "smartPoint": null
        },
        {
            "id": 38,
            "customerId": 307,
            "cancelId": 0,
            "store": 0,
            "transporter": 3,
            "orderSerial": "VP38",
            "webIgnore": false,
            "totalQuantity": 65,
            "currency": "EUR",
            "payWay": "jcc",
            "receiptType": "receipt",
            "customerComments": "Reprehenderit voluptates fuga nobis eos est voluptate nulla quo odit.",
            "adminComments": "Corporis dolorem est minima quibusdam officia maxime tempore.",
            "courierComments": "Accusantium consequuntur deserunt neque incidunt commodi dolor voluptas nesciunt unde quam dolore ipsam.",
            "total": "2661.81",
            "totalWithVat": "2914.22",
            "transportationCost": "1.62",
            "deliveryCost": "0.00",
            "status": "PRINTED",
            "voucherNumber": null,
            "entryDateTime": "2023-03-31 22:17:38",
            "canceledDate": null,
            "invoicedDateTime": null,
            "printedDateTime": "2023-04-04 00:11:44",
            "sentDateTime": null,
            "coupon": 4,
            "couponValue": "2.49",
            "pointsUsed": 6000,
            "discountFromPoints": "6.00",
            "referer": "skroutz",
            "billing": {
                "name": "Daren",
                "surname": "Kerluke",
                "address": "27666 Rodriguez Manor\nBrianastad, IL 08557-0188",
                "city": "Lebsackshire",
                "region": "Est sit eum.",
                "postal": "81186-1322",
                "county": "CY-06",
                "country": "CY",
                "landPhone": "361.997.3796",
                "mobilePhone": "682-867-4477"
            },
            "shipping": {
                "name": "Daren",
                "surname": "Kerluke",
                "address": "27666 Rodriguez Manor\nBrianastad, IL 08557-0188",
                "city": "Lebsackshire",
                "region": "Est sit eum.",
                "postal": "81186-1322",
                "county": "CY-06",
                "country": "CY",
                "landPhone": "361.997.3796",
                "mobilePhone": "682-867-4477"
            },
            "invoice": {
                "companyName": "",
                "companyProfession": "",
                "companyVatId": "",
                "companyVatOffice": "",
                "companyAddress": ""
            },
            "invoicePdf": null,
            "guest": false,
            "isSkroutz": false,
            "cart": [
                {
                    "order": 38,
                    "productCodeId": 12,
                    "productCode": "7453916637816",
                    "productVat": "6.50",
                    "price": "97.45",
                    "points": 487,
                    "quantity": 1,
                    "subTotal": "97.45",
                    "discountString": "-24%",
                    "discountPrice": "30.77",
                    "originalPrice": "128.22",
                    "gift": null
                },
                {
                    "order": 38,
                    "productCodeId": 124,
                    "productCode": "7764394907484",
                    "productVat": "0.00",
                    "price": "59.94",
                    "points": 240,
                    "quantity": 1,
                    "subTotal": "59.94",
                    "discountString": "-18%",
                    "discountPrice": "13.16",
                    "originalPrice": "73.10",
                    "gift": null
                },
                {
                    "order": 38,
                    "productCodeId": 60,
                    "productCode": "1259731585662",
                    "productVat": "6.50",
                    "price": "12.31",
                    "points": 62,
                    "quantity": 4,
                    "subTotal": "49.24",
                    "discountString": "-19%",
                    "discountPrice": "2.89",
                    "originalPrice": "15.20",
                    "gift": null
                },
                {
                    "order": 38,
                    "productCodeId": 35,
                    "productCode": "3007076496352",
                    "productVat": "24.00",
                    "price": "6.27",
                    "points": 31,
                    "quantity": 2,
                    "subTotal": "12.54",
                    "discountString": "-21%",
                    "discountPrice": "1.67",
                    "originalPrice": "7.94",
                    "gift": null
                },
                {
                    "order": 38,
                    "productCodeId": 2,
                    "productCode": "3648572536946",
                    "productVat": "23.00",
                    "price": "63.91",
                    "points": 192,
                    "quantity": 3,
                    "subTotal": "191.73",
                    "discountString": "-21%",
                    "discountPrice": "16.99",
                    "originalPrice": "80.90",
                    "gift": null
                },
                {
                    "order": 38,
                    "productCodeId": 17,
                    "productCode": "0384020786619",
                    "productVat": "6.50",
                    "price": "92.11",
                    "points": 184,
                    "quantity": 2,
                    "subTotal": "184.22",
                    "discountString": "-23%",
                    "discountPrice": "27.51",
                    "originalPrice": "119.62",
                    "gift": null
                },
                {
                    "order": 38,
                    "productCodeId": 85,
                    "productCode": "0467747412075",
                    "productVat": "0.00",
                    "price": "23.32",
                    "points": 23,
                    "quantity": 2,
                    "subTotal": "46.64",
                    "discountString": "-46%",
                    "discountPrice": "19.87",
                    "originalPrice": "43.19",
                    "gift": null
                },
                {
                    "order": 38,
                    "productCodeId": 95,
                    "productCode": "4891024152648",
                    "productVat": "0.00",
                    "price": "91.81",
                    "points": 275,
                    "quantity": 4,
                    "subTotal": "367.24",
                    "discountString": "-31%",
                    "discountPrice": "41.25",
                    "originalPrice": "133.06",
                    "gift": null
                },
                {
                    "order": 38,
                    "productCodeId": 67,
                    "productCode": "7290420498041",
                    "productVat": "6.50",
                    "price": "27.91",
                    "points": 140,
                    "quantity": 3,
                    "subTotal": "83.73",
                    "discountString": "-24%",
                    "discountPrice": "8.81",
                    "originalPrice": "36.72",
                    "gift": null
                },
                {
                    "order": 38,
                    "productCodeId": 105,
                    "productCode": "6365773933820",
                    "productVat": "0.00",
                    "price": "51.71",
                    "points": 103,
                    "quantity": 5,
                    "subTotal": "258.55",
                    "discountString": "-49%",
                    "discountPrice": "49.68",
                    "originalPrice": "101.39",
                    "gift": null
                },
                {
                    "order": 38,
                    "productCodeId": 116,
                    "productCode": "3364320847330",
                    "productVat": "23.00",
                    "price": "19.00",
                    "points": 76,
                    "quantity": 1,
                    "subTotal": "19.00",
                    "discountString": "-21%",
                    "discountPrice": "5.05",
                    "originalPrice": "24.05",
                    "gift": null
                },
                {
                    "order": 38,
                    "productCodeId": 67,
                    "productCode": "7290420498041",
                    "productVat": "24.00",
                    "price": "1.91",
                    "points": 6,
                    "quantity": 3,
                    "subTotal": "5.73",
                    "discountString": "-25%",
                    "discountPrice": "0.64",
                    "originalPrice": "2.55",
                    "gift": null
                },
                {
                    "order": 38,
                    "productCodeId": 27,
                    "productCode": "9106119158760",
                    "productVat": "13.00",
                    "price": "65.40",
                    "points": 196,
                    "quantity": 4,
                    "subTotal": "261.60",
                    "discountString": "-42%",
                    "discountPrice": "47.36",
                    "originalPrice": "112.76",
                    "gift": null
                },
                {
                    "order": 38,
                    "productCodeId": 60,
                    "productCode": "1259731585662",
                    "productVat": "13.00",
                    "price": "60.46",
                    "points": 181,
                    "quantity": 3,
                    "subTotal": "181.38",
                    "discountString": "-32%",
                    "discountPrice": "28.45",
                    "originalPrice": "88.91",
                    "gift": null
                },
                {
                    "order": 38,
                    "productCodeId": 42,
                    "productCode": "9096428710011",
                    "productVat": "23.00",
                    "price": "67.85",
                    "points": 339,
                    "quantity": 4,
                    "subTotal": "271.40",
                    "discountString": "-17%",
                    "discountPrice": "13.90",
                    "originalPrice": "81.75",
                    "gift": null
                },
                {
                    "order": 38,
                    "productCodeId": 40,
                    "productCode": "9753928230165",
                    "productVat": "13.00",
                    "price": "82.61",
                    "points": 248,
                    "quantity": 5,
                    "subTotal": "413.05",
                    "discountString": "-20%",
                    "discountPrice": "20.65",
                    "originalPrice": "103.26",
                    "gift": null
                },
                {
                    "order": 38,
                    "productCodeId": 75,
                    "productCode": "4446353935310",
                    "productVat": "6.00",
                    "price": "49.80",
                    "points": 149,
                    "quantity": 5,
                    "subTotal": "249.00",
                    "discountString": "-14%",
                    "discountPrice": "8.11",
                    "originalPrice": "57.91",
                    "gift": null
                },
                {
                    "order": 38,
                    "productCodeId": 128,
                    "productCode": "6789599192795",
                    "productVat": "13.00",
                    "price": "7.12",
                    "points": 28,
                    "quantity": 4,
                    "subTotal": "28.48",
                    "discountString": "-30%",
                    "discountPrice": "3.05",
                    "originalPrice": "10.17",
                    "gift": null
                },
                {
                    "order": 38,
                    "productCodeId": 106,
                    "productCode": "1792260072734",
                    "productVat": "23.00",
                    "price": "31.48",
                    "points": 63,
                    "quantity": 4,
                    "subTotal": "125.92",
                    "discountString": "-31%",
                    "discountPrice": "14.14",
                    "originalPrice": "45.62",
                    "gift": null
                },
                {
                    "order": 38,
                    "productCodeId": 37,
                    "productCode": "0874970756324",
                    "productVat": "6.50",
                    "price": "2.85",
                    "points": 11,
                    "quantity": 5,
                    "subTotal": "14.25",
                    "discountString": "-47%",
                    "discountPrice": "2.53",
                    "originalPrice": "5.38",
                    "gift": null
                }
            ],
            "smartPoint": null
        },
        {
            "id": 37,
            "customerId": 237,
            "cancelId": 67776,
            "store": 0,
            "transporter": 3,
            "orderSerial": "VP37",
            "webIgnore": false,
            "totalQuantity": 39,
            "currency": "EUR",
            "payWay": "alpha",
            "receiptType": "invoice",
            "customerComments": "Officia quae minus ut in aut vitae.",
            "adminComments": "Impedit rem porro odio ipsa qui molestias molestiae laboriosam eum quia impedit officiis.",
            "courierComments": "Dolore quis tenetur quia eaque fuga expedita labore cumque voluptas voluptatem aliquam.",
            "total": "1959.71",
            "totalWithVat": "2114.29",
            "transportationCost": "1.62",
            "deliveryCost": "0.00",
            "status": "INVOICED",
            "voucherNumber": "3187004319",
            "entryDateTime": "2023-04-04 18:13:40",
            "canceledDate": null,
            "invoicedDateTime": "2023-04-08 14:56:31",
            "printedDateTime": "2023-04-05 01:25:21",
            "sentDateTime": "2023-04-06 20:40:17",
            "coupon": null,
            "couponValue": "0.00",
            "pointsUsed": 3000,
            "discountFromPoints": "3.00",
            "referer": null,
            "billing": {
                "name": "Elta",
                "surname": "Pollich",
                "address": "786 Claudie Stravenue Apt. 989\nNorth Kyleigh, FL 94797-3526",
                "city": "Sanfordton",
                "region": "Sed illo et et.",
                "postal": "58580-7126",
                "county": "GR-C",
                "country": "GR",
                "landPhone": "(903) 975-8993",
                "mobilePhone": "1-240-615-9529"
            },
            "shipping": {
                "name": "Elta",
                "surname": "Pollich",
                "address": "786 Claudie Stravenue Apt. 989\nNorth Kyleigh, FL 94797-3526",
                "city": "Sanfordton",
                "region": "Sed illo et et.",
                "postal": "58580-7126",
                "county": "GR-C",
                "country": "GR",
                "landPhone": "(903) 975-8993",
                "mobilePhone": "1-240-615-9529"
            },
            "invoice": {
                "companyName": "Dolorum rerum tempore quo.",
                "companyProfession": "Culpa ut atque in.",
                "companyVatId": "8850618040",
                "companyVatOffice": "Qui.",
                "companyAddress": "715 Clyde Route\nDoylefort, ID 27346-7116"
            },
            "invoicePdf": null,
            "guest": true,
            "isSkroutz": false,
            "cart": [
                {
                    "order": 37,
                    "productCodeId": 66,
                    "productCode": "7097659903076",
                    "productVat": "6.00",
                    "price": "93.54",
                    "points": 281,
                    "quantity": 4,
                    "subTotal": "374.16",
                    "discountString": "-14%",
                    "discountPrice": "15.23",
                    "originalPrice": "108.77",
                    "gift": null
                },
                {
                    "order": 37,
                    "productCodeId": 88,
                    "productCode": "3455810412616",
                    "productVat": "24.00",
                    "price": "82.52",
                    "points": 413,
                    "quantity": 1,
                    "subTotal": "82.52",
                    "discountString": "-44%",
                    "discountPrice": "64.84",
                    "originalPrice": "147.36",
                    "gift": null
                },
                {
                    "order": 37,
                    "productCodeId": 106,
                    "productCode": "1792260072734",
                    "productVat": "0.00",
                    "price": "57.44",
                    "points": 57,
                    "quantity": 2,
                    "subTotal": "114.88",
                    "discountString": "-43%",
                    "discountPrice": "43.33",
                    "originalPrice": "100.77",
                    "gift": null
                },
                {
                    "order": 37,
                    "productCodeId": 119,
                    "productCode": "6474097100372",
                    "productVat": "6.00",
                    "price": "63.85",
                    "points": 64,
                    "quantity": 4,
                    "subTotal": "255.40",
                    "discountString": "-30%",
                    "discountPrice": "27.36",
                    "originalPrice": "91.21",
                    "gift": null
                },
                {
                    "order": 37,
                    "productCodeId": 16,
                    "productCode": "0642161179258",
                    "productVat": "0.00",
                    "price": "64.82",
                    "points": 65,
                    "quantity": 5,
                    "subTotal": "324.10",
                    "discountString": "-41%",
                    "discountPrice": "45.04",
                    "originalPrice": "109.86",
                    "gift": null
                },
                {
                    "order": 37,
                    "productCodeId": 59,
                    "productCode": "8154228316046",
                    "productVat": "23.00",
                    "price": "53.35",
                    "points": 53,
                    "quantity": 3,
                    "subTotal": "160.05",
                    "discountString": "-19%",
                    "discountPrice": "12.51",
                    "originalPrice": "65.86",
                    "gift": null
                },
                {
                    "order": 37,
                    "productCodeId": 42,
                    "productCode": "9096428710011",
                    "productVat": "0.00",
                    "price": "2.31",
                    "points": 7,
                    "quantity": 2,
                    "subTotal": "4.62",
                    "discountString": "-48%",
                    "discountPrice": "2.13",
                    "originalPrice": "4.44",
                    "gift": null
                },
                {
                    "order": 37,
                    "productCodeId": 69,
                    "productCode": "9344856058671",
                    "productVat": "23.00",
                    "price": "8.26",
                    "points": 17,
                    "quantity": 3,
                    "subTotal": "24.78",
                    "discountString": "-19%",
                    "discountPrice": "1.94",
                    "originalPrice": "10.20",
                    "gift": null
                },
                {
                    "order": 37,
                    "productCodeId": 4,
                    "productCode": "ERP-2",
                    "productVat": "24.00",
                    "price": "24.47",
                    "points": 24,
                    "quantity": 1,
                    "subTotal": "24.47",
                    "discountString": "-24%",
                    "discountPrice": "7.73",
                    "originalPrice": "32.20",
                    "gift": null
                },
                {
                    "order": 37,
                    "productCodeId": 44,
                    "productCode": "5845113168507",
                    "productVat": "13.00",
                    "price": "5.47",
                    "points": 22,
                    "quantity": 2,
                    "subTotal": "10.94",
                    "discountString": "-28%",
                    "discountPrice": "2.13",
                    "originalPrice": "7.60",
                    "gift": null
                },
                {
                    "order": 37,
                    "productCodeId": 95,
                    "productCode": "4891024152648",
                    "productVat": "13.00",
                    "price": "71.73",
                    "points": 143,
                    "quantity": 2,
                    "subTotal": "143.46",
                    "discountString": "-30%",
                    "discountPrice": "30.74",
                    "originalPrice": "102.47",
                    "gift": null
                },
                {
                    "order": 37,
                    "productCodeId": 33,
                    "productCode": "6263694731696",
                    "productVat": "6.00",
                    "price": "49.40",
                    "points": 148,
                    "quantity": 2,
                    "subTotal": "98.80",
                    "discountString": "-32%",
                    "discountPrice": "23.25",
                    "originalPrice": "72.65",
                    "gift": null
                },
                {
                    "order": 37,
                    "productCodeId": 81,
                    "productCode": "2487070126164",
                    "productVat": "13.00",
                    "price": "75.35",
                    "points": 151,
                    "quantity": 3,
                    "subTotal": "226.05",
                    "discountString": "-48%",
                    "discountPrice": "69.55",
                    "originalPrice": "144.90",
                    "gift": null
                },
                {
                    "order": 37,
                    "productCodeId": 44,
                    "productCode": "5845113168507",
                    "productVat": "6.50",
                    "price": "74.28",
                    "points": 149,
                    "quantity": 1,
                    "subTotal": "74.28",
                    "discountString": "-45%",
                    "discountPrice": "60.77",
                    "originalPrice": "135.05",
                    "gift": null
                },
                {
                    "order": 37,
                    "productCodeId": 14,
                    "productCode": "3461598330998",
                    "productVat": "6.00",
                    "price": "49.29",
                    "points": 99,
                    "quantity": 4,
                    "subTotal": "197.16",
                    "discountString": "-44%",
                    "discountPrice": "38.73",
                    "originalPrice": "88.02",
                    "gift": null
                }
            ],
            "smartPoint": null
        },
        {
            "id": 36,
            "customerId": 448,
            "cancelId": 0,
            "store": 2,
            "transporter": null,
            "orderSerial": "VP36",
            "webIgnore": true,
            "totalQuantity": 60,
            "currency": "EUR",
            "payWay": "delivery",
            "receiptType": "receipt",
            "customerComments": "Aut repudiandae amet amet a ut iste ratione provident inventore cum voluptatem eos recusandae.",
            "adminComments": "At eius quibusdam dolorum amet quis ut.",
            "courierComments": "Deleniti unde illum sint aut autem occaecati omnis explicabo quia tempora.",
            "total": "3001.30",
            "totalWithVat": "3364.00",
            "transportationCost": "0.00",
            "deliveryCost": "0.00",
            "status": "INVOICED",
            "voucherNumber": null,
            "entryDateTime": "2023-04-10 21:18:55",
            "canceledDate": null,
            "invoicedDateTime": "2023-04-13 09:18:33",
            "printedDateTime": "2023-04-11 19:02:44",
            "sentDateTime": "2023-04-11 22:16:34",
            "coupon": null,
            "couponValue": "0.00",
            "pointsUsed": 4000,
            "discountFromPoints": "4.00",
            "referer": "fedra",
            "billing": {
                "name": "Christian",
                "surname": "Treutel",
                "address": "841 Hettinger Wall Apt. 281\nPort Jalynmouth, VA 42549-0968",
                "city": "Sauerton",
                "region": "Voluptatem aut deleniti harum.",
                "postal": "31561-1267",
                "county": "GR-B",
                "country": "GR",
                "landPhone": "+1.605.418.3969",
                "mobilePhone": "1-253-948-9611"
            },
            "shipping": {
                "name": "",
                "surname": "",
                "address": "696 Price Mall Apt. 396\nO'Harafort, IN 73133-8461",
                "city": "North Jeremie",
                "region": "Quisquam amet.",
                "postal": "12240",
                "county": "TR-77",
                "country": "TR",
                "landPhone": "785.772.2905",
                "mobilePhone": "339-631-5757"
            },
            "invoice": {
                "companyName": "",
                "companyProfession": "",
                "companyVatId": "",
                "companyVatOffice": "",
                "companyAddress": ""
            },
            "invoicePdf": null,
            "guest": false,
            "isSkroutz": true,
            "cart": [
                {
                    "order": 36,
                    "productCodeId": 100,
                    "productCode": "2176084693778",
                    "productVat": "6.50",
                    "price": "38.90",
                    "points": 117,
                    "quantity": 2,
                    "subTotal": "77.80",
                    "discountString": "-50%",
                    "discountPrice": "38.90",
                    "originalPrice": "77.80",
                    "gift": null
                },
                {
                    "order": 36,
                    "productCodeId": 122,
                    "productCode": "2941677787475",
                    "productVat": "23.00",
                    "price": "9.26",
                    "points": 46,
                    "quantity": 1,
                    "subTotal": "9.26",
                    "discountString": "-13%",
                    "discountPrice": "1.38",
                    "originalPrice": "10.64",
                    "gift": null
                },
                {
                    "order": 36,
                    "productCodeId": 146,
                    "productCode": "6549347462019",
                    "productVat": "23.00",
                    "price": "40.66",
                    "points": 163,
                    "quantity": 3,
                    "subTotal": "121.98",
                    "discountString": "-40%",
                    "discountPrice": "27.11",
                    "originalPrice": "67.77",
                    "gift": null
                },
                {
                    "order": 36,
                    "productCodeId": 144,
                    "productCode": "6016151826004",
                    "productVat": "24.00",
                    "price": "11.22",
                    "points": 22,
                    "quantity": 1,
                    "subTotal": "11.22",
                    "discountString": "-46%",
                    "discountPrice": "9.56",
                    "originalPrice": "20.78",
                    "gift": null
                },
                {
                    "order": 36,
                    "productCodeId": 76,
                    "productCode": "4525663935736",
                    "productVat": "24.00",
                    "price": "20.81",
                    "points": 62,
                    "quantity": 2,
                    "subTotal": "41.62",
                    "discountString": "-29%",
                    "discountPrice": "8.50",
                    "originalPrice": "29.31",
                    "gift": null
                },
                {
                    "order": 36,
                    "productCodeId": 107,
                    "productCode": "2738981681502",
                    "productVat": "13.00",
                    "price": "96.29",
                    "points": 385,
                    "quantity": 4,
                    "subTotal": "385.16",
                    "discountString": "-41%",
                    "discountPrice": "66.91",
                    "originalPrice": "163.20",
                    "gift": null
                },
                {
                    "order": 36,
                    "productCodeId": 61,
                    "productCode": "9314247271613",
                    "productVat": "13.00",
                    "price": "53.09",
                    "points": 106,
                    "quantity": 3,
                    "subTotal": "159.27",
                    "discountString": "-12%",
                    "discountPrice": "7.24",
                    "originalPrice": "60.33",
                    "gift": null
                },
                {
                    "order": 36,
                    "productCodeId": 3,
                    "productCode": "ERP-1",
                    "productVat": "23.00",
                    "price": "31.42",
                    "points": 94,
                    "quantity": 3,
                    "subTotal": "94.26",
                    "discountString": "-31%",
                    "discountPrice": "14.12",
                    "originalPrice": "45.54",
                    "gift": null
                },
                {
                    "order": 36,
                    "productCodeId": 62,
                    "productCode": "5531471610979",
                    "productVat": "6.00",
                    "price": "69.82",
                    "points": 209,
                    "quantity": 2,
                    "subTotal": "139.64",
                    "discountString": "-15%",
                    "discountPrice": "12.32",
                    "originalPrice": "82.14",
                    "gift": null
                },
                {
                    "order": 36,
                    "productCodeId": 41,
                    "productCode": "5071524634502",
                    "productVat": "24.00",
                    "price": "95.60",
                    "points": 287,
                    "quantity": 4,
                    "subTotal": "382.40",
                    "discountString": "-46%",
                    "discountPrice": "81.44",
                    "originalPrice": "177.04",
                    "gift": null
                },
                {
                    "order": 36,
                    "productCodeId": 126,
                    "productCode": "4742386830142",
                    "productVat": "13.00",
                    "price": "70.31",
                    "points": 281,
                    "quantity": 1,
                    "subTotal": "70.31",
                    "discountString": "-21%",
                    "discountPrice": "18.69",
                    "originalPrice": "89.00",
                    "gift": null
                },
                {
                    "order": 36,
                    "productCodeId": 137,
                    "productCode": "9953992826077",
                    "productVat": "23.00",
                    "price": "98.96",
                    "points": 396,
                    "quantity": 4,
                    "subTotal": "395.84",
                    "discountString": "-10%",
                    "discountPrice": "11.00",
                    "originalPrice": "109.96",
                    "gift": null
                },
                {
                    "order": 36,
                    "productCodeId": 142,
                    "productCode": "9829572250887",
                    "productVat": "6.00",
                    "price": "91.02",
                    "points": 182,
                    "quantity": 3,
                    "subTotal": "273.06",
                    "discountString": "-22%",
                    "discountPrice": "25.67",
                    "originalPrice": "116.69",
                    "gift": null
                },
                {
                    "order": 36,
                    "productCodeId": 121,
                    "productCode": "7462751505426",
                    "productVat": "0.00",
                    "price": "70.79",
                    "points": 212,
                    "quantity": 5,
                    "subTotal": "353.95",
                    "discountString": "-29%",
                    "discountPrice": "28.91",
                    "originalPrice": "99.70",
                    "gift": null
                },
                {
                    "order": 36,
                    "productCodeId": 12,
                    "productCode": "7453916637816",
                    "productVat": "24.00",
                    "price": "0.95",
                    "points": 4,
                    "quantity": 5,
                    "subTotal": "4.75",
                    "discountString": "-11%",
                    "discountPrice": "0.12",
                    "originalPrice": "1.07",
                    "gift": null
                },
                {
                    "order": 36,
                    "productCodeId": 1,
                    "productCode": "1814682453042",
                    "productVat": "13.00",
                    "price": "15.44",
                    "points": 31,
                    "quantity": 5,
                    "subTotal": "77.20",
                    "discountString": "-29%",
                    "discountPrice": "6.31",
                    "originalPrice": "21.75",
                    "gift": null
                },
                {
                    "order": 36,
                    "productCodeId": 58,
                    "productCode": "3769826956409",
                    "productVat": "24.00",
                    "price": "66.09",
                    "points": 66,
                    "quantity": 4,
                    "subTotal": "264.36",
                    "discountString": "-10%",
                    "discountPrice": "7.34",
                    "originalPrice": "73.43",
                    "gift": null
                },
                {
                    "order": 36,
                    "productCodeId": 54,
                    "productCode": "8039961949655",
                    "productVat": "0.00",
                    "price": "94.26",
                    "points": 94,
                    "quantity": 5,
                    "subTotal": "471.30",
                    "discountString": "-35%",
                    "discountPrice": "50.76",
                    "originalPrice": "145.02",
                    "gift": null
                },
                {
                    "order": 36,
                    "productCodeId": 104,
                    "productCode": "0155223721635",
                    "productVat": "23.00",
                    "price": "11.54",
                    "points": 23,
                    "quantity": 3,
                    "subTotal": "34.62",
                    "discountString": "-18%",
                    "discountPrice": "2.53",
                    "originalPrice": "14.07",
                    "gift": null
                }
            ],
            "smartPoint": null
        }
    ],
    "links": {
        "first": "http://your_site.local/erp/orders/list?page=1",
        "last": "http://your_site.local/erp/orders/list?page=4",
        "prev": null,
        "next": "http://your_site.local/erp/orders/list?page=2"
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 4,
        "links": [
            {
                "url": null,
                "label": "« Previous",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/orders/list?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": "http://your_site.local/erp/orders/list?page=2",
                "label": "2",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/orders/list?page=3",
                "label": "3",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/orders/list?page=4",
                "label": "4",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/orders/list?page=2",
                "label": "Next »",
                "active": false
            }
        ],
        "path": "http://your_site.local/erp/orders/list",
        "per_page": 15,
        "to": 15,
        "total": 50
    }
}
 

Request   

GET erp/orders/list

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

filter[id]   string  optional  

order ids to filter. Exact match.

filter[serial]   string  optional  

order serials to filter. Exact match.

filter[status]   string  optional  

order status to filter. Exact match.

filter[betweenEntryDate]   string  optional  

order entry date date range to filter. (filter[betweenEntryDate]=2022-01-10 0:0:0,2022-01-10 12:00:00). Between match.

filter[betweenSentDate]   string  optional  

order sent date date range to filter. (filter[betweenSentDate]=2022-01-10 0:0:0,2022-01-10 12:00:00). Between match.

filter[betweenCanceledDate]   string  optional  

order entry date date range to filter. (filter[betweenCanceledDate]=2022-01-10 0:0:0,2022-01-10 12:00:00). Between match.

sort   string  optional  

the sorting order. To sort ascending just use the name of the field, to sort descending use - before name. Available sorts are id, serial, entryDate, sentDate, canceledDate. Example: -id

page   integer  optional  

the requested page of the filtered results. Example: 1

Response

Response Fields

id   integer   

The id of the of the order

customerId   integer   

The id of the of the customer

cancelId   integer   

The id of the of the order that the current order set the status canceled

store   integer   

The id of the of store that the customer will receive the order

transporter   integer   

The id of the the transport provider

orderSerial   string   

The orders unique code

webIgnore   boolean   

A check to ignore the order from the web

totalQuantity   integer   

The total quantity of the basket objects

currency   string   

The currency of the order

payWay   string   

The payment method

receiptType   string   

The type of the proof of payment (invoice or receipt)

customerComments   string   

The comments of the customer for the order

adminComments   string   

The comments of the admin for the order (usually not visible to the customer)

courierComments   string   

The comments of the customer for the transporter provider

total   number   

The orders total amount with no vat

totalWithVat   number   

The orders total amount with vat

transportationCost   number   

The orders transportation cost

deliveryCost   number   

The orders extra cost for delivery pay method

status   string   

The orders status

voucherNumber   string   

The voucher number of the order

entryDateTime   string   

datetime The date and time of the orders creation

canceledDate      

datetime The date and time that the order get the status canceled

invoicedDateTime      

datetime The date and time that the order get the status invoice

printedDateTime      

datetime The date and time that the order get the status printed

sentDateTime      

datetime The date and time that the order get the status sent

coupon   integer   

The id of the coupon the customer used

couponValue   number   

The discount the customer get from the use of coupon

pointsUsed   integer   

The points the customer spend for the order

discountFromPoints   number   

The discount the customer get from spending points

referer   integer   

The id of the customer's referer

billing   object   

The billing infos of the order

name   string   

The name for the billing

surname   string   

The surname for the billing

address   string   

The address for the billing

city   string   

The city for the billing

region   string   

The region for the billing

postal   string   

The postal code for the billing

county   string   

The county for the billing

country   string   

The country for the billing

landPhone   string   

The landPhone for the billing

mobilePhone   string   

The mobilePhone for the billing

shipping   object   

The shipping infos of the order

name   string   

The name for the shipping

surname   string   

The surname for the shipping

address   string   

The address for the shipping

city   string   

The city for the shipping

region   string   

The region for the shipping

postal   string   

The postal code for the shipping

county   string   

The county for the shipping

country   string   

The country for the shipping

landPhone   string   

The landPhone for the shipping

mobilePhone   string   

The mobilePhone for the shipping

invoice   object   

The invoice infos of the order

companyName   string   

The name of the company

companyProfession   string   

The profession of the company

companyVatId   string   

The vat id of the company

companyVatOffice   string   

The vat office of the company

companyAddress   string   

The address of the company

invoicePdf   string   

The invoice pdf link

cart   string[]   

The basket of the product

order   integer   

The id of the order

productCodeId   integer   

The id of the product code

productVat   number   

The percentage of the vat of the product

price   number   

The price of the product

points   integer   

The points of the product

quantity   integer   

The quantity of the products

subTotal   number   

The sub total of the product

discountString   string   

The discount percentage of the product

discountPrice   number   

The discount of the product

originalPrice   number   

The original price of the product

gift   integer   

The id of the gift group that the product belongs

skroutzOrder   object   

The skroutz order resource which is optional

code   string   

The skroutz order code

Get the order's resource.

requires authentication

Example request:
curl --request GET \
    --get "http://api.your_site.ecommercen.com/erp/orders/get/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/orders/get/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://api.your_site.ecommercen.com/erp/orders/get/1',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/orders/get/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 400
x-ratelimit-remaining: 398
access-control-allow-origin: *
 

{
    "data": {
        "id": 1,
        "customerId": 370,
        "cancelId": 0,
        "store": 3,
        "transporter": null,
        "orderSerial": "VP1",
        "webIgnore": false,
        "totalQuantity": 28,
        "currency": "EUR",
        "payWay": "proxypay",
        "receiptType": "receipt",
        "customerComments": "Et quia at tempore commodi vel enim doloremque unde est aut quia quis.",
        "adminComments": "Omnis nemo dolores error labore et voluptatum odio vitae doloremque voluptate.",
        "courierComments": "Aliquid sed rem ea inventore omnis et alias eos sed commodi.",
        "total": "1794.05",
        "totalWithVat": "2014.43",
        "transportationCost": "0.00",
        "deliveryCost": "0.00",
        "status": "PENDING",
        "voucherNumber": null,
        "entryDateTime": "2023-04-06 06:37:42",
        "canceledDate": null,
        "invoicedDateTime": null,
        "printedDateTime": null,
        "sentDateTime": null,
        "coupon": null,
        "couponValue": "0.00",
        "pointsUsed": 0,
        "discountFromPoints": "0.00",
        "referer": "skroutz",
        "billing": {
            "name": "Kurtis",
            "surname": "Smitham",
            "address": "282 Rosamond Fords Suite 967\nPort Kacifort, MT 45890-4637",
            "city": "Faheyside",
            "region": "Similique cupiditate aspernatur.",
            "postal": "60752-4449",
            "county": "CY-06",
            "country": "CY",
            "landPhone": "+12027265987",
            "mobilePhone": "1-707-443-3239"
        },
        "shipping": {
            "name": "",
            "surname": "",
            "address": "3754 Elwin Pines Apt. 134\nCaspermouth, SC 71111-3018",
            "city": "Alvinamouth",
            "region": "Nisi explicabo.",
            "postal": "03208",
            "county": "HU-SN",
            "country": "HU",
            "landPhone": "+1.726.931.1526",
            "mobilePhone": "407.645.4689"
        },
        "invoice": {
            "companyName": "",
            "companyProfession": "",
            "companyVatId": "",
            "companyVatOffice": "",
            "companyAddress": ""
        },
        "invoicePdf": null,
        "guest": true,
        "isSkroutz": false,
        "cart": [
            {
                "order": 1,
                "productCodeId": 97,
                "productCode": "9834039313074",
                "productVat": "13.00",
                "price": "66.76",
                "points": 267,
                "quantity": 1,
                "subTotal": "66.76",
                "discountString": "-27%",
                "discountPrice": "24.69",
                "originalPrice": "91.45",
                "gift": null
            },
            {
                "order": 1,
                "productCodeId": 4,
                "productCode": "ERP-2",
                "productVat": "0.00",
                "price": "62.70",
                "points": 188,
                "quantity": 4,
                "subTotal": "250.80",
                "discountString": "-23%",
                "discountPrice": "18.73",
                "originalPrice": "81.43",
                "gift": null
            },
            {
                "order": 1,
                "productCodeId": 14,
                "productCode": "3461598330998",
                "productVat": "23.00",
                "price": "79.52",
                "points": 159,
                "quantity": 5,
                "subTotal": "397.60",
                "discountString": "-50%",
                "discountPrice": "79.52",
                "originalPrice": "159.04",
                "gift": null
            },
            {
                "order": 1,
                "productCodeId": 49,
                "productCode": "6321196338581",
                "productVat": "24.00",
                "price": "86.91",
                "points": 261,
                "quantity": 1,
                "subTotal": "86.91",
                "discountString": "-41%",
                "discountPrice": "60.40",
                "originalPrice": "147.31",
                "gift": null
            },
            {
                "order": 1,
                "productCodeId": 84,
                "productCode": "1587552067884",
                "productVat": "23.00",
                "price": "93.97",
                "points": 188,
                "quantity": 4,
                "subTotal": "375.88",
                "discountString": "-40%",
                "discountPrice": "62.65",
                "originalPrice": "156.62",
                "gift": null
            },
            {
                "order": 1,
                "productCodeId": 80,
                "productCode": "6135595442844",
                "productVat": "13.00",
                "price": "60.59",
                "points": 182,
                "quantity": 1,
                "subTotal": "60.59",
                "discountString": "-12%",
                "discountPrice": "8.26",
                "originalPrice": "68.85",
                "gift": null
            },
            {
                "order": 1,
                "productCodeId": 91,
                "productCode": "5962493042354",
                "productVat": "0.00",
                "price": "41.73",
                "points": 209,
                "quantity": 1,
                "subTotal": "41.73",
                "discountString": "-33%",
                "discountPrice": "20.55",
                "originalPrice": "62.28",
                "gift": null
            },
            {
                "order": 1,
                "productCodeId": 50,
                "productCode": "4456566559722",
                "productVat": "0.00",
                "price": "79.88",
                "points": 320,
                "quantity": 5,
                "subTotal": "399.40",
                "discountString": "-49%",
                "discountPrice": "76.75",
                "originalPrice": "156.63",
                "gift": null
            },
            {
                "order": 1,
                "productCodeId": 19,
                "productCode": "9330207249010",
                "productVat": "13.00",
                "price": "65.33",
                "points": 327,
                "quantity": 4,
                "subTotal": "261.32",
                "discountString": "-46%",
                "discountPrice": "55.65",
                "originalPrice": "120.98",
                "gift": null
            },
            {
                "order": 1,
                "productCodeId": 60,
                "productCode": "1259731585662",
                "productVat": "24.00",
                "price": "63.47",
                "points": 127,
                "quantity": 1,
                "subTotal": "63.47",
                "discountString": "-25%",
                "discountPrice": "21.16",
                "originalPrice": "84.63",
                "gift": null
            },
            {
                "order": 1,
                "productCodeId": 117,
                "productCode": "6080378817817",
                "productVat": "24.00",
                "price": "9.97",
                "points": 20,
                "quantity": 1,
                "subTotal": "9.97",
                "discountString": "-36%",
                "discountPrice": "5.61",
                "originalPrice": "15.58",
                "gift": null
            }
        ],
        "smartPoint": null
    }
}
 

Request   

GET erp/orders/get/{orderId}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

orderId   integer   

The order's id to get the resource. Example: 1

Response

Response Fields

id   integer   

The id of the of the order

customerId   integer   

The id of the of the customer

cancelId   integer   

The id of the of the order that the current order set the status canceled

store   integer   

The id of the of store that the customer will receive the order

transporter   integer   

The id of the the transport provider

orderSerial   string   

The orders unique code

webIgnore   boolean   

A check to ignore the order from the web

totalQuantity   integer   

The total quantity of the basket objects

currency   string   

The currency of the order

payWay   string   

The payment method

receiptType   string   

The type of the proof of payment (invoice or receipt)

customerComments   string   

The comments of the customer for the order

adminComments   string   

The comments of the admin for the order (usually not visible to the customer)

courierComments   string   

The comments of the customer for the transporter provider

total   number   

The orders total amount with no vat

totalWithVat   number   

The orders total amount with vat

transportationCost   number   

The orders transportation cost

deliveryCost   number   

The orders extra cost for delivery pay method

status   string   

The orders status

voucherNumber   string   

The voucher number of the order

entryDateTime   string   

datetime The date and time of the orders creation

canceledDate      

datetime The date and time that the order get the status canceled

invoicedDateTime      

datetime The date and time that the order get the status invoice

printedDateTime      

datetime The date and time that the order get the status printed

sentDateTime      

datetime The date and time that the order get the status sent

coupon   integer   

The id of the coupon the customer used

couponValue   number   

The discount the customer get from the use of coupon

pointsUsed   integer   

The points the customer spend for the order

discountFromPoints   number   

The discount the customer get from spending points

referer   integer   

The id of the customer's referer

billing   object   

The billing infos of the order

name   string   

The name for the billing

surname   string   

The surname for the billing

address   string   

The address for the billing

city   string   

The city for the billing

region   string   

The region for the billing

postal   string   

The postal code for the billing

county   string   

The county for the billing

country   string   

The country for the billing

landPhone   string   

The landPhone for the billing

mobilePhone   string   

The mobilePhone for the billing

shipping   object   

The shipping infos of the order

name   string   

The name for the shipping

surname   string   

The surname for the shipping

address   string   

The address for the shipping

city   string   

The city for the shipping

region   string   

The region for the shipping

postal   string   

The postal code for the shipping

county   string   

The county for the shipping

country   string   

The country for the shipping

landPhone   string   

The landPhone for the shipping

mobilePhone   string   

The mobilePhone for the shipping

invoice   object   

The invoice infos of the order

companyName   string   

The name of the company

companyProfession   string   

The profession of the company

companyVatId   string   

The vat id of the company

companyVatOffice   string   

The vat office of the company

companyAddress   string   

The address of the company

invoicePdf   string   

The invoice pdf link

cart   string[][]   

cartItem[] The basket of the product

cartItem   object   

The cart item

order   integer   

The id of the order

productCodeId   integer   

The id of the product code

productVat   number   

The percentage of the vat of the product

price   number   

The price of the product

points   integer   

The points of the product

quantity   integer   

The quantity of the products

subTotal   number   

The sub total of the product

discountString   string   

The discount percentage of the product

discountPrice   number   

The discount of the product

originalPrice   number   

The original price of the product

gift   integer   

The id of the gift group that the product belongs

Set the status of the order as ERP.

requires authentication

Example request:
curl --request PUT \
    "http://api.your_site.ecommercen.com/erp/orders/erp/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/orders/erp/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "PUT",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
    'http://api.your_site.ecommercen.com/erp/orders/erp/1',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/orders/erp/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers)
response.json()

Example response (200):


[Order with id 1 is set to erp]
 

Request   

PUT erp/orders/erp/{orderId}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

orderId   integer   

The order's id to change the status. Example: 1

Set the status of the order as Printed.

requires authentication

Example request:
curl --request PUT \
    "http://api.your_site.ecommercen.com/erp/orders/print/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/orders/print/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "PUT",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
    'http://api.your_site.ecommercen.com/erp/orders/print/1',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/orders/print/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers)
response.json()

Example response (200):


[Order with id 1 is printed]
 

Request   

PUT erp/orders/print/{orderId}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

orderId   integer   

The order's id to change the status. Example: 1

Set the status of the order as Invoiced.

requires authentication

Example request:
curl --request PUT \
    "http://api.your_site.ecommercen.com/erp/orders/invoice/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/orders/invoice/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "PUT",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
    'http://api.your_site.ecommercen.com/erp/orders/invoice/1',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/orders/invoice/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers)
response.json()

Example response (200):


[Order with id 1 is invoiced]
 

Request   

PUT erp/orders/invoice/{orderId}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

orderId   integer   

The order's id to change the status. Example: 1

Set the status of the order as Sent.

requires authentication

Example request:
curl --request PUT \
    "http://api.your_site.ecommercen.com/erp/orders/sent/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"invoice\": \"https:\\/\\/bitbucket.org\\/devteamadvisable\\/assets\\/raw\\/728002f444bd709802c73b2f333a31c42f798165\\/api\\/pdf\\/sample.pdf\"
}"
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/orders/sent/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "invoice": "https:\/\/bitbucket.org\/devteamadvisable\/assets\/raw\/728002f444bd709802c73b2f333a31c42f798165\/api\/pdf\/sample.pdf"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
    'http://api.your_site.ecommercen.com/erp/orders/sent/1',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'invoice' => 'https://bitbucket.org/devteamadvisable/assets/raw/728002f444bd709802c73b2f333a31c42f798165/api/pdf/sample.pdf',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/orders/sent/1'
payload = {
    "invoice": "https:\/\/bitbucket.org\/devteamadvisable\/assets\/raw\/728002f444bd709802c73b2f333a31c42f798165\/api\/pdf\/sample.pdf"
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


[Order with id 1 is sent]
 

Request   

PUT erp/orders/sent/{orderId}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

orderId   integer   

The order's id to change the status. Example: 1

Body Parameters

invoice   string  optional  

The invoice pdf url. Example: https://bitbucket.org/devteamadvisable/assets/raw/728002f444bd709802c73b2f333a31c42f798165/api/pdf/sample.pdf

Set the voucher number of the order.

requires authentication

Example request:
curl --request PUT \
    "http://api.your_site.ecommercen.com/erp/orders/voucher/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"voucher\": \"3150565891\"
}"
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/orders/voucher/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "voucher": "3150565891"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
    'http://api.your_site.ecommercen.com/erp/orders/voucher/1',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'voucher' => '3150565891',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/orders/voucher/1'
payload = {
    "voucher": "3150565891"
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


[Order with id 1 updated voucher to 3150565891]
 

Request   

PUT erp/orders/voucher/{orderId}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

orderId   integer   

The order's id to set the voucher number. Example: 1

Body Parameters

voucher   string   

The order's voucher number. Example: 3150565891

Set the status of the order as Canceled.

requires authentication

Example request:
curl --request DELETE \
    "http://api.your_site.ecommercen.com/erp/orders/cancel/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/orders/cancel/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'http://api.your_site.ecommercen.com/erp/orders/cancel/1',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/orders/cancel/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):


[Order with id 1 is cancelled]
 

Request   

DELETE erp/orders/cancel/{orderId}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

orderId   integer   

The order's id to change the status. Example: 1

Set the status of the order as Return.

requires authentication

Example request:
curl --request DELETE \
    "http://api.your_site.ecommercen.com/erp/orders/return/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/orders/return/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'http://api.your_site.ecommercen.com/erp/orders/return/1',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/orders/return/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):


[Order with id 1 is returned]
 

Request   

DELETE erp/orders/return/{orderId}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

orderId   integer   

The order's id to change the status. Example: 1

Product

Get product collection

requires authentication

Example request:
curl --request GET \
    --get "http://api.your_site.ecommercen.com/erp/products?sort=name.slug&page=2" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/products"
);

const params = {
    "sort": "name.slug",
    "page": "2",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://api.your_site.ecommercen.com/erp/products',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'sort' => 'name.slug',
            'page' => '2',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/products'
params = {
  'sort': 'name.slug',
  'page': '2',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 400
x-ratelimit-remaining: 356
access-control-allow-origin: *
 

{
    "data": [
        {
            "id": 16,
            "productCodes": [
                {
                    "id": 43,
                    "product": 16,
                    "productCode": "2019722465101",
                    "stock": 60,
                    "softDeleted": false,
                    "active": true,
                    "attributes": [
                        {
                            "id": 60,
                            "name": {
                                "el": "Maiores ullam."
                            }
                        }
                    ],
                    "images": [
                        {
                            "id": 112,
                            "productCodeId": 43,
                            "image": "http://your_site.local/files/products/8WAz3SVPchylRcppReXsUfuUYyakpKAk7Zc89tCa.jpg",
                            "main": false,
                            "refCode": "42153aa5-a489-317d-99cb-270de139f1b3"
                        },
                        {
                            "id": 113,
                            "productCodeId": 43,
                            "image": "http://your_site.local/files/products/yslJKXgl9Fuinc0CK30b2GtYAYkcJTP4S5FRo0mc.jpg",
                            "main": false,
                            "refCode": "1be79429-aa4a-3389-93c4-a8a41c38214e"
                        },
                        {
                            "id": 114,
                            "productCodeId": 43,
                            "image": "http://your_site.local/files/products/qk2n4wIZwL5PikO5NX3uSynYL8Z5luhwYYC1GQd4.jpg",
                            "main": false,
                            "refCode": "56b4e9f4-3720-3a95-b389-eee4ecc01f3f"
                        },
                        {
                            "id": 111,
                            "productCodeId": 43,
                            "image": "http://your_site.local/files/products/xBlwasUlHstEvRrJTKIHi1FPEH0OuCVLfJCf8PxH.jpg",
                            "main": true,
                            "refCode": "5b31697f-56a9-35f1-8c84-2304708a0782"
                        }
                    ]
                },
                {
                    "id": 44,
                    "product": 16,
                    "productCode": "5845113168507",
                    "stock": 29,
                    "softDeleted": false,
                    "active": true,
                    "attributes": [
                        {
                            "id": 59,
                            "name": {
                                "el": "Nemo natus sunt."
                            }
                        }
                    ],
                    "images": [
                        {
                            "id": 115,
                            "productCodeId": 44,
                            "image": "http://your_site.local/files/products/BkqDmMXl2zlf3CEAJQSs8b4q4ckWf65nqvpC4uWB.jpg",
                            "main": true,
                            "refCode": "97509655-8bc7-36af-b7f4-ff205b0f060a"
                        }
                    ]
                }
            ],
            "shelf": {
                "id": 12,
                "code": "37164706"
            },
            "vat": {
                "id": 1,
                "value": 0
            },
            "barcodes": [
                {
                    "id": 80,
                    "product": 16,
                    "productCode": "2019722465101",
                    "barcode": "2769304960325"
                },
                {
                    "id": 81,
                    "product": 16,
                    "productCode": "2019722465101",
                    "barcode": "7705582345060"
                },
                {
                    "id": 82,
                    "product": 16,
                    "productCode": "2019722465101",
                    "barcode": "7888832606712"
                },
                {
                    "id": 83,
                    "product": 16,
                    "productCode": "2019722465101",
                    "barcode": "1408308430625"
                },
                {
                    "id": 84,
                    "product": 16,
                    "productCode": "2019722465101",
                    "barcode": "9541968958237"
                },
                {
                    "id": 85,
                    "product": 16,
                    "productCode": "2019722465101",
                    "barcode": "7453885548281"
                }
            ],
            "pointFactor": "2499.2160",
            "price": "79.90",
            "wholesalePrice": "144.89",
            "discountPercent": "7.29",
            "vendorCode": "8195956778546",
            "vendor": {
                "id": 3,
                "logo": "http://your_site.local/files/vendors/4OmzeEOxogC0NUR2ngMmnexJxgFmJt9ZEs9Ohytc.jpg",
                "refCode": "a4a23385-4ef8-353b-ba4f-71042ef22354",
                "name": {
                    "el": "vero quod"
                },
                "slug": {
                    "el": "ab-quasi-commodi-et-mollitia-qui-aut-aliquid"
                }
            },
            "active": 1,
            "weight": 7881,
            "pieces": 0,
            "softDeleted": false,
            "dateChanged": null,
            "slug": {
                "el": "est-qui-et-optio-magnam-provident-fugiat-ut"
            },
            "name": {
                "el": "Velit ut dolorem maxime rerum ipsa."
            },
            "content": {
                "el": "Numquam exercitationem voluptates labore et ut eius porro esse. Ipsa corporis esse ut corporis dignissimos ea. Cumque aliquam accusamus sit eaque. At aut non consectetur praesentium.\n\nDistinctio deleniti quisquam harum quibusdam neque. Nesciunt ut vero officiis aut. Soluta nulla non dolores. Fuga eveniet vero vel ea.\n\nIpsum aperiam quo saepe minus quasi. Consequatur illo consequatur praesentium alias est. Quod debitis dolore hic nobis."
            },
            "shortContent": {
                "el": "Et in harum praesentium a. Et animi eos distinctio tempore quae saepe porro."
            },
            "ingredients": {
                "el": "Et provident accusamus pariatur qui accusantium delectus. Cum optio facilis quae. Optio possimus eos fugiat aliquam quae autem magni. Occaecati sint est est doloremque et.\n\nDucimus rerum eveniet dolor sapiente. Laborum adipisci quam temporibus id odit dignissimos. Sit fuga qui est ut fugiat asperiores. Deleniti ut quis accusantium dicta. Consequatur ut quisquam voluptas aspernatur.\n\nCorrupti voluptatem voluptatem sit autem velit esse neque. Dolores id iusto quia quia placeat omnis. Iste fugit voluptatem et eum rerum magnam."
            },
            "usage": {
                "el": "Quisquam ut voluptatibus quis repellendus. Tempora aut officiis quam optio nihil qui reiciendis quis. Assumenda molestiae reprehenderit maiores quis dolore. Veritatis in id quia aut. Architecto atque similique ut sunt vel voluptas perspiciatis enim.\n\nRem labore maxime voluptate nesciunt qui sit. Est rerum et delectus rem ut sit.\n\nEarum repellat consequatur sequi nemo eius voluptatem. Laudantium dolorem quia omnis ut molestiae ipsum. Debitis officia qui molestiae autem. Consectetur dolor omnis qui aut."
            },
            "extraContent": {
                "el": "Nihil adipisci ea rerum officia. Voluptatem dolorem dolor sunt quasi. Voluptatem nostrum aperiam dolorem dolorem optio. Tempore nemo aut aut eos odio aliquam qui.\n\nIpsum natus suscipit itaque eligendi. Tenetur in nam sit impedit et. Labore reiciendis eos atque esse quidem.\n\nEt inventore voluptatem minima est dolore numquam. Voluptas rerum corrupti quaerat accusamus. Minus odit qui delectus quisquam mollitia consequatur et et. Quam laboriosam provident laboriosam ea fugiat. Dolorem hic similique quia molestias praesentium et."
            }
        },
        {
            "id": 17,
            "productCodes": [
                {
                    "id": 45,
                    "product": 17,
                    "productCode": "1351220580599",
                    "stock": -92,
                    "softDeleted": false,
                    "active": false,
                    "attributes": [
                        {
                            "id": 26,
                            "name": {
                                "el": "Et incidunt commodi dolor."
                            }
                        },
                        {
                            "id": 32,
                            "name": {
                                "el": "Nulla ipsam sunt qui."
                            }
                        },
                        {
                            "id": 54,
                            "name": {
                                "el": "Inventore laboriosam exercitationem officia."
                            }
                        }
                    ],
                    "images": [
                        {
                            "id": 117,
                            "productCodeId": 45,
                            "image": "http://your_site.local/files/products/bxUNt4gYLQ11qlbRh0AMGz3LPOgK06mMau0P2mpf.jpg",
                            "main": false,
                            "refCode": "1cb6b27c-b656-3b27-925f-88a3eae90a04"
                        },
                        {
                            "id": 118,
                            "productCodeId": 45,
                            "image": "http://your_site.local/files/products/Gc2UYbphaW7HJ36hKWNKEU6clv0eHGliZYKp4nS0.jpg",
                            "main": false,
                            "refCode": "b4b48890-3fae-3ee9-a8ef-829f2edb1c33"
                        },
                        {
                            "id": 119,
                            "productCodeId": 45,
                            "image": "http://your_site.local/files/products/LX9l5o3hUqUnM2NBYD24FWHDgxwBi7y0YPYTFL9l.jpg",
                            "main": false,
                            "refCode": "cd3dccfb-7188-39b9-a921-073c1bf7d7bd"
                        },
                        {
                            "id": 116,
                            "productCodeId": 45,
                            "image": "http://your_site.local/files/products/6PIfjEq1jM4dyAYc1H6TnkmZbkTlyJDk6qFuRnog.jpg",
                            "main": true,
                            "refCode": "a93a1c16-9208-3da9-aee3-0974a9633f48"
                        }
                    ]
                }
            ],
            "shelf": {
                "id": 76,
                "code": "07820625"
            },
            "vat": {
                "id": 4,
                "value": 24
            },
            "barcodes": [
                {
                    "id": 86,
                    "product": 17,
                    "productCode": "1351220580599",
                    "barcode": "1840337858252"
                },
                {
                    "id": 87,
                    "product": 17,
                    "productCode": "1351220580599",
                    "barcode": "7674650067091"
                },
                {
                    "id": 88,
                    "product": 17,
                    "productCode": "1351220580599",
                    "barcode": "0067370706109"
                },
                {
                    "id": 89,
                    "product": 17,
                    "productCode": "1351220580599",
                    "barcode": "4835743409072"
                },
                {
                    "id": 90,
                    "product": 17,
                    "productCode": "1351220580599",
                    "barcode": "5103584780438"
                }
            ],
            "pointFactor": "176.1515",
            "price": "149.19",
            "wholesalePrice": "27.16",
            "discountPercent": "32.48",
            "vendorCode": "1913213899066",
            "vendor": {
                "id": 13,
                "logo": "http://your_site.local/files/vendors/fsasosd2dyL4y82icFn1o9vLV9NUyKediOqOeevn.jpg",
                "refCode": "109a1970-8364-32c5-94f9-91c93040bbff",
                "name": {
                    "el": "distinctio atque"
                },
                "slug": {
                    "el": "ipsam-rem-est-aut-consequuntur-velit-maxime-rerum"
                }
            },
            "active": 1,
            "weight": 5465,
            "pieces": 0,
            "softDeleted": false,
            "dateChanged": null,
            "slug": {
                "el": "aut-est-enim-fugiat-et-vel-dicta"
            },
            "name": {
                "el": "Veniam et officiis tempore ut fugiat velit aspernatur."
            },
            "content": {
                "el": "Dolorem ut excepturi earum cumque. At quis et omnis ea non voluptates. Fugiat sint rem atque illum architecto sapiente ut.\n\nPariatur ducimus sint sed velit. Incidunt totam aut maiores tenetur. Aut qui aut voluptas illum dolorum.\n\nQui eaque eius quis sunt commodi. Ducimus quo voluptatem libero qui suscipit. Cupiditate sint architecto cupiditate est."
            },
            "shortContent": {
                "el": "Nesciunt ipsam error quos assumenda impedit. Saepe et ducimus eum omnis."
            },
            "ingredients": {
                "el": "Voluptatum impedit pariatur nostrum adipisci. Esse laudantium vel consequatur sed aspernatur cumque. Nulla consectetur sint sapiente.\n\nTempore doloremque quasi est reprehenderit quas. Laborum repellendus est et. Similique quis quod dignissimos illo iste dolorem officia. Magnam non possimus eum architecto voluptates.\n\nDicta voluptatibus exercitationem earum doloremque vitae quia. Suscipit aut harum nostrum voluptatem et voluptas modi. Dolores natus rerum voluptatem consectetur et nam voluptas dolor."
            },
            "usage": {
                "el": "Animi excepturi quia similique corrupti debitis. Quo nobis totam autem architecto. Deleniti laboriosam expedita non. Eligendi ratione reiciendis debitis dolore voluptas quia et.\n\nQui maxime dignissimos sit vero voluptatem amet. Eaque rem ut officia expedita praesentium. Ex quia ut corrupti atque rerum ut impedit. Saepe quis molestiae et nostrum dignissimos veniam.\n\nLabore quo aliquid quod officia est. Culpa nemo ex voluptas est voluptatem eos. Recusandae placeat numquam voluptas totam. Iusto tempora occaecati ducimus temporibus exercitationem sit minima."
            },
            "extraContent": {
                "el": "Repellat corporis accusamus itaque minima autem. Consequatur ducimus ullam corporis enim. Enim at rerum repellat. Sed dolore vel omnis harum enim.\n\nEarum sunt sit eos vel. Voluptatem et non nihil quaerat mollitia.\n\nEst earum voluptas ea est quia et laborum incidunt. Blanditiis odio cum dicta quidem. Cum dolorum dolor ut ex pariatur magnam non."
            }
        },
        {
            "id": 18,
            "productCodes": [
                {
                    "id": 46,
                    "product": 18,
                    "productCode": "1883576511816",
                    "stock": 86,
                    "softDeleted": false,
                    "active": false,
                    "attributes": [
                        {
                            "id": 34,
                            "name": {
                                "el": "Reiciendis excepturi vel ducimus."
                            }
                        }
                    ],
                    "images": [
                        {
                            "id": 120,
                            "productCodeId": 46,
                            "image": "http://your_site.local/files/products/bjtjmdrCtxZGWqiuDffMntgNLzTdwqY9eIpazIgn.jpg",
                            "main": true,
                            "refCode": "73f3530d-b4f5-3d19-8aa7-31362b177a43"
                        }
                    ]
                },
                {
                    "id": 47,
                    "product": 18,
                    "productCode": "5849909132109",
                    "stock": -13,
                    "softDeleted": false,
                    "active": false,
                    "attributes": [
                        {
                            "id": 36,
                            "name": {
                                "el": "Ducimus tempora vel."
                            }
                        }
                    ],
                    "images": [
                        {
                            "id": 122,
                            "productCodeId": 47,
                            "image": "http://your_site.local/files/products/YJajIGcWFR9SrSMtTXbePb2lUB5lCzJrzz9fDDOh.jpg",
                            "main": false,
                            "refCode": "e8d0884e-fe4e-3eaa-b491-22ac1fcf44ca"
                        },
                        {
                            "id": 121,
                            "productCodeId": 47,
                            "image": "http://your_site.local/files/products/WM0Dxle3sRHuJVquyR47nv6SijFTgyhvfPEpLGcu.jpg",
                            "main": true,
                            "refCode": "b271a089-bbe8-3ad5-8af8-b80a537920bf"
                        }
                    ]
                },
                {
                    "id": 48,
                    "product": 18,
                    "productCode": "6599190126057",
                    "stock": 83,
                    "softDeleted": false,
                    "active": true,
                    "attributes": [
                        {
                            "id": 31,
                            "name": {
                                "el": "Aut molestias consequatur."
                            }
                        }
                    ],
                    "images": [
                        {
                            "id": 124,
                            "productCodeId": 48,
                            "image": "http://your_site.local/files/products/QyvcsjrQ9UliP3btzXUhY6uKQX4gtAKRzEgQ695X.jpg",
                            "main": false,
                            "refCode": "49ce8105-8f28-3a70-8d26-087fbb553e57"
                        },
                        {
                            "id": 123,
                            "productCodeId": 48,
                            "image": "http://your_site.local/files/products/SuxQ5RYCK0Pe7uGDo1fOCUkcIPHA4bYXDlpXvsNS.jpg",
                            "main": true,
                            "refCode": "40450d46-0fb6-3e00-9b7e-033832846a3d"
                        }
                    ]
                }
            ],
            "shelf": {
                "id": 66,
                "code": "08572530"
            },
            "vat": {
                "id": 3,
                "value": 13
            },
            "barcodes": [
                {
                    "id": 91,
                    "product": 18,
                    "productCode": "1883576511816",
                    "barcode": "7461010369502"
                },
                {
                    "id": 92,
                    "product": 18,
                    "productCode": "1883576511816",
                    "barcode": "9996089165826"
                },
                {
                    "id": 93,
                    "product": 18,
                    "productCode": "1883576511816",
                    "barcode": "8628865122228"
                }
            ],
            "pointFactor": "2064.0896",
            "price": "86.90",
            "wholesalePrice": "121.78",
            "discountPercent": "15.17",
            "vendorCode": "8648372392198",
            "vendor": {
                "id": 22,
                "logo": "http://your_site.local/files/vendors/QJpdDsJC0FDnYg8nkw0gVigP6UIRyRM1TOpXZ2lB.jpg",
                "refCode": "3bd4e1ac-2582-3f6e-8b83-f970d33d4612",
                "name": {
                    "el": "vel minima"
                },
                "slug": {
                    "el": "dolorem-excepturi-saepe-ut-porro"
                }
            },
            "active": 1,
            "weight": 6924,
            "pieces": 0,
            "softDeleted": false,
            "dateChanged": null,
            "slug": {
                "el": "aut-veniam-corrupti-voluptas-vel-dolor-temporibus"
            },
            "name": {
                "el": "Rem voluptatem aut et magnam rerum."
            },
            "content": {
                "el": "Non quis reiciendis aut doloremque delectus magnam et. Inventore quisquam deserunt alias. Voluptatem quae voluptatem consequatur sed.\n\nIncidunt beatae tempora commodi quae facilis facere esse. Dolorum et et qui alias libero accusantium illum. Culpa magnam voluptatem vel labore. Quisquam molestiae dolor facilis alias ut et consequatur. Iste qui pariatur et est et.\n\nItaque quos maxime est officiis. Nesciunt aut saepe tempore quidem. Eveniet illo ipsum omnis velit nulla. Alias qui fuga consequuntur quasi."
            },
            "shortContent": {
                "el": "Praesentium nemo officia ab et maxime dicta sit. Modi voluptas laborum quis dolorum iusto facilis molestiae. Qui voluptatibus consequatur et fugit est."
            },
            "ingredients": {
                "el": "Voluptatem amet assumenda autem et velit. Dolores dolore voluptatem autem perspiciatis. Provident sed et a molestiae. Officia iusto exercitationem animi reiciendis.\n\nPossimus omnis corporis voluptatibus dicta. Voluptas consequatur voluptatem quos molestias aliquam perspiciatis. Vero ipsa quia eos nihil quae rerum.\n\nPorro sunt sequi aut eligendi dolores fugiat voluptatem necessitatibus. Harum ipsa explicabo ullam aut vel porro. Minima autem excepturi laudantium expedita. Explicabo omnis saepe incidunt minima fugit aut. Aut illum ea aperiam rerum perspiciatis cupiditate."
            },
            "usage": {
                "el": "Et odio minus est pariatur nemo distinctio sit. Consectetur commodi et maiores quam laborum amet rerum. Rerum non exercitationem consequatur aliquid nostrum voluptatum. Et quis sequi autem laborum perspiciatis ipsam ex.\n\nRepellendus in est quae quia iure fugiat. Est quidem aut odit odio inventore et. Sint fugiat cumque maxime ad qui nostrum quo.\n\nEt a asperiores dignissimos tempora ab aut. Natus voluptate id laborum. A omnis quia ea quisquam optio ut pariatur. Porro doloribus provident delectus. Quia sit illo quidem optio est qui."
            },
            "extraContent": {
                "el": "Quos dicta natus quod reiciendis neque id eos. Aliquid sunt voluptas laudantium totam perferendis. Odio fuga quia et molestias vel possimus dolores.\n\nMolestiae ad perspiciatis explicabo aut doloremque. Sit facilis consectetur itaque. Velit pariatur id sint qui molestiae autem voluptatem. Laborum nisi cum dolorem ut neque illum.\n\nEum in hic ea aliquam enim et exercitationem harum. Mollitia dolor laudantium qui voluptatem unde facere qui. Quae dolorem quas cumque deserunt officia numquam et. Nulla perferendis aut voluptatem ullam necessitatibus."
            }
        },
        {
            "id": 19,
            "productCodes": [
                {
                    "id": 49,
                    "product": 19,
                    "productCode": "6321196338581",
                    "stock": -66,
                    "softDeleted": false,
                    "active": true,
                    "attributes": [
                        {
                            "id": 7,
                            "name": {
                                "el": "Quis esse corrupti corporis esse."
                            }
                        },
                        {
                            "id": 18,
                            "name": {
                                "el": "Alias nemo ad."
                            }
                        }
                    ],
                    "images": [
                        {
                            "id": 126,
                            "productCodeId": 49,
                            "image": "http://your_site.local/files/products/GLxRqMmUMOC3ZbyCuxEQyahKO5glS6zCvF74LOwS.jpg",
                            "main": false,
                            "refCode": "3f2ee9ba-a72b-311d-bd83-7c4f8e15e897"
                        },
                        {
                            "id": 125,
                            "productCodeId": 49,
                            "image": "http://your_site.local/files/products/vEggrg9hGVZACf0JfwLwG8KSM5pKmSQx9Lb0GtkM.jpg",
                            "main": true,
                            "refCode": "09fc9ab9-c3d4-3c28-842a-4b08aaf4635f"
                        }
                    ]
                },
                {
                    "id": 50,
                    "product": 19,
                    "productCode": "4456566559722",
                    "stock": -23,
                    "softDeleted": true,
                    "active": true,
                    "attributes": [
                        {
                            "id": 8,
                            "name": {
                                "el": "Labore et porro."
                            }
                        },
                        {
                            "id": 15,
                            "name": {
                                "el": "Aspernatur modi qui voluptatum unde."
                            }
                        }
                    ],
                    "images": [
                        {
                            "id": 128,
                            "productCodeId": 50,
                            "image": "http://your_site.local/files/products/RNF5NWGydekwzZAA8RNzkdpwIzjdB0Vv1Q1RyvJC.jpg",
                            "main": false,
                            "refCode": "af894ae8-00cb-39c5-8c7a-e53e15bf37c1"
                        },
                        {
                            "id": 129,
                            "productCodeId": 50,
                            "image": "http://your_site.local/files/products/dII7M0Q5YMo6xMbqpHKImDyKHifW7G6RB3Sci8yz.jpg",
                            "main": false,
                            "refCode": "d9e1ec34-b1eb-313b-b99c-f392ee690423"
                        },
                        {
                            "id": 127,
                            "productCodeId": 50,
                            "image": "http://your_site.local/files/products/7WeGdTTivAhlV7xepdc65iIHZsQhedYCxEkYxcYA.jpg",
                            "main": true,
                            "refCode": "4cd1d525-59a8-35b8-80eb-eb855be83186"
                        }
                    ]
                },
                {
                    "id": 51,
                    "product": 19,
                    "productCode": "4401895827639",
                    "stock": 36,
                    "softDeleted": true,
                    "active": false,
                    "attributes": [
                        {
                            "id": 10,
                            "name": {
                                "el": "Ducimus corporis possimus ab."
                            }
                        },
                        {
                            "id": 15,
                            "name": {
                                "el": "Aspernatur modi qui voluptatum unde."
                            }
                        }
                    ],
                    "images": [
                        {
                            "id": 130,
                            "productCodeId": 51,
                            "image": "http://your_site.local/files/products/7VyKHfMsSoPNDkWivnydiQ7B0gstK4YSfAC434zS.jpg",
                            "main": true,
                            "refCode": "c3102ba6-9aa9-35a4-aa97-90d6556901e2"
                        }
                    ]
                }
            ],
            "shelf": {
                "id": 36,
                "code": "81578665"
            },
            "vat": {
                "id": 3,
                "value": 13
            },
            "barcodes": [
                {
                    "id": 94,
                    "product": 19,
                    "productCode": "6321196338581",
                    "barcode": "0775001581055"
                },
                {
                    "id": 95,
                    "product": 19,
                    "productCode": "6321196338581",
                    "barcode": "3729078029122"
                },
                {
                    "id": 96,
                    "product": 19,
                    "productCode": "6321196338581",
                    "barcode": "7306820626363"
                },
                {
                    "id": 97,
                    "product": 19,
                    "productCode": "6321196338581",
                    "barcode": "0526053710678"
                },
                {
                    "id": 98,
                    "product": 19,
                    "productCode": "6321196338581",
                    "barcode": "9109720112039"
                }
            ],
            "pointFactor": "521.7304",
            "price": "101.36",
            "wholesalePrice": "87.31",
            "discountPercent": "17.20",
            "vendorCode": "1089270916876",
            "vendor": {
                "id": 19,
                "logo": "http://your_site.local/files/vendors/GmkHOcTTLcxZRFcNFC8X5NQfLigVdmDjcMa6LCZ1.jpg",
                "refCode": "d52e0107-0018-37ec-820a-584bdb908bf6",
                "name": {
                    "el": "quis rem"
                },
                "slug": {
                    "el": "tempora-et-non-aspernatur-quia-qui"
                }
            },
            "active": 0,
            "weight": 5525,
            "pieces": 0,
            "softDeleted": false,
            "dateChanged": null,
            "slug": {
                "el": "repudiandae-quae-dolor-id-voluptatem-praesentium-facilis-alias"
            },
            "name": {
                "el": "Sint sapiente dolores explicabo enim quaerat."
            },
            "content": {
                "el": "Voluptates quia voluptatem veniam nostrum accusantium quia consequatur. Similique et minima sed laborum facilis. Hic architecto qui provident et nisi quos voluptas. Velit velit quia quod sunt ut nulla maiores minima.\n\nVel quibusdam saepe porro nam rerum quisquam. Laborum consequatur amet dolorem numquam. Consequatur consequatur inventore et odit dicta asperiores ut.\n\nAccusantium aut suscipit magni esse. Dignissimos exercitationem at in voluptatum. Possimus impedit quaerat qui magni dolor. Autem minima veritatis expedita dolor ipsum doloribus."
            },
            "shortContent": {
                "el": "Ut eum voluptatum ut omnis quis aspernatur rerum. Amet vel corrupti earum sapiente quia earum."
            },
            "ingredients": {
                "el": "Omnis quas qui asperiores voluptatem eum et sunt. Ullam velit inventore sapiente consequatur dolore. Beatae qui ut odio cupiditate odio non cumque voluptate. Et qui porro explicabo libero molestiae velit numquam.\n\nId animi molestias delectus est ex cum voluptatem. Qui quo perferendis aut unde sed. Maiores aspernatur corrupti et omnis.\n\nBlanditiis harum praesentium atque sapiente nesciunt molestiae. Et ducimus perspiciatis quis pariatur consequatur id earum. Officiis similique qui ea ducimus enim vel dolores. Nam sunt atque sed cumque."
            },
            "usage": {
                "el": "Voluptatem explicabo ab illum. Quis cum reiciendis molestiae officiis iusto eos vel. Ex vitae autem et ut praesentium. Numquam perferendis magni sed.\n\nQui aspernatur et repellat dolore asperiores reiciendis. Tenetur sunt porro voluptatem. Et minus et harum et. Consectetur doloremque et quis hic.\n\nVel dignissimos distinctio laudantium magni est laudantium. Tempora voluptatem illo est consequatur natus asperiores dolores. Reprehenderit reprehenderit et expedita provident et placeat animi. Aliquid optio et sed laboriosam qui incidunt."
            },
            "extraContent": {
                "el": "Quia libero et aut velit. Distinctio autem qui doloremque libero nihil nulla dolores. Aliquam quisquam dolorem ad sit. Quasi debitis iste quisquam quam et corporis.\n\nDolores corrupti maxime deserunt similique cumque et. Veritatis consequatur molestiae itaque inventore. Eum dicta voluptates exercitationem voluptatem qui ab dolore. Ut voluptatum deserunt ullam pariatur.\n\nFacilis ullam accusantium harum sit eos itaque veritatis. Recusandae eligendi ut aut sed. Impedit facere cumque fugit."
            }
        },
        {
            "id": 20,
            "productCodes": [
                {
                    "id": 52,
                    "product": 20,
                    "productCode": "7079838771751",
                    "stock": 53,
                    "softDeleted": false,
                    "active": true,
                    "attributes": [],
                    "images": [
                        {
                            "id": 131,
                            "productCodeId": 52,
                            "image": "http://your_site.local/files/products/GtRk8yej2jCMV5qVXlT3MLK84qvzJI4TQqWCdj6e.jpg",
                            "main": true,
                            "refCode": "59887081-0e13-3cd5-822b-089a7f07e97d"
                        }
                    ]
                }
            ],
            "shelf": {
                "id": 21,
                "code": "29786008"
            },
            "vat": {
                "id": 4,
                "value": 24
            },
            "barcodes": [
                {
                    "id": 99,
                    "product": 20,
                    "productCode": "7079838771751",
                    "barcode": "3010802437031"
                },
                {
                    "id": 100,
                    "product": 20,
                    "productCode": "7079838771751",
                    "barcode": "6969442776819"
                }
            ],
            "pointFactor": "4624.5752",
            "price": "37.28",
            "wholesalePrice": "87.45",
            "discountPercent": "20.55",
            "vendorCode": "7962785362793",
            "vendor": {
                "id": 22,
                "logo": "http://your_site.local/files/vendors/QJpdDsJC0FDnYg8nkw0gVigP6UIRyRM1TOpXZ2lB.jpg",
                "refCode": "3bd4e1ac-2582-3f6e-8b83-f970d33d4612",
                "name": {
                    "el": "vel minima"
                },
                "slug": {
                    "el": "dolorem-excepturi-saepe-ut-porro"
                }
            },
            "active": 1,
            "weight": 5455,
            "pieces": 3,
            "softDeleted": false,
            "dateChanged": null,
            "slug": {
                "el": "ullam-dolor-possimus-tempore-sapiente-est"
            },
            "name": {
                "el": "Aut molestiae velit molestiae omnis dolor."
            },
            "content": {
                "el": "Et consequuntur possimus numquam odit veniam et. Omnis sapiente molestiae consequatur dolorem quia quis et modi. Accusamus est qui atque deserunt cupiditate consequatur. Neque sit suscipit alias ut est.\n\nExcepturi debitis laudantium sed aspernatur eos earum incidunt. Recusandae accusamus aut sunt ab delectus. Ipsum ratione quisquam architecto a omnis aut. Ipsum porro alias et accusamus sit ut reiciendis. Aliquam asperiores rerum vero et aut sapiente.\n\nQuo est aut laudantium non libero qui nihil. Minus rerum adipisci repellat sint omnis. Laborum rerum ea doloribus facere consequatur."
            },
            "shortContent": {
                "el": "Cumque sapiente consectetur ad dolorem illum quisquam iusto. Odit dolorum ducimus esse voluptate suscipit eos maiores. Voluptas eius sunt asperiores voluptate veritatis perspiciatis omnis."
            },
            "ingredients": {
                "el": "Tempora quos iste numquam placeat et ab. Quam blanditiis aut voluptates sequi beatae in est consectetur. Ut dicta voluptates qui iusto velit. Nisi aliquid est aut quia.\n\nQuas voluptas et et nesciunt assumenda sunt. Labore et omnis et. Molestiae ut qui pariatur aperiam dolorem unde nisi. Animi qui numquam necessitatibus sit.\n\nQuod aut repellendus hic natus tempora. Velit quo perspiciatis ut totam. Praesentium id quo unde veniam assumenda asperiores molestiae accusantium. Dolor distinctio rerum ut facilis ut dolor. Sit provident corporis et molestiae provident."
            },
            "usage": {
                "el": "Cupiditate autem dolorem aut necessitatibus rerum asperiores recusandae. In ipsum in architecto inventore ab porro aut molestiae. Aut aut soluta cumque et sed odit. Nostrum et quo tempore hic necessitatibus sed non.\n\nCum sunt ut distinctio molestias qui. Illo enim eligendi aut ab debitis maiores. Iste est repellendus minima placeat qui ea.\n\nQuod quo enim omnis at porro aut. Eos unde et repellendus autem quae neque. Eaque dolorem consectetur in eaque odio. Excepturi vero similique necessitatibus minus voluptates quaerat at."
            },
            "extraContent": {
                "el": "Eligendi ut et distinctio quod. Impedit libero sed quia similique molestiae. Aliquam et consequuntur nihil culpa distinctio repudiandae veritatis. Voluptatem odio ducimus architecto autem accusamus.\n\nId consequuntur harum velit assumenda est. Et autem sint aspernatur ut. Doloremque voluptas dolore dolore asperiores consequatur eius laborum. Hic debitis quia dolores labore.\n\nVoluptates nobis est cumque odit praesentium eius. Quia est et id quaerat. Fuga et nesciunt saepe totam non molestiae et. Alias aut voluptatem repellat recusandae voluptatem vel eveniet."
            }
        },
        {
            "id": 21,
            "productCodes": [
                {
                    "id": 53,
                    "product": 21,
                    "productCode": "9253359883188",
                    "stock": -70,
                    "softDeleted": false,
                    "active": true,
                    "attributes": [
                        {
                            "id": 2,
                            "name": {
                                "el": "Consequatur harum eum ipsa."
                            }
                        },
                        {
                            "id": 15,
                            "name": {
                                "el": "Aspernatur modi qui voluptatum unde."
                            }
                        }
                    ],
                    "images": [
                        {
                            "id": 132,
                            "productCodeId": 53,
                            "image": "http://your_site.local/files/products/Pv9WfmqBsrO0Yxfzi4ardwwR8AoZs0zkUC3nFMBi.jpg",
                            "main": true,
                            "refCode": "b98d8d42-d116-32f3-8f3c-4f205f9d0ced"
                        }
                    ]
                }
            ],
            "shelf": {
                "id": 83,
                "code": "74297771"
            },
            "vat": {
                "id": 2,
                "value": 6
            },
            "barcodes": [
                {
                    "id": 101,
                    "product": 21,
                    "productCode": "9253359883188",
                    "barcode": "7497382930767"
                },
                {
                    "id": 102,
                    "product": 21,
                    "productCode": "9253359883188",
                    "barcode": "6856506614630"
                },
                {
                    "id": 103,
                    "product": 21,
                    "productCode": "9253359883188",
                    "barcode": "3955369988254"
                },
                {
                    "id": 104,
                    "product": 21,
                    "productCode": "9253359883188",
                    "barcode": "8018847593755"
                },
                {
                    "id": 105,
                    "product": 21,
                    "productCode": "9253359883188",
                    "barcode": "6773582709763"
                },
                {
                    "id": 106,
                    "product": 21,
                    "productCode": "9253359883188",
                    "barcode": "3474779655681"
                }
            ],
            "pointFactor": "220.9432",
            "price": "23.35",
            "wholesalePrice": "140.12",
            "discountPercent": "48.93",
            "vendorCode": "3648750367072",
            "vendor": {
                "id": 9,
                "logo": "http://your_site.local/files/vendors/1pAItVR0a8mbRWXPJdFixYFUvcMxY3e5bQQhb16L.jpg",
                "refCode": "e64edd18-6283-364e-ad0d-1330c8f4fa4a",
                "name": {
                    "el": "eos accusantium"
                },
                "slug": {
                    "el": "eos-libero-et-dolor-saepe-delectus-aut-ut-reiciendis"
                }
            },
            "active": 1,
            "weight": 2874,
            "pieces": 7,
            "softDeleted": false,
            "dateChanged": null,
            "slug": {
                "el": "rerum-eos-aperiam-non-itaque"
            },
            "name": {
                "el": "Et placeat enim accusantium id totam quo et."
            },
            "content": {
                "el": "Officiis voluptatem id veritatis qui. Necessitatibus et soluta sint expedita numquam. Quas sint ratione iusto velit aut voluptate ut. Reiciendis ad rerum aut deserunt. Provident aut porro ea.\n\nNeque reprehenderit voluptates quod autem quos eos inventore. Quia et qui et ad laudantium quas. Quaerat sit aut nisi saepe. Odit consequatur numquam veritatis cumque repellat non.\n\nUllam neque recusandae eligendi ut est. Expedita dolorum excepturi voluptas saepe totam itaque enim praesentium. Repellendus quia facilis impedit earum placeat. Est dolore culpa dolorem est aperiam nulla et."
            },
            "shortContent": {
                "el": "Qui natus non illum et aut. Autem minima in ut qui quo qui pariatur."
            },
            "ingredients": {
                "el": "Ea praesentium ut fuga est earum deleniti eos. Ad similique ea eius voluptatem id. In et voluptatem quos sunt quos.\n\nUt excepturi tenetur et saepe. Pariatur omnis similique aspernatur facere quis esse rerum. Veniam ut consequatur et rerum eum enim ea.\n\nEarum provident quaerat totam et. Repellendus id sit aliquid sint dolorem veritatis possimus laborum. Et architecto quam ipsam sed. Voluptatem magnam minus odit quo aut facere. Vel deserunt illo quidem amet nobis iure."
            },
            "usage": {
                "el": "Sit neque saepe officiis dolores. Aspernatur laboriosam nisi magnam adipisci voluptas et voluptatem. Sed et quibusdam dolorum consequatur voluptatibus nihil voluptatem qui.\n\nArchitecto aut cupiditate maiores. Et deserunt voluptate odio enim a optio. Est vel dolorem laudantium suscipit. Ut consequatur cumque nulla tenetur ad.\n\nDolorum dolorum deserunt minus voluptas. Nihil rem autem velit dignissimos a ea quia. Doloribus amet maiores quae incidunt consectetur."
            },
            "extraContent": {
                "el": "Animi natus odit similique eaque repudiandae doloremque repellat. Ab doloremque et provident nesciunt. Minima minus aut ut vel. Rem libero porro consequatur asperiores dolores et maxime.\n\nVel aut dolorem enim aut. Voluptate eveniet ea non consequatur quod. Sunt velit est a inventore blanditiis sit in.\n\nAut impedit earum aut odio aut. Ut quidem est laborum sequi minima possimus aut illo. Aspernatur consequatur eaque quas quis quis animi perspiciatis."
            }
        },
        {
            "id": 22,
            "productCodes": [
                {
                    "id": 54,
                    "product": 22,
                    "productCode": "8039961949655",
                    "stock": -40,
                    "softDeleted": true,
                    "active": true,
                    "attributes": [
                        {
                            "id": 9,
                            "name": {
                                "el": "Nihil est et excepturi voluptatem."
                            }
                        }
                    ],
                    "images": [
                        {
                            "id": 134,
                            "productCodeId": 54,
                            "image": "http://your_site.local/files/products/TgdlQgFxoDXUIiDbOXIkfnd2BvFFvBfmBtE0ff44.jpg",
                            "main": false,
                            "refCode": "3e075eca-1778-3874-b258-01dd3ae09d18"
                        },
                        {
                            "id": 133,
                            "productCodeId": 54,
                            "image": "http://your_site.local/files/products/vBBCHVst5KLZQQ7VYZWeVUoHhqK6yOrhwcbjabpa.jpg",
                            "main": true,
                            "refCode": "decd7767-592b-3dee-9262-a746a6a3334a"
                        }
                    ]
                },
                {
                    "id": 55,
                    "product": 22,
                    "productCode": "3028131174688",
                    "stock": 79,
                    "softDeleted": false,
                    "active": true,
                    "attributes": [
                        {
                            "id": 8,
                            "name": {
                                "el": "Labore et porro."
                            }
                        }
                    ],
                    "images": [
                        {
                            "id": 135,
                            "productCodeId": 55,
                            "image": "http://your_site.local/files/products/uIA0rRJ5UzDJWUaqcGrK8GM6MlIm5X8k1Z96WdFO.jpg",
                            "main": true,
                            "refCode": "7a742ed4-9e07-37bc-a746-72f0283109d6"
                        }
                    ]
                },
                {
                    "id": 56,
                    "product": 22,
                    "productCode": "6884099969851",
                    "stock": -3,
                    "softDeleted": false,
                    "active": false,
                    "attributes": [
                        {
                            "id": 12,
                            "name": {
                                "el": "Quia earum est."
                            }
                        }
                    ],
                    "images": [
                        {
                            "id": 137,
                            "productCodeId": 56,
                            "image": "http://your_site.local/files/products/1XOQhKSQij5ODcERwYfwyyWsNAMUo564d4XoVk4L.jpg",
                            "main": false,
                            "refCode": "7e326f85-c16c-3be8-895a-c8d1cb26167d"
                        },
                        {
                            "id": 138,
                            "productCodeId": 56,
                            "image": "http://your_site.local/files/products/2IKsd8RgM4V45G1pX9c9A1JiwvQ5KWKMTZaVQA1U.jpg",
                            "main": false,
                            "refCode": "7b713fd4-43bd-3103-9592-7af01b0b4b0f"
                        },
                        {
                            "id": 136,
                            "productCodeId": 56,
                            "image": "http://your_site.local/files/products/naXSIwr1tWO5GbMAQQ8tKDdHZIkXiJqTx83Ws59Q.jpg",
                            "main": true,
                            "refCode": "37f30f39-25ca-3ad3-b00d-65af546b3ed9"
                        }
                    ]
                },
                {
                    "id": 57,
                    "product": 22,
                    "productCode": "4163550487540",
                    "stock": 5,
                    "softDeleted": true,
                    "active": false,
                    "attributes": [
                        {
                            "id": 7,
                            "name": {
                                "el": "Quis esse corrupti corporis esse."
                            }
                        }
                    ],
                    "images": [
                        {
                            "id": 140,
                            "productCodeId": 57,
                            "image": "http://your_site.local/files/products/DLjMbRY1oZgxl4CacHNZ19WyaFp90dlFWmgYHp1u.jpg",
                            "main": false,
                            "refCode": "4c37326d-d055-3aa1-8cc2-45bed75f445c"
                        },
                        {
                            "id": 141,
                            "productCodeId": 57,
                            "image": "http://your_site.local/files/products/kw5YedofttJKDyW9w9uUUGqgzoPE5HBWXCQe8hIs.jpg",
                            "main": false,
                            "refCode": "76a3d712-0c6e-3879-b2f1-ed9a9d17684b"
                        },
                        {
                            "id": 142,
                            "productCodeId": 57,
                            "image": "http://your_site.local/files/products/4FJapkR5UxgTIuoK3eCKRDxnOrjKol6yZVpRkdjl.jpg",
                            "main": false,
                            "refCode": "a54f1d1e-5bf0-35eb-b7b8-023bca80cb36"
                        },
                        {
                            "id": 139,
                            "productCodeId": 57,
                            "image": "http://your_site.local/files/products/cynBBuvhqjceu6UgTWJGekeAY3bJu2rQPLu34slw.jpg",
                            "main": true,
                            "refCode": "e8f412dc-f313-3b6a-8563-b5e0e98a329f"
                        }
                    ]
                }
            ],
            "shelf": {
                "id": 14,
                "code": "58337400"
            },
            "vat": {
                "id": 2,
                "value": 6
            },
            "barcodes": [
                {
                    "id": 107,
                    "product": 22,
                    "productCode": "8039961949655",
                    "barcode": "7974033973170"
                },
                {
                    "id": 108,
                    "product": 22,
                    "productCode": "8039961949655",
                    "barcode": "4657575378476"
                },
                {
                    "id": 109,
                    "product": 22,
                    "productCode": "8039961949655",
                    "barcode": "8116149957890"
                },
                {
                    "id": 110,
                    "product": 22,
                    "productCode": "8039961949655",
                    "barcode": "6054771776491"
                }
            ],
            "pointFactor": "2119.8762",
            "price": "133.27",
            "wholesalePrice": "104.52",
            "discountPercent": "34.19",
            "vendorCode": "1162460441270",
            "vendor": {
                "id": 14,
                "logo": "http://your_site.local/files/vendors/H9j8g2L2S4RXMk3pDb4CIQHbrETzVhO1YKDBySKg.jpg",
                "refCode": "659b00ed-2671-3d10-828c-a8f7bdb91d5e",
                "name": {
                    "el": "et saepe"
                },
                "slug": {
                    "el": "vero-et-veniam-praesentium-omnis-molestiae-officiis"
                }
            },
            "active": 0,
            "weight": 5597,
            "pieces": 6,
            "softDeleted": false,
            "dateChanged": null,
            "slug": {
                "el": "sit-eum-eveniet-qui-magni-consectetur"
            },
            "name": {
                "el": "Enim itaque ipsum fuga."
            },
            "content": {
                "el": "Neque ad voluptas ut in inventore. Natus nihil explicabo illo deserunt iste quo est.\n\nExplicabo velit fugit quis vel rem. In neque omnis ad eius vel recusandae soluta quaerat.\n\nNon occaecati voluptate voluptatibus enim perspiciatis debitis. Esse non qui sed nisi praesentium. Quos sit quia nihil."
            },
            "shortContent": {
                "el": "Natus natus doloremque vel blanditiis non debitis. Eos tempore dolor debitis sapiente placeat eveniet qui quia. Asperiores velit sint a quis fuga ut et."
            },
            "ingredients": {
                "el": "Et laboriosam velit cum enim in voluptates tempora molestias. Nesciunt dolorum accusamus in architecto et. Voluptatibus est voluptas impedit nihil.\n\nLibero id minima eveniet recusandae id consectetur nemo ratione. Aliquam delectus voluptatum et aut doloribus facere molestiae. Maxime quo delectus assumenda sunt.\n\nQui accusamus dolorem numquam animi animi quo. At inventore distinctio consequatur. Nemo unde quis consequatur possimus voluptas."
            },
            "usage": {
                "el": "Nihil debitis voluptatem et ut voluptas et. Aliquid doloremque voluptas blanditiis sunt voluptatibus aut. Ut aliquid voluptas aut quibusdam perspiciatis. Error illum assumenda aut consequuntur nemo a itaque.\n\nDebitis nesciunt quo veniam ducimus nobis. Iure magni inventore similique et aut. Consequatur incidunt possimus voluptatem aperiam.\n\nIure fugiat tempora magnam rerum et aspernatur recusandae. Magnam sed ipsam reprehenderit. Odit cum est ducimus doloremque sunt sequi. Inventore officiis non et ut."
            },
            "extraContent": {
                "el": "Voluptatem quam et tenetur qui. Vel et ea molestiae nobis harum error. Laudantium aut a et veritatis. Excepturi et et assumenda dolor nam quia impedit.\n\nSunt dolorem quae perspiciatis ipsam error atque aliquam. Consequatur at necessitatibus nemo ut aut.\n\nIpsum est nesciunt ut aut similique. Nam culpa ut magni ducimus placeat necessitatibus qui. Consequatur delectus eos necessitatibus veniam."
            }
        },
        {
            "id": 23,
            "productCodes": [
                {
                    "id": 58,
                    "product": 23,
                    "productCode": "3769826956409",
                    "stock": 60,
                    "softDeleted": true,
                    "active": true,
                    "attributes": [
                        {
                            "id": 12,
                            "name": {
                                "el": "Quia earum est."
                            }
                        }
                    ],
                    "images": [
                        {
                            "id": 143,
                            "productCodeId": 58,
                            "image": "http://your_site.local/files/products/G4rUGWSM0Rlf2iILhnxxrswW6tqDKeG5KAqHnWVb.jpg",
                            "main": true,
                            "refCode": "bf612d69-5dfa-3e22-bf7f-454775ad6d34"
                        }
                    ]
                },
                {
                    "id": 59,
                    "product": 23,
                    "productCode": "8154228316046",
                    "stock": -50,
                    "softDeleted": true,
                    "active": true,
                    "attributes": [
                        {
                            "id": 9,
                            "name": {
                                "el": "Nihil est et excepturi voluptatem."
                            }
                        }
                    ],
                    "images": [
                        {
                            "id": 145,
                            "productCodeId": 59,
                            "image": "http://your_site.local/files/products/XlmZzlY4XAdCwCH9c7KSvj2ImQ7bO5AQWYsNwfTf.jpg",
                            "main": false,
                            "refCode": "ecb2e95f-5539-3ee0-96e9-a9d21f10388e"
                        },
                        {
                            "id": 146,
                            "productCodeId": 59,
                            "image": "http://your_site.local/files/products/LkSJoEcZHcGBV5CEQZABgcaEAVbU7j038KMPTJFf.jpg",
                            "main": false,
                            "refCode": "07312244-bef7-3c6f-b467-d09e95a80916"
                        },
                        {
                            "id": 147,
                            "productCodeId": 59,
                            "image": "http://your_site.local/files/products/RXhyYD8yurxeFDZDJW6ks0BvkXoxVQBmGj15OchM.jpg",
                            "main": false,
                            "refCode": "294050a7-6468-34c7-88f0-3b2de159447f"
                        },
                        {
                            "id": 144,
                            "productCodeId": 59,
                            "image": "http://your_site.local/files/products/TALEP472cnlgLMgvBZgKkzZf7SDfQ81rkij420K4.jpg",
                            "main": true,
                            "refCode": "18831a7e-7c12-310d-b34c-2b166a790f31"
                        }
                    ]
                },
                {
                    "id": 60,
                    "product": 23,
                    "productCode": "1259731585662",
                    "stock": 2,
                    "softDeleted": true,
                    "active": false,
                    "attributes": [
                        {
                            "id": 10,
                            "name": {
                                "el": "Ducimus corporis possimus ab."
                            }
                        }
                    ],
                    "images": [
                        {
                            "id": 149,
                            "productCodeId": 60,
                            "image": "http://your_site.local/files/products/avpopaG9Imx1uaQvRu2ikmNo0b8XeSef0jApGvJx.jpg",
                            "main": false,
                            "refCode": "981ffc7d-1457-34fb-94b6-eba01850330a"
                        },
                        {
                            "id": 150,
                            "productCodeId": 60,
                            "image": "http://your_site.local/files/products/10oUgHja3AwelyB6fReMuZpcgtgnfUyhHjJyxbAe.jpg",
                            "main": false,
                            "refCode": "b31d9f18-e7c6-38cc-ab33-293dc2413f85"
                        },
                        {
                            "id": 151,
                            "productCodeId": 60,
                            "image": "http://your_site.local/files/products/mhrT1AMAvUp8NsvFVJoWoVkVog7ckI6aQW8FFeQ1.jpg",
                            "main": false,
                            "refCode": "89403cab-32bf-3a09-9f12-6c79c8cc4882"
                        },
                        {
                            "id": 148,
                            "productCodeId": 60,
                            "image": "http://your_site.local/files/products/RlHRmm02ItyC0lCtIL0B8M6oJtDPdYmJtsfuWxIo.jpg",
                            "main": true,
                            "refCode": "01f1771a-9386-3b00-8e56-e82902ccb74a"
                        }
                    ]
                },
                {
                    "id": 61,
                    "product": 23,
                    "productCode": "9314247271613",
                    "stock": 42,
                    "softDeleted": false,
                    "active": false,
                    "attributes": [
                        {
                            "id": 8,
                            "name": {
                                "el": "Labore et porro."
                            }
                        }
                    ],
                    "images": [
                        {
                            "id": 153,
                            "productCodeId": 61,
                            "image": "http://your_site.local/files/products/Yp8auCLU9gGtKvgD3Wr0Fe4KF3zhcL7yb5YBrg9e.jpg",
                            "main": false,
                            "refCode": "e1915cd2-686f-374f-bfa8-5d190e4f435d"
                        },
                        {
                            "id": 154,
                            "productCodeId": 61,
                            "image": "http://your_site.local/files/products/t6NlKAZVh4m2aDpPAA3xOkViKz4Wjmk9zNvWjnvl.jpg",
                            "main": false,
                            "refCode": "4ee4b99e-6a76-3d9c-91b3-73301c895d70"
                        },
                        {
                            "id": 152,
                            "productCodeId": 61,
                            "image": "http://your_site.local/files/products/s5aCJB8HzvZoBmxwMkvmdE8lqFWpbDvuh0MNEskF.jpg",
                            "main": true,
                            "refCode": "c7d6ab48-e4fa-3559-b25a-d800acbdd0a4"
                        }
                    ]
                }
            ],
            "shelf": {
                "id": 34,
                "code": "50304103"
            },
            "vat": {
                "id": 1,
                "value": 0
            },
            "barcodes": [
                {
                    "id": 111,
                    "product": 23,
                    "productCode": "3769826956409",
                    "barcode": "2379927588051"
                },
                {
                    "id": 112,
                    "product": 23,
                    "productCode": "3769826956409",
                    "barcode": "5559771256321"
                },
                {
                    "id": 113,
                    "product": 23,
                    "productCode": "3769826956409",
                    "barcode": "8857007912209"
                },
                {
                    "id": 114,
                    "product": 23,
                    "productCode": "3769826956409",
                    "barcode": "0708176898338"
                },
                {
                    "id": 115,
                    "product": 23,
                    "productCode": "3769826956409",
                    "barcode": "9079241210593"
                }
            ],
            "pointFactor": "4824.7040",
            "price": "65.59",
            "wholesalePrice": "106.92",
            "discountPercent": "10.14",
            "vendorCode": "6882444158318",
            "vendor": {
                "id": 23,
                "logo": "http://your_site.local/files/vendors/gKdEAcgOCFv5pRtsJU9FJqzBPurxSOnOMh5as50a.jpg",
                "refCode": "5bf22586-ec9c-3611-b1e3-d5c134f2b88a",
                "name": {
                    "el": "dolores officiis"
                },
                "slug": {
                    "el": "quia-provident-fugiat-exercitationem-esse-molestiae"
                }
            },
            "active": 0,
            "weight": 5785,
            "pieces": 8,
            "softDeleted": false,
            "dateChanged": null,
            "slug": {
                "el": "molestiae-sint-exercitationem-laboriosam-aut"
            },
            "name": {
                "el": "Enim sint et et perspiciatis reiciendis aspernatur et saepe."
            },
            "content": {
                "el": "Blanditiis nihil quos hic. Dolor qui nihil officia vel esse quisquam. Beatae quia quibusdam asperiores suscipit ipsam. Et ipsam debitis maiores aut ut repellendus et.\n\nEst sunt quia necessitatibus libero. Eveniet et doloremque officiis doloremque quia corrupti. Et aut optio necessitatibus minima voluptatem vero quibusdam voluptatem.\n\nAut enim perspiciatis enim. Ipsum libero a sunt voluptatibus non. Unde sed fuga illum quia praesentium alias dolorum."
            },
            "shortContent": {
                "el": "Vel laboriosam officia ipsam tempora et nihil eum numquam. Quo voluptatem non a voluptate omnis. Minima exercitationem fuga ea est maiores omnis expedita."
            },
            "ingredients": {
                "el": "Incidunt aut fuga quia natus id aut maxime voluptatem. Aut amet doloribus aspernatur ut quis et et. Veniam corporis sint mollitia quibusdam et.\n\nEst facere velit ut. Ad eos eos non adipisci et expedita. Omnis quisquam labore ipsum ratione. Nesciunt dolorem quia ratione suscipit cum id.\n\nMolestiae aut earum et qui et deleniti. Deleniti esse nobis omnis nihil itaque et aspernatur quas. Sit aut quia corrupti aut enim maxime. Ut velit voluptatem molestiae cupiditate dolorum."
            },
            "usage": {
                "el": "Ratione quia nisi aliquam et incidunt molestiae omnis. Est minima eum possimus fuga corrupti. Ratione animi dignissimos sint.\n\nSit qui veniam dignissimos autem ratione autem perferendis. Quis veritatis aliquam rerum eligendi. Excepturi est et minima quae. Omnis veritatis quia maiores occaecati omnis vero enim.\n\nCommodi consequatur quod est non ratione nisi est ducimus. Minus molestiae magnam et ea rerum ut illum."
            },
            "extraContent": {
                "el": "Voluptates nesciunt numquam molestiae beatae. Nulla voluptatem qui error alias. Rerum id qui corrupti vitae. Molestiae dolorum vel temporibus error accusantium aut est molestiae.\n\nDoloribus inventore porro voluptas commodi voluptatem iusto aut. Natus fuga quae veniam et nam non iure. Pariatur odio et qui ut deleniti non sed. Repellendus ipsum itaque natus commodi doloremque voluptas maxime aut. Deleniti minus pariatur est consequuntur quod sed.\n\nQuaerat quibusdam iusto voluptas sit. Ea ut perferendis et qui. Explicabo cum blanditiis minus sit. Eum facilis beatae in."
            }
        },
        {
            "id": 24,
            "productCodes": [
                {
                    "id": 62,
                    "product": 24,
                    "productCode": "5531471610979",
                    "stock": 10,
                    "softDeleted": false,
                    "active": true,
                    "attributes": [
                        {
                            "id": 15,
                            "name": {
                                "el": "Aspernatur modi qui voluptatum unde."
                            }
                        }
                    ],
                    "images": [
                        {
                            "id": 155,
                            "productCodeId": 62,
                            "image": "http://your_site.local/files/products/5YRdQ7YuMS0Lxx7p8Qepfi4PyWQr6rUcYA6NQGpd.jpg",
                            "main": true,
                            "refCode": "7c822ba0-80c0-3370-8361-082dd0122f71"
                        }
                    ]
                },
                {
                    "id": 63,
                    "product": 24,
                    "productCode": "2990527467524",
                    "stock": -16,
                    "softDeleted": true,
                    "active": false,
                    "attributes": [
                        {
                            "id": 14,
                            "name": {
                                "el": "Qui enim voluptatum qui."
                            }
                        }
                    ],
                    "images": [
                        {
                            "id": 157,
                            "productCodeId": 63,
                            "image": "http://your_site.local/files/products/GfgN6SUtBx1sKBuDEgiedtmFCn5X6GJXqyAc7qN5.jpg",
                            "main": false,
                            "refCode": "1bd3ce4f-8602-3c1d-8e7f-eb3df166e091"
                        },
                        {
                            "id": 158,
                            "productCodeId": 63,
                            "image": "http://your_site.local/files/products/qoLSHvkqA1WAKaLD7w1JIClIolKRyeD2qxZPNACt.jpg",
                            "main": false,
                            "refCode": "8eb321c5-61cc-3980-a21a-7e814772505f"
                        },
                        {
                            "id": 156,
                            "productCodeId": 63,
                            "image": "http://your_site.local/files/products/79u6qHizk0NOohmSfFL7pk8gnhGcU1tVPSSsw6Wl.jpg",
                            "main": true,
                            "refCode": "49edd837-0662-3e34-a6f6-415ae8c8280e"
                        }
                    ]
                },
                {
                    "id": 64,
                    "product": 24,
                    "productCode": "1205019739494",
                    "stock": 28,
                    "softDeleted": false,
                    "active": true,
                    "attributes": [
                        {
                            "id": 18,
                            "name": {
                                "el": "Alias nemo ad."
                            }
                        }
                    ],
                    "images": [
                        {
                            "id": 160,
                            "productCodeId": 64,
                            "image": "http://your_site.local/files/products/j7ZO9cxhqS3x8JpPWAjjYDKB9slP90lsu19U481y.jpg",
                            "main": false,
                            "refCode": "f460af1d-8428-345c-aa58-277ec3b0f5ff"
                        },
                        {
                            "id": 159,
                            "productCodeId": 64,
                            "image": "http://your_site.local/files/products/pUfdjIkDvsP00Yx5LRbKhNKXBCqOAI693B0yCe3M.jpg",
                            "main": true,
                            "refCode": "234d99be-69da-3a61-86d1-4f23ca4971a4"
                        }
                    ]
                },
                {
                    "id": 65,
                    "product": 24,
                    "productCode": "4302000250765",
                    "stock": 34,
                    "softDeleted": false,
                    "active": false,
                    "attributes": [
                        {
                            "id": 17,
                            "name": {
                                "el": "Facilis ut molestiae consequatur."
                            }
                        }
                    ],
                    "images": [
                        {
                            "id": 161,
                            "productCodeId": 65,
                            "image": "http://your_site.local/files/products/5WzUobpEcZjK7KEfaKfq4FoZYStDOEg1i6WzP5Ge.jpg",
                            "main": true,
                            "refCode": "c9a1b339-899f-3f53-807f-c54042864c79"
                        }
                    ]
                },
                {
                    "id": 66,
                    "product": 24,
                    "productCode": "7097659903076",
                    "stock": -12,
                    "softDeleted": false,
                    "active": true,
                    "attributes": [
                        {
                            "id": 13,
                            "name": {
                                "el": "Nihil quis sed voluptas."
                            }
                        }
                    ],
                    "images": [
                        {
                            "id": 162,
                            "productCodeId": 66,
                            "image": "http://your_site.local/files/products/0u1LAAruK5WiLZ5mUv9Jjg6cofw7l5xaPTOAWevq.jpg",
                            "main": true,
                            "refCode": "646c4972-1b37-3bc1-9ca5-9d51fc30881a"
                        }
                    ]
                }
            ],
            "shelf": {
                "id": 63,
                "code": "67445943"
            },
            "vat": {
                "id": 1,
                "value": 0
            },
            "barcodes": [
                {
                    "id": 116,
                    "product": 24,
                    "productCode": "5531471610979",
                    "barcode": "1142213941073"
                },
                {
                    "id": 117,
                    "product": 24,
                    "productCode": "5531471610979",
                    "barcode": "6648472959859"
                },
                {
                    "id": 118,
                    "product": 24,
                    "productCode": "5531471610979",
                    "barcode": "1167640858367"
                },
                {
                    "id": 119,
                    "product": 24,
                    "productCode": "5531471610979",
                    "barcode": "0603354655607"
                },
                {
                    "id": 120,
                    "product": 24,
                    "productCode": "5531471610979",
                    "barcode": "7679925227514"
                }
            ],
            "pointFactor": "4000.3097",
            "price": "42.30",
            "wholesalePrice": "100.41",
            "discountPercent": "57.79",
            "vendorCode": "2652110664573",
            "vendor": {
                "id": 6,
                "logo": "http://your_site.local/files/vendors/tYG02RxXdP25dqYlttxwLKFJoevd09kZenDJjWYp.jpg",
                "refCode": "e5f8bd6e-b8cb-37d4-ab55-4fdc3b4d68a1",
                "name": {
                    "el": "dignissimos vero"
                },
                "slug": {
                    "el": "eos-hic-est-cumque-culpa-consequatur"
                }
            },
            "active": 0,
            "weight": 2436,
            "pieces": 0,
            "softDeleted": false,
            "dateChanged": null,
            "slug": {
                "el": "quia-veniam-consequuntur-earum-saepe-sequi-rerum"
            },
            "name": {
                "el": "Molestias dolorem ut nobis possimus voluptatem ut."
            },
            "content": {
                "el": "Voluptate vero autem labore dolorem facere. Porro quia laudantium mollitia. Vero fuga est provident non natus. Voluptas at laborum necessitatibus sequi tempore praesentium.\n\nDicta aut vitae explicabo sed. Voluptatem incidunt cumque voluptate nemo. Eum libero ipsam sint magnam.\n\nDeleniti sequi ratione voluptates qui harum rem. Incidunt ut accusamus enim qui. Excepturi facilis neque saepe cumque. Voluptatem nihil explicabo id provident a odit non."
            },
            "shortContent": {
                "el": "Sint in et similique sed consequatur et distinctio quia. Eaque veniam magni esse molestias minus dolorem excepturi. Quisquam exercitationem ut quod."
            },
            "ingredients": {
                "el": "Aut corrupti dolorem quia aut. Asperiores provident est quo voluptate et inventore ut. Vero odio esse veritatis odit et.\n\nInventore sit beatae quo ex sed nemo rerum. Quasi repellendus fugiat sapiente ipsum voluptatem temporibus ad.\n\nQuasi doloremque hic voluptatem nulla. Corporis repellat similique doloremque occaecati placeat aut sunt saepe."
            },
            "usage": {
                "el": "Cumque ratione esse qui ipsa porro atque. Officiis ullam ea error. Laboriosam expedita dolores voluptatem placeat. Et dolorum expedita et commodi qui repellendus.\n\nEum quo expedita placeat commodi dolore harum alias. Quaerat fugiat eos rerum. Dolorem qui quia reiciendis nobis.\n\nOmnis error laboriosam qui voluptatem ut sed. Rerum maiores vitae nam. In aut aut neque alias qui ea minima."
            },
            "extraContent": {
                "el": "Sint molestias molestiae sit itaque dolore non rem commodi. Debitis quia voluptate harum aut tenetur asperiores. Ut nihil culpa fugiat nostrum quo aut aut. Provident repudiandae ad ab eos.\n\nSunt mollitia id architecto dicta qui. Nesciunt a non nostrum. Sunt aliquid ut unde. Id laboriosam vitae aspernatur. Omnis id cupiditate odio qui maiores.\n\nTemporibus laudantium voluptatem optio quidem tempore. Voluptas nesciunt harum sunt laudantium. Ipsum aut quam eum tempore consequatur voluptatem aliquam. Repudiandae ullam beatae laudantium sit omnis voluptatem accusantium."
            }
        },
        {
            "id": 25,
            "productCodes": [
                {
                    "id": 67,
                    "product": 25,
                    "productCode": "7290420498041",
                    "stock": 67,
                    "softDeleted": true,
                    "active": false,
                    "attributes": [
                        {
                            "id": 15,
                            "name": {
                                "el": "Aspernatur modi qui voluptatum unde."
                            }
                        },
                        {
                            "id": 21,
                            "name": {
                                "el": "Perspiciatis fugit distinctio."
                            }
                        },
                        {
                            "id": 31,
                            "name": {
                                "el": "Aut molestias consequatur."
                            }
                        }
                    ],
                    "images": [
                        {
                            "id": 164,
                            "productCodeId": 67,
                            "image": "http://your_site.local/files/products/YGn9obGzZytTh923boEsdW2XmOWRPtK9oJCDHeqK.jpg",
                            "main": false,
                            "refCode": "1aeb4d8c-bd70-3188-a69e-ae3fc99139a6"
                        },
                        {
                            "id": 163,
                            "productCodeId": 67,
                            "image": "http://your_site.local/files/products/dC3QlMWFJHW6y2m6RlL7Bdiyn8kmlgUZHoXKRarc.jpg",
                            "main": true,
                            "refCode": "2536fc7a-0003-3d44-bbda-b02a089693a9"
                        }
                    ]
                },
                {
                    "id": 68,
                    "product": 25,
                    "productCode": "2684474278257",
                    "stock": -53,
                    "softDeleted": true,
                    "active": true,
                    "attributes": [
                        {
                            "id": 17,
                            "name": {
                                "el": "Facilis ut molestiae consequatur."
                            }
                        },
                        {
                            "id": 19,
                            "name": {
                                "el": "Non dolores aspernatur."
                            }
                        },
                        {
                            "id": 31,
                            "name": {
                                "el": "Aut molestias consequatur."
                            }
                        }
                    ],
                    "images": [
                        {
                            "id": 166,
                            "productCodeId": 68,
                            "image": "http://your_site.local/files/products/WDKZ7bdV2tIjPnWYPPYfvU1TgdQbYBZvGbwGZfn1.jpg",
                            "main": false,
                            "refCode": "1a5b1fe6-1dcc-30e3-b1f4-23d942d62320"
                        },
                        {
                            "id": 167,
                            "productCodeId": 68,
                            "image": "http://your_site.local/files/products/TH5kIKzITgUfiPApfIbN6YbHJrvdzA2YPe1BM94v.jpg",
                            "main": false,
                            "refCode": "cb7fb35d-c105-3d85-8a08-db773bf52271"
                        },
                        {
                            "id": 168,
                            "productCodeId": 68,
                            "image": "http://your_site.local/files/products/IIkIU1gvjw93BLpe50MgwoldZWSKGy3rQxU3GvkS.jpg",
                            "main": false,
                            "refCode": "85e82571-7eff-3401-8153-51d8b9afa56f"
                        },
                        {
                            "id": 165,
                            "productCodeId": 68,
                            "image": "http://your_site.local/files/products/SWjPh041CCsjknN24xYy5aUftEIrZZ3adYtzsai2.jpg",
                            "main": true,
                            "refCode": "7c095a22-0db2-31ce-9abb-5e1780a600ff"
                        }
                    ]
                },
                {
                    "id": 69,
                    "product": 25,
                    "productCode": "9344856058671",
                    "stock": -1,
                    "softDeleted": true,
                    "active": true,
                    "attributes": [
                        {
                            "id": 18,
                            "name": {
                                "el": "Alias nemo ad."
                            }
                        },
                        {
                            "id": 19,
                            "name": {
                                "el": "Non dolores aspernatur."
                            }
                        },
                        {
                            "id": 36,
                            "name": {
                                "el": "Ducimus tempora vel."
                            }
                        }
                    ],
                    "images": [
                        {
                            "id": 170,
                            "productCodeId": 69,
                            "image": "http://your_site.local/files/products/zKBNx4hPIBDLclXgzubhZ72Ag2QM2nzkBg4DnZn2.jpg",
                            "main": false,
                            "refCode": "5928c380-e2a5-3ec7-ace9-0ba1d14fe02d"
                        },
                        {
                            "id": 171,
                            "productCodeId": 69,
                            "image": "http://your_site.local/files/products/lK1yC6S6oWrPYTtbdUZCQAYBa1CDwxDMkvsU8oKJ.jpg",
                            "main": false,
                            "refCode": "e52db923-d022-3d80-af01-b51187435a8f"
                        },
                        {
                            "id": 172,
                            "productCodeId": 69,
                            "image": "http://your_site.local/files/products/wtgkUapWpoyOIEhjFVAK3xpeXPGetfP01g7aDRqp.jpg",
                            "main": false,
                            "refCode": "6def69f2-b79b-30f7-a1f3-ef25c2b21747"
                        },
                        {
                            "id": 169,
                            "productCodeId": 69,
                            "image": "http://your_site.local/files/products/sOnvoeS0A31oTHGrZFnZg67mqI0R2j1PiPBgQBjc.jpg",
                            "main": true,
                            "refCode": "3541ad6a-1e43-3d4b-a91d-450915dd2fae"
                        }
                    ]
                },
                {
                    "id": 70,
                    "product": 25,
                    "productCode": "4623078828039",
                    "stock": 15,
                    "softDeleted": false,
                    "active": true,
                    "attributes": [
                        {
                            "id": 14,
                            "name": {
                                "el": "Qui enim voluptatum qui."
                            }
                        },
                        {
                            "id": 20,
                            "name": {
                                "el": "Minima inventore vitae."
                            }
                        },
                        {
                            "id": 35,
                            "name": {
                                "el": "Iste ducimus enim."
                            }
                        }
                    ],
                    "images": [
                        {
                            "id": 173,
                            "productCodeId": 70,
                            "image": "http://your_site.local/files/products/h67jI3opikrsFFoa3q9roG3bEfIGzSAQBJ35DV8Y.jpg",
                            "main": true,
                            "refCode": "989468af-576b-3e82-b71d-d524732e771c"
                        }
                    ]
                }
            ],
            "shelf": {
                "id": 2,
                "code": "48142656"
            },
            "vat": {
                "id": 4,
                "value": 24
            },
            "barcodes": [
                {
                    "id": 121,
                    "product": 25,
                    "productCode": "7290420498041",
                    "barcode": "4769049932630"
                },
                {
                    "id": 122,
                    "product": 25,
                    "productCode": "7290420498041",
                    "barcode": "8463037950021"
                },
                {
                    "id": 123,
                    "product": 25,
                    "productCode": "7290420498041",
                    "barcode": "2372507799618"
                },
                {
                    "id": 124,
                    "product": 25,
                    "productCode": "7290420498041",
                    "barcode": "8943485784350"
                },
                {
                    "id": 125,
                    "product": 25,
                    "productCode": "7290420498041",
                    "barcode": "3213855100444"
                },
                {
                    "id": 126,
                    "product": 25,
                    "productCode": "7290420498041",
                    "barcode": "2212852348638"
                }
            ],
            "pointFactor": "140.4593",
            "price": "39.06",
            "wholesalePrice": "49.76",
            "discountPercent": "20.94",
            "vendorCode": "5338265409807",
            "vendor": {
                "id": 7,
                "logo": "http://your_site.local/files/vendors/mGNCjigLPD2r1e1NyPU54x4thTlzB3bf3fpe1CJX.jpg",
                "refCode": "750af598-4b90-3454-98d3-1a81e6ebacb8",
                "name": {
                    "el": "ab ab"
                },
                "slug": {
                    "el": "dolor-et-quia-voluptatem-sint-at-dicta"
                }
            },
            "active": 1,
            "weight": 5020,
            "pieces": 0,
            "softDeleted": false,
            "dateChanged": null,
            "slug": {
                "el": "debitis-sapiente-tenetur-odit-iste-culpa-maiores-quibusdam-sint"
            },
            "name": {
                "el": "Beatae et deserunt saepe sunt debitis."
            },
            "content": {
                "el": "Reiciendis dolorum reiciendis id omnis voluptas. Enim neque sed sequi sed. Fugit saepe ipsa sunt.\n\nAperiam nulla ut autem praesentium. Ut adipisci inventore fugiat fuga. Officia officia fugit minima reiciendis rerum excepturi vero qui. Sit eos est aut harum labore facere.\n\nNon consequatur cumque voluptas unde iure odio. Dolorum sint provident nihil labore fuga ducimus. Voluptatibus sit sed ut iusto atque et optio."
            },
            "shortContent": {
                "el": "Iure veritatis magnam sit voluptate sunt non eum. Tenetur quia ut quis quidem nesciunt."
            },
            "ingredients": {
                "el": "Quo id dolore aut voluptatum tempora. Autem et vero inventore a. Et praesentium quia voluptate. Quibusdam et voluptatem vel quasi voluptates laudantium est.\n\nIncidunt similique culpa non sunt. Culpa voluptatum recusandae dolorum rem culpa consequatur amet. Voluptatem saepe vitae error reprehenderit neque.\n\nQui dolor culpa corporis enim numquam. Nobis libero magnam consequatur. Eos quam esse odio tempora dolor omnis dolorem. Quidem expedita totam vitae consequuntur praesentium molestiae suscipit. Ut suscipit illo corporis fuga totam fugiat temporibus voluptatem."
            },
            "usage": {
                "el": "Qui quasi quos voluptatem ratione ut eum. Itaque magnam sunt a repellendus et reprehenderit. Veniam beatae in sequi consequuntur.\n\nModi quis doloribus omnis ex perspiciatis dolor. Et id eaque modi sint autem expedita est. Modi voluptatum consequatur sed iste quisquam.\n\nVoluptate ipsa adipisci sit esse voluptatem unde ipsa vero. Quos et ea quasi nulla voluptas deleniti. Sint voluptatibus dicta illo id et."
            },
            "extraContent": {
                "el": "Quidem impedit odio consequatur maxime libero. Minima enim et saepe qui aperiam assumenda libero. Consequuntur eaque possimus praesentium reprehenderit ut labore animi. Ratione qui qui ipsam aut.\n\nDoloremque quod quis commodi molestiae laudantium ratione. Perspiciatis quis quia quia id. Hic porro fuga eius praesentium quasi et quia dolores.\n\nEt possimus aut esse et quis nihil odit. Reiciendis nisi aut omnis aspernatur sed et. Dolorem incidunt non repudiandae voluptate quod. Autem provident aspernatur praesentium quia tempora sed similique maiores."
            }
        },
        {
            "id": 26,
            "productCodes": [
                {
                    "id": 71,
                    "product": 26,
                    "productCode": "4798673515735",
                    "stock": 87,
                    "softDeleted": true,
                    "active": false,
                    "attributes": [
                        {
                            "id": 21,
                            "name": {
                                "el": "Perspiciatis fugit distinctio."
                            }
                        },
                        {
                            "id": 45,
                            "name": {
                                "el": "Numquam qui."
                            }
                        }
                    ],
                    "images": [
                        {
                            "id": 174,
                            "productCodeId": 71,
                            "image": "http://your_site.local/files/products/bwjyNeHRZqY5IpDQ37gaLLyoCPMMh8GvvZLkMoXQ.jpg",
                            "main": true,
                            "refCode": "f5c0d19d-5159-3e54-84a9-d7a6a206ed90"
                        }
                    ]
                },
                {
                    "id": 72,
                    "product": 26,
                    "productCode": "5199816283280",
                    "stock": -33,
                    "softDeleted": false,
                    "active": false,
                    "attributes": [
                        {
                            "id": 22,
                            "name": {
                                "el": "Consequatur et iusto."
                            }
                        },
                        {
                            "id": 47,
                            "name": {
                                "el": "Deserunt ut repellendus."
                            }
                        }
                    ],
                    "images": [
                        {
                            "id": 176,
                            "productCodeId": 72,
                            "image": "http://your_site.local/files/products/wT2B9QIo7QkKqHfFUd5GZ3kaDlWJKmyJlMGFjdWr.jpg",
                            "main": false,
                            "refCode": "6697fb86-b892-305c-97a3-8084feaed7b0"
                        },
                        {
                            "id": 175,
                            "productCodeId": 72,
                            "image": "http://your_site.local/files/products/4y6DAGjzMMJoFVdIE53d42wW74PWfih0Wo9lrJdj.jpg",
                            "main": true,
                            "refCode": "db642835-7db5-3ccf-a224-3c7dcb55bda9"
                        }
                    ]
                },
                {
                    "id": 73,
                    "product": 26,
                    "productCode": "0574706529634",
                    "stock": 47,
                    "softDeleted": true,
                    "active": false,
                    "attributes": [
                        {
                            "id": 19,
                            "name": {
                                "el": "Non dolores aspernatur."
                            }
                        },
                        {
                            "id": 48,
                            "name": {
                                "el": "Nesciunt enim eius."
                            }
                        }
                    ],
                    "images": [
                        {
                            "id": 178,
                            "productCodeId": 73,
                            "image": "http://your_site.local/files/products/IluFm8id9bd3SBCaN9DcL18LA7wb56bQ2IwxlKwC.jpg",
                            "main": false,
                            "refCode": "265b6d28-b3ac-34e0-8bac-5fbc892cb043"
                        },
                        {
                            "id": 179,
                            "productCodeId": 73,
                            "image": "http://your_site.local/files/products/hJmiUJgfqkGia3JwzwTMQdju8isKtnekqGcUpBVw.jpg",
                            "main": false,
                            "refCode": "85a38404-b2b0-3b5e-84e8-3a952c5aba88"
                        },
                        {
                            "id": 177,
                            "productCodeId": 73,
                            "image": "http://your_site.local/files/products/peINQAWknqskVB1mbRRdSvy0XfDUoXJFBi4CK7vx.jpg",
                            "main": true,
                            "refCode": "f18ecb98-2cea-3b3f-9324-7449aa33dcdb"
                        }
                    ]
                }
            ],
            "shelf": {
                "id": 64,
                "code": "35357421"
            },
            "vat": {
                "id": 4,
                "value": 24
            },
            "barcodes": [
                {
                    "id": 127,
                    "product": 26,
                    "productCode": "4798673515735",
                    "barcode": "6165198060244"
                },
                {
                    "id": 128,
                    "product": 26,
                    "productCode": "4798673515735",
                    "barcode": "4607132714827"
                },
                {
                    "id": 129,
                    "product": 26,
                    "productCode": "4798673515735",
                    "barcode": "3102048200255"
                }
            ],
            "pointFactor": "1462.0020",
            "price": "92.43",
            "wholesalePrice": "40.12",
            "discountPercent": "59.60",
            "vendorCode": "4660116386038",
            "vendor": {
                "id": 30,
                "logo": "http://your_site.local/files/vendors/o70jseCDFHVorOibNJA7PwF3WtTyJJM11t35l5Q2.jpg",
                "refCode": "fa0fc2b2-83c3-370f-b603-db53593cf824",
                "name": {
                    "el": "voluptatem repudiandae"
                },
                "slug": {
                    "el": "autem-nam-porro-sit-rerum-libero-debitis"
                }
            },
            "active": 1,
            "weight": 4170,
            "pieces": 2,
            "softDeleted": false,
            "dateChanged": null,
            "slug": {
                "el": "labore-dolorum-esse-consectetur-quia-sit-necessitatibus"
            },
            "name": {
                "el": "Ut nesciunt rem sit quis itaque facere."
            },
            "content": {
                "el": "Libero magnam fuga expedita. Quibusdam exercitationem animi corporis blanditiis ipsum. In possimus doloremque voluptatem voluptas sapiente. Nisi fuga at delectus voluptatum.\n\nRerum labore velit voluptas eius quia molestiae et. Est quidem corporis laboriosam. Doloremque exercitationem nam autem molestiae nobis. Provident fugit sit sequi tempora libero possimus. Non illo deserunt corporis.\n\nQuia possimus voluptates inventore quasi mollitia ea ducimus. Blanditiis beatae in et. Praesentium vitae quod aperiam quia qui optio. Deserunt minus voluptas vel unde cum veniam."
            },
            "shortContent": {
                "el": "Inventore voluptas quasi accusantium est omnis repudiandae voluptatem voluptatem. Earum dolores hic modi. Labore veritatis tenetur voluptates est."
            },
            "ingredients": {
                "el": "Placeat velit quibusdam eum. Magnam ut mollitia tenetur. Vero et voluptatem animi in.\n\nVelit commodi sed sint earum ipsa architecto dolores. Est eligendi error voluptas voluptatum sit iure ut. Suscipit est eligendi nulla maxime quam.\n\nEarum fugit aperiam saepe repellendus inventore porro. Maxime neque omnis sed et. Nulla error repellendus at nihil ratione. Distinctio velit nemo beatae ut aperiam."
            },
            "usage": {
                "el": "Magni eaque quia maxime est dignissimos enim. Id dolor minus explicabo et culpa minima.\n\nSaepe facere vero sequi ut natus. Quasi voluptatem illo corrupti libero optio expedita.\n\nRerum vel animi aperiam dolor. Quas fuga debitis laboriosam nihil ut consectetur necessitatibus. Omnis nemo esse enim hic reiciendis dolorem."
            },
            "extraContent": {
                "el": "Nam doloremque aut atque. Laudantium soluta sit amet dolores sit asperiores. Expedita aut dolor voluptatibus aut facilis non.\n\nDeserunt rerum qui eum doloribus dolores maiores inventore voluptatem. Error cumque assumenda assumenda quam voluptatem vel. Officiis beatae eligendi itaque totam aut inventore.\n\nIn sunt et quia aut repellendus cum. Et iste provident et incidunt illo ut saepe sint. Molestiae repellat pariatur voluptatem eveniet tempora molestiae ut ad."
            }
        },
        {
            "id": 27,
            "productCodes": [
                {
                    "id": 74,
                    "product": 27,
                    "productCode": "3320491375744",
                    "stock": 100,
                    "softDeleted": false,
                    "active": false,
                    "attributes": [
                        {
                            "id": 6,
                            "name": {
                                "el": "Ex aut consequatur a."
                            }
                        },
                        {
                            "id": 12,
                            "name": {
                                "el": "Quia earum est."
                            }
                        },
                        {
                            "id": 14,
                            "name": {
                                "el": "Qui enim voluptatum qui."
                            }
                        }
                    ],
                    "images": [
                        {
                            "id": 180,
                            "productCodeId": 74,
                            "image": "http://your_site.local/files/products/nxDVE6TzMGbK7L8vCf2bP6OiL9OvY8tOtqWZrrE0.jpg",
                            "main": true,
                            "refCode": "343e2dad-0302-32f3-94e3-cec370a95a61"
                        }
                    ]
                },
                {
                    "id": 75,
                    "product": 27,
                    "productCode": "4446353935310",
                    "stock": 25,
                    "softDeleted": true,
                    "active": true,
                    "attributes": [
                        {
                            "id": 5,
                            "name": {
                                "el": "Cum est consequuntur distinctio."
                            }
                        },
                        {
                            "id": 12,
                            "name": {
                                "el": "Quia earum est."
                            }
                        },
                        {
                            "id": 16,
                            "name": {
                                "el": "Omnis voluptatum quod error."
                            }
                        }
                    ],
                    "images": [
                        {
                            "id": 181,
                            "productCodeId": 75,
                            "image": "http://your_site.local/files/products/VU0eCbYhPuuNLuCbhx8xdHWmRVUwknXmd82vZpVF.jpg",
                            "main": true,
                            "refCode": "925fb5be-1231-3e54-97a7-3bf617a10692"
                        }
                    ]
                }
            ],
            "shelf": {
                "id": 84,
                "code": "51295677"
            },
            "vat": {
                "id": 3,
                "value": 13
            },
            "barcodes": [
                {
                    "id": 130,
                    "product": 27,
                    "productCode": "3320491375744",
                    "barcode": "1724307531935"
                },
                {
                    "id": 131,
                    "product": 27,
                    "productCode": "3320491375744",
                    "barcode": "1505317754015"
                },
                {
                    "id": 132,
                    "product": 27,
                    "productCode": "3320491375744",
                    "barcode": "0377282469819"
                },
                {
                    "id": 133,
                    "product": 27,
                    "productCode": "3320491375744",
                    "barcode": "5361116993392"
                },
                {
                    "id": 134,
                    "product": 27,
                    "productCode": "3320491375744",
                    "barcode": "1215301316302"
                }
            ],
            "pointFactor": "518.8249",
            "price": "58.07",
            "wholesalePrice": "142.70",
            "discountPercent": "27.60",
            "vendorCode": "9196325349779",
            "vendor": {
                "id": 18,
                "logo": "http://your_site.local/files/vendors/IJ1st1gTmdvY55rKUCZrb7vU60N1Xuwn6Aoa7mmy.jpg",
                "refCode": "54a955df-11b3-3e78-8cae-119cc05bf65a",
                "name": {
                    "el": "exercitationem a"
                },
                "slug": {
                    "el": "eius-non-quasi-nemo-voluptates"
                }
            },
            "active": 1,
            "weight": 8992,
            "pieces": 7,
            "softDeleted": false,
            "dateChanged": null,
            "slug": {
                "el": "voluptatem-minus-quasi-facere-ipsam-recusandae-suscipit-cumque-et"
            },
            "name": {
                "el": "Expedita ad possimus libero corporis voluptas voluptatem temporibus voluptatum."
            },
            "content": {
                "el": "Rem ut hic quaerat qui. Expedita ipsam sequi nulla ipsam sunt non omnis. Iste dolor distinctio architecto et sit velit.\n\nQuia consectetur iste quae dolores. Sed laboriosam praesentium commodi aut inventore. Et quia aut perspiciatis quo doloribus illum voluptate. Ut vitae accusamus repellat minus. Aut non perspiciatis impedit quidem aut molestias libero.\n\nConsequatur et laborum ex repellat. Aperiam accusamus quibusdam distinctio voluptas repellendus debitis sint. Eum aut ad quis necessitatibus quis aperiam a."
            },
            "shortContent": {
                "el": "Quam beatae adipisci aliquam est. Esse tempora veniam dolorem quam amet doloremque aliquam. Enim quos rerum veritatis quia veniam ducimus ex."
            },
            "ingredients": {
                "el": "Nemo corporis id nesciunt qui totam. Voluptas voluptatum assumenda corporis rem et quod. Ut suscipit ut ducimus accusamus quos incidunt reiciendis error. A qui eum voluptates et.\n\nNon rerum incidunt tempora omnis repellendus. Aliquid aut facere tenetur placeat consequuntur. Nihil maxime voluptatum eos dolor eaque velit provident. Qui veritatis sequi odit aliquid autem repudiandae officiis ex.\n\nDoloremque temporibus omnis delectus. In omnis enim et sequi. Excepturi veniam vitae quam rerum."
            },
            "usage": {
                "el": "Autem magnam animi quo minus repellat quam non repudiandae. Reprehenderit esse quod aut ullam repellat hic. Architecto voluptatibus officiis nihil minus rerum sed.\n\nDicta vero libero quo quaerat totam veritatis. Autem ut unde rerum accusantium laboriosam. Eum odit esse corrupti officiis earum et.\n\nQuia doloremque et molestiae fugit rerum quas. Aut quas quidem velit. Nihil aut ullam dolor velit."
            },
            "extraContent": {
                "el": "Vero doloremque vero at iste necessitatibus. Ducimus consequatur eaque aliquam sint optio aut quos et. Laboriosam illo et omnis qui quia accusantium quia. Sint iusto ipsam aspernatur amet.\n\nSed autem error sit doloremque. Tempore enim accusantium debitis nihil quia assumenda. Sed in sint non repellat quae est et. Ducimus consequuntur fugiat molestiae a amet laborum.\n\nEarum quia nobis dolor illo aut voluptatum. Non saepe amet amet. Vitae vero incidunt pariatur sed."
            }
        },
        {
            "id": 28,
            "productCodes": [
                {
                    "id": 76,
                    "product": 28,
                    "productCode": "4525663935736",
                    "stock": -68,
                    "softDeleted": true,
                    "active": false,
                    "attributes": [
                        {
                            "id": 6,
                            "name": {
                                "el": "Ex aut consequatur a."
                            }
                        },
                        {
                            "id": 21,
                            "name": {
                                "el": "Perspiciatis fugit distinctio."
                            }
                        },
                        {
                            "id": 49,
                            "name": {
                                "el": "Nulla dolor dolor qui."
                            }
                        }
                    ],
                    "images": [
                        {
                            "id": 182,
                            "productCodeId": 76,
                            "image": "http://your_site.local/files/products/AKukjKL5fePpegqIEk0AtJrzxvQgnUIhMTn03yNa.jpg",
                            "main": true,
                            "refCode": "757d1090-4456-3da6-9c5e-4c03fe154573"
                        }
                    ]
                },
                {
                    "id": 77,
                    "product": 28,
                    "productCode": "7517641906446",
                    "stock": 40,
                    "softDeleted": true,
                    "active": false,
                    "attributes": [
                        {
                            "id": 6,
                            "name": {
                                "el": "Ex aut consequatur a."
                            }
                        },
                        {
                            "id": 19,
                            "name": {
                                "el": "Non dolores aspernatur."
                            }
                        },
                        {
                            "id": 54,
                            "name": {
                                "el": "Inventore laboriosam exercitationem officia."
                            }
                        }
                    ],
                    "images": [
                        {
                            "id": 184,
                            "productCodeId": 77,
                            "image": "http://your_site.local/files/products/iXJQx6sZZAtpcALoYlrQkf3hk1q9jFtDp0rPB2Tk.jpg",
                            "main": false,
                            "refCode": "bbac67f7-55bd-3af0-b0a7-71f4096d7f61"
                        },
                        {
                            "id": 183,
                            "productCodeId": 77,
                            "image": "http://your_site.local/files/products/hiNUBitcRe0uWzM4fDQzKekyYoLPFWfhgMxzA1eI.jpg",
                            "main": true,
                            "refCode": "c54e0375-3dcb-37fb-975d-804b9e989be6"
                        }
                    ]
                },
                {
                    "id": 78,
                    "product": 28,
                    "productCode": "7715904510533",
                    "stock": -17,
                    "softDeleted": false,
                    "active": true,
                    "attributes": [
                        {
                            "id": 1,
                            "name": {
                                "el": "Ut sapiente quas sint."
                            }
                        },
                        {
                            "id": 21,
                            "name": {
                                "el": "Perspiciatis fugit distinctio."
                            }
                        },
                        {
                            "id": 54,
                            "name": {
                                "el": "Inventore laboriosam exercitationem officia."
                            }
                        }
                    ],
                    "images": [
                        {
                            "id": 186,
                            "productCodeId": 78,
                            "image": "http://your_site.local/files/products/Wm8Kas4fsSM9etBgt32l5b0Wd952INtsRxvVAN03.jpg",
                            "main": false,
                            "refCode": "d59bae61-10be-31f3-8714-550294fa5e14"
                        },
                        {
                            "id": 187,
                            "productCodeId": 78,
                            "image": "http://your_site.local/files/products/9M5MQBDNkNmJytmXJhuRHuAFKssdIoCiSg7Rxc1L.jpg",
                            "main": false,
                            "refCode": "8b5a44a2-c144-3844-bd57-27d8e00e461c"
                        },
                        {
                            "id": 188,
                            "productCodeId": 78,
                            "image": "http://your_site.local/files/products/tNbuABKNpcFyrdqhI27AHQbSYO7ykSs3OEBni741.jpg",
                            "main": false,
                            "refCode": "e07f6e31-70bb-3e0b-8ae0-732500af1488"
                        },
                        {
                            "id": 185,
                            "productCodeId": 78,
                            "image": "http://your_site.local/files/products/mJMYbr1AT9DInJDNZ3gmxP0cCms3TZoFmLeFuzrI.jpg",
                            "main": true,
                            "refCode": "69bcf6cb-e03b-32a8-964a-f774db83b044"
                        }
                    ]
                },
                {
                    "id": 79,
                    "product": 28,
                    "productCode": "7452853765514",
                    "stock": 31,
                    "softDeleted": false,
                    "active": false,
                    "attributes": [
                        {
                            "id": 6,
                            "name": {
                                "el": "Ex aut consequatur a."
                            }
                        },
                        {
                            "id": 20,
                            "name": {
                                "el": "Minima inventore vitae."
                            }
                        },
                        {
                            "id": 53,
                            "name": {
                                "el": "Eos perspiciatis sint officiis."
                            }
                        }
                    ],
                    "images": [
                        {
                            "id": 190,
                            "productCodeId": 79,
                            "image": "http://your_site.local/files/products/p2frJzdiilpfyHuw1DCOmxabSEbFXu67dgkxbI2c.jpg",
                            "main": false,
                            "refCode": "64ea75e2-8b5b-3b3a-9b86-2e77ac84574c"
                        },
                        {
                            "id": 189,
                            "productCodeId": 79,
                            "image": "http://your_site.local/files/products/a5sLs0Yq7cLsQZuTZ1lnH6VXjL8YdRZ5n7aUUeFs.jpg",
                            "main": true,
                            "refCode": "c2855956-da82-320d-ba36-443da4aace76"
                        }
                    ]
                }
            ],
            "shelf": {
                "id": 67,
                "code": "15472724"
            },
            "vat": {
                "id": 4,
                "value": 24
            },
            "barcodes": [
                {
                    "id": 135,
                    "product": 28,
                    "productCode": "4525663935736",
                    "barcode": "1535149912284"
                }
            ],
            "pointFactor": "83.9060",
            "price": "33.12",
            "wholesalePrice": "53.29",
            "discountPercent": "52.73",
            "vendorCode": "7992096311418",
            "vendor": {
                "id": 23,
                "logo": "http://your_site.local/files/vendors/gKdEAcgOCFv5pRtsJU9FJqzBPurxSOnOMh5as50a.jpg",
                "refCode": "5bf22586-ec9c-3611-b1e3-d5c134f2b88a",
                "name": {
                    "el": "dolores officiis"
                },
                "slug": {
                    "el": "quia-provident-fugiat-exercitationem-esse-molestiae"
                }
            },
            "active": 1,
            "weight": 4519,
            "pieces": 0,
            "softDeleted": false,
            "dateChanged": null,
            "slug": {
                "el": "et-sit-ipsam-ut-est-repudiandae-id"
            },
            "name": {
                "el": "Assumenda quis dolores vitae porro blanditiis."
            },
            "content": {
                "el": "Sint qui sed voluptas quia illo. Est labore assumenda ratione voluptatem qui. Harum culpa voluptas vel voluptatibus molestiae. Dolorum voluptatibus autem rerum vel ratione aspernatur perferendis.\n\nEum quo non accusamus reprehenderit tempore inventore. Eum rerum dicta mollitia nesciunt nesciunt vel amet. Dicta sunt minima incidunt ex distinctio ex.\n\nDolorum magni voluptatibus dolore iusto repellat. Laudantium aut velit deleniti maxime velit eum veritatis."
            },
            "shortContent": {
                "el": "Id dignissimos eum inventore nulla facere molestiae. Dignissimos ratione fugiat cumque natus. Rerum soluta earum animi a vel et."
            },
            "ingredients": {
                "el": "Nemo eos accusamus est officiis. Consequuntur nostrum unde qui nihil sunt et. Est cupiditate quia dolorem ut. Nostrum odit quo sed praesentium iure maxime.\n\nId rerum exercitationem beatae quae recusandae illum. Non ab inventore ab ea rem labore. Quas qui quod voluptas dignissimos aliquid aperiam possimus. Et numquam aut aperiam commodi officia quos necessitatibus. Nihil recusandae molestias qui quo.\n\nFacere sint eum placeat odit quis ut. Qui nam maiores occaecati vitae sequi doloribus aut. Quia et asperiores et ipsum aut et voluptates harum."
            },
            "usage": {
                "el": "Et ea temporibus consequatur excepturi eligendi impedit illum. Natus rem commodi voluptas natus tenetur velit et consequatur. Dolor modi incidunt temporibus consequatur rerum modi est.\n\nLaboriosam laboriosam sapiente et necessitatibus officiis sit accusantium. Aut non alias quae. Sed quae itaque error id. Aut non consequatur placeat et officia dolorem.\n\nQuas dicta eos explicabo voluptate perspiciatis. Porro veritatis voluptatem molestias temporibus tempora est quia distinctio. Mollitia quisquam dicta quam velit voluptatibus sit. Quam sunt illum unde omnis et consequatur unde."
            },
            "extraContent": {
                "el": "Qui pariatur voluptatem rerum natus dolores. Labore quibusdam dolorem assumenda odit enim. Tenetur nostrum et at dolor quia accusamus.\n\nVoluptatem aperiam occaecati vitae cupiditate ipsum. Voluptas blanditiis rerum nemo ut eligendi. Repellat corrupti voluptatem sapiente. Quisquam minus inventore vel repudiandae delectus.\n\nNisi qui cum veniam facere ut id natus aliquam. Facilis ipsum a consectetur maxime necessitatibus. Recusandae eligendi mollitia magni voluptas non."
            }
        },
        {
            "id": 29,
            "productCodes": [
                {
                    "id": 80,
                    "product": 29,
                    "productCode": "6135595442844",
                    "stock": -8,
                    "softDeleted": true,
                    "active": false,
                    "attributes": [
                        {
                            "id": 52,
                            "name": {
                                "el": "Nobis et."
                            }
                        }
                    ],
                    "images": [
                        {
                            "id": 192,
                            "productCodeId": 80,
                            "image": "http://your_site.local/files/products/kvuu3E750rwUCcs8TMkOtB4JiJIuvrTE7k9HQnEK.jpg",
                            "main": false,
                            "refCode": "0a546354-6019-3e1e-a2bf-4d8a1b449d51"
                        },
                        {
                            "id": 193,
                            "productCodeId": 80,
                            "image": "http://your_site.local/files/products/oZEx5LGKXdaswmd9AHThGGy5zna58FDOzah4xQ03.jpg",
                            "main": false,
                            "refCode": "66ea7641-6945-3994-90b3-55a8ff231f69"
                        },
                        {
                            "id": 194,
                            "productCodeId": 80,
                            "image": "http://your_site.local/files/products/jBr2vxm8QYu5qnJ6oc43avFrXcYOGr3NzryMehHm.jpg",
                            "main": false,
                            "refCode": "201e8caf-bbf8-3a7c-8a3f-42e2ebb8afa9"
                        },
                        {
                            "id": 191,
                            "productCodeId": 80,
                            "image": "http://your_site.local/files/products/pT0i2sHnB8Z2a3aqgzV84pRiHfXCKxHSI7SRy9Wz.jpg",
                            "main": true,
                            "refCode": "61cc1932-9ce6-327f-b0f9-692bb29d83c6"
                        }
                    ]
                },
                {
                    "id": 81,
                    "product": 29,
                    "productCode": "2487070126164",
                    "stock": -56,
                    "softDeleted": true,
                    "active": true,
                    "attributes": [
                        {
                            "id": 53,
                            "name": {
                                "el": "Eos perspiciatis sint officiis."
                            }
                        }
                    ],
                    "images": [
                        {
                            "id": 196,
                            "productCodeId": 81,
                            "image": "http://your_site.local/files/products/XBqfRWIjupI6a4E1ddtv7rSFDPLQGqET9HMmZT9e.jpg",
                            "main": false,
                            "refCode": "b2e8dc5c-ff8c-3d3f-b8aa-564e8a4ff66e"
                        },
                        {
                            "id": 195,
                            "productCodeId": 81,
                            "image": "http://your_site.local/files/products/Mx99hZyeeCOHSGNex71cnS2otSouQ6qiJ26TaCVI.jpg",
                            "main": true,
                            "refCode": "64b3b54f-6029-3995-81ee-95c0bb53de37"
                        }
                    ]
                },
                {
                    "id": 82,
                    "product": 29,
                    "productCode": "4473191427875",
                    "stock": -41,
                    "softDeleted": false,
                    "active": false,
                    "attributes": [
                        {
                            "id": 51,
                            "name": {
                                "el": "Iste neque est."
                            }
                        }
                    ],
                    "images": [
                        {
                            "id": 198,
                            "productCodeId": 82,
                            "image": "http://your_site.local/files/products/zCgDPVGx9QUyMrfmrcInXXkmVHTWpL0edX4cPkVr.jpg",
                            "main": false,
                            "refCode": "8e60b5e4-a468-3dea-b0d4-c24200152843"
                        },
                        {
                            "id": 197,
                            "productCodeId": 82,
                            "image": "http://your_site.local/files/products/woUdppCK5Rhjy2C8ODTPCoi45nY5JdrhyxwRrcgd.jpg",
                            "main": true,
                            "refCode": "0457eecf-d1b6-330b-92c5-a5be469df277"
                        }
                    ]
                }
            ],
            "shelf": {
                "id": 95,
                "code": "99360603"
            },
            "vat": {
                "id": 4,
                "value": 24
            },
            "barcodes": [
                {
                    "id": 136,
                    "product": 29,
                    "productCode": "6135595442844",
                    "barcode": "3227813246785"
                },
                {
                    "id": 137,
                    "product": 29,
                    "productCode": "6135595442844",
                    "barcode": "5112401234078"
                },
                {
                    "id": 138,
                    "product": 29,
                    "productCode": "6135595442844",
                    "barcode": "5079834388078"
                }
            ],
            "pointFactor": "405.9216",
            "price": "60.47",
            "wholesalePrice": "48.76",
            "discountPercent": "6.15",
            "vendorCode": "1618625814668",
            "vendor": {
                "id": 15,
                "logo": "http://your_site.local/files/vendors/OqAbUw6aNS0HFvhP4wNojOhhlEAv5qF5zfDrhPjM.jpg",
                "refCode": "2852a6bf-d8d2-31f3-860e-f9f2aef7efc4",
                "name": {
                    "el": "provident provident"
                },
                "slug": {
                    "el": "aut-soluta-ut-quae-consequatur"
                }
            },
            "active": 1,
            "weight": 6394,
            "pieces": 7,
            "softDeleted": false,
            "dateChanged": null,
            "slug": {
                "el": "qui-dicta-eum-voluptas-maiores"
            },
            "name": {
                "el": "Quia libero laudantium autem aut."
            },
            "content": {
                "el": "Eum corrupti assumenda consequuntur et impedit aut. Dolorum error dolorum veniam. Dolores consequatur non omnis rerum eum.\n\nVoluptas minus ad voluptatem earum et quia sed. Qui necessitatibus consequuntur voluptatem. Dolorem neque recusandae cum.\n\nIste velit doloremque eos non. Sed recusandae ea nesciunt sunt laborum et ea. Dolor quod non molestiae est molestias distinctio. Est inventore illum sequi asperiores. Voluptate incidunt dicta explicabo ea eum dolorem."
            },
            "shortContent": {
                "el": "Illo sunt consequuntur ipsam voluptatem quaerat eum. Et explicabo tempora delectus neque explicabo. Dolor cupiditate harum fuga sint cum culpa."
            },
            "ingredients": {
                "el": "Nostrum at et perferendis beatae ipsa eaque laborum. Voluptatem tempora aspernatur distinctio qui sed rerum rerum. Assumenda ullam tempore incidunt vel ut. Qui autem aliquam neque praesentium porro ut.\n\nPerspiciatis tempore ex inventore qui veritatis totam. Quo facilis impedit blanditiis doloremque. Pariatur sequi ut autem quod non maiores vel. Maxime voluptas aut rerum deleniti animi adipisci.\n\nTemporibus enim aperiam vel molestiae accusamus consequuntur ad. Sit nihil vitae aperiam vitae enim id illo. Est ea voluptas alias dolorum velit libero."
            },
            "usage": {
                "el": "Dolorum est nihil quia ad accusamus. Vero veniam aut nisi voluptate tenetur voluptas. Soluta corrupti consequatur qui ullam assumenda ea illo. Asperiores dignissimos aliquam et eos commodi laborum qui voluptates.\n\nOccaecati aut occaecati amet et. Et repellat eum iste doloribus modi. Velit cum aut sequi sit asperiores exercitationem.\n\nSapiente quia eius consequatur architecto nihil. Numquam nostrum voluptatem consequatur autem temporibus. Rerum et nemo error dignissimos dignissimos corrupti nulla et."
            },
            "extraContent": {
                "el": "Veniam iure provident velit. Culpa omnis ut ullam quam aut harum aut. Fugiat consequatur architecto aspernatur eius nihil ut. Quis officiis velit possimus.\n\nSoluta non sed voluptatem ex et similique nesciunt. Nulla adipisci illo consectetur dicta exercitationem est. Repudiandae est repudiandae eaque labore suscipit nihil. Repellat perspiciatis voluptates ratione dolor eius odio nemo.\n\nIpsam iste natus sit. Qui voluptas itaque et ut atque. Quos quisquam voluptatem aperiam. Sequi aut repudiandae expedita suscipit."
            }
        },
        {
            "id": 30,
            "productCodes": [
                {
                    "id": 83,
                    "product": 30,
                    "productCode": "3450623882205",
                    "stock": 61,
                    "softDeleted": true,
                    "active": true,
                    "attributes": [
                        {
                            "id": 50,
                            "name": {
                                "el": "Aut pariatur incidunt voluptas."
                            }
                        },
                        {
                            "id": 60,
                            "name": {
                                "el": "Maiores ullam."
                            }
                        }
                    ],
                    "images": [
                        {
                            "id": 200,
                            "productCodeId": 83,
                            "image": "http://your_site.local/files/products/uRPP9KJ5zFfvci0sKND1YjXDr2AzqEpOoz2PVKe8.jpg",
                            "main": false,
                            "refCode": "d00a08b8-c429-37f1-8299-2650f1ffd254"
                        },
                        {
                            "id": 201,
                            "productCodeId": 83,
                            "image": "http://your_site.local/files/products/xesCMBKcul3bthdEErePYc2wOEo3G7UqiFA90efY.jpg",
                            "main": false,
                            "refCode": "5184b252-1049-3ba4-87c6-9a63d3af4ddd"
                        },
                        {
                            "id": 199,
                            "productCodeId": 83,
                            "image": "http://your_site.local/files/products/G8Y6cyWWwEXX3ri7SyQozhck6M7hUDreHr9iT8pM.jpg",
                            "main": true,
                            "refCode": "a570e90d-3780-3d92-8516-82003fb75b96"
                        }
                    ]
                },
                {
                    "id": 84,
                    "product": 30,
                    "productCode": "1587552067884",
                    "stock": -11,
                    "softDeleted": true,
                    "active": true,
                    "attributes": [
                        {
                            "id": 54,
                            "name": {
                                "el": "Inventore laboriosam exercitationem officia."
                            }
                        },
                        {
                            "id": 57,
                            "name": {
                                "el": "Delectus ad dolorem voluptates."
                            }
                        }
                    ],
                    "images": [
                        {
                            "id": 202,
                            "productCodeId": 84,
                            "image": "http://your_site.local/files/products/ZsFjmMWRFlqTMl7bqGWfYgfMzCkg0ffwghArCjYk.jpg",
                            "main": true,
                            "refCode": "c096598d-a078-3d9b-8f42-13121c358c13"
                        }
                    ]
                },
                {
                    "id": 85,
                    "product": 30,
                    "productCode": "0467747412075",
                    "stock": -2,
                    "softDeleted": false,
                    "active": false,
                    "attributes": [
                        {
                            "id": 52,
                            "name": {
                                "el": "Nobis et."
                            }
                        },
                        {
                            "id": 56,
                            "name": {
                                "el": "Beatae quam laborum sit quod."
                            }
                        }
                    ],
                    "images": [
                        {
                            "id": 204,
                            "productCodeId": 85,
                            "image": "http://your_site.local/files/products/Wckh2sjn0SQonzsM3MVFOTHS7x5Pfu6T3x5CtoLZ.jpg",
                            "main": false,
                            "refCode": "32b99d73-c5cf-3899-8c2e-1ef5d03db077"
                        },
                        {
                            "id": 203,
                            "productCodeId": 85,
                            "image": "http://your_site.local/files/products/zwdQLQtwK090cEi5FHU3641HDN8cqOX9GOWyjcsD.jpg",
                            "main": true,
                            "refCode": "5ec40236-bd8d-33ad-9818-c2e2746fffdd"
                        }
                    ]
                },
                {
                    "id": 86,
                    "product": 30,
                    "productCode": "4576430459771",
                    "stock": 61,
                    "softDeleted": false,
                    "active": true,
                    "attributes": [
                        {
                            "id": 53,
                            "name": {
                                "el": "Eos perspiciatis sint officiis."
                            }
                        },
                        {
                            "id": 58,
                            "name": {
                                "el": "Ex est fuga."
                            }
                        }
                    ],
                    "images": [
                        {
                            "id": 206,
                            "productCodeId": 86,
                            "image": "http://your_site.local/files/products/9dbV56YPAnv85a3ZtLAuoYAhwy9OUQPfpInh1GUr.jpg",
                            "main": false,
                            "refCode": "a0aa8773-09cb-3340-a5f4-1d13bbe74cc4"
                        },
                        {
                            "id": 207,
                            "productCodeId": 86,
                            "image": "http://your_site.local/files/products/zRyognjhsDyDUIai7VMd7JJIj2LlDMvuiblz6vAo.jpg",
                            "main": false,
                            "refCode": "4435ee81-10ca-3a78-b608-6959cf5a3cee"
                        },
                        {
                            "id": 208,
                            "productCodeId": 86,
                            "image": "http://your_site.local/files/products/4upyiypynYpqfogZlnsHFVziULfvvxZSfNCJSFvY.jpg",
                            "main": false,
                            "refCode": "ce5ef93a-ccb6-373f-b968-6277a2346af5"
                        },
                        {
                            "id": 205,
                            "productCodeId": 86,
                            "image": "http://your_site.local/files/products/bqXZsePBTZ8vIG6Zj2hf5DObg7I2FzfWZeTkTp3P.jpg",
                            "main": true,
                            "refCode": "e4349935-442e-37d8-8f91-e4cd9e590dad"
                        }
                    ]
                },
                {
                    "id": 87,
                    "product": 30,
                    "productCode": "8084591083224",
                    "stock": -54,
                    "softDeleted": true,
                    "active": true,
                    "attributes": [
                        {
                            "id": 49,
                            "name": {
                                "el": "Nulla dolor dolor qui."
                            }
                        },
                        {
                            "id": 60,
                            "name": {
                                "el": "Maiores ullam."
                            }
                        }
                    ],
                    "images": [
                        {
                            "id": 210,
                            "productCodeId": 87,
                            "image": "http://your_site.local/files/products/kkqmWGJRFAcJCK3nUpniQoKBWK8icDeEHXhOWjiW.jpg",
                            "main": false,
                            "refCode": "48d6e621-a26a-3843-9d82-e98af93b1fa2"
                        },
                        {
                            "id": 211,
                            "productCodeId": 87,
                            "image": "http://your_site.local/files/products/1bgLivHACegdmNbwKQ8ZYVmMxOLnhGTLhmJQHOmD.jpg",
                            "main": false,
                            "refCode": "60ebb742-4628-3f57-b050-3e8322568e48"
                        },
                        {
                            "id": 212,
                            "productCodeId": 87,
                            "image": "http://your_site.local/files/products/3Cgf9H0faGQ0ssfkS09YBHNiqQRyTH3zXWoN2Iva.jpg",
                            "main": false,
                            "refCode": "918eac9c-ad04-3a70-8f78-03561618d572"
                        },
                        {
                            "id": 209,
                            "productCodeId": 87,
                            "image": "http://your_site.local/files/products/edd3Sf3B3QLn7HaIWAiG6TRbB4wRx7zG0BHO5TZO.jpg",
                            "main": true,
                            "refCode": "c3894e06-9334-3c3f-989f-5899a4311189"
                        }
                    ]
                }
            ],
            "shelf": {
                "id": 97,
                "code": "20296315"
            },
            "vat": {
                "id": 2,
                "value": 6
            },
            "barcodes": [
                {
                    "id": 139,
                    "product": 30,
                    "productCode": "3450623882205",
                    "barcode": "9241725270823"
                },
                {
                    "id": 140,
                    "product": 30,
                    "productCode": "3450623882205",
                    "barcode": "8050329894707"
                },
                {
                    "id": 141,
                    "product": 30,
                    "productCode": "3450623882205",
                    "barcode": "0937581527148"
                }
            ],
            "pointFactor": "1569.2071",
            "price": "31.83",
            "wholesalePrice": "0.95",
            "discountPercent": "15.80",
            "vendorCode": "7247377673861",
            "vendor": {
                "id": 30,
                "logo": "http://your_site.local/files/vendors/o70jseCDFHVorOibNJA7PwF3WtTyJJM11t35l5Q2.jpg",
                "refCode": "fa0fc2b2-83c3-370f-b603-db53593cf824",
                "name": {
                    "el": "voluptatem repudiandae"
                },
                "slug": {
                    "el": "autem-nam-porro-sit-rerum-libero-debitis"
                }
            },
            "active": 0,
            "weight": 8112,
            "pieces": 0,
            "softDeleted": false,
            "dateChanged": null,
            "slug": {
                "el": "sequi-aut-nostrum-voluptas-et-dicta-autem"
            },
            "name": {
                "el": "Aliquid expedita voluptas consequuntur enim ex ducimus nam odit."
            },
            "content": {
                "el": "Enim atque animi ut est earum eligendi. Est et cum minima sed aliquid et voluptas dolorem. Tenetur dolore quibusdam esse atque ipsam. Possimus explicabo distinctio tempora accusantium autem.\n\nOccaecati et omnis aperiam cupiditate maxime unde. Optio qui est minus aut. Harum nesciunt qui a vel consequuntur ea optio. Cupiditate facilis recusandae necessitatibus quia voluptate.\n\nAmet rerum aut et. Totam ut qui voluptas id tempore. Omnis assumenda omnis adipisci minus hic molestias."
            },
            "shortContent": {
                "el": "Voluptas repudiandae ipsum dolorem quia. Et voluptatem nulla quia ad illum."
            },
            "ingredients": {
                "el": "Suscipit quis velit repellat non nemo cupiditate. Consequatur libero vel voluptatum ex dolores. Quos accusamus autem consectetur architecto reiciendis itaque aut.\n\nEa laborum ut corrupti ut nulla. Similique aliquid et cum non nulla. Vel laboriosam dolor unde dolorem. Repellendus cupiditate ut quod omnis expedita sapiente et.\n\nCumque nihil temporibus cum atque et. Incidunt odio distinctio aperiam eaque voluptatem eveniet illo. Labore illum distinctio temporibus et. Consequatur animi quisquam sint et quo mollitia."
            },
            "usage": {
                "el": "Sint consectetur voluptates quasi a architecto sed perferendis. Blanditiis ullam quae et recusandae laborum vero magnam. Est et quod adipisci sunt. Nemo omnis facere non doloremque beatae.\n\nLaboriosam sint molestiae at quos. Laborum quis totam nesciunt rerum facere. Aut amet corrupti sint beatae commodi eligendi velit.\n\nOfficiis laboriosam laborum voluptatem corporis voluptatem similique optio. Et maiores ex voluptate. Et ut neque in libero. Qui maiores provident id quia voluptatibus."
            },
            "extraContent": {
                "el": "Unde vero totam quia ea et aut in et. Modi provident voluptatem officia perspiciatis. Praesentium aperiam distinctio culpa qui eaque numquam. Vel corporis rem repudiandae ratione officiis.\n\nDeserunt quis quis praesentium ratione totam modi consequuntur. Hic qui non odio minima. Adipisci ut cumque ut beatae quis pariatur. Voluptas maiores in quae quia commodi molestiae.\n\nOmnis velit est ea placeat nam veniam dolore. Aperiam facere repellendus accusantium deserunt. Enim rerum necessitatibus nihil rerum iusto voluptas. Hic eius quasi vel est labore unde saepe doloremque."
            }
        }
    ],
    "links": {
        "first": "http://your_site.local/erp/products?page=1",
        "last": "http://your_site.local/erp/products?page=4",
        "prev": "http://your_site.local/erp/products?page=1",
        "next": "http://your_site.local/erp/products?page=3"
    },
    "meta": {
        "current_page": 2,
        "from": 16,
        "last_page": 4,
        "links": [
            {
                "url": "http://your_site.local/erp/products?page=1",
                "label": "« Previous",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/products?page=1",
                "label": "1",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/products?page=2",
                "label": "2",
                "active": true
            },
            {
                "url": "http://your_site.local/erp/products?page=3",
                "label": "3",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/products?page=4",
                "label": "4",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/products?page=3",
                "label": "Next »",
                "active": false
            }
        ],
        "path": "http://your_site.local/erp/products",
        "per_page": 15,
        "to": 30,
        "total": 50
    }
}
 

Request   

GET erp/products

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

filter[id]   string  optional  

product ids to filter. Exact match.

filter[active]   boolean  optional  

active / inactive. Exact match.

filter[slug.el]   string  optional  

product slugs to filter. Exact match.

filter[name.el]   string  optional  

product names to filter. Partial match.

sort   string  optional  

the sorting order. To sort ascending just use the name of the field, to sort descending use - before name. Available sorts are id, name., slug.. Example: name.slug

page   integer  optional  

the requested page of the filtered results. Example: 2

Store product

requires authentication

Example request:
curl --request POST \
    "http://api.your_site.ecommercen.com/erp/products" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"vat\": 4,
    \"price\": \"14.50\",
    \"wholeSalePrice\": \"9.50\",
    \"discountPercent\": \"25.50\",
    \"vendorCode\": \"rerum\",
    \"active\": true,
    \"weight\": 200,
    \"productCode\": \"15233\",
    \"stock\": 3,
    \"attributes\": [
        1
    ],
    \"softDeleted\": false,
    \"name\": {
        \"el\": \"Product Name 2\"
    },
    \"content\": {
        \"el\": \"<p>Main content<\\/p>\"
    },
    \"shortContent\": {
        \"el\": \"Short content\"
    },
    \"ingredients\": {
        \"el\": \"<p>Ingredients content<\\/p>\"
    },
    \"usage\": {
        \"el\": \"<p>Usage content<\\/p>\"
    },
    \"extraContent\": {
        \"el\": \"<p>Extra content<\\/p>\"
    }
}"
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/products"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "vat": 4,
    "price": "14.50",
    "wholeSalePrice": "9.50",
    "discountPercent": "25.50",
    "vendorCode": "rerum",
    "active": true,
    "weight": 200,
    "productCode": "15233",
    "stock": 3,
    "attributes": [
        1
    ],
    "softDeleted": false,
    "name": {
        "el": "Product Name 2"
    },
    "content": {
        "el": "<p>Main content<\/p>"
    },
    "shortContent": {
        "el": "Short content"
    },
    "ingredients": {
        "el": "<p>Ingredients content<\/p>"
    },
    "usage": {
        "el": "<p>Usage content<\/p>"
    },
    "extraContent": {
        "el": "<p>Extra content<\/p>"
    }
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'http://api.your_site.ecommercen.com/erp/products',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'vat' => 4,
            'price' => '14.50',
            'wholeSalePrice' => '9.50',
            'discountPercent' => '25.50',
            'vendorCode' => 'rerum',
            'active' => true,
            'weight' => 200,
            'productCode' => '15233',
            'stock' => 3,
            'attributes' => [
                1,
            ],
            'softDeleted' => false,
            'name' => [
                'el' => 'Product Name 2',
            ],
            'content' => [
                'el' => '<p>Main content</p>',
            ],
            'shortContent' => [
                'el' => 'Short content',
            ],
            'ingredients' => [
                'el' => '<p>Ingredients content</p>',
            ],
            'usage' => [
                'el' => '<p>Usage content</p>',
            ],
            'extraContent' => [
                'el' => '<p>Extra content</p>',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/products'
payload = {
    "vat": 4,
    "price": "14.50",
    "wholeSalePrice": "9.50",
    "discountPercent": "25.50",
    "vendorCode": "rerum",
    "active": true,
    "weight": 200,
    "productCode": "15233",
    "stock": 3,
    "attributes": [
        1
    ],
    "softDeleted": false,
    "name": {
        "el": "Product Name 2"
    },
    "content": {
        "el": "<p>Main content<\/p>"
    },
    "shortContent": {
        "el": "Short content"
    },
    "ingredients": {
        "el": "<p>Ingredients content<\/p>"
    },
    "usage": {
        "el": "<p>Usage content<\/p>"
    },
    "extraContent": {
        "el": "<p>Extra content<\/p>"
    }
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (201):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 400
x-ratelimit-remaining: 355
access-control-allow-origin: *
 

{
    "data": {
        "id": 51,
        "productCodes": [
            {
                "id": 147,
                "product": 51,
                "productCode": "15233",
                "stock": 3,
                "softDeleted": false,
                "active": true,
                "attributes": [
                    {
                        "id": 1,
                        "name": {
                            "el": "Ut sapiente quas sint."
                        }
                    }
                ],
                "images": []
            }
        ],
        "shelf": null,
        "vat": {
            "id": 4,
            "value": 24
        },
        "barcodes": [],
        "pointFactor": "10.0000",
        "price": "11.69",
        "wholesalePrice": "9.50",
        "discountPercent": "25.50",
        "vendorCode": "rerum",
        "vendor": {
            "id": 1,
            "logo": "http://your_site.local/files/vendors/mfAzefupDF4Wp6PkWWvPIYJcWXGeA1mVWt99PFxn.jpg",
            "refCode": "5202b06a-42a7-3f74-a07b-50eb0a1e12fe",
            "name": {
                "el": "est dolorem"
            },
            "slug": {
                "el": "minima-aut-praesentium-inventore-occaecati-eius-enim"
            }
        },
        "active": 1,
        "weight": 200,
        "pieces": 1,
        "softDeleted": false,
        "dateChanged": null,
        "slug": {
            "el": "product-name-2"
        },
        "name": {
            "el": "Product Name 2"
        },
        "content": {
            "el": "<p>Main content</p>"
        },
        "shortContent": {
            "el": "Short content"
        },
        "ingredients": {
            "el": "<p>Ingredients content</p>"
        },
        "usage": {
            "el": "<p>Usage content</p>"
        },
        "extraContent": {
            "el": "<p>Extra content</p>"
        }
    }
}
 

Request   

POST erp/products

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

vat   integer  optional  

The id of Vat. Example: 4

price   numeric   

The product's retail price (with discounts and vat) price. Example: 14.50

wholeSalePrice   numeric  optional  

required. Example: 9.50

discountPercent   numeric  optional  

optional. Example: 25.50

vendorCode   string  optional  

optional Example: rerum

vendor   integer  optional  

The vendor id.

active   boolean  optional  

optional. Example: true

weight   integer  optional  

optional The weight in grams. Example: 200

pieces   integer  optional  

optional Pieces of package product.

productCode   string   

Any product code of the product that barcode belongs to. Example: 15233

stock   integer   

The stock of the product code. Example: 3

attributes   string[]  optional  

optional The attribute values id's of the product code.

softDeleted   boolean  optional  

optional. Example: false

name   object   
el   string   

The name of the product. Example: Product Name 2

slug   object  optional  

optional.

el   string  optional  

optional The slug of the product. Auto generated from name if not provided.

content   object  optional  
el   string  optional  

The name of the product. Example: <p>Main content</p>

shortContent   object  optional  
el   string  optional  

The name of the product. Example: Short content

ingredients   object  optional  
el   string  optional  

The name of the product. Example: <p>Ingredients content</p>

usage   object  optional  
el   string  optional  

The name of the product. Example: <p>Usage content</p>

extraContent   object  optional  
el   string  optional  

The name of the product. Example: <p>Extra content</p>

Get Product Resource

requires authentication

Example request:
curl --request GET \
    --get "http://api.your_site.ecommercen.com/erp/products/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/products/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://api.your_site.ecommercen.com/erp/products/1',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/products/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 400
x-ratelimit-remaining: 354
access-control-allow-origin: *
 

{
    "data": {
        "id": 1,
        "productCodes": [
            {
                "id": 1,
                "product": 1,
                "productCode": "1814682453042",
                "stock": 3,
                "softDeleted": true,
                "active": true,
                "attributes": [],
                "images": [
                    {
                        "id": 2,
                        "productCodeId": 1,
                        "image": "http://your_site.local/files/products/qd9HRseSQQMkwnvvjWIcGex8n3lYm4AhcQE4zkk5.jpg",
                        "main": false,
                        "refCode": "a1c3c091-b8f0-3c5c-bb2e-98ba621f9265"
                    },
                    {
                        "id": 3,
                        "productCodeId": 1,
                        "image": "http://your_site.local/files/products/cBTJCa119cy1UdcZaQF6x5DRLkCWflxI3UmVDy9i.jpg",
                        "main": false,
                        "refCode": "c7829295-8362-35b7-b0da-bc0332e6262f"
                    },
                    {
                        "id": 1,
                        "productCodeId": 1,
                        "image": "http://your_site.local/files/products/hl7hhLWG8eyQeYZtJXdGzhEHhKZAraDDvNASKm3A.jpg",
                        "main": true,
                        "refCode": "9059cc8d-1dba-3e6f-9e29-014d861b7777"
                    }
                ]
            }
        ],
        "shelf": {
            "id": 35,
            "code": "75223960"
        },
        "vat": {
            "id": 3,
            "value": 13
        },
        "barcodes": [
            {
                "id": 1,
                "product": 1,
                "productCode": "1814682453042",
                "barcode": "8144003528597"
            },
            {
                "id": 2,
                "product": 1,
                "productCode": "1814682453042",
                "barcode": "6544922784951"
            },
            {
                "id": 3,
                "product": 1,
                "productCode": "1814682453042",
                "barcode": "4508194085361"
            },
            {
                "id": 4,
                "product": 1,
                "productCode": "1814682453042",
                "barcode": "0473300618402"
            },
            {
                "id": 5,
                "product": 1,
                "productCode": "1814682453042",
                "barcode": "2344103388060"
            },
            {
                "id": 6,
                "product": 1,
                "productCode": "1814682453042",
                "barcode": "6731210799395"
            }
        ],
        "pointFactor": "3248.1055",
        "price": "26.37",
        "wholesalePrice": "66.13",
        "discountPercent": "17.67",
        "vendorCode": "3150920448820",
        "vendor": {
            "id": 5,
            "logo": "http://your_site.local/files/vendors/x3iJUg1qaBnniGEsrTP83ZlwxyIZx0hLRMXBUCjs.jpg",
            "refCode": "0ed42b65-d08b-392d-9e57-b38800cf6c20",
            "name": {
                "el": "cupiditate fugit"
            },
            "slug": {
                "el": "illum-itaque-dolor-saepe-incidunt"
            }
        },
        "active": 1,
        "weight": 9511,
        "pieces": 2,
        "softDeleted": false,
        "dateChanged": null,
        "slug": {
            "el": "quo-amet-quasi-et-consequatur-earum-adipisci-consequatur"
        },
        "name": {
            "el": "Pariatur optio dolor et minus."
        },
        "content": {
            "el": "Sit et cumque sed velit perspiciatis. Nihil magnam dolore illo autem nihil quibusdam voluptatibus eaque. Aut ad cum quia.\n\nVelit accusamus iste quis accusamus soluta rem sit. Blanditiis blanditiis est velit officia vel consequatur. Nostrum recusandae ut sit facere. Libero qui aliquam et sapiente assumenda sint animi.\n\nMolestias et eum quasi minima id ut asperiores. Culpa optio nihil voluptatem. Aut dicta sed incidunt ratione aut reiciendis."
        },
        "shortContent": {
            "el": "Sunt velit labore qui enim sit deserunt cumque velit. Provident facilis expedita quia ipsum delectus dolor. Vero quae dolores ab animi."
        },
        "ingredients": {
            "el": "Debitis natus ut temporibus similique perferendis ut accusantium. Aliquid mollitia dolorem ad quia sunt. Recusandae quos sint sunt impedit voluptate. Ut dolorem hic id perferendis ut qui aut.\n\nNecessitatibus voluptas maxime eaque dolores quidem eligendi nisi rem. Quae animi illum quidem qui qui. Impedit officia dolor velit molestiae sit exercitationem. Et et deleniti rerum.\n\nAutem beatae ipsum rerum laboriosam sit voluptas nemo. Non itaque quasi exercitationem et non."
        },
        "usage": {
            "el": "Ipsa itaque consequatur qui explicabo voluptas repudiandae. Porro omnis exercitationem eos. Amet similique omnis tenetur voluptate explicabo. Pariatur vel recusandae voluptas facere fuga et.\n\nUnde aut culpa corrupti aut. Eaque distinctio et ullam. Dolores distinctio tempora ea id voluptatem. Nam quisquam totam optio sint harum saepe. Quasi error earum omnis ut vel impedit.\n\nAutem eaque non vel quasi. Beatae ratione magni non magni esse. Voluptas explicabo veritatis quo quia hic est minima qui."
        },
        "extraContent": {
            "el": "Quam eos nulla dolorem dolor et quidem voluptate. Harum ea sint et. Sit nisi omnis autem delectus ut.\n\nRerum sequi sunt deserunt quia vel similique debitis. Cupiditate ipsa voluptates et quia ipsam et. Recusandae praesentium et nihil optio dolor modi. Quis qui et aut qui dolorem adipisci.\n\nNecessitatibus aperiam unde nihil et. Ea fugiat eos rem ea fuga. Ad doloribus est vero sunt."
        }
    }
}
 

Request   

GET erp/products/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   string   

The product's id. Example: 1

Update product

requires authentication

Example request:
curl --request PUT \
    "http://api.your_site.ecommercen.com/erp/products/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"vat\": 4,
    \"price\": \"30.50\",
    \"wholeSalePrice\": \"25.00\",
    \"discountPercent\": \"30.00\",
    \"vendorCode\": \"215165g235-234\",
    \"vendor\": 1,
    \"weight\": 200,
    \"pieces\": 1,
    \"active\": true,
    \"name\": {
        \"el\": \"Product Name 3\"
    },
    \"content\": {
        \"el\": \"<p>Main content<\\/p>\"
    },
    \"shortContent\": {
        \"el\": \"Short content\"
    },
    \"ingredients\": {
        \"el\": \"<p>Ingredients content<\\/p>\"
    },
    \"usage\": {
        \"el\": \"<p>Usage content<\\/p>\"
    },
    \"extraContent\": {
        \"el\": \"<p>Extra content<\\/p>\"
    }
}"
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/products/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "vat": 4,
    "price": "30.50",
    "wholeSalePrice": "25.00",
    "discountPercent": "30.00",
    "vendorCode": "215165g235-234",
    "vendor": 1,
    "weight": 200,
    "pieces": 1,
    "active": true,
    "name": {
        "el": "Product Name 3"
    },
    "content": {
        "el": "<p>Main content<\/p>"
    },
    "shortContent": {
        "el": "Short content"
    },
    "ingredients": {
        "el": "<p>Ingredients content<\/p>"
    },
    "usage": {
        "el": "<p>Usage content<\/p>"
    },
    "extraContent": {
        "el": "<p>Extra content<\/p>"
    }
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
    'http://api.your_site.ecommercen.com/erp/products/1',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'vat' => 4,
            'price' => '30.50',
            'wholeSalePrice' => '25.00',
            'discountPercent' => '30.00',
            'vendorCode' => '215165g235-234',
            'vendor' => 1,
            'weight' => 200,
            'pieces' => 1,
            'active' => true,
            'name' => [
                'el' => 'Product Name 3',
            ],
            'content' => [
                'el' => '<p>Main content</p>',
            ],
            'shortContent' => [
                'el' => 'Short content',
            ],
            'ingredients' => [
                'el' => '<p>Ingredients content</p>',
            ],
            'usage' => [
                'el' => '<p>Usage content</p>',
            ],
            'extraContent' => [
                'el' => '<p>Extra content</p>',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/products/1'
payload = {
    "vat": 4,
    "price": "30.50",
    "wholeSalePrice": "25.00",
    "discountPercent": "30.00",
    "vendorCode": "215165g235-234",
    "vendor": 1,
    "weight": 200,
    "pieces": 1,
    "active": true,
    "name": {
        "el": "Product Name 3"
    },
    "content": {
        "el": "<p>Main content<\/p>"
    },
    "shortContent": {
        "el": "Short content"
    },
    "ingredients": {
        "el": "<p>Ingredients content<\/p>"
    },
    "usage": {
        "el": "<p>Usage content<\/p>"
    },
    "extraContent": {
        "el": "<p>Extra content<\/p>"
    }
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 400
x-ratelimit-remaining: 353
access-control-allow-origin: *
 

{
    "data": {
        "id": 1,
        "productCodes": [
            {
                "id": 1,
                "product": 1,
                "productCode": "1814682453042",
                "stock": 3,
                "softDeleted": true,
                "active": true,
                "attributes": [],
                "images": [
                    {
                        "id": 2,
                        "productCodeId": 1,
                        "image": "http://your_site.local/files/products/qd9HRseSQQMkwnvvjWIcGex8n3lYm4AhcQE4zkk5.jpg",
                        "main": false,
                        "refCode": "a1c3c091-b8f0-3c5c-bb2e-98ba621f9265"
                    },
                    {
                        "id": 3,
                        "productCodeId": 1,
                        "image": "http://your_site.local/files/products/cBTJCa119cy1UdcZaQF6x5DRLkCWflxI3UmVDy9i.jpg",
                        "main": false,
                        "refCode": "c7829295-8362-35b7-b0da-bc0332e6262f"
                    },
                    {
                        "id": 1,
                        "productCodeId": 1,
                        "image": "http://your_site.local/files/products/hl7hhLWG8eyQeYZtJXdGzhEHhKZAraDDvNASKm3A.jpg",
                        "main": true,
                        "refCode": "9059cc8d-1dba-3e6f-9e29-014d861b7777"
                    }
                ]
            }
        ],
        "shelf": {
            "id": 35,
            "code": "75223960"
        },
        "vat": {
            "id": 4,
            "value": 24
        },
        "barcodes": [
            {
                "id": 1,
                "product": 1,
                "productCode": "1814682453042",
                "barcode": "8144003528597"
            },
            {
                "id": 2,
                "product": 1,
                "productCode": "1814682453042",
                "barcode": "6544922784951"
            },
            {
                "id": 3,
                "product": 1,
                "productCode": "1814682453042",
                "barcode": "4508194085361"
            },
            {
                "id": 4,
                "product": 1,
                "productCode": "1814682453042",
                "barcode": "0473300618402"
            },
            {
                "id": 5,
                "product": 1,
                "productCode": "1814682453042",
                "barcode": "2344103388060"
            },
            {
                "id": 6,
                "product": 1,
                "productCode": "1814682453042",
                "barcode": "6731210799395"
            }
        ],
        "pointFactor": "3248.1055",
        "price": "24.60",
        "wholesalePrice": "25.00",
        "discountPercent": "30.00",
        "vendorCode": "215165g235-234",
        "vendor": {
            "id": 1,
            "logo": "http://your_site.local/files/vendors/mfAzefupDF4Wp6PkWWvPIYJcWXGeA1mVWt99PFxn.jpg",
            "refCode": "5202b06a-42a7-3f74-a07b-50eb0a1e12fe",
            "name": {
                "el": "est dolorem"
            },
            "slug": {
                "el": "minima-aut-praesentium-inventore-occaecati-eius-enim"
            }
        },
        "active": 1,
        "weight": 200,
        "pieces": 1,
        "softDeleted": false,
        "dateChanged": null,
        "slug": {
            "el": "quo-amet-quasi-et-consequatur-earum-adipisci-consequatur"
        },
        "name": {
            "el": "Product Name 3"
        },
        "content": {
            "el": "<p>Main content</p>"
        },
        "shortContent": {
            "el": "Short content"
        },
        "ingredients": {
            "el": "<p>Ingredients content</p>"
        },
        "usage": {
            "el": "<p>Usage content</p>"
        },
        "extraContent": {
            "el": "<p>Extra content</p>"
        }
    }
}
 

Request   

PUT erp/products/{id}

PATCH erp/products/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The product's id. Example: 1

Body Parameters

vat   integer  optional  

The id of Vat. Example: 4

price   numeric  optional  

The product's retail price (with discounts and vat) price. Example: 30.50

wholeSalePrice   numeric.  optional  

Whole sale price. Example: 25.00

discountPercent   numeric.  optional  

Product's discount percent. Example: 30.00

vendorCode   string.  optional  

Example: 215165g235-234

vendor   integer  optional  

The vendor's id. Example: 1

weight   integer  optional  

The product's weight in grams. Example: 200

pieces   integer  optional  

Pieces in package. Example: 1

active   boolean  optional  

Whether product is active. Example: true

name   object  optional  
el   string  optional  

The name of the product. Example: Product Name 3

slug   object.  optional  
el   string  optional  

The slug of the product. Auto generated from name if not provided.

content   object  optional  
el   string  optional  

The name of the product. Example: <p>Main content</p>

shortContent   object  optional  
el   string  optional  

The name of the product. Example: Short content

ingredients   object  optional  
el   string  optional  

The name of the product. Example: <p>Ingredients content</p>

usage   object  optional  
el   string  optional  

The name of the product. Example: <p>Usage content</p>

extraContent   object  optional  
el   string  optional  

The name of the product. Example: <p>Extra content</p>

Delete product

requires authentication

Example request:
curl --request DELETE \
    "http://api.your_site.ecommercen.com/erp/products/19" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/products/19"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'http://api.your_site.ecommercen.com/erp/products/19',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/products/19'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 400
x-ratelimit-remaining: 352
access-control-allow-origin: *
 

{
    "message": "Product Resource with id 19 deleted"
}
 

Request   

DELETE erp/products/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

Example: 19

Mass update stock / prices

requires authentication

Example request:
curl --request POST \
    "http://api.your_site.ecommercen.com/erp/products/mass" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "[
    {
        \"productCode\": \"ERP-1\",
        \"stock\": 3,
        \"wholeSalePrice\": \"45.00\",
        \"targetPrice\": \"60.50\",
        \"price\": \"50.20\"
    }
]"
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/products/mass"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = [
    {
        "productCode": "ERP-1",
        "stock": 3,
        "wholeSalePrice": "45.00",
        "targetPrice": "60.50",
        "price": "50.20"
    }
];

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'http://api.your_site.ecommercen.com/erp/products/mass',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            [
                'productCode' => 'ERP-1',
                'stock' => 3,
                'wholeSalePrice' => '45.00',
                'targetPrice' => '60.50',
                'price' => '50.20',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/products/mass'
payload = [
    {
        "productCode": "ERP-1",
        "stock": 3,
        "wholeSalePrice": "45.00",
        "targetPrice": "60.50",
        "price": "50.20"
    }
]
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 400
x-ratelimit-remaining: 346
access-control-allow-origin: *
 

{
    "message": "Products updated"
}
 

Request   

POST erp/products/mass

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

The request body is an array (object[]`). Each item has the following properties:

productCode   string   

product code id. Example: ERP-1

stock   integer  optional  

The stock of the product code. Example: 3

wholeSalePrice   numeric.  optional  

Whole sale price. Example: 45.00

targetPrice   numeric   

The products proposed price with vat, required if price is set. Example: 60.50

price   numeric  optional  

The products final price (with discount and vat), required if targetPrice is set. Example: 50.20

Product Attribute

GET erp/products/attribute

requires authentication

Example request:
curl --request GET \
    --get "http://api.your_site.ecommercen.com/erp/products/attribute" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/products/attribute"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://api.your_site.ecommercen.com/erp/products/attribute',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/products/attribute'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 400
x-ratelimit-remaining: 391
access-control-allow-origin: *
 

{
    "data": [
        {
            "id": 1,
            "groupId": 1,
            "value": "Deserunt amet.",
            "active": false,
            "name": {
                "el": "Ut sapiente quas sint."
            }
        },
        {
            "id": 2,
            "groupId": 1,
            "value": "Blanditiis voluptas dicta.",
            "active": false,
            "name": {
                "el": "Consequatur harum eum ipsa."
            }
        },
        {
            "id": 3,
            "groupId": 1,
            "value": "Quis ut minima.",
            "active": true,
            "name": {
                "el": "Doloremque et."
            }
        },
        {
            "id": 4,
            "groupId": 1,
            "value": "Omnis dicta et.",
            "active": true,
            "name": {
                "el": "Aut nulla distinctio cupiditate et."
            }
        },
        {
            "id": 5,
            "groupId": 1,
            "value": "Repellendus sed.",
            "active": false,
            "name": {
                "el": "Cum est consequuntur distinctio."
            }
        },
        {
            "id": 6,
            "groupId": 1,
            "value": "Totam excepturi ullam.",
            "active": false,
            "name": {
                "el": "Ex aut consequatur a."
            }
        },
        {
            "id": 7,
            "groupId": 2,
            "value": "Quo qui.",
            "active": false,
            "name": {
                "el": "Quis esse corrupti corporis esse."
            }
        },
        {
            "id": 8,
            "groupId": 2,
            "value": "Laboriosam doloremque fugit.",
            "active": false,
            "name": {
                "el": "Labore et porro."
            }
        },
        {
            "id": 9,
            "groupId": 2,
            "value": "Voluptatem consectetur.",
            "active": false,
            "name": {
                "el": "Nihil est et excepturi voluptatem."
            }
        },
        {
            "id": 10,
            "groupId": 2,
            "value": "Atque rem.",
            "active": false,
            "name": {
                "el": "Ducimus corporis possimus ab."
            }
        },
        {
            "id": 11,
            "groupId": 2,
            "value": "Voluptatem voluptates sit.",
            "active": false,
            "name": {
                "el": "Nesciunt voluptatum est."
            }
        },
        {
            "id": 12,
            "groupId": 2,
            "value": "Eaque molestiae sed.",
            "active": true,
            "name": {
                "el": "Quia earum est."
            }
        },
        {
            "id": 13,
            "groupId": 3,
            "value": "Enim facilis occaecati.",
            "active": false,
            "name": {
                "el": "Nihil quis sed voluptas."
            }
        },
        {
            "id": 14,
            "groupId": 3,
            "value": "Ratione ut.",
            "active": true,
            "name": {
                "el": "Qui enim voluptatum qui."
            }
        },
        {
            "id": 15,
            "groupId": 3,
            "value": "Enim neque rerum.",
            "active": false,
            "name": {
                "el": "Aspernatur modi qui voluptatum unde."
            }
        }
    ],
    "links": {
        "first": "http://your_site.local/erp/products/attribute?page=1",
        "last": "http://your_site.local/erp/products/attribute?page=4",
        "prev": null,
        "next": "http://your_site.local/erp/products/attribute?page=2"
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 4,
        "links": [
            {
                "url": null,
                "label": "&laquo; Previous",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/products/attribute?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": "http://your_site.local/erp/products/attribute?page=2",
                "label": "2",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/products/attribute?page=3",
                "label": "3",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/products/attribute?page=4",
                "label": "4",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/products/attribute?page=2",
                "label": "Next &raquo;",
                "active": false
            }
        ],
        "path": "http://your_site.local/erp/products/attribute",
        "per_page": 15,
        "to": 15,
        "total": 60
    }
}
 

Request   

GET erp/products/attribute

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

POST erp/products/attribute

requires authentication

Example request:
curl --request POST \
    "http://api.your_site.ecommercen.com/erp/products/attribute" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"groupId\": 1,
    \"value\": \"#f00\",
    \"name\": {
        \"el\": \"Temporibus vero odit\"
    }
}"
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/products/attribute"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "groupId": 1,
    "value": "#f00",
    "name": {
        "el": "Temporibus vero odit"
    }
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'http://api.your_site.ecommercen.com/erp/products/attribute',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'groupId' => 1,
            'value' => '#f00',
            'name' => [
                'el' => 'Temporibus vero odit',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/products/attribute'
payload = {
    "groupId": 1,
    "value": "#f00",
    "name": {
        "el": "Temporibus vero odit"
    }
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (201):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 400
x-ratelimit-remaining: 390
access-control-allow-origin: *
 

{
    "data": {
        "id": 61,
        "groupId": 1,
        "value": "#f00",
        "active": true,
        "name": {
            "el": "Temporibus vero odit"
        }
    }
}
 

Request   

POST erp/products/attribute

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

groupId   integer   

The attribute group it belongs to. Example: 1

value   string   

The attributes display value. For text type he name, for hex-color the hex color ie #f00, for image type relative path to image. Example: #f00

name   object   
el   string   

The attributes name in greek locale. Example: Temporibus vero odit

GET erp/products/attribute/{id}

requires authentication

Example request:
curl --request GET \
    --get "http://api.your_site.ecommercen.com/erp/products/attribute/ut" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/products/attribute/ut"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://api.your_site.ecommercen.com/erp/products/attribute/ut',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/products/attribute/ut'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (500):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 400
x-ratelimit-remaining: 389
access-control-allow-origin: *
 

{
    "message": "Server Error"
}
 

Request   

GET erp/products/attribute/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   string   

The ID of the attribute. Example: ut

PUT erp/products/attribute/{id}

requires authentication

Example request:
curl --request PUT \
    "http://api.your_site.ecommercen.com/erp/products/attribute/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"value\": \"#f00\",
    \"name\": {
        \"el\": \"Temporibus vero odit\"
    }
}"
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/products/attribute/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "value": "#f00",
    "name": {
        "el": "Temporibus vero odit"
    }
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
    'http://api.your_site.ecommercen.com/erp/products/attribute/1',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'value' => '#f00',
            'name' => [
                'el' => 'Temporibus vero odit',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/products/attribute/1'
payload = {
    "value": "#f00",
    "name": {
        "el": "Temporibus vero odit"
    }
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 400
x-ratelimit-remaining: 388
access-control-allow-origin: *
 

{
    "data": {
        "id": 1,
        "groupId": 1,
        "value": "#f00",
        "active": false,
        "name": {
            "el": "Temporibus vero odit"
        }
    }
}
 

Request   

PUT erp/products/attribute/{id}

PATCH erp/products/attribute/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

Example: 1

Body Parameters

value   string  optional  

The attributes display value. For text type the name, for hex-color the hex color ie #f00, for image type relative path to image. Example: #f00

name   object   
el   string   

The attributes name in greek locale. Example: Temporibus vero odit

DELETE erp/products/attribute/{id}

requires authentication

Example request:
curl --request DELETE \
    "http://api.your_site.ecommercen.com/erp/products/attribute/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/products/attribute/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'http://api.your_site.ecommercen.com/erp/products/attribute/1',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/products/attribute/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 400
x-ratelimit-remaining: 387
access-control-allow-origin: *
 

{
    "message": "Attribute with id 1 deleted"
}
 

Request   

DELETE erp/products/attribute/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer  optional  

Example: 1

Product Attribute Group

GET erp/products/attributeGroup

requires authentication

Example request:
curl --request GET \
    --get "http://api.your_site.ecommercen.com/erp/products/attributeGroup" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/products/attributeGroup"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://api.your_site.ecommercen.com/erp/products/attributeGroup',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/products/attributeGroup'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 400
x-ratelimit-remaining: 386
access-control-allow-origin: *
 

{
    "data": [
        {
            "id": 1,
            "type": "hex-color",
            "name": {
                "el": "Vero ullam dolore ab."
            }
        },
        {
            "id": 2,
            "type": "text",
            "name": {
                "el": "Amet eum."
            }
        },
        {
            "id": 3,
            "type": "hex-color",
            "name": {
                "el": "Nihil quidem cumque voluptatibus."
            }
        },
        {
            "id": 4,
            "type": "image",
            "name": {
                "el": "Consequatur velit doloribus."
            }
        },
        {
            "id": 5,
            "type": "hex-color",
            "name": {
                "el": "Incidunt assumenda et."
            }
        },
        {
            "id": 6,
            "type": "hex-color",
            "name": {
                "el": "Sint vero blanditiis harum."
            }
        },
        {
            "id": 7,
            "type": "hex-color",
            "name": {
                "el": "Ut maxime eligendi."
            }
        },
        {
            "id": 8,
            "type": "image",
            "name": {
                "el": "Iure natus facilis."
            }
        },
        {
            "id": 9,
            "type": "hex-color",
            "name": {
                "el": "Et fuga nisi."
            }
        },
        {
            "id": 10,
            "type": "hex-color",
            "name": {
                "el": "Quia eos ullam doloribus inventore."
            }
        }
    ],
    "links": {
        "first": "http://your_site.local/erp/products/attributeGroup?page=1",
        "last": "http://your_site.local/erp/products/attributeGroup?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "&laquo; Previous",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/products/attributeGroup?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "Next &raquo;",
                "active": false
            }
        ],
        "path": "http://your_site.local/erp/products/attributeGroup",
        "per_page": 15,
        "to": 10,
        "total": 10
    }
}
 

Request   

GET erp/products/attributeGroup

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

POST erp/products/attributeGroup

requires authentication

Example request:
curl --request POST \
    "http://api.your_site.ecommercen.com/erp/products/attributeGroup" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"type\": \"hex-color\",
    \"name\": {
        \"el\": \"Ea consectetur aliquam\"
    }
}"
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/products/attributeGroup"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "type": "hex-color",
    "name": {
        "el": "Ea consectetur aliquam"
    }
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'http://api.your_site.ecommercen.com/erp/products/attributeGroup',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'type' => 'hex-color',
            'name' => [
                'el' => 'Ea consectetur aliquam',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/products/attributeGroup'
payload = {
    "type": "hex-color",
    "name": {
        "el": "Ea consectetur aliquam"
    }
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (201):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 400
x-ratelimit-remaining: 385
access-control-allow-origin: *
 

{
    "data": {
        "id": 11,
        "type": "hex-color",
        "name": {
            "el": "Ea consectetur aliquam"
        }
    }
}
 

Request   

POST erp/products/attributeGroup

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

type   string   

The type of the attribute group possible values are hex-color, image or text. Example: hex-color

name   object   
el   string   

The group's name. Example: Ea consectetur aliquam

GET erp/products/attributeGroup/{id}

requires authentication

Example request:
curl --request GET \
    --get "http://api.your_site.ecommercen.com/erp/products/attributeGroup/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/products/attributeGroup/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://api.your_site.ecommercen.com/erp/products/attributeGroup/1',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/products/attributeGroup/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 400
x-ratelimit-remaining: 384
access-control-allow-origin: *
 

{
    "data": {
        "id": 1,
        "type": "hex-color",
        "name": {
            "el": "Vero ullam dolore ab."
        }
    }
}
 

Request   

GET erp/products/attributeGroup/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The id of the attribute group. Example: 1

PUT erp/products/attributeGroup/{id}

requires authentication

Example request:
curl --request PUT \
    "http://api.your_site.ecommercen.com/erp/products/attributeGroup/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"type\": \"hex-color\",
    \"name\": {
        \"el\": \"Ea consectetur aliquam\"
    }
}"
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/products/attributeGroup/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "type": "hex-color",
    "name": {
        "el": "Ea consectetur aliquam"
    }
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
    'http://api.your_site.ecommercen.com/erp/products/attributeGroup/1',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'type' => 'hex-color',
            'name' => [
                'el' => 'Ea consectetur aliquam',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/products/attributeGroup/1'
payload = {
    "type": "hex-color",
    "name": {
        "el": "Ea consectetur aliquam"
    }
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 400
x-ratelimit-remaining: 383
access-control-allow-origin: *
 

{
    "data": {
        "id": 1,
        "type": "hex-color",
        "name": {
            "el": "Ea consectetur aliquam"
        }
    }
}
 

Request   

PUT erp/products/attributeGroup/{id}

PATCH erp/products/attributeGroup/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The id of the attribute group. Example: 1

Body Parameters

type   string  optional  

The type of the attribute group possible values are hex-color, image or text. Example: hex-color

name   object  optional  
el   string  optional  

The group's name. Example: Ea consectetur aliquam

DELETE erp/products/attributeGroup/{id}

requires authentication

Example request:
curl --request DELETE \
    "http://api.your_site.ecommercen.com/erp/products/attributeGroup/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/products/attributeGroup/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'http://api.your_site.ecommercen.com/erp/products/attributeGroup/1',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/products/attributeGroup/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 400
x-ratelimit-remaining: 382
access-control-allow-origin: *
 

{
    "message": "Attribute group with id 1 deleted"
}
 

Request   

DELETE erp/products/attributeGroup/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The id of the attribute group. Example: 1

Product Category

Attach a product to a category

requires authentication

Example request:
curl --request POST \
    "http://api.your_site.ecommercen.com/erp/products/productToCategory/create" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"product\": 1,
    \"category\": 1
}"
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/products/productToCategory/create"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "product": 1,
    "category": 1
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'http://api.your_site.ecommercen.com/erp/products/productToCategory/create',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'product' => 1,
            'category' => 1,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/products/productToCategory/create'
payload = {
    "product": 1,
    "category": 1
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (201):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 400
x-ratelimit-remaining: 348
access-control-allow-origin: *
 

{
    "message": "Product attached to category"
}
 

Request   

POST erp/products/productToCategory/create

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

product   integer  optional  

The product id. Example: 1

category   integer  optional  

The category id. Example: 1

Detach a product from a category

requires authentication

Example request:
curl --request POST \
    "http://api.your_site.ecommercen.com/erp/products/productToCategory/delete" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"product\": 1,
    \"category\": 1
}"
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/products/productToCategory/delete"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "product": 1,
    "category": 1
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'http://api.your_site.ecommercen.com/erp/products/productToCategory/delete',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'product' => 1,
            'category' => 1,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/products/productToCategory/delete'
payload = {
    "product": 1,
    "category": 1
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 400
x-ratelimit-remaining: 347
access-control-allow-origin: *
 

{
    "message": "Product detached from category"
}
 

Request   

POST erp/products/productToCategory/delete

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

product   integer  optional  

The product id. Example: 1

category   integer  optional  

The category id. Example: 1

Product Code

POST erp/productCode/mass

requires authentication

Example request:
curl --request POST \
    "http://api.your_site.ecommercen.com/erp/productCode/mass" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "[
    {
        \"id\": 1,
        \"stock\": 3,
        \"active\": true
    }
]"
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/productCode/mass"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = [
    {
        "id": 1,
        "stock": 3,
        "active": true
    }
];

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'http://api.your_site.ecommercen.com/erp/productCode/mass',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            [
                'id' => 1,
                'stock' => 3,
                'active' => true,
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/productCode/mass'
payload = [
    {
        "id": 1,
        "stock": 3,
        "active": true
    }
]
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 400
x-ratelimit-remaining: 397
access-control-allow-origin: *
 

{
    "message": "Product codes updated"
}
 

Request   

POST erp/productCode/mass

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

The request body is an array (object[]`). Each item has the following properties:

id   integer   

product code id. Example: 1

stock   integer  optional  

The stock of the product code. Example: 3

active   boolean  optional  

Check if the product code is active. Example: true

GET erp/productCode

requires authentication

Example request:
curl --request GET \
    --get "http://api.your_site.ecommercen.com/erp/productCode?filter%5Bproduct%5D=deleniti&sort=sort%3Dproduct&page=2" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/productCode"
);

const params = {
    "filter[product]": "deleniti",
    "sort": "sort=product",
    "page": "2",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://api.your_site.ecommercen.com/erp/productCode',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'filter[product]' => 'deleniti',
            'sort' => 'sort=product',
            'page' => '2',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/productCode'
params = {
  'filter[product]': 'deleniti',
  'sort': 'sort=product',
  'page': '2',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 400
x-ratelimit-remaining: 371
access-control-allow-origin: *
 

{
    "data": [
        {
            "id": 16,
            "product": 6,
            "productCode": "0642161179258",
            "stock": -58,
            "softDeleted": false,
            "active": false,
            "attributes": [
                {
                    "id": 9,
                    "name": {
                        "el": "Nihil est et excepturi voluptatem."
                    }
                },
                {
                    "id": 41,
                    "name": {
                        "el": "Qui et illo."
                    }
                }
            ],
            "images": [
                {
                    "id": 44,
                    "productCodeId": 16,
                    "image": "http://your_site.local/files/products/F48kWN6g9qFAaf8vAqyDEzK652YhEyeuZv9S3k8a.jpg",
                    "main": false,
                    "refCode": "2b08d28f-f650-3f3c-bbf4-b5823a73e49f"
                },
                {
                    "id": 45,
                    "productCodeId": 16,
                    "image": "http://your_site.local/files/products/ZxCcDWSbDXGheF8i52p2h4f6blEnpRzDOwwPqZ8q.jpg",
                    "main": false,
                    "refCode": "cb8c4252-50c8-3b11-9583-bb0b9d1613fb"
                },
                {
                    "id": 46,
                    "productCodeId": 16,
                    "image": "http://your_site.local/files/products/xmXNSPXtCDt6JfSzNvR40LT4BPsrA3kb3yfwEi3I.jpg",
                    "main": false,
                    "refCode": "41040917-7e9e-34b5-a0cd-fb6762d61d11"
                },
                {
                    "id": 43,
                    "productCodeId": 16,
                    "image": "http://your_site.local/files/products/YCMY1AaaEDZWBQgDcpoM2BxJXnEX2IoUsfHSe0qx.jpg",
                    "main": true,
                    "refCode": "3ed165ea-0063-3d34-bbdd-3034015c68c3"
                }
            ]
        },
        {
            "id": 17,
            "product": 6,
            "productCode": "0384020786619",
            "stock": 76,
            "softDeleted": true,
            "active": false,
            "attributes": [
                {
                    "id": 11,
                    "name": {
                        "el": "Nesciunt voluptatum est."
                    }
                },
                {
                    "id": 37,
                    "name": {
                        "el": "Animi et dolorum."
                    }
                }
            ],
            "images": [
                {
                    "id": 47,
                    "productCodeId": 17,
                    "image": "http://your_site.local/files/products/yL0VVNQuWsS69mpN4IVwmZiYnq4I9IdIkh8dLgpo.jpg",
                    "main": true,
                    "refCode": "979f5118-0ab1-33f3-b32c-1248b204920c"
                }
            ]
        },
        {
            "id": 18,
            "product": 7,
            "productCode": "8837752826037",
            "stock": -17,
            "softDeleted": true,
            "active": false,
            "attributes": [
                {
                    "id": 9,
                    "name": {
                        "el": "Nihil est et excepturi voluptatem."
                    }
                },
                {
                    "id": 27,
                    "name": {
                        "el": "Dolores quisquam delectus possimus."
                    }
                }
            ],
            "images": [
                {
                    "id": 49,
                    "productCodeId": 18,
                    "image": "http://your_site.local/files/products/UvcBefn1SAYJKJm2kyGgfUzxYOePb7r0belUC9vG.jpg",
                    "main": false,
                    "refCode": "adfa90d4-7953-3041-ae84-1163dadd206e"
                },
                {
                    "id": 50,
                    "productCodeId": 18,
                    "image": "http://your_site.local/files/products/XMl2eeHKSraEVtFKrEUXxmQ9tQn4xOo2QHIpCKjZ.jpg",
                    "main": false,
                    "refCode": "0ce70152-d2c2-36c7-89f9-0f96643e4c24"
                },
                {
                    "id": 48,
                    "productCodeId": 18,
                    "image": "http://your_site.local/files/products/j1P676mn5koWTOwiBVME7NHZ1br5MSr4370oZO7t.jpg",
                    "main": true,
                    "refCode": "76df083d-3bfd-311b-92d2-f65654db85d3"
                }
            ]
        },
        {
            "id": 19,
            "product": 8,
            "productCode": "9330207249010",
            "stock": -17,
            "softDeleted": false,
            "active": false,
            "attributes": [
                {
                    "id": 54,
                    "name": {
                        "el": "Inventore laboriosam exercitationem officia."
                    }
                }
            ],
            "images": [
                {
                    "id": 52,
                    "productCodeId": 19,
                    "image": "http://your_site.local/files/products/hOxTWc4CpddAqxkBZcCp1ti9BsEPUblZW4zzqQei.jpg",
                    "main": false,
                    "refCode": "15d9db0e-eaa9-39ce-b8fb-05d504445330"
                },
                {
                    "id": 53,
                    "productCodeId": 19,
                    "image": "http://your_site.local/files/products/74w3nfT1vl1FdENMKDUm3rBuDJfme8OLGTP5il6c.jpg",
                    "main": false,
                    "refCode": "035f3a4a-1cc5-3a31-bbd3-a0f119c91ada"
                },
                {
                    "id": 54,
                    "productCodeId": 19,
                    "image": "http://your_site.local/files/products/mdHQjq0D7e0YUAkaXi60QkEcEl5b69GRxuof9IKN.jpg",
                    "main": false,
                    "refCode": "6c59fda5-d442-3a19-b868-064e71785f2f"
                },
                {
                    "id": 51,
                    "productCodeId": 19,
                    "image": "http://your_site.local/files/products/iBn9fBjF0fVq06zxJUpmKvmbNwWAwjwTFhjBp8yD.jpg",
                    "main": true,
                    "refCode": "3c348cea-6ebb-30a2-b968-99da3208c989"
                }
            ]
        },
        {
            "id": 20,
            "product": 8,
            "productCode": "8193467255815",
            "stock": -61,
            "softDeleted": true,
            "active": false,
            "attributes": [
                {
                    "id": 53,
                    "name": {
                        "el": "Eos perspiciatis sint officiis."
                    }
                }
            ],
            "images": [
                {
                    "id": 56,
                    "productCodeId": 20,
                    "image": "http://your_site.local/files/products/ULZMy9aEZhulUWSgHp626bQdqtEM5RNh4DCKlxxE.jpg",
                    "main": false,
                    "refCode": "a83465e6-21b1-3b69-9a8f-ec38c92d42c9"
                },
                {
                    "id": 55,
                    "productCodeId": 20,
                    "image": "http://your_site.local/files/products/lKOX4kyiW7yld1RH2M8JvNu11dOBdKGXDH96yPX0.jpg",
                    "main": true,
                    "refCode": "dcea1c7e-712b-3745-a7b0-4498d313cebd"
                }
            ]
        },
        {
            "id": 21,
            "product": 9,
            "productCode": "1337274537574",
            "stock": 62,
            "softDeleted": true,
            "active": false,
            "attributes": [
                {
                    "id": 18,
                    "name": {
                        "el": "Alias nemo ad."
                    }
                },
                {
                    "id": 27,
                    "name": {
                        "el": "Dolores quisquam delectus possimus."
                    }
                },
                {
                    "id": 48,
                    "name": {
                        "el": "Nesciunt enim eius."
                    }
                }
            ],
            "images": [
                {
                    "id": 58,
                    "productCodeId": 21,
                    "image": "http://your_site.local/files/products/vqNqhhD9Id17iMUi8hT8kTzLyCmKYc6MNnzdI5sD.jpg",
                    "main": false,
                    "refCode": "0c397cea-1a47-3131-9c14-437db994f903"
                },
                {
                    "id": 59,
                    "productCodeId": 21,
                    "image": "http://your_site.local/files/products/2Et0o93LS3H5Ik14vFfmRFiLhPx1XifxMcgQwVS1.jpg",
                    "main": false,
                    "refCode": "9d556f9a-1a18-312a-9644-ccc810b2e614"
                },
                {
                    "id": 57,
                    "productCodeId": 21,
                    "image": "http://your_site.local/files/products/qbYXb7imknWT8fHicCCOc75FxcJYfqbqDyGNL76R.jpg",
                    "main": true,
                    "refCode": "8d646a70-78f4-3ffd-810f-d94d2186fa3c"
                }
            ]
        },
        {
            "id": 22,
            "product": 9,
            "productCode": "4481576069572",
            "stock": 60,
            "softDeleted": false,
            "active": false,
            "attributes": [
                {
                    "id": 15,
                    "name": {
                        "el": "Aspernatur modi qui voluptatum unde."
                    }
                },
                {
                    "id": 27,
                    "name": {
                        "el": "Dolores quisquam delectus possimus."
                    }
                },
                {
                    "id": 46,
                    "name": {
                        "el": "Id aut quos atque."
                    }
                }
            ],
            "images": [
                {
                    "id": 61,
                    "productCodeId": 22,
                    "image": "http://your_site.local/files/products/BVxTLpvv6pLbroSGn20S84X1iGIUnx2r7j4LAnaw.jpg",
                    "main": false,
                    "refCode": "f1dbeaeb-8902-3f05-8b61-1f01964779ba"
                },
                {
                    "id": 62,
                    "productCodeId": 22,
                    "image": "http://your_site.local/files/products/ki8J3pxskEELiJvd1dxNIXrnumTi46nlpaTxkaDn.jpg",
                    "main": false,
                    "refCode": "dcc41d06-a550-3827-89e9-0fe1752ccaf5"
                },
                {
                    "id": 60,
                    "productCodeId": 22,
                    "image": "http://your_site.local/files/products/bSKplDuISx7QX3ChV3X4Rhwf8LbM89wWX6qNSonU.jpg",
                    "main": true,
                    "refCode": "e8acd2fe-35eb-3bd6-be20-f2ab9d6955f2"
                }
            ]
        },
        {
            "id": 23,
            "product": 9,
            "productCode": "8862782652219",
            "stock": 50,
            "softDeleted": true,
            "active": false,
            "attributes": [
                {
                    "id": 16,
                    "name": {
                        "el": "Omnis voluptatum quod error."
                    }
                },
                {
                    "id": 27,
                    "name": {
                        "el": "Dolores quisquam delectus possimus."
                    }
                },
                {
                    "id": 46,
                    "name": {
                        "el": "Id aut quos atque."
                    }
                }
            ],
            "images": [
                {
                    "id": 64,
                    "productCodeId": 23,
                    "image": "http://your_site.local/files/products/Y6Ayw15u3teBdfWDxPCZFzlByDr9UAuKHkm9sKK3.jpg",
                    "main": false,
                    "refCode": "9230d7c3-5372-36c3-a403-31ce18b45c34"
                },
                {
                    "id": 65,
                    "productCodeId": 23,
                    "image": "http://your_site.local/files/products/qJQNe6yfNk1FaTZl5IQHaorCSh9KPR7yR3PyhAQy.jpg",
                    "main": false,
                    "refCode": "72417c48-edfe-3d6c-920a-5a8a9692383b"
                },
                {
                    "id": 63,
                    "productCodeId": 23,
                    "image": "http://your_site.local/files/products/nnGb1ZcLBLg5hYDyNT7ZnygZ3D2yxq2HcfwQQwKM.jpg",
                    "main": true,
                    "refCode": "0b83edb3-cd17-3498-b4b2-e9e3b326328a"
                }
            ]
        },
        {
            "id": 24,
            "product": 9,
            "productCode": "3848263677822",
            "stock": -61,
            "softDeleted": false,
            "active": true,
            "attributes": [
                {
                    "id": 17,
                    "name": {
                        "el": "Facilis ut molestiae consequatur."
                    }
                },
                {
                    "id": 26,
                    "name": {
                        "el": "Et incidunt commodi dolor."
                    }
                },
                {
                    "id": 44,
                    "name": {
                        "el": "Reprehenderit debitis eligendi reiciendis."
                    }
                }
            ],
            "images": [
                {
                    "id": 66,
                    "productCodeId": 24,
                    "image": "http://your_site.local/files/products/bp48DYRwMnfKEuksnaOvHqdtnehjlGM559LVEJF1.jpg",
                    "main": true,
                    "refCode": "35e360a5-665d-3b76-98eb-711559a8ce9a"
                }
            ]
        },
        {
            "id": 25,
            "product": 10,
            "productCode": "9632213485636",
            "stock": 58,
            "softDeleted": true,
            "active": false,
            "attributes": [],
            "images": [
                {
                    "id": 67,
                    "productCodeId": 25,
                    "image": "http://your_site.local/files/products/Hw49aGFtxDa9VtF2JGoZs7NtkqipzP0zg19uTMl1.jpg",
                    "main": true,
                    "refCode": "702c56bb-50c1-308c-93a2-ebe5e2fd9425"
                }
            ]
        },
        {
            "id": 26,
            "product": 11,
            "productCode": "9537924107481",
            "stock": 40,
            "softDeleted": false,
            "active": true,
            "attributes": [
                {
                    "id": 18,
                    "name": {
                        "el": "Alias nemo ad."
                    }
                }
            ],
            "images": [
                {
                    "id": 69,
                    "productCodeId": 26,
                    "image": "http://your_site.local/files/products/pTeNtC7JFYH5hY6SqlBny0wiU9phmLEX5ZjneSFZ.jpg",
                    "main": false,
                    "refCode": "83feb65f-cd83-3249-a862-042a60d5af91"
                },
                {
                    "id": 70,
                    "productCodeId": 26,
                    "image": "http://your_site.local/files/products/tjlPDUfFfwrcwDJAHdxUVMmfC5yedmHpS4Rc6Wmz.jpg",
                    "main": false,
                    "refCode": "33d0cd6a-daa9-319f-b8b7-9c3351734d3f"
                },
                {
                    "id": 68,
                    "productCodeId": 26,
                    "image": "http://your_site.local/files/products/oEb9c19EzF7Rs597mTmMvu9hQxqNutKye469JWNh.jpg",
                    "main": true,
                    "refCode": "2d29a401-b929-38f8-a9c9-eb10d76893c6"
                }
            ]
        },
        {
            "id": 27,
            "product": 11,
            "productCode": "9106119158760",
            "stock": -46,
            "softDeleted": true,
            "active": false,
            "attributes": [
                {
                    "id": 13,
                    "name": {
                        "el": "Nihil quis sed voluptas."
                    }
                }
            ],
            "images": [
                {
                    "id": 72,
                    "productCodeId": 27,
                    "image": "http://your_site.local/files/products/seIcLETC5sy7YIq6zYI1HNDPYAcJxuXPLZRahMqK.jpg",
                    "main": false,
                    "refCode": "bbf6913d-62e0-3474-afb7-2a149e00f1d0"
                },
                {
                    "id": 73,
                    "productCodeId": 27,
                    "image": "http://your_site.local/files/products/oTGX0YHqcMTS4OYZfdOgIC970s9BMdLkFs9QUpP7.jpg",
                    "main": false,
                    "refCode": "81fe8622-a71b-3608-b718-16660d830d11"
                },
                {
                    "id": 71,
                    "productCodeId": 27,
                    "image": "http://your_site.local/files/products/JVeZeqDmHCfnH4JA3w4xtyMf03FPe8rC9NwJQbJK.jpg",
                    "main": true,
                    "refCode": "634a126e-a7c0-3603-a666-a9a96b6d0d67"
                }
            ]
        },
        {
            "id": 28,
            "product": 11,
            "productCode": "1568901980535",
            "stock": -58,
            "softDeleted": false,
            "active": false,
            "attributes": [
                {
                    "id": 15,
                    "name": {
                        "el": "Aspernatur modi qui voluptatum unde."
                    }
                }
            ],
            "images": [
                {
                    "id": 74,
                    "productCodeId": 28,
                    "image": "http://your_site.local/files/products/19gUH6nLQD8EErLIrzpxDR9vAe7ByN0T7OaEaVn0.jpg",
                    "main": true,
                    "refCode": "d5f39225-1318-3058-9418-df5fce472d8f"
                }
            ]
        },
        {
            "id": 29,
            "product": 11,
            "productCode": "7542097252533",
            "stock": 97,
            "softDeleted": false,
            "active": true,
            "attributes": [
                {
                    "id": 16,
                    "name": {
                        "el": "Omnis voluptatum quod error."
                    }
                }
            ],
            "images": [
                {
                    "id": 76,
                    "productCodeId": 29,
                    "image": "http://your_site.local/files/products/GFTgHTlQHXvSwHN3r8Ahl9csLcakemZ7FI5bLcWB.jpg",
                    "main": false,
                    "refCode": "4aee0c32-4422-38a4-aa2e-157f08062193"
                },
                {
                    "id": 77,
                    "productCodeId": 29,
                    "image": "http://your_site.local/files/products/Z6BcJF3yppYxYlgJ9iOidPxoMioeMb6XOUrNCiua.jpg",
                    "main": false,
                    "refCode": "d5cb972b-f241-36bf-ae50-810568a59a33"
                },
                {
                    "id": 78,
                    "productCodeId": 29,
                    "image": "http://your_site.local/files/products/x3p4BRA2MeQuwg7hnYbbRoQghM9SlgZJtP6HXDU5.jpg",
                    "main": false,
                    "refCode": "c866148c-3bcd-3a21-8874-ecf2592c5fb1"
                },
                {
                    "id": 75,
                    "productCodeId": 29,
                    "image": "http://your_site.local/files/products/o4jC343ov4ZnmRuTyaiH7HzZDjbOlQtT7ZwSpvN1.jpg",
                    "main": true,
                    "refCode": "4c54604b-1a93-31ab-8e10-9984c624faac"
                }
            ]
        },
        {
            "id": 30,
            "product": 12,
            "productCode": "3372133289216",
            "stock": -60,
            "softDeleted": false,
            "active": false,
            "attributes": [
                {
                    "id": 5,
                    "name": {
                        "el": "Cum est consequuntur distinctio."
                    }
                },
                {
                    "id": 28,
                    "name": {
                        "el": "Et voluptas deleniti in ipsa."
                    }
                }
            ],
            "images": [
                {
                    "id": 80,
                    "productCodeId": 30,
                    "image": "http://your_site.local/files/products/6tZdCRt15Dx00IgMEAWyBWTl35WtSLtsQIda6cYv.jpg",
                    "main": false,
                    "refCode": "dc2ced9f-ec28-318b-8a49-c15167cbb7e6"
                },
                {
                    "id": 81,
                    "productCodeId": 30,
                    "image": "http://your_site.local/files/products/jl3PoFDxeQiAOR6eRYMi25AO4T476e9t1YLE6ljX.jpg",
                    "main": false,
                    "refCode": "940bfac0-3588-3452-8c81-c91842133c86"
                },
                {
                    "id": 79,
                    "productCodeId": 30,
                    "image": "http://your_site.local/files/products/F6L0L0oXJozOEehTFE0tKHpih2qPzVGuya34xJIk.jpg",
                    "main": true,
                    "refCode": "e7dfbd1e-7786-32ab-b693-d45dd480adf3"
                }
            ]
        }
    ],
    "links": {
        "first": "http://your_site.local/erp/productCode?page=1",
        "last": "http://your_site.local/erp/productCode?page=10",
        "prev": "http://your_site.local/erp/productCode?page=1",
        "next": "http://your_site.local/erp/productCode?page=3"
    },
    "meta": {
        "current_page": 2,
        "from": 16,
        "last_page": 10,
        "links": [
            {
                "url": "http://your_site.local/erp/productCode?page=1",
                "label": "&laquo; Previous",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/productCode?page=1",
                "label": "1",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/productCode?page=2",
                "label": "2",
                "active": true
            },
            {
                "url": "http://your_site.local/erp/productCode?page=3",
                "label": "3",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/productCode?page=4",
                "label": "4",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/productCode?page=5",
                "label": "5",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/productCode?page=6",
                "label": "6",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/productCode?page=7",
                "label": "7",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/productCode?page=8",
                "label": "8",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/productCode?page=9",
                "label": "9",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/productCode?page=10",
                "label": "10",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/productCode?page=3",
                "label": "Next &raquo;",
                "active": false
            }
        ],
        "path": "http://your_site.local/erp/productCode",
        "per_page": 15,
        "to": 30,
        "total": 146
    }
}
 

Request   

GET erp/productCode

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

filter[id]   string  optional  

product code ids to filter. Exact match.

filter[product]   string  optional  

product ids to filter. Exact match. filter[id]=1,2 Example: deleniti

filter[productCode]   string  optional  

product codes to filter. Exact match.

sort   string  optional  

the sorting order. To sort ascending just use the name of the field, to sort descending use - before name. Available sorts are id, product, productCode. Example: sort=product

page   integer  optional  

the requested page of the filtered results. Example: 2

POST erp/productCode

requires authentication

Example request:
curl --request POST \
    "http://api.your_site.ecommercen.com/erp/productCode" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"product\": 1,
    \"productCode\": \"ERP-1202\",
    \"stock\": 3,
    \"active\": true,
    \"attributes\": [
        1,
        4,
        6
    ]
}"
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/productCode"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "product": 1,
    "productCode": "ERP-1202",
    "stock": 3,
    "active": true,
    "attributes": [
        1,
        4,
        6
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'http://api.your_site.ecommercen.com/erp/productCode',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'product' => 1,
            'productCode' => 'ERP-1202',
            'stock' => 3,
            'active' => true,
            'attributes' => [
                1,
                4,
                6,
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/productCode'
payload = {
    "product": 1,
    "productCode": "ERP-1202",
    "stock": 3,
    "active": true,
    "attributes": [
        1,
        4,
        6
    ]
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (422):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 400
x-ratelimit-remaining: 370
access-control-allow-origin: *
 

{
    "message": "The given data was invalid.",
    "errors": {
        "product": [
            "In the field product you must provide a product that can have multiple product codes"
        ],
        "attributes": [
            "The attributes has already been taken.",
            "The combination of the attributes already exists"
        ]
    }
}
 

Request   

POST erp/productCode

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

product   integer   

The product id that product code belongs to. Example: 1

productCode   string   

Any product code of the product that barcode belongs to. Example: ERP-1202

stock   integer   

The stock of the product code. Example: 3

active   boolean  optional  

Check if the product code is active. Example: true

attributes   string[]  optional  

The attribute values id's of the product code.

GET erp/productCode/{id}

requires authentication

Example request:
curl --request GET \
    --get "http://api.your_site.ecommercen.com/erp/productCode/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/productCode/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://api.your_site.ecommercen.com/erp/productCode/1',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/productCode/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 400
x-ratelimit-remaining: 369
access-control-allow-origin: *
 

{
    "data": {
        "id": 1,
        "product": 1,
        "productCode": "1814682453042",
        "stock": 3,
        "softDeleted": true,
        "active": true,
        "attributes": [],
        "images": [
            {
                "id": 2,
                "productCodeId": 1,
                "image": "http://your_site.local/files/products/qd9HRseSQQMkwnvvjWIcGex8n3lYm4AhcQE4zkk5.jpg",
                "main": false,
                "refCode": "a1c3c091-b8f0-3c5c-bb2e-98ba621f9265"
            },
            {
                "id": 3,
                "productCodeId": 1,
                "image": "http://your_site.local/files/products/cBTJCa119cy1UdcZaQF6x5DRLkCWflxI3UmVDy9i.jpg",
                "main": false,
                "refCode": "c7829295-8362-35b7-b0da-bc0332e6262f"
            },
            {
                "id": 1,
                "productCodeId": 1,
                "image": "http://your_site.local/files/products/hl7hhLWG8eyQeYZtJXdGzhEHhKZAraDDvNASKm3A.jpg",
                "main": true,
                "refCode": "9059cc8d-1dba-3e6f-9e29-014d861b7777"
            }
        ]
    }
}
 

Request   

GET erp/productCode/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The product's code id to show. Example: 1

PUT erp/productCode/{id}

requires authentication

Example request:
curl --request PUT \
    "http://api.your_site.ecommercen.com/erp/productCode/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"stock\": 3,
    \"active\": true
}"
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/productCode/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "stock": 3,
    "active": true
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
    'http://api.your_site.ecommercen.com/erp/productCode/1',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'stock' => 3,
            'active' => true,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/productCode/1'
payload = {
    "stock": 3,
    "active": true
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 400
x-ratelimit-remaining: 368
access-control-allow-origin: *
 

{
    "data": {
        "id": 1,
        "product": 1,
        "productCode": "1814682453042",
        "stock": 3,
        "softDeleted": true,
        "active": true,
        "attributes": [],
        "images": [
            {
                "id": 2,
                "productCodeId": 1,
                "image": "http://your_site.local/files/products/qd9HRseSQQMkwnvvjWIcGex8n3lYm4AhcQE4zkk5.jpg",
                "main": false,
                "refCode": "a1c3c091-b8f0-3c5c-bb2e-98ba621f9265"
            },
            {
                "id": 3,
                "productCodeId": 1,
                "image": "http://your_site.local/files/products/cBTJCa119cy1UdcZaQF6x5DRLkCWflxI3UmVDy9i.jpg",
                "main": false,
                "refCode": "c7829295-8362-35b7-b0da-bc0332e6262f"
            },
            {
                "id": 1,
                "productCodeId": 1,
                "image": "http://your_site.local/files/products/hl7hhLWG8eyQeYZtJXdGzhEHhKZAraDDvNASKm3A.jpg",
                "main": true,
                "refCode": "9059cc8d-1dba-3e6f-9e29-014d861b7777"
            }
        ]
    }
}
 

Request   

PUT erp/productCode/{id}

PATCH erp/productCode/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The product's code id to update. Example: 1

Body Parameters

productCode   string  optional  

Any product code of the product that barcode belongs to.

stock   integer  optional  

The stock of the product code. Example: 3

active   boolean  optional  

Check if the product code is active. Example: true

DELETE erp/productCode/{id}

requires authentication

Example request:
curl --request DELETE \
    "http://api.your_site.ecommercen.com/erp/productCode/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/productCode/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'http://api.your_site.ecommercen.com/erp/productCode/1',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/productCode/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 400
x-ratelimit-remaining: 367
access-control-allow-origin: *
 

{
    "message": "Product code with id 1 deleted"
}
 

Request   

DELETE erp/productCode/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The product's code id to delete. Example: 1

Product Code Image

Get image collection

requires authentication

Example request:
curl --request GET \
    --get "http://api.your_site.ecommercen.com/erp/productCode/productCodeImages?sort=productCode&page=2" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/productCode/productCodeImages"
);

const params = {
    "sort": "productCode",
    "page": "2",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://api.your_site.ecommercen.com/erp/productCode/productCodeImages',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'sort' => 'productCode',
            'page' => '2',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/productCode/productCodeImages'
params = {
  'sort': 'productCode',
  'page': '2',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 400
x-ratelimit-remaining: 376
access-control-allow-origin: *
 

{
    "data": [
        {
            "id": 16,
            "productCodeId": 6,
            "image": "http://your_site.local/files/products/qpUtrglI3LooyHvNFjHTeCDzrX1d3yEW75XtgAFW.jpg",
            "main": false,
            "refCode": "49234ec6-6e70-32e9-84d1-db84b0b00ee4"
        },
        {
            "id": 17,
            "productCodeId": 6,
            "image": "http://your_site.local/files/products/pH3ldSfOrx6exq7lJ3bilXFcepAQL6E8PRcDMvzd.jpg",
            "main": false,
            "refCode": "381640d9-a434-3fbf-932f-9a9907ec5ea5"
        },
        {
            "id": 18,
            "productCodeId": 7,
            "image": "http://your_site.local/files/products/YmKKJdvyEeG7USBXNfJnUNjSOXoRRXU9MtFCiZv7.jpg",
            "main": true,
            "refCode": "4b008e42-2bc3-3e77-a4d9-87ebca169f1a"
        },
        {
            "id": 19,
            "productCodeId": 7,
            "image": "http://your_site.local/files/products/O5tM6JN8Evx31pn5eUViKDggYACJgYTARXj18ZLa.jpg",
            "main": false,
            "refCode": "6a1a5802-c663-3ad7-a564-8a982c39957e"
        },
        {
            "id": 20,
            "productCodeId": 7,
            "image": "http://your_site.local/files/products/ETuwCE3E77i3cB3gTJOT78f4bjuUOohyNs8Bvsii.jpg",
            "main": false,
            "refCode": "dc2cd30b-b9d4-3d4c-a65f-a4e28823f98b"
        },
        {
            "id": 21,
            "productCodeId": 8,
            "image": "http://your_site.local/files/products/P38k3r3JNuXidYvG89Zw6TdSNWVS8IgZ48nnYiy5.jpg",
            "main": true,
            "refCode": "ff4dabd3-e8db-3d1e-9f36-c7f59f535c78"
        },
        {
            "id": 22,
            "productCodeId": 8,
            "image": "http://your_site.local/files/products/wGbGuaHC0GoVKHBRquawcasjQ5UCLTlIy2hIeg1Y.jpg",
            "main": false,
            "refCode": "708e5044-18f3-309c-9a72-5371357d6aca"
        },
        {
            "id": 23,
            "productCodeId": 8,
            "image": "http://your_site.local/files/products/hz8RDyB5tgkTUilT6ps8OO0Onv19ONtYtAQrwSu4.jpg",
            "main": false,
            "refCode": "d4e94ee8-f531-3d37-98c8-498e1926ab44"
        },
        {
            "id": 24,
            "productCodeId": 8,
            "image": "http://your_site.local/files/products/7sqUFLwQypsSTJZdJzUE52JOassup8i2R46lnzwu.jpg",
            "main": false,
            "refCode": "1e302142-7520-341e-b041-b38b55e603f8"
        },
        {
            "id": 25,
            "productCodeId": 9,
            "image": "http://your_site.local/files/products/PKsfpoZD0chORcbQvD8euzF5Vh0Zeu5Nt29jvduP.jpg",
            "main": true,
            "refCode": "dcbe2db1-cddb-3797-829c-08e242870dac"
        },
        {
            "id": 26,
            "productCodeId": 10,
            "image": "http://your_site.local/files/products/0LmCL3ArKX1nwBX10jTq92NpPAM03nTayYoSKFkL.jpg",
            "main": true,
            "refCode": "eeb964a9-8bc5-3ef5-9f34-ee01452f9569"
        },
        {
            "id": 27,
            "productCodeId": 10,
            "image": "http://your_site.local/files/products/5jGguRPveodY3EaWTuMJdW8CkcwSrPVDSdiI9o7K.jpg",
            "main": false,
            "refCode": "50a29f79-b108-3ed8-b279-1263c1d2ebf3"
        },
        {
            "id": 28,
            "productCodeId": 10,
            "image": "http://your_site.local/files/products/ZMqVZMDcEuYOTbeU9Q4sCg3EAs96UX00Vanfqd6Y.jpg",
            "main": false,
            "refCode": "7985440e-1006-3409-a5ed-14bdffe6c88f"
        },
        {
            "id": 29,
            "productCodeId": 10,
            "image": "http://your_site.local/files/products/436NIgSFq1NfJIXsWd4A3NnbTqCjUFIfYlyUBg8m.jpg",
            "main": false,
            "refCode": "b7b33409-d521-3b98-8c86-d2802baa5585"
        },
        {
            "id": 30,
            "productCodeId": 11,
            "image": "http://your_site.local/files/products/wU40d1QwCpzVX7nOmIPubUMmIyGTOAXTsv0KIQtr.jpg",
            "main": true,
            "refCode": "c84338e1-ecda-3aa7-b39c-5389f88f02e6"
        }
    ],
    "links": {
        "first": "http://your_site.local/erp/productCode/productCodeImages?page=1",
        "last": "http://your_site.local/erp/productCode/productCodeImages?page=25",
        "prev": "http://your_site.local/erp/productCode/productCodeImages?page=1",
        "next": "http://your_site.local/erp/productCode/productCodeImages?page=3"
    },
    "meta": {
        "current_page": 2,
        "from": 16,
        "last_page": 25,
        "links": [
            {
                "url": "http://your_site.local/erp/productCode/productCodeImages?page=1",
                "label": "&laquo; Previous",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/productCode/productCodeImages?page=1",
                "label": "1",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/productCode/productCodeImages?page=2",
                "label": "2",
                "active": true
            },
            {
                "url": "http://your_site.local/erp/productCode/productCodeImages?page=3",
                "label": "3",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/productCode/productCodeImages?page=4",
                "label": "4",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/productCode/productCodeImages?page=5",
                "label": "5",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/productCode/productCodeImages?page=6",
                "label": "6",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/productCode/productCodeImages?page=7",
                "label": "7",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/productCode/productCodeImages?page=8",
                "label": "8",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/productCode/productCodeImages?page=9",
                "label": "9",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/productCode/productCodeImages?page=10",
                "label": "10",
                "active": false
            },
            {
                "url": null,
                "label": "...",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/productCode/productCodeImages?page=24",
                "label": "24",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/productCode/productCodeImages?page=25",
                "label": "25",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/productCode/productCodeImages?page=3",
                "label": "Next &raquo;",
                "active": false
            }
        ],
        "path": "http://your_site.local/erp/productCode/productCodeImages",
        "per_page": 15,
        "to": 30,
        "total": 371
    }
}
 

Request   

GET erp/productCode/productCodeImages

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

filter[id]   string  optional  

product image ids to filter. Exact match.

filter[productCode]   string  optional  

productCodeIds to filter. Exact match.

filter[product]   string  optional  

product ids to filter. Exact match.

filter[refCode]   string  optional  

reference codes to filter. Exact match.

sort   string  optional  

the sorting order. To sort ascending just use the name of the field, to sort descending use - before name. Available sorts are id, productCode, product. Example: productCode

page   integer  optional  

the requested page of the filtered results. Example: 2

Store Image

requires authentication

Example request:
curl --request POST \
    "http://api.your_site.ecommercen.com/erp/productCode/productCodeImages" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"productCodeId\": 1,
    \"image\": \"https:\\/\\/bitbucket.org\\/devteamadvisable\\/assets\\/raw\\/0a1100b7126045e233c8bdb0bf0c24336ef0209e\\/api\\/images\\/no_photo.jpg\",
    \"main\": true
}"
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/productCode/productCodeImages"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "productCodeId": 1,
    "image": "https:\/\/bitbucket.org\/devteamadvisable\/assets\/raw\/0a1100b7126045e233c8bdb0bf0c24336ef0209e\/api\/images\/no_photo.jpg",
    "main": true
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'http://api.your_site.ecommercen.com/erp/productCode/productCodeImages',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'productCodeId' => 1,
            'image' => 'https://bitbucket.org/devteamadvisable/assets/raw/0a1100b7126045e233c8bdb0bf0c24336ef0209e/api/images/no_photo.jpg',
            'main' => true,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/productCode/productCodeImages'
payload = {
    "productCodeId": 1,
    "image": "https:\/\/bitbucket.org\/devteamadvisable\/assets\/raw\/0a1100b7126045e233c8bdb0bf0c24336ef0209e\/api\/images\/no_photo.jpg",
    "main": true
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (201):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 400
x-ratelimit-remaining: 375
access-control-allow-origin: *
 

{
    "data": {
        "id": 372,
        "productCodeId": 1,
        "image": "http://your_site.local/files/products/7wKVGySiWBuwiJSp4yZZEEMEw4bpv7K2AdCGNXCX.jpg",
        "main": true,
        "refCode": "4b58864d-7bb5-4e22-b616-d9ca417f5ef0"
    }
}
 

Request   

POST erp/productCode/productCodeImages

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

productCodeId   integer  optional  

The productCodeId. Example: 1

image   string   

The image url. Example: https://bitbucket.org/devteamadvisable/assets/raw/0a1100b7126045e233c8bdb0bf0c24336ef0209e/api/images/no_photo.jpg

main   boolean  optional  

If it is the main product code image. Example: true

refCode   string  optional  

Any identifier for the asset Auto generated if omitted.

Get Image Resource

requires authentication

Example request:
curl --request GET \
    --get "http://api.your_site.ecommercen.com/erp/productCode/productCodeImages/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/productCode/productCodeImages/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://api.your_site.ecommercen.com/erp/productCode/productCodeImages/1',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/productCode/productCodeImages/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 400
x-ratelimit-remaining: 374
access-control-allow-origin: *
 

{
    "data": {
        "id": 1,
        "productCodeId": 1,
        "image": "http://your_site.local/files/products/hl7hhLWG8eyQeYZtJXdGzhEHhKZAraDDvNASKm3A.jpg",
        "main": true,
        "refCode": "9059cc8d-1dba-3e6f-9e29-014d861b7777"
    }
}
 

Request   

GET erp/productCode/productCodeImages/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   string   

The product image id. Example: 1

Update Image

requires authentication

Example request:
curl --request PUT \
    "http://api.your_site.ecommercen.com/erp/productCode/productCodeImages/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"image\": \"https:\\/\\/bitbucket.org\\/devteamadvisable\\/assets\\/raw\\/0a1100b7126045e233c8bdb0bf0c24336ef0209e\\/api\\/images\\/no_photo.jpg\",
    \"main\": true
}"
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/productCode/productCodeImages/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "image": "https:\/\/bitbucket.org\/devteamadvisable\/assets\/raw\/0a1100b7126045e233c8bdb0bf0c24336ef0209e\/api\/images\/no_photo.jpg",
    "main": true
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
    'http://api.your_site.ecommercen.com/erp/productCode/productCodeImages/1',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'image' => 'https://bitbucket.org/devteamadvisable/assets/raw/0a1100b7126045e233c8bdb0bf0c24336ef0209e/api/images/no_photo.jpg',
            'main' => true,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/productCode/productCodeImages/1'
payload = {
    "image": "https:\/\/bitbucket.org\/devteamadvisable\/assets\/raw\/0a1100b7126045e233c8bdb0bf0c24336ef0209e\/api\/images\/no_photo.jpg",
    "main": true
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 400
x-ratelimit-remaining: 373
access-control-allow-origin: *
 

{
    "data": {
        "id": 1,
        "productCodeId": 1,
        "image": "http://your_site.local/files/products/qK23rcdbPxiGxToaplFq2aDOUgUv5lu6xwZZUBnr.jpg",
        "main": true,
        "refCode": "9059cc8d-1dba-3e6f-9e29-014d861b7777"
    }
}
 

Request   

PUT erp/productCode/productCodeImages/{id}

PATCH erp/productCode/productCodeImages/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer  optional  

Image id Example: 1

Body Parameters

image   string  optional  

The image url. Example: https://bitbucket.org/devteamadvisable/assets/raw/0a1100b7126045e233c8bdb0bf0c24336ef0209e/api/images/no_photo.jpg

main   boolean  optional  

If it is the main product code image. Example: true

refCode   string  optional  

Any identifier for the asset.

Delete image

requires authentication

Example request:
curl --request DELETE \
    "http://api.your_site.ecommercen.com/erp/productCode/productCodeImages/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/productCode/productCodeImages/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'http://api.your_site.ecommercen.com/erp/productCode/productCodeImages/1',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/productCode/productCodeImages/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 400
x-ratelimit-remaining: 372
access-control-allow-origin: *
 

{
    "message": "Product code image with id 1 deleted"
}
 

Request   

DELETE erp/productCode/productCodeImages/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The image id Example: 1

Transporters

GET erp/transporters

requires authentication

Example request:
curl --request GET \
    --get "http://api.your_site.ecommercen.com/erp/transporters" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/transporters"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://api.your_site.ecommercen.com/erp/transporters',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/transporters'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 400
x-ratelimit-remaining: 351
access-control-allow-origin: *
 

{
    "data": [
        {
            "id": 2,
            "slug": "ACS"
        },
        {
            "id": 3,
            "slug": "ACS"
        },
        {
            "id": 5,
            "slug": "ELTA"
        },
        {
            "id": 4,
            "slug": "FIS"
        },
        {
            "id": 1,
            "slug": "GT"
        }
    ]
}
 

Request   

GET erp/transporters

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Vat

GET erp/vat

requires authentication

Example request:
curl --request GET \
    --get "http://api.your_site.ecommercen.com/erp/vat" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/vat"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://api.your_site.ecommercen.com/erp/vat',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/vat'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 400
x-ratelimit-remaining: 366
access-control-allow-origin: *
 

{
    "data": [
        {
            "id": 1,
            "value": 0
        },
        {
            "id": 2,
            "value": 6
        },
        {
            "id": 3,
            "value": 13
        },
        {
            "id": 4,
            "value": 24
        }
    ]
}
 

Request   

GET erp/vat

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

POST erp/vat

requires authentication

Example request:
curl --request POST \
    "http://api.your_site.ecommercen.com/erp/vat" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"value\": 13
}"
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/vat"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "value": 13
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'http://api.your_site.ecommercen.com/erp/vat',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'value' => 13.0,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/vat'
payload = {
    "value": 13
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (201):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 400
x-ratelimit-remaining: 365
access-control-allow-origin: *
 

{
    "data": {
        "id": 5,
        "value": 13
    }
}
 

Request   

POST erp/vat

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

value   number   

The value of the vat with 2 decimal digits. Example: 13

GET erp/vat/{id}

requires authentication

Example request:
curl --request GET \
    --get "http://api.your_site.ecommercen.com/erp/vat/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/vat/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://api.your_site.ecommercen.com/erp/vat/1',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/vat/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 400
x-ratelimit-remaining: 364
access-control-allow-origin: *
 

{
    "data": {
        "id": 1,
        "value": 0
    }
}
 

Request   

GET erp/vat/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The id of the vat. Example: 1

PUT erp/vat/{id}

requires authentication

Example request:
curl --request PUT \
    "http://api.your_site.ecommercen.com/erp/vat/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"value\": 13
}"
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/vat/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "value": 13
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
    'http://api.your_site.ecommercen.com/erp/vat/1',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'value' => 13.0,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/vat/1'
payload = {
    "value": 13
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 400
x-ratelimit-remaining: 363
access-control-allow-origin: *
 

{
    "data": {
        "id": 1,
        "value": 13
    }
}
 

Request   

PUT erp/vat/{id}

PATCH erp/vat/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The id of the vat. Example: 1

Body Parameters

value   number   

The value of the vat with 2 decimal digits. Example: 13

DELETE erp/vat/{id}

requires authentication

Example request:
curl --request DELETE \
    "http://api.your_site.ecommercen.com/erp/vat/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/vat/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'http://api.your_site.ecommercen.com/erp/vat/1',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/vat/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 400
x-ratelimit-remaining: 362
access-control-allow-origin: *
 

{
    "message": "Vat with id 1 deleted"
}
 

Request   

DELETE erp/vat/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The id of the vat. Example: 1

Vendor

GET erp/vendor

requires authentication

Example request:
curl --request GET \
    --get "http://api.your_site.ecommercen.com/erp/vendor?sort=name.slug&page=2" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/vendor"
);

const params = {
    "sort": "name.slug",
    "page": "2",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://api.your_site.ecommercen.com/erp/vendor',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'sort' => 'name.slug',
            'page' => '2',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/vendor'
params = {
  'sort': 'name.slug',
  'page': '2',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 400
x-ratelimit-remaining: 361
access-control-allow-origin: *
 

{
    "data": [
        {
            "id": 16,
            "logo": "http://your_site.local/files/vendors/et6kwaK9u8Y9RGB3oUOkbWwLZmRUGSB0z1KEWjvd.jpg",
            "refCode": "fc26a8c5-fb62-31b9-848f-df5abf962ffe",
            "name": {
                "el": "eos consequatur"
            },
            "slug": {
                "el": "atque-qui-voluptatem-quibusdam-modi-et-ea-quod"
            }
        },
        {
            "id": 17,
            "logo": "http://your_site.local/files/vendors/UvlFJUEBXD49TIZJJNRsvAHoKw95ZowNh8M2j9Fy.jpg",
            "refCode": "d3e66b56-7c0a-3581-a65f-9ed69e4873a3",
            "name": {
                "el": "rem quia"
            },
            "slug": {
                "el": "dolores-placeat-non-iste-accusantium-aspernatur"
            }
        },
        {
            "id": 18,
            "logo": "http://your_site.local/files/vendors/IJ1st1gTmdvY55rKUCZrb7vU60N1Xuwn6Aoa7mmy.jpg",
            "refCode": "54a955df-11b3-3e78-8cae-119cc05bf65a",
            "name": {
                "el": "exercitationem a"
            },
            "slug": {
                "el": "eius-non-quasi-nemo-voluptates"
            }
        },
        {
            "id": 19,
            "logo": "http://your_site.local/files/vendors/GmkHOcTTLcxZRFcNFC8X5NQfLigVdmDjcMa6LCZ1.jpg",
            "refCode": "d52e0107-0018-37ec-820a-584bdb908bf6",
            "name": {
                "el": "quis rem"
            },
            "slug": {
                "el": "tempora-et-non-aspernatur-quia-qui"
            }
        },
        {
            "id": 20,
            "logo": "http://your_site.local/files/vendors/9hjqt7OJSUx5rypTb7pLFAZ5DjriywfRYQ0dIehA.jpg",
            "refCode": "6cad462e-955f-3f23-a99a-74a821d9ec70",
            "name": {
                "el": "optio possimus"
            },
            "slug": {
                "el": "aut-voluptate-nesciunt-aut-doloremque-nulla-nobis"
            }
        },
        {
            "id": 21,
            "logo": "http://your_site.local/files/vendors/NLupmh7UC7qIhULlnwiPXoYc2tj52ugjHgxzYSHx.jpg",
            "refCode": "37f43deb-858c-313c-93df-b1462a07c719",
            "name": {
                "el": "nihil perspiciatis"
            },
            "slug": {
                "el": "dolore-aut-aut-modi"
            }
        },
        {
            "id": 22,
            "logo": "http://your_site.local/files/vendors/QJpdDsJC0FDnYg8nkw0gVigP6UIRyRM1TOpXZ2lB.jpg",
            "refCode": "3bd4e1ac-2582-3f6e-8b83-f970d33d4612",
            "name": {
                "el": "vel minima"
            },
            "slug": {
                "el": "dolorem-excepturi-saepe-ut-porro"
            }
        },
        {
            "id": 23,
            "logo": "http://your_site.local/files/vendors/gKdEAcgOCFv5pRtsJU9FJqzBPurxSOnOMh5as50a.jpg",
            "refCode": "5bf22586-ec9c-3611-b1e3-d5c134f2b88a",
            "name": {
                "el": "dolores officiis"
            },
            "slug": {
                "el": "quia-provident-fugiat-exercitationem-esse-molestiae"
            }
        },
        {
            "id": 24,
            "logo": "http://your_site.local/files/vendors/G3mgdaHK3ppOLLGgneuPRnDGnbEjAaz825PSiVc1.jpg",
            "refCode": "3994158e-355a-3187-a8dc-445746b245f0",
            "name": {
                "el": "ut nesciunt"
            },
            "slug": {
                "el": "pariatur-maiores-earum-architecto"
            }
        },
        {
            "id": 25,
            "logo": "http://your_site.local/files/vendors/7KN1odnZwBMqk8yS92d46C2iN7wXlUCJlgRL6KB5.jpg",
            "refCode": "7f1abbef-5e39-37e7-b085-db6203abcb1e",
            "name": {
                "el": "pariatur reprehenderit"
            },
            "slug": {
                "el": "est-qui-praesentium-voluptatem-quod-temporibus-quam-pariatur"
            }
        },
        {
            "id": 26,
            "logo": "http://your_site.local/files/vendors/hPNwsXIs7VMUbVnogR6OI9gRD8DSTYioAumLAWAl.jpg",
            "refCode": "d22f3c42-8c68-3ccc-bbb1-336b582fee75",
            "name": {
                "el": "quo modi"
            },
            "slug": {
                "el": "non-mollitia-perferendis-magnam-reprehenderit-enim-ratione"
            }
        },
        {
            "id": 27,
            "logo": "http://your_site.local/files/vendors/6bGTLloGyBsYvgJG4PXywTAldOx1rbGr1pF4t1JL.jpg",
            "refCode": "7e8b109d-417f-3702-a5a9-05f55043a391",
            "name": {
                "el": "magnam repudiandae"
            },
            "slug": {
                "el": "accusamus-dicta-exercitationem-odio"
            }
        },
        {
            "id": 28,
            "logo": "http://your_site.local/files/vendors/9GkP01HutR41u2a2okOnvvg3YeAVObXoe5akIsME.jpg",
            "refCode": "ce886edf-7502-3472-8c43-9ce83eabd06d",
            "name": {
                "el": "est voluptatem"
            },
            "slug": {
                "el": "quis-amet-sint-exercitationem-quidem-eum"
            }
        },
        {
            "id": 29,
            "logo": "http://your_site.local/files/vendors/Ao0xsZO97UHhGD2KFAV1jzHjy38pWFkoLsgjUQxT.jpg",
            "refCode": "8b7b86c8-9326-38b0-bec4-b45d2988d759",
            "name": {
                "el": "eius aut"
            },
            "slug": {
                "el": "porro-qui-voluptatem-quia-ea-et"
            }
        },
        {
            "id": 30,
            "logo": "http://your_site.local/files/vendors/o70jseCDFHVorOibNJA7PwF3WtTyJJM11t35l5Q2.jpg",
            "refCode": "fa0fc2b2-83c3-370f-b603-db53593cf824",
            "name": {
                "el": "voluptatem repudiandae"
            },
            "slug": {
                "el": "autem-nam-porro-sit-rerum-libero-debitis"
            }
        }
    ],
    "links": {
        "first": "http://your_site.local/erp/vendor?page=1",
        "last": "http://your_site.local/erp/vendor?page=2",
        "prev": "http://your_site.local/erp/vendor?page=1",
        "next": null
    },
    "meta": {
        "current_page": 2,
        "from": 16,
        "last_page": 2,
        "links": [
            {
                "url": "http://your_site.local/erp/vendor?page=1",
                "label": "&laquo; Previous",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/vendor?page=1",
                "label": "1",
                "active": false
            },
            {
                "url": "http://your_site.local/erp/vendor?page=2",
                "label": "2",
                "active": true
            },
            {
                "url": null,
                "label": "Next &raquo;",
                "active": false
            }
        ],
        "path": "http://your_site.local/erp/vendor",
        "per_page": 15,
        "to": 30,
        "total": 30
    }
}
 

Request   

GET erp/vendor

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

filter[id]   string  optional  

vendor ids to filter. Exact match.

filter[refCode]   string  optional  

Reference code. Exact match.

filter[slug.el]   string  optional  

Vendor slugs to filter. Exact match.

filter[name.el]   string  optional  

Vendor names to filter. Partial match.

sort   string  optional  

the sorting order. To sort ascending just use the name of the field, to sort descending use - before name. Available sorts are id, name., slug.. Example: name.slug

page   integer  optional  

the requested page of the filtered results. Example: 2

POST erp/vendor

requires authentication

Example request:
curl --request POST \
    "http://api.your_site.ecommercen.com/erp/vendor" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"logo\": \"https:\\/\\/bitbucket.org\\/devteamadvisable\\/assets\\/raw\\/0a1100b7126045e233c8bdb0bf0c24336ef0209e\\/api\\/images\\/no_photo.jpg\",
    \"name\": {
        \"el\": \"sed voluptatum\"
    }
}"
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/vendor"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "logo": "https:\/\/bitbucket.org\/devteamadvisable\/assets\/raw\/0a1100b7126045e233c8bdb0bf0c24336ef0209e\/api\/images\/no_photo.jpg",
    "name": {
        "el": "sed voluptatum"
    }
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'http://api.your_site.ecommercen.com/erp/vendor',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'logo' => 'https://bitbucket.org/devteamadvisable/assets/raw/0a1100b7126045e233c8bdb0bf0c24336ef0209e/api/images/no_photo.jpg',
            'name' => [
                'el' => 'sed voluptatum',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/vendor'
payload = {
    "logo": "https:\/\/bitbucket.org\/devteamadvisable\/assets\/raw\/0a1100b7126045e233c8bdb0bf0c24336ef0209e\/api\/images\/no_photo.jpg",
    "name": {
        "el": "sed voluptatum"
    }
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (201):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 400
x-ratelimit-remaining: 360
access-control-allow-origin: *
 

{
    "data": {
        "id": 31,
        "logo": "http://your_site.local/files/vendors/JI3LY1HEQmMKCS3ar0cm7qhA0CRRXvh9G21wtQNd.jpg",
        "refCode": null,
        "name": {
            "el": "sed voluptatum"
        },
        "slug": {
            "el": "sed-voluptatum"
        }
    }
}
 

Request   

POST erp/vendor

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

logo   string   

The image url of the vendor's logo. Example: https://bitbucket.org/devteamadvisable/assets/raw/0a1100b7126045e233c8bdb0bf0c24336ef0209e/api/images/no_photo.jpg

name   object   
el   string  optional  

The name of the vendor. Example: sed voluptatum

slug   object.  optional  
el   string   

The slug of the vendor If you do not provide one the server creates from the name.

refCode   string  optional  

optional Vendor unique identifier for erp.

GET erp/vendor/{id}

requires authentication

Example request:
curl --request GET \
    --get "http://api.your_site.ecommercen.com/erp/vendor/4" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/vendor/4"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://api.your_site.ecommercen.com/erp/vendor/4',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/vendor/4'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 400
x-ratelimit-remaining: 359
access-control-allow-origin: *
 

{
    "data": {
        "id": 4,
        "logo": "http://your_site.local/files/vendors/f2eEj2KTst6fFZstl6mFb6JpDGUT38fdlpclkpRk.jpg",
        "refCode": "a0ae7699-1ee6-3181-9bde-59ee489e41de",
        "name": {
            "el": "dolore voluptate"
        },
        "slug": {
            "el": "aspernatur-blanditiis-ut-aut-distinctio-expedita-eum-similique"
        }
    }
}
 

Request   

GET erp/vendor/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   string   

integer The id of the vendor. Example: 4

PUT erp/vendor/{id}

requires authentication

Example request:
curl --request PUT \
    "http://api.your_site.ecommercen.com/erp/vendor/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"logo\": \"https:\\/\\/bitbucket.org\\/devteamadvisable\\/assets\\/raw\\/0a1100b7126045e233c8bdb0bf0c24336ef0209e\\/api\\/images\\/no_photo.jpg\",
    \"name\": {
        \"el\": \"sed voluptatum\"
    }
}"
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/vendor/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "logo": "https:\/\/bitbucket.org\/devteamadvisable\/assets\/raw\/0a1100b7126045e233c8bdb0bf0c24336ef0209e\/api\/images\/no_photo.jpg",
    "name": {
        "el": "sed voluptatum"
    }
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
    'http://api.your_site.ecommercen.com/erp/vendor/1',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'logo' => 'https://bitbucket.org/devteamadvisable/assets/raw/0a1100b7126045e233c8bdb0bf0c24336ef0209e/api/images/no_photo.jpg',
            'name' => [
                'el' => 'sed voluptatum',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/vendor/1'
payload = {
    "logo": "https:\/\/bitbucket.org\/devteamadvisable\/assets\/raw\/0a1100b7126045e233c8bdb0bf0c24336ef0209e\/api\/images\/no_photo.jpg",
    "name": {
        "el": "sed voluptatum"
    }
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 400
x-ratelimit-remaining: 358
access-control-allow-origin: *
 

{
    "data": {
        "id": 1,
        "logo": "http://your_site.local/files/vendors/kysTqMaY19KP7xBPDEpMxgKw0TRMhr8rHKajkQXF.jpg",
        "refCode": "5202b06a-42a7-3f74-a07b-50eb0a1e12fe",
        "name": {
            "el": "sed voluptatum"
        },
        "slug": {
            "el": "minima-aut-praesentium-inventore-occaecati-eius-enim"
        }
    }
}
 

Request   

PUT erp/vendor/{id}

PATCH erp/vendor/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The id of the vendor. Example: 1

Body Parameters

logo   string  optional  

The image path of the vendor's logo. Example: https://bitbucket.org/devteamadvisable/assets/raw/0a1100b7126045e233c8bdb0bf0c24336ef0209e/api/images/no_photo.jpg

name   object   
el   string  optional  

The name of the vendor. Example: sed voluptatum

slug   object.  optional  
el   string  optional  

The slug of the vendor This mast be unique. \

DELETE erp/vendor/{id}

requires authentication

Example request:
curl --request DELETE \
    "http://api.your_site.ecommercen.com/erp/vendor/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://api.your_site.ecommercen.com/erp/vendor/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'http://api.your_site.ecommercen.com/erp/vendor/1',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://api.your_site.ecommercen.com/erp/vendor/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 400
x-ratelimit-remaining: 357
access-control-allow-origin: *
 

{
    "message": "Vendor with id 1 deleted"
}
 

Request   

DELETE erp/vendor/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The id of the vendor. Example: 1