POST /prices/upload/ HTTP/1.1
Host: prices-api.byprice.com
X-api-key: Client_write_key_generated_by_byprice
Content-Type: application/json
{
"items" : [
{
"gtin": "15055116603661",
"client_code": "1008442",
"name": "INSIGNIA DESODORANTE AEROSOL 200ML SENSU",
"price": 120,
"brand": "Insgnia",
"categories": ["desodorante", "aerosol"],
"description": "Insignia for men zero desodorante spray 200ml set 2 piezas los mejores productos para tu cuidado personal, para tu bienestar, y para la higiene personal."
},
{
"gtin": "15055116603654",
"client_code": "1008444",
"name": "INSIGNIA DESODORANT AEROSOL 200ML INSPIR",
"price": 120,
"brand": "Insgnia",
"categories": ["desodorante", "aerosol"],
"description": "Insignia for men zero desodorante spray 200ml set 2 piezas los mejores productos para tu cuidado personal, para tu bienestar, y para la higiene personal."
}
]
}
Save or update info of items in ByPrice Intel DB Saves if there is no previous information or update if there was previous data. Identifier: client_code
Return a list of the results of all the operations
Method: POST
Endpoint: /prices/upload/
Query Params:
Param | Description | Condition |
---|---|---|
items | List of items to upload including their properties[gtin, client_code, name, price], (list) | required |
gtin | Item gtin or SKU, (varchar[14]) | required |
client_code | Internal client unique id, (varchar[20]) | required |
name | Item name from client, (varchar[255]) | required |
description | Long description from client, (varchar[1500]) | optional but very important for matching |
brand | Item brand from client, (varchar[255]) | optional but very important for matching |
categories | List of item categories from client, (list of varchar[255]) | optional but very important for matching |
price | Item price from client, (float) | optional |
Status : 201
{
"results": [
{
"client_code": "1008442",
"success": "correctly updated item"
},
{
"client_code": "1008444",
"success": "correctly created item"
}
]
}