Sari la conținut

Actualizare în masă a produselor și atributelor

POST
/api/v3/item/modify/stores/{storeId}/bulk
curl --request POST \
--url https://prod.store-management.glovo.alb.app.onlineservice.io/api/v3/item/modify/stores/example/bulk \
--header 'Authorization: <Authorization>' \
--header 'Content-Type: application/json' \
--data '{ "products": [ { "id": "burger1", "name": "Burger Large", "price": 10, "image_url": "https://server.com/image", "extra_image_urls": [ "https://i.imgur.com/Tsj3NOK.png", "https://i.imgur.com/Qj5DlEH.png", "https://i.imgur.com/Qj5MlEH.png" ], "restrictions": { "is_alcoholic": true }, "available": true } ], "attributes": [ { "id": "side1", "name": "French fries", "price_impact": 1.5, "available": true } ] }'
storeId
required
string
Media typeapplication/json
object
products

Products to be updated.

Array<object>

Products to be updated.

object
id

Unique identifier of the product within a store

string
Example
burger1
name

Product name

string
Example
Burger Large
price

Product price

number format: double
Example
10
image_url

Url of the main product image. Must use HTTPS protocol.

string
Example
https://server.com/image
extra_image_urls

Array-ul de URL-uri ale imaginilor suplimentare ale produsului. Acestea trebuie să folosească protocolul HTTPS. Aceste imagini vor fi afișate în pagina de detaliu a produsului în aceeași ordine ca în array, mereu după imaginea principală. Se suportă până la 9 imagini (dacă se trimit mai multe imagini, se vor procesa primele 9).

Array<string>
Example
[
"https://i.imgur.com/Tsj3NOK.png",
"https://i.imgur.com/Qj5DlEH.png",
"https://i.imgur.com/Qj5MlEH.png"
]
restrictions

Aceasta este o descriere a unui camp optional in sistemul Glovo care indica daca un produs are restrictie de alcool. Se mentioneaza ca acest camp este in proces de implementare si daca doriti sa activati restrictia de alcool pentru un produs, trebuie sa contactati echipa de integrare prin adresa de email pos.integrations@appsmart.ro

object
is_alcoholic

Indicatorul care arată dacă produsul este o băutură alcoolică. Acesta va declanșa un flux de utilizator conform cu restricțiile în cazul magazinelor din Polonia și România.

boolean
available

Specifies if the product is available to be purchased

boolean
Example
true
attributes

Attributes to be updated.

Array<object>

Attributes to be updated.

object
id

Unique identifier of the attribute within a store

string
Example
side1
name

Attribute name

string
Example
French fries
price_impact

Attribute price

number format: double
Example
1.5
available

Specifies if the product is available to be purchased

boolean
Example
true

Actualizare în masă acceptată

Media typeapplication/json
object
error
string
message
string
transaction_id

Unique identifier of the asynchronous operation

string
status

Current status of the bulk update

string
Allowed values: SUCCESS PROCESSING PARTIALLY_PROCESSED NOT_PROCESSED GLOVO_ERROR
last_updated_at

Timestamp of the latest menu status update

string
details

Details for the current menu status

Array<object>

Details for the current menu status

object
Example
{
"transaction_id": "a946a2c7-f4e7-46ac-ae63-8a5497cb0ad9",
"status": "SUCCESS",
"last_updated_at": "2020-03-24T10:03:49.614Z",
"details": [
"Products updated: [11111, 22222]",
"Products not updated: [12345, 56789]",
"Attributes updated: [33333, 44444]",
"Attributes not updated: [67890, 45678]"
]
}

Payload sau parametri invalizi

Media type*/*
object
error
string
message
string
transaction_id

Unique identifier of the asynchronous operation

string
Example
a946a2c7-f4e7-46ac-ae63-8a5497cb0ad9
status

Current status of the bulk update

string
Allowed values: SUCCESS PROCESSING PARTIALLY_PROCESSED NOT_PROCESSED GLOVO_ERROR
Example
PARTIALLY_PROCESSED
last_updated_at

Timestamp of the latest menu status update

string
Example
2020-03-24T10:03:49.614Z
details

Details for the current menu status

Array<object>

Details for the current menu status

object
Example
[
"Products updated: [11111, 22222]",
"Products not updated: [12345, 56789]",
"Attributes updated: [33333, 44444]",
"Attributes not updated: [67890, 45678]"
]
Example
[
"Products updated: [11111, 22222]",
"Products not updated: [12345, 56789]",
"Attributes updated: [33333, 44444]",
"Attributes not updated: [67890, 45678]"
]

Neautorizat

Media type*/*
object
error
string
message
string
transaction_id

Unique identifier of the asynchronous operation

string
Example
a946a2c7-f4e7-46ac-ae63-8a5497cb0ad9
status

Current status of the bulk update

string
Allowed values: SUCCESS PROCESSING PARTIALLY_PROCESSED NOT_PROCESSED GLOVO_ERROR
Example
PARTIALLY_PROCESSED
last_updated_at

Timestamp of the latest menu status update

string
Example
2020-03-24T10:03:49.614Z
details

Details for the current menu status

Array<object>

Details for the current menu status

object
Example
[
"Products updated: [11111, 22222]",
"Products not updated: [12345, 56789]",
"Attributes updated: [33333, 44444]",
"Attributes not updated: [67890, 45678]"
]
Example
[
"Products updated: [11111, 22222]",
"Products not updated: [12345, 56789]",
"Attributes updated: [33333, 44444]",
"Attributes not updated: [67890, 45678]"
]

Eroare internă a serverului

Media type*/*
object
error
string
message
string
transaction_id

Unique identifier of the asynchronous operation

string
Example
a946a2c7-f4e7-46ac-ae63-8a5497cb0ad9
status

Current status of the bulk update

string
Allowed values: SUCCESS PROCESSING PARTIALLY_PROCESSED NOT_PROCESSED GLOVO_ERROR
Example
PARTIALLY_PROCESSED
last_updated_at

Timestamp of the latest menu status update

string
Example
2020-03-24T10:03:49.614Z
details

Details for the current menu status

Array<object>

Details for the current menu status

object
Example
[
"Products updated: [11111, 22222]",
"Products not updated: [12345, 56789]",
"Attributes updated: [33333, 44444]",
"Attributes not updated: [67890, 45678]"
]
Example
[
"Products updated: [11111, 22222]",
"Products not updated: [12345, 56789]",
"Attributes updated: [33333, 44444]",
"Attributes not updated: [67890, 45678]"
]