Skip to main content

PATCH /v1/items/{id}/variants/{variantId}

Scope

write_items

Request parameters

NameInTypeRequiredDescription
idpathstringrequiredID of the target resource.
variantIdpathstringrequiredID of the target resource.
Idempotency-KeyheaderstringrequiredIdempotency key (required). A UUID v4 is recommended. Resending the same key replays the original result, and the response carries Idempotent-Replay: true. Sending a different body with the same key returns 422, so always retry with the identical request.
skubodystringoptionalSKU for this variant.
pricebodyobjectoptionalPrice for this variant. null falls back to the item's price.
discount_ratebodyintegeroptionalDiscount rate for this variant, in percent.
statusbodyenum(activeinactive)optional
inventorybodyobjectoptional⚠️ Not editable here. Update stock through PATCH /v1/items/{id}/stock with variant_id.
axis_valuesbodyobjectoptional⚠️ Not editable. The combination of axis values is fixed at creation. Sending it returns 409.

Response example

{
"data": {
"id": "string",
"item_id": "string",
"sku": "string",
"name": "string",
"price": {
"amount": 0,
"currency": "JPY"
},
"discount_rate": 0,
"inventory": 0,
"status": "active",
"axis_values": [
{
"axis": "string",
"value": "string"
}
]
}
}

Description

Edit a variant (price / discount_rate / status / sku). (write_items)

Error response example

{
"error": {
"code": "insufficient_scope",
"message": "requires scope 'write_items'",
"request_id": "req_01H..."
}
}

Possible errors: 400 / 401 / 403 / 404 / 409 / 503