[base url: https://api.apecauto.com]

APEC API represents a REST service for auto parts quotation, placing orders and receiving a feed back.

Authorization token

You need to be authorized to work with this service by being logged in with your personal login/password (then you will have in return a Bearer token, which is to be transferred to HTTP header of called request method.

Alternate Text
Postman

In order to use the API functions you may download the file (or to input the link) in Postman.

The manual: in Postman program you may need to press File → Import

Collection v2.1

Options

  • Various code snippet for PL (programming languages)
  • Wright indications: params, authorization, headers, body...

Get a token#

POST https://api.apecauto.com/token

How to get Bearer token for authorization.

Request parameters#

Parameter Data type Request method Description
username* string (body) Username
password* string (body) Password
grant_type* string (body) grant_type = password

Response parameters#

Parameter Data type Description
access_token string Authorization token
token_type string Token type
expires_in integer Token lifetime (sec)

Examples#

Request examples#

cURL
Python - Requests
C# - RestCharp
PHP - cURL
Test Method
curl --location --request POST 'https://api.apecauto.com/token' \
--header 'Content-Type: text/plain' \
--data-raw 'username=test&password=test&grant_type=password'
import requests

url = "https://api.apecauto.com/token"

payload = "username=test&password=test&grant_type=password"
headers = {
  'Content-Type': 'text/plain'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)
var client = new RestClient("https://api.apecauto.com/token");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "text/plain");
var body = @"username=test&password=test&grant_type=password";
request.AddParameter("text/plain", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.apecauto.com/token',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'username=test&password=test&grant_type=password',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: text/plain'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

                    

Response example#

{
    "access_token": "Xdc5LWL4PTDdYzrKMenu_rt1aErVcj__nzxf-bt1FKy1DAdkdsF8wH3NlvqDBEzE0soFBC9b-pAB3RAnsBE3MrTeDTOK6FcKWzzp9e8xihv7vEIIGOvKQ1TbXsW7m1wAxq1NEN0ybheo",
    "token_type": "bearer",
    "expires_in": 1209599
}

Spare parts pricing#

POST https://api.apecauto.com/api/search

As input is a list of items for quotation (Items + Brand) and ID of delivery way (for example EXW Dubai, Air Moscow), output is the list of quoted items (if all fields except ReqPN, ReqBrand and SupplierID are filled null-values it means, that requested item is not found). Maximum quantity of items for one quotation = 1000 lines!

For authorization the transfer of HTTP header 'Authorization: Bearer %YOUR AUTHORIZATION TOKEN%' is needed

For receiving of ID of delivery term, check the method /api/getdeliverypoints

Also in the current way the transfer of HTTP header 'Content-Type: application/json' is needed

Request parameters#

Parameter Data type Request method Description
PartRequest* array[] (body) List of items for pricing
deliveryPointID* integer (query) Shipping method ID

PartRequest#

Parameter Data type Request method Description
PartNumber* string (body) Part number
Brand* string (body) Brand

Response parameters#

Array[]

Parameter Data type Description
ReqPN string Requested part
ReqBrand string Requested brand
MinOrderQty integer Minimum order quantity
Price number Price
DeliveryDays integer Delivery time
Qty integer Quantity available for order at supplier's warehouse (0 - available at own stock)
PartDescription string Part description
WeightPhysical number Phys. weight, kg
WeightVolume number Volume weight, kg
Brand string Brand
PartNumber string Part number
SupplierID integer Supplier code

Examples#

Request examples#

cURL
Python - Requests
C# - RestCharp
PHP - cURL
curl --location --request POST 'https://api.apecauto.com/api/search' \
--header 'Authorization: Bearer IomMbXq8W5JkAJOo3zZOEndNGooDh0yeq81Xdc5LWL4PTDdYzrKMenu_rt1aErVcj__nzxf-bt1FKy1DAdkdsF8wH3NlvqDBEzE0soFBC9b-pAB3RAnsBE3MrTeDTOK6FcKWzzp9e8xihv7vEIIGOvKQ1TbXsW7m1wAxq1NEN0ybheo' \
--header 'Content-Type: application/json' \
--data-raw '[
  {
    "PartNumber": "ik16",
    "Brand": "denso"
  },
  {
    "PartNumber": "1010",
    "Brand": "denso"
  }
]'
import requests
import json

url = "https://api.apecauto.com/api/search"

payload = json.dumps([
  {
    "PartNumber": "ik16",
    "Brand": "denso"
  },
  {
    "PartNumber": "1010",
    "Brand": "denso"
  }
])
headers = {
  'Authorization': 'Bearer oDh0yeq81Xdc5LWL4PTDdYzrKMenu_rt1aErVcj__nzxf-bt1FKy1DAdkdsF8wH3NlvqDBEzE0soFBC9b-pAB3RAnsBE3MrTeDTOK6FcKWzzp9e8xihv7vEIIGOvKQ1TbXsW7m1wAxq1NEN0ybheo',
  'Content-Type': 'application/json'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)
var client = new RestClient("https://api.apecauto.com/api/search?deliveryPointID=2");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer 48oHTM9kKVDHOkbTZyntVWAUaQHAZc_CadbhKtPNwMtzkPFz_gDEWdyxTEnxxX-k35HpsFn0LgyD0SBW_vtQcoT3fFGJCq3XyAJSvM904Dz-9AaCCPfK8aX_CNxsd6tdEA");
request.AddHeader("Content-Type", "application/json");
var body = @"[
" + "\n" +
@"  {
" + "\n" +
@"    ""PartNumber"": ""ik16"",
" + "\n" +
@"    ""Brand"": ""denso""
" + "\n" +
@"  },
" + "\n" +
@"  {
" + "\n" +
@"    ""PartNumber"": ""1010"",
" + "\n" +
@"    ""Brand"": ""denso""
" + "\n" +
@"  }
" + "\n" +
@"]";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.apecauto.com/api/search?deliveryPointID=2',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'[
  {
    "PartNumber": "ik16",
    "Brand": "denso"
  },
  {
    "PartNumber": "1010",
    "Brand": "denso"
  }
]',
  CURLOPT_HTTPHEADER => array(
    'Authorization: Bearer 48oHTM9kKVDHOkbTZyntVWAUaQHAZc_CadbhKtPNwMtzkPFz_gDEWdyxTEnxxX-k35HpsFn0LgyD0SBW_vtQcoT3fFGJCq3XyAJSvM904Dz-9AaCCPfK8aX_CNxsd6tdEA',
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

Response example#

[
    {
        "ReqPN": "ik16",
        "ReqBrand": "denso",
        "MinOrderQty": 1,
        "Price": 5.4000,
        "DeliveryDays": 31,
        "Qty": 25,
        "PartDescription": "SPARK PLUG",
        "WeightPhysical": 0.057,
        "WeightVolume": 0.010,
        "Brand": "DENSO",
        "PartNumber": "IK16",
        "SupplierID": 9553
    },
    {
        "ReqPN": "ik16",
        "ReqBrand": "denso",
        "MinOrderQty": 1,
        "Price": 7.6600,
        "DeliveryDays": 13,
        "Qty": 629,
        "PartDescription": "SPARK PLUG",
        "WeightPhysical": 0.057,
        "WeightVolume": 0.010,
        "Brand": "DENSO",
        "PartNumber": "IK16",
        "SupplierID": 9064
    }
]

Get a list of brands by article#

GET https://api.apecauto.com/api/search/{pn}/brands

You will have output of the brands that are available (at own stock or transit stocks of other suppliers).

For authorization the transfer of HTTP header 'Authorization: Bearer %YOUR AUTHORIZATION TOKEN%' is needed

For receiving of ID of delivery term, check the method /api/getdeliverypoints

Request parameters#

Parameter Data type Request method Description
pn* string (path) Part number
deliveryPointID integer (query) Shipping method ID
analogues boolean (query)

Search analogues:

false - search without analogues (default value).

true - search with analogues.

Response parameters#

Array[]

Parameter Data type Description
Brand string Brand
Description string Part description

Examples#

Request examples#

cURL
Python - Requests
C# - RestCharp
PHP - cURL
curl --location --request GET 'https://api.apecauto.com/api/search/1010/brands?analogues=true' \
--header 'Authorization: Bearer WBE3MrTeDTOK6FcKWzzp9e8xihv7vEIIGOvKQ1TbXsW7m1wAxq1NEN0ybheo'
import requests

url = "https://api.apecauto.com/api/search/1010/brands?analogues=true"

payload={}
headers = {
  'Authorization': 'Bearer WfbezHVcj__nzxf-bt1FKy1DAdkdsF8wH3NlvqDBEzE0soFBC9b-pAB3RAnsBE3MrTeDTOK6FcKWzzp9e8xihv7vEIIGOvKQ1TbXsW7m1wAxq1NEN0ybheo'
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)
var client = new RestClient("https://api.apecauto.com/api/search/ik16/brands?deliveryPointID=1&analogues=true");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer 48oHTM9kKVDHOkbTZyntVWAUaQHAZc_CadbhKtPNwMtzkPFz_gDEWdyxTEnxxX-k35HpsFn0LgyD0SBW_vtQcoT3fFGJCq3XyAJSvM904Dz-9AaCCPfK8aX_CNxsd6tdEA");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.apecauto.com/api/search/ik16/brands?deliveryPointID=1&analogues=true',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    'Authorization: Bearer 48oHTM9kKVDHOkbTZyntVWAUaQHAZc_CadbhKtPNwMtzkPFz_gDEWdyxTEnxxX-k35HpsFn0LgyD0SBW_vtQcoT3fFGJCq3XyAJSvM904Dz-9AaCCPfK8aX_CNxsd6tdEA'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

If alternative brands items are not required, the parameter analogues may be not indicated

Response example#

[
    {
        "Brand": "ABS",
        "Description": "Sparepart"
    },
    {
        "Brand": "FEBI",
        "Description": "Sparepart"
    }
]

Get parts list#

GET https://api.apecauto.com/api/search/{pn}/brand/{brand}

Method allows to receive the list of items as per transferred parameters: Item +Brand + if analogues are needed

For authorization the transfer of HTTP header 'Authorization: Bearer %YOUR AUTHORIZATION TOKEN%' is needed

For receiving of ID of delivery term, check the method /api/getdeliverypoints

Request parameters#

Parameter Data type Request method Description
pn* string (path) Part number
brand * string (path) Brand
deliveryPointID integer (query) Shipping method ID
analogues boolean (query)

Search analogues:

false - search without analogues (default value).

true - search with analogues.

Response parameters#

Array[]

Parameter Data type Description
PartDescription string Part description
DeliveryDays integer Delivery time
QtyInStock integer Quantity available for order at supplier's warehouse (0 - available at own stock)
MinOrderQty integer Minimum order quantity
Price number Price
WeightPhysical number Phys. weight, kg
WeightVolume number Volume weight, kg
Brand string Brand
PartNumber string Part number
SupplierID integer Supplier code

Examples#

Request examples#

cURL
Python - Requests
C# - RestCharp
PHP - cURL
curl --location --request GET 'https://api.apecauto.com/api/search/ik16/brand/denso?deliverypointID=1&analogues=false' \
--header 'Authorization: Bearer 48oHTM9kKVYDGCX3pqVolQC28JxkriyzAtPWHo3zNkzRZbRhiISQBJoAHnMN4vq1-TEgkntQVDWFfH0NjANqNwQ8HWAgWMGlvL-0g8XWEBNXlVRkAcgbRH4bTpSv-9AaCCPfK8aX_CNxsd6tdEA'
import requests

url = "https://api.apecauto.com/api/search/ik16/brand/denso?deliverypointID=1&analogues=false"

payload={}
headers = {
  'Authorization': 'Bearer 48oHTM9kKVYDGCX3pqVolQC28JxkriyzAtPWHo3zNkzRZbRhiISQBJoAHnMHAZc_CadbhKtPNwMtzkPFz_gDEWdyxTEnxxX-k35HpsFn0LgyD0SBW_vtQcoT3fFGJCq3XyAJSvM904Dz-9AaCCPfK8aX_CNxsd6tdEA'
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)
var client = new RestClient("https://api.apecauto.com/api/search/ik16/brand/denso?analogues=false&deliveryPointID=1");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer 48oHTM9kKVDHOkbTZyntVWAUaQHAZc_CadbhKtPNwMtzkPFz_gDEWdyxTEnxxX-k35HpsFn0LgyD0SBW_vtQcoT3fFGJCq3XyAJSvM904Dz-9AaCCPfK8aX_CNxsd6tdEA");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

    <?php

    $curl = curl_init();

    curl_setopt_array($curl, array(
    CURLOPT_URL => 'https://api.apecauto.com/api/search/ik16/brand/denso?deliveryPointID=1&analogues=false',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_ENCODING => '',
    CURLOPT_MAXREDIRS => 10,
    CURLOPT_TIMEOUT => 0,
    CURLOPT_FOLLOWLOCATION => true,
    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    CURLOPT_CUSTOMREQUEST => 'GET',
    CURLOPT_HTTPHEADER => array(
    'Authorization: Bearer 48oHTM9kKVDHOkbTZyntVWAUaQHAZc_CadbhKtPNwMtzkPFz_gDEWdyxTEnxxX-k35HpsFn0LgyD0SBW_vtQcoT3fFGJCq3XyAJSvM904Dz-9AaCCPfK8aX_CNxsd6tdEA'
    ),
    ));

    $response = curl_exec($curl);

    curl_close($curl);
    echo $response;

If alternative brands items are not required, the parameter analogues may be not indicated

Response example#

[
    {
        "PartDescription": "SPARK PLUG",
        "DeliveryDays": 40,
        "QtyInStock": 25,
        "MinOrderQty": 1,
        "Price": 5.8300,
        "WeightPhysical": 0.072,
        "WeightVolume": 0.010,
        "Brand": "DENSO",
        "PartNumber": "IK16",
        "SupplierID": 9553
    },
    {
        "PartDescription": "SPARK PLUG",
        "DeliveryDays": 22,
        "QtyInStock": 629,
        "MinOrderQty": 1,
        "Price": 8.0900,
        "WeightPhysical": 0.072,
        "WeightVolume": 0.010,
        "Brand": "DENSO",
        "PartNumber": "IK16",
        "SupplierID": 9064
    },
    {
        "PartDescription": "SPARK PLUG",
        "DeliveryDays": 18,
        "QtyInStock": 520,
        "MinOrderQty": 1,
        "Price": 8.0900,
        "WeightPhysical": 0.072,
        "WeightVolume": 0.010,
        "Brand": "DENSO",
        "PartNumber": "IK16",
        "SupplierID": 9068
    }
]

Create an order#

POST https://api.apecauto.com/api/order

While placing order the price or quantity "collisions" may occur:

To control collisions you need to input the parameter ValidationType in request parameters.

For authorization the transfer of HTTP header 'Authorization: Bearer %YOUR AUTHORIZATION TOKEN%' is needed

For receiving of ID of contract, check the method /api/getcontracts

Request parameters#

Parameter Data type Request method Description
CustOrderNum string (body) Customer order number
OrderNotes string (body) Order note
ValidationType* integer (body)

Reaction on occurred collision:

0 - In case of any collision the order wont be placed

1 - Order all available currently items wherein the price is only offered and the quantity is decreased the available quantity and also corrected to multiplicity offered (field MinOrderQty required for this item)

2 - Collisions can happen only for each line (each line gives its own reaction)

IsTest* boolean (body)

true - test order, not coming to a real order processing system, life time is 24 hours (default value)

false - real order

OrderHeadLines* array[] (body) Order lines
GroupRefs string (body) The list of PACK REF (packing references) with delimeter ;;
ContractID* integer (body) Contract ID

OrderHeadLines#

Parameter Data type Request method Description
Count* integer (body) Quantity
Price number (body) Price
Reference string (body) Part ref
ReactionByCount integer (body)

Reaction on quantity collision.

(There are 2 types of collisions: (QUO) exceeding of the available qty, (MU) not matching multiplicity or MOW (minim order qty required for this item to be ordered).

0 - In case of both types collisions the item is discarded, otherwise the item to be ordered with quantity Count.

1 - In case if collision (MU), the quantity to be ordered are increased up to nearest quantity to multiplicity or MOQ (minimum order qty). If collision type (QUO) happens the item is discarded , otherwise the corrected quantity is to be ordered.

2 - In case of (MU) type collision the quantity to be ordered is corrected down to the nearest quantity to MOQ (minimum order qty). If (QUO) type collision happens quantity is to be corrected down to the nearest quantity to MOQ (minimum order value). The item is to be placed with the corrected quantity if it is bigger than zero, otherwise the item is discarded.

ReactionByPrice integer (body)

Reaction on price collision:

0 – the item to be ordered for the price not higher than the price mentioned in the field Price, otherwise the item is discarded.

1- the item is to be placed for the current price (irrespective of the price mentioned in the field Price)

StrictlyThisNumber boolean (body) Strictly this number (replacement/another part number is not acceptable)
ReferenceGroup string (body) Pack ref
Brand* string (body) Brand
PartNumber* string (body) Part number
SupplierID* integer (body) Supplier code

Response parameters#

Parameter Data type Description
OrderID integer Order ID
Status integer

Order status:

0 - Order is placed fully

1 - Order is placed partially (check order lines)

2 - Order is not placed (check order lines)

Total number Order value
OrderPlacedLines array[] Order lines

OrderPlacedLines#

Parameter Data type Description
CountOrder integer Quantity requested by customer
CountPlaced integer Quantity placed in order
PriceOrder number Price requested by customer
PricePlaced number Price confirmed in order
Status integer

Order lines status:

0 - Order line is placed

1 - Order line is placed. Quantity is matched to required multiplicity upward.

2 - Order line is placed. Quantity is matched to required multiplicity downward

10 - Order line is not placed. One of key value is missed: Brand, PartNumber, SupplierID

11 - Order line is not placed. Quantity is not indicated Count.

12 - Order line is not placed. No reaction on quantity collision ReactionByCount.

13 - Order line is not placed. No reaction on price collision ReactionByPrice.

20 - Order line is not placed. Quantity collision.

30 - Order line is not placed. Price collision.

99 - Order line is not placed. Item is not found as available for ordering.

Reference string Part ref
Brand string Brand
PartNumber string Part number
SupplierID integer Supplier code

Examples#

Request examples#

cURL
Python - Requests
C# - RestCharp
PHP - cURL
curl --location --request POST 'https://api.apecauto.com/api/order' \
--header 'Authorization: Bearer 48oHTM9kKVYDGCX3pqVolQC28JxkOkbTZyntVWAUaQHAZc_CadbhKtPNwMtzkPFz_gDEWdyxTEnxxX-k35HpsFn0LgyD0SBW_vtQcoT3fFGJCq3XyAJSvM904Dz-9AaCCPfK8aX_CNxsd6tdEA' \
--header 'Content-Type: application/json' \
--data-raw '{
    "CustOrderNum": "123456",
    "OrderNotes": "Какой то комментарий",
    "ValidationType": 1,
    "IsTest": true,
    "OrderHeadLines": [
        {
            "Count": 1,
            "Price": 6.5,
            "Reference": "!!!ТЕСТОВЫЙ API DP: 1!!!",
            "ReactionByCount": 0,
            "ReactionByPrice": 0,
            "StrictlyThisNumber": true,
            "Brand": "DENSO",
            "PartNumber": "IK16",
            "SupplierID": 9553
        }
    ],
    "DeliveryPointID": 1
}'
import requests
import json

url = "https://api.apecauto.com/api/order"

payload = json.dumps({
  "CustOrderNum": "123456",
  "OrderNotes": "Какой то комментарий",
  "ValidationType": 1,
  "IsTest": True,
  "OrderHeadLines": [
    {
      "Count": 1,
      "Price": 6.5,
      "Reference": "!!!ТЕСТОВЫЙ API DP: 1!!!",
      "ReactionByCount": 0,
      "ReactionByPrice": 0,
      "StrictlyThisNumber": True,
      "Brand": "DENSO",
      "PartNumber": "IK16",
      "SupplierID": 9553
    }
  ],
  "DeliveryPointID": 1
})
headers = {
  'Authorization': 'Bearer 48oHTM9kKVYDGCX3pqVolQC28JxkriyzAtPWAUaQHAZc_CadbhKtPNwMtzkPFz_gDEWdyxTEnxxX-k35HpsFn0LgyD0SBW_vtQcoT3fFGJCq3XyAJSvM904Dz-9AaCCPfK8aX_CNxsd6tdEA',
  'Content-Type': 'application/json'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)
var client = new RestClient("https://api.apecauto.com/api/order");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer 48oHTM9kKVDHOkbTZyntVWAUaQHAZc_CadbhKtPNwMtzkPFz_gDEWdyxTEnxxX-k35HpsFn0LgyD0SBW_vtQcoT3fFGJCq3XyAJSvM904Dz-9AaCCPfK8aX_CNxsd6tdEA");
request.AddHeader("Content-Type", "application/json");
var body = @"{
" + "\n" +
@"    ""CustOrderNum"": ""!!!ТЕСТОВЫЙ API!!!"",
" + "\n" +
@"    ""OrderNotes"": ""!!!ТЕСТОВЫЙ API!!!"",
" + "\n" +
@"    ""ValidationType"": 1,
" + "\n" +
@"    ""IsTest"": true,
" + "\n" +
@"    ""OrderHeadLines"": [
" + "\n" +
@"        {
" + "\n" +
@"            
" + "\n" +
@"            ""Count"": 1,
" + "\n" +
@"            ""Price"": 6.5,
" + "\n" +
@"            ""Reference"": ""!!!ТЕСТОВЫЙ API DP: 1!!!"",
" + "\n" +
@"            ""ReactionByCount"": 0,
" + "\n" +
@"            ""ReactionByPrice"": 0,
" + "\n" +
@"            ""StrictlyThisNumber"": true,
" + "\n" +
@"            ""Brand"": ""DENSO"",
" + "\n" +
@"            ""PartNumber"": ""IK16"",
" + "\n" +
@"            ""SupplierID"": 9553
" + "\n" +
@"        }
" + "\n" +
@"    ],
" + "\n" +
@"    ""DeliveryPointID"": 0
" + "\n" +
@"}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.apecauto.com/api/order',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{
    "CustOrderNum": "!!!ТЕСТОВЫЙ API!!!",
    "OrderNotes": "!!!ТЕСТОВЫЙ API!!!",
    "ValidationType": 1,
    "IsTest": true,
    "OrderHeadLines": [
        {
            
            "Count": 1,
            "Price": 6.5,
            "Reference": "!!!ТЕСТОВЫЙ API DP: 1!!!",
            "ReactionByCount": 0,
            "ReactionByPrice": 0,
            "StrictlyThisNumber": true,
            "Brand": "DENSO",
            "PartNumber": "IK16",
            "SupplierID": 9553
        }
    ],
    "DeliveryPointID": 0
}',
  CURLOPT_HTTPHEADER => array(
    'Authorization: Bearer 48oHTM9kKVDHOkbTZyntVWAUaQHAZc_CadbhKtPNwMtzkPFz_gDEWdyxTEnxxX-k35HpsFn0LgyD0SBW_vtQcoT3fFGJCq3XyAJSvM904Dz-9AaCCPfK8aX_CNxsd6tdEA',
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

Response example#

{
    "OrderId": 84804,
    "Status": 0,
    "Total": 5.8300,
    "OrderPlacedLines": [
        {
            "CountOrder": 1,
            "CountPlaced": 1,
            "PriceOrder": 6.5,
            "PricePlaced": 5.8300,
            "Status": 0,
            "Reference": "!!!ТЕСТОВЫЙ API DP: 1!!!",
            "Brand": "DENSO",
            "PartNumber": "IK16",
            "SupplierID": 9553
        }
    ]
}

Order information by order ID#

GET https://api.apecauto.com/api/status/{orderID}

For receiving the status of a particular line see the filed CurrentStatus of object OrderLines

For authorization the transfer of HTTP header 'Authorization: Bearer %YOUR AUTHORIZATION TOKEN%' is needed

Request parameters#

Parameter Data type Request method Description
orderID* integer (path) Order ID

Response parameters#

Parameter Data type Description
OrderID integer Order ID
CustOrderNum string Customer order number
OrderDate string Order placement date
CompletedDate string Order completion date
Status integer

Order status:

1 - new

2 - processing

3 - completed

Total number Сумма заказа
OrderLines array[] Order lines

OrderLines#

Parameter Data type Description
PartDescription string Part description
Qty integer Quantity ordered
Price number Price
ReferenceID string Part ref
ReferenceGroup string Pack ref
CurrentStatus integer

Current status:

10, 240 - new order (Новый заказ)

40 - the order is accepted (Заказ принят)

50 - sent to the supplier (Отправлен поставщику)

70 - quantity change (Изменение количества)

80 - delay (Задержка)

90 - superseded part (Переход номера)

100 - price change (Изменение цены)

120 - in stock (Поступил на склад)

140 - ready for dispatch (Готово к выдаче)

160 - received by the customer (Получен клиентом)

180 - delivery is impossible (Поставка невозможна)

190 - dispatch is impossible temporarily (Выдача невозможна)

200 - canceled by the customer (Отказ клиента)

Brand string Brand
PartNumber string Part number
SupplierID integer Supplier code

Examples#

Request examples#

cURL
Python - Requests
C# - RestCharp
PHP - cURL
curl --location --request GET 'https://api.apecauto.com/api/status/84804' \
--header 'Authorization: Bearer 48oHTM9kKVDHOkbTZyntVWAUaQHAZc_CadbhKtPNwMtzkPFz_gDEWdyxTEnxxX-k35HpsFn0LgyD0SBW_vtQcoT3fFGJCq3XyAJSvM904Dz-9AaCCPfK8aX_CNxsd6tdEA'
import requests

url = "https://api.apecauto.com/api/status/84804"

payload={}
headers = {
  'Authorization': 'Bearer 48oHTM9kKVYDGCX3pqVolQC28JxkriyzAtPWHo3zNkzRZbRhiISQBJoAHnMN4vq1-TEUaQHAZc_CadbhKtPNwMtzkPFz_gDEWdyxTEnxxX-k35HpsFn0LgyD0SBW_vtQcoT3fFGJCq3XyAJSvM904Dz-9AaCCPfK8aX_CNxsd6tdEA'
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)
var client = new RestClient("https://api.apecauto.com/api/status/84884");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer 48oHTM9kKVDHOkbTZyntVWAUaQHAZc_CadbhKtPNwMtzkPFz_gDEWdyxTEnxxX-k35HpsFn0LgyD0SBW_vtQcoT3fFGJCq3XyAJSvM904Dz-9AaCCPfK8aX_CNxsd6tdEA");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.apecauto.com/api/status/84884',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    'Authorization: Bearer 48oHTM9kKVDHOkbTZyntVWAUaQHAZc_CadbhKtPNwMtzkPFz_gDEWdyxTEnxxX-k35HpsFn0LgyD0SBW_vtQcoT3fFGJCq3XyAJSvM904Dz-9AaCCPfK8aX_CNxsd6tdEA'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

Response example#

{
    "OrderID": 84804,
    "CustOrderNum": "123456",
    "OrderDate": "2021-11-22T14:58:34.043",
    "CompletedDate": "0001-01-01T00:00:00",
    "Status": 1,
    "Total": 5.83,
    "OrderLines": [
        {
            "PartDescription": "SPARK PLUG",
            "Qty": 1,
            "Price": 5.83,
            "ReferenceID": "!!!ТЕСТОВЫЙ API DP: 1!!!",
            "ReferenceGroup": null,
            "CurrentStatus": 240,
            "Brand": "DENSO",
            "PartNumber": "IK16",
            "SupplierID": 9553
        }
    ]
}

Order information by customer number#

GET https://api.apecauto.com/api/statusbycustordernum/{custOrderNum}

For receiving the status of a particular line see the filed CurrentStatus of object OrderLines

For authorization the transfer of HTTP header 'Authorization: Bearer %YOUR AUTHORIZATION TOKEN%' is needed

Request parameters#

Parameter Data type Request method Description
custOrderNum* string (path) Customer order number

Response parameters#

Parameter Data type Description
OrderID integer Order ID
CustOrderNum string Customer order number
OrderDate string Order placement date
CompletedDate string Order completion date
Status integer

Order status:

1 - new

2 - processing

3 - completed

Total number Сумма заказа
OrderLines array[] Order lines

OrderLines#

Parameter Data type Description
PartDescription string Part description
Qty integer Quantity ordered
Price number Price
ReferenceID string Part ref
ReferenceGroup string Pack ref
CurrentStatus integer

Current status:

10, 240 - new order (Новый заказ)

40 - the order is accepted (Заказ принят)

50 - sent to the supplier (Отправлен поставщику)

70 - quantity change (Изменение количества)

80 - delay (Задержка)

90 - superseded part (Переход номера)

100 - price change (Изменение цены)

120 - in stock (Поступил на склад)

140 - ready for dispatch (Готово к выдаче)

160 - received by the customer (Получен клиентом)

180 - delivery is impossible (Поставка невозможна)

190 - dispatch is impossible temporarily (Выдача невозможна)

200 - canceled by the customer (Отказ клиента)

Brand string Brand
PartNumber string Part number
SupplierID integer Supplier code

Examples#

Request examples#

cURL
Python - Requests
C# - RestCharp
PHP - cURL
curl --location --request GET 'https://api.apecauto.com/api/statusbycustordernum/S-DC-345' \
--header 'Authorization: Bearer 48oHTM9kKVDHOkbTZyntVWAUaQHAZc_CadbhKtPNwMtzkPFz_gDEWdyxTEnxxX-k35HpsFn0LgyD0SBW_vtQcoT3fFGJCq3XyAJSvM904Dz-9AaCCPfK8aX_CNxsd6tdEA'
import requests

url = "https://api.apecauto.com/api/statusbycustordernum/S-DC-345"

payload={}
headers = {
  'Authorization': 'Bearer 48oHTM9kKVDHOkbTZyntVWAUaQHAZc_CadbhKtPNwMtzkPFz_gDEWdyxTEnxxX-k35HpsFn0LgyD0SBW_vtQcoT3fFGJCq3XyAJSvM904Dz-9AaCCPfK8aX_CNxsd6tdEA'
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)
var client = new RestClient("https://api.apecauto.com/api/statusbycustordernum/S-DC-345");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer 48oHTM9kKVDHOkbTZyntVWAUaQHAZc_CadbhKtPNwMtzkPFz_gDEWdyxTEnxxX-k35HpsFn0LgyD0SBW_vtQcoT3fFGJCq3XyAJSvM904Dz-9AaCCPfK8aX_CNxsd6tdEA");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.apecauto.com/api/statusbycustordernum/S-DC-345',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    'Authorization: Bearer 48oHTM9kKVDHOkbTZyntVWAUaQHAZc_CadbhKtPNwMtzkPFz_gDEWdyxTEnxxX-k35HpsFn0LgyD0SBW_vtQcoT3fFGJCq3XyAJSvM904Dz-9AaCCPfK8aX_CNxsd6tdEA'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

Response example#

{
    "OrderID": 84804,
    "CustOrderNum": "S-DC-345",
    "OrderDate": "2021-11-22T14:58:34.043",
    "CompletedDate": "0001-01-01T00:00:00",
    "Status": 1,
    "Total": 5.83,
    "OrderLines": [
        {
            "PartDescription": "SPARK PLUG",
            "Qty": 1,
            "Price": 5.83,
            "ReferenceID": "!!!ТЕСТОВЫЙ API DP: 1!!!",
            "ReferenceGroup": null,
            "CurrentStatus": 240,
            "Brand": "DENSO",
            "PartNumber": "IK16",
            "SupplierID": 9553
        }
    ]
}

Get a list of orders#

GET https://api.apecauto.com/api/getorders/{isActive}/{limit}


GET https://api.apecauto.com/api/getorders/{isActive}/{limit}/pn/{partNumber}

Method returns all active orders (status: 1 - new and 2 - in work) or all orders (+ status: 3 - completed) depending on the parameter isActive, if at least one line of the orders contains part number partNumber (if indicated), but not more that parameter limit. For checking the specific line status, check CurrentStatus of object OrderLineInfo

For authorization the transfer of HTTP header 'Authorization: Bearer %YOUR AUTHORIZATION TOKEN%' is needed

Request parameters#

Parameter Data type Request method Description
isActive* bool (path)

To return:

true - only active orders

false - all orders (default value)

limit* integer (path) Order quantity to return. Any value is allowed from 1 to 10000. 100 - by default.
partNumber string (path) Part number (if no order found with lines containing partNumber, then method processes data based on input parameters isActive and limit)

Response parameters#

Order[]#

Parameter Data type Description
OrderID integer Order ID
CustOrderNum string Customer order number
OrderDate string Order placement date
CompletedDate string Order completion date
Status integer

Order status:

1 - new

2 - processing

3 - completed

Total number Order value
OrderLineInfo array[] Order lines

OrderLineInfo[]#

Parameter Data type Description
PartDescription string Part description
Qty integer Quantity ordered
Price number Price
ReferenceID string Part ref
ReferenceGroup string Pack ref
CurrentStatus integer

Current status:

10, 240 - new order (Новый заказ)

40 - the order is accepted (Заказ принят)

50 - sent to the supplier (Отправлен поставщику)

70 - quantity change (Изменение количества)

80 - delay (Задержка)

90 - superseded part (Переход номера)

100 - price change (Изменение цены)

120 - in stock (Поступил на склад)

140 - ready for dispatch (Готово к выдаче)

160 - received by the customer (Получен клиентом)

180 - delivery is impossible (Поставка невозможна)

190 - dispatch is impossible temporarily (Выдача невозможна)

200 - canceled by the customer (Отказ клиента)

Brand string Brand
PartNumber string Part number
SupplierID integer Supplier code

Examples#

Request examples#

cURL
Python - Requests
C# - RestCharp
PHP - cURL
curl --location --request GET 'https://api.apecauto.com/api/getorders?isActive=true&limit=3' \
    --header 'Authorization: Bearer 48oHTM9kKVYDGCX3pqVolZyntVWAUaQHAZc_CadbhKtPNwMtzkPFz_gDEWdyxTEnxxX-k35HpsFn0LgyD0SBW_vtQcoT3fFGJCq3XyAJSvM904Dz-9AaCCPfK8aX_CNxsd6tdEA'
import requests

url = "https://api.apecauto.com/api/getorders?isActive=true&limit=3"

payload={}
headers = {
  'Authorization': 'Bearer 48oHTM9kKVYDGCX3pqVolQC28JxkriyzAtPWHo3zNkzRZbRhiISQBJoAHnMN4vq1-TEgkntQVDWFfH0NjANqNwQ8HWAgWMGlvL-0g8XWEBNXlVRkAcgbRH4bTpSvhW9RY2nHbaJPKVyI0MVShwc9kTso-MLrV0FORDkaAeU-a-8fjfOKX8BDHOkbTZyntVWAUaQHAZc_CadbhKtPNwMtzkPFz_gDEWdyxTEnxxX-k35HpsFn0LgyD0SBW_vtQcoT3fFGJCq3XyAJSvM904Dz-9AaCCPfK8aX_CNxsd6tdEA'
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)
var client = new RestClient("https://api.apecauto.com/api/getorders/false/3/pn/IK16");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer 48oHTM9kKVDHOkbTZyntVWAUaQHAZc_CadbhKtPNwMtzkPFz_gDEWdyxTEnxxX-k35HpsFn0LgyD0SBW_vtQcoT3fFGJCq3XyAJSvM904Dz-9AaCCPfK8aX_CNxsd6tdEA");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.apecauto.com/api/getorders/false/3',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    'Authorization: Bearer 48oHTM9kKVDHOkbTZyntVWAUaQHAZc_CadbhKtPNwMtzkPFz_gDEWdyxTEnxxX-k35HpsFn0LgyD0SBW_vtQcoT3fFGJCq3XyAJSvM904Dz-9AaCCPfK8aX_CNxsd6tdEA'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

Response example#

[
    {
        "OrderID": 84804,
        "CustOrderNum": "123456",
        "OrderDate": "2021-11-22T14:58:34.043",
        "CompletedDate": "0001-01-01T00:00:00",
        "Status": 1,
        "Total": 5.83,
        "OrderLines": [
            {
                "PartDescription": "SPARK PLUG",
                "Qty": 1,
                "Price": 5.83,
                "ReferenceID": "!!!ТЕСТОВЫЙ API DP: 1!!!",
                "ReferenceGroup": null,
                "CurrentStatus": 240,
                "Brand": "DENSO",
                "PartNumber": "IK16",
                "SupplierID": 9553
            }
        ]
    },
    {
        "OrderID": 84799,
        "CustOrderNum": "123456",
        "OrderDate": "2021-11-22T14:12:15.9",
        "CompletedDate": "0001-01-01T00:00:00",
        "Status": 1,
        "Total": 5.83,
        "OrderLines": [
            {
                "PartDescription": "SPARK PLUG",
                "Qty": 1,
                "Price": 5.83,
                "ReferenceID": "!!!ТЕСТОВЫЙ API DP: 1!!!",
                "ReferenceGroup": null,
                "CurrentStatus": 240,
                "Brand": "DENSO",
                "PartNumber": "IK16",
                "SupplierID": 9553
            }
        ]
    }
]

Delivery methods#

GET https://api.apecauto.com/api/getdeliverypoints

Receving of the deliveries ways list

For authorization the transfer of HTTP header 'Authorization: Bearer %YOUR AUTHORIZATION TOKEN%' is needed

Response parameters#

Array[]

Parameter Data type Description
DeliveryPointID integer Shipping method ID
DeliveryPointName string Shipping method name

Examples#

Request examples#

cURL
Python - Requests
C# - RestCharp
PHP - cURL
curl --location --request GET 'https://api.apecauto.com/api/getdeliverypoints' \
--header 'Authorization: Bearer 48oHTM9kKVYDGCX3pqVolQC28J5HpsFn0LgyD0SBW_vtQcoT3fFGJCq3XyAJSvM904Dz-9AaCCPfK8aX_CNxsd6tdEA'
import requests

url = "https://api.apecauto.com/api/getdeliverypoints"

payload={}
headers = {
  'Authorization': 'Bearer 48oHTM9kKVYDGCX3pqVolQC28JxkriyzAtPWHo3zNkzRZbRhic_CadbhKtPNwMtzkPFz_gDEWdyxTEnxxX-k35HpsFn0LgyD0SBW_vtQcoT3fFGJCq3XyAJSvM904Dz-9AaCCPfK8aX_CNxsd6tdEA'
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)
var client = new RestClient("https://api.apecauto.com/api/getdeliverypoints");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer 48oHTM9kKVDHOkbTZyntVWAUaQHAZc_CadbhKtPNwMtzkPFz_gDEWdyxTEnxxX-k35HpsFn0LgyD0SBW_vtQcoT3fFGJCq3XyAJSvM904Dz-9AaCCPfK8aX_CNxsd6tdEA");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.apecauto.com/api/getdeliverypoints',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    'Authorization: Bearer 48oHTM9kKVDHOkbTZyntVWAUaQHAZc_CadbhKtPNwMtzkPFz_gDEWdyxTEnxxX-k35HpsFn0LgyD0SBW_vtQcoT3fFGJCq3XyAJSvM904Dz-9AaCCPfK8aX_CNxsd6tdEA'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

Response example#

[
    {
        "DeliveryPointID": 3,
        "DeliveryPointName": "DXB-DAP/MZH"
    },
    {
        "DeliveryPointID": 4,
        "DeliveryPointName": "LAX-EXW"
    }
]

Contracts#

GET https://api.apecauto.com/api/getcontracts

Receving of the deliveries ways list

For authorization the transfer of HTTP header 'Authorization: Bearer %YOUR AUTHORIZATION TOKEN%' is needed

Response parameters#

Array[]

Parameter Data type Description
ContractID integer Contract ID
DeliveryPointID integer Shipping method ID
StrockID integer Stock ID
Name string Contract Name

Examples#

Request examples#

cURL
Python - Requests
C# - RestCharp
PHP - cURL
curl --location --request GET 'https://api.apecauto.com/api/getcontracts' \
--header 'Authorization: Bearer 48oHTM9kKVYDGCX3pqVolQC28J5HpsFn0LgyD0SBW_vtQcoT3fFGJCq3XyAJSvM904Dz-9AaCCPfK8aX_CNxsd6tdEA'
import requests

url = "https://api.apecauto.com/api/getcontracts"

payload={}
headers = {
  'Authorization': 'Bearer 48oHTM9kKVYDGCX3pqVolQC28JxkriyzAtPWHo3zNkzRZbRhic_CadbhKtPNwMtzkPFz_gDEWdyxTEnxxX-k35HpsFn0LgyD0SBW_vtQcoT3fFGJCq3XyAJSvM904Dz-9AaCCPfK8aX_CNxsd6tdEA'
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)
var client = new RestClient("https://api.apecauto.com/api/getcontracts");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer 48oHTM9kKVDHOkbTZyntVWAUaQHAZc_CadbhKtPNwMtzkPFz_gDEWdyxTEnxxX-k35HpsFn0LgyD0SBW_vtQcoT3fFGJCq3XyAJSvM904Dz-9AaCCPfK8aX_CNxsd6tdEA");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.apecauto.com/api/getcontracts',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    'Authorization: Bearer 48oHTM9kKVDHOkbTZyntVWAUaQHAZc_CadbhKtPNwMtzkPFz_gDEWdyxTEnxxX-k35HpsFn0LgyD0SBW_vtQcoT3fFGJCq3XyAJSvM904Dz-9AaCCPfK8aX_CNxsd6tdEA'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

Response example#

[
    {
        "ContractID": 1,
        "DeliveryPointID": 5,
        "StockID": 21,
        "Name": "Contract 345"
    },
    {
        "ContractID": 2,
        "DeliveryPointID": 6,
        "StockID": 34,
        "Name": "Contract 283"
    }
]

* - required parameter