Russian  English  All projects

Retrieving information through the API with subsequent throwing into bitrix



Have a good day!

Given:
1) There is a site-store on bitrix (business version), with the suppliers goods.
2) There is a suppliers website that offers information about the goods to place in its own through the API.

To do this, the site offers to connect to its data center through the API.

=============================
Quote from the instructions:

The API returns a response in JSON format.
When working with the API, Basic authorization is used.
Authorization parameters:
Authorization value of Basic || to_base64(|| : || )

This method is used to obtain basic position information as well as technical specifications in ETIM format and links to images without watermarks.

To obtain this information, you need to use the GET method to access the URL https://saitpostavschika.ru/rs/specs/*position code*

Example request:

https://saitpostavschika.ru.ru/rs/specs/10100

Sample response:
"info": [
{
"DESCRIPTION": "Circuit breaker automatic modular 1p C 25A 4.5kA VA47-29 IEC MVA20-1-025-C",
"PRIMARY_UOM": "The Thing",
"MULTIPLICITY": 144,
"ITEMS_PER_UNIT": "12",
"ETIM_CLASS": "EC000042",
"ETIM_CLASS_NAME": "Automaticmodular switch",
"ETIM_GROUP": "EG000020",
"ETIM_GROUP_NAME": "Protective devices, fuses, modular devices/mounting devices",
"VENDOR_CODE": "MVA20-1-025-C"
}
"barcode": [
{
"EAN": "04606056020885",
"DESCRIPTION": "Barcodegroup.pack."
},
{
"EAN": "04606056149456",
"DESCRIPTION": "Barcodetransp.upak."
},
{
"EAN": "04607055283257",
"DESCRIPTION": "Barcoded.ed."
}
,
"specs": [
{
"NAME": "Depth of installation, installation",
"VALUE": "73.6",
"UOM": "mm"
},

{
"NAME": "Frequency",
"VALUE": "50",
"UOM": "Hz"
},
{
"NAME": "Rated voltage",
"VALUE": "400",
"UOM": "B"
},
{
"NAME": "Nominal breaking capacity according to EN 60898",
"VALUE": "4.5",
"UOM": "kA"
},
{
"NAME": "Response characteristic",
"VALUE": "C"
},
{
"NAME": "Rodtoka",
"VALUE": "Alternating Current (AC)/Direct Current (DC)"
},
{
"NAME": "Number of poles",
"VALUE": "1"
},
{
"NAME": "Rated current",
"VALUE": "25",
"UOM": "A"
}
,
"img": [
{
"URL":"
}

Weald:
Info – block with basic information
– name of the position
– unit of measurement
– multiplicity of the order from the manufacturer. It is used for custom items that are not available in PC warehouses.
– number of pieces in the package
– ETIM class code
– name of the ETIM class
– ETIM group code
– name of the ETIM group
barcode – barcode information
– barcode
– barcode description
specs Specifications

– name of the characteristic
– the value of the characteristic
– unit of measurement
img – links to images
- Link to image

==========================

Task: you need to pull information about the goods from the suppliers website, and place it in the corresponding products of the store site.

For questions and suggestions - comments =)
23.11.2021 12:55



 Answers freelancers