Sari la conținut

Actualizează un produs în magazin

POST
/api/v3/item/modify/stores/{storeId}/products/{productId}
curl --request POST \
--url https://prod.store-management.glovo.alb.app.onlineservice.io/api/v3/item/modify/stores/example/products/example \
--header 'Authorization: <Authorization>' \
--header 'Content-Type: application/json' \
--data '{ "price": 10, "available": true }'
storeId
required
string
productId
required
string
Media typeapplication/json

The payload for update

object
price

Prețul nou al produsului în magazin. Dacă valoarea nu este prezentă sau este nulă, nu va fi actualizată.

number format: double
Example
10
available

Flag care indică dacă produsul este disponibil în magazin. Dacă valoarea nu este prezentă sau este nulă, nu va fi actualizată.

boolean
Example
true

Produs actualizat cu succes

Media typeapplication/json
object
id

Unique identifier of the attribute within a store

string
name

Product name

string
price

Product price

string
image_url

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

string
description

Product description

string
available

Specifies if the product is available to be purchased

boolean
error
string
Example
{
"id": "burger1",
"name": "Burger Large",
"price": "10.0",
"image_url": "https://server.com/image",
"description": "A large cheeseburger",
"available": true
}

Payload sau parametri invalizi

Media type*/*
object
id

Unique identifier of the attribute within a store

string
Example
burger1
name

Product name

string
Example
Burger Large
price

Product price

string
Example
10.0
image_url

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

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

Product description

string
Example
A large cheeseburger
available

Specifies if the product is available to be purchased

boolean
Example
true
error
string

Neautorizat

Media type*/*
object
id

Unique identifier of the attribute within a store

string
Example
burger1
name

Product name

string
Example
Burger Large
price

Product price

string
Example
10.0
image_url

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

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

Product description

string
Example
A large cheeseburger
available

Specifies if the product is available to be purchased

boolean
Example
true
error
string

Eroare internă a serverului

Media type*/*
object
id

Unique identifier of the attribute within a store

string
Example
burger1
name

Product name

string
Example
Burger Large
price

Product price

string
Example
10.0
image_url

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

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

Product description

string
Example
A large cheeseburger
available

Specifies if the product is available to be purchased

boolean
Example
true
error
string