Skip to content

Change a product's Google details

PATCH
/api/v1/commerce/products/{id}/google
curl --request PATCH \
--url https://digize.com/api/v1/commerce/products/example/google \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: 5f1c2a8e-3b7d-4c55-9a0e-1f2d3c4b5a69' \
--header 'x-api-key: <x-api-key>' \
--data '{ "brand": "example", "condition": "new", "variants": [ { "id": "example", "mpn": "example" } ] }'

The brand, condition and each variant’s manufacturer part number Google lists the product with. GTINs come from the variants’ barcodes.

Needs the commerce:write permission.

id
required
string
>= 1 characters <= 64 characters
Idempotency-Key
string
>= 1 characters <= 255 characters

Makes the request safe to send again: for 24 hours the same key and request answer the first response without repeating the change.

Example

5f1c2a8e-3b7d-4c55-9a0e-1f2d3c4b5a69
Media typeapplication/json
object
brand
required
string
<= 70 characters
condition
required
string
Allowed values: new used refurbished
variants
required
Array<object>
<= 100 items
object
id
required
string
>= 1 characters <= 64 characters
mpn
required
string
<= 70 characters

Done

Media typeapplication/json
object
connected
required
boolean
reason
required

Why the product isn’t listed on Google, or null when it is.

string | null
brand
required
string
condition
required
string
Allowed values: new used refurbished
brandFallback
required
string
variants
required
Array<object>
object
id
required
string
label
required
string
barcode
required
string
gtin
required

Whether the barcode is a GTIN Google takes.

boolean
mpn
required
string
status
required
Any of:
string
Allowed values: pending approved limited disapproved
issues
required
Array<object>
object
code
required
string
severity
required
string
Allowed values: disapproved demoted warning
description
required
string
detail
required
string
attribute
required
string | null
documentation
required
string | null
countries
required
Array<string>
approvedIn
required
Array<string>
error
required
string | null
sentAt
required
Any of:
string format: date-time
checkedAt
required
Any of:
string format: date-time
statusesAt
required
Any of:
string format: date-time

Example

{
"condition": "new",
"variants": [
{
"status": "pending",
"issues": [
{
"severity": "disapproved"
}
]
}
]
}

What was sent isn’t valid (invalid).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

No key, or one that’s unknown, off or expired.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

The key doesn’t have the permission this needs.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

Nothing has that id (not_found).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

A request with the same Idempotency-Key is still running (conflict).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

The Idempotency-Key was used with a different request.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

Over the rate limit; see retry-after.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}