post

/variant/archive

Remove a product variation. Use this method to completely remove variants that were created by mistake or variants that will never be on sale anymore. Removed variants cannot be restored by merchants.

Do not use this method to temporarily disable variants.

Returns

If the request was successful the API will return an HTTP status code of 200 and a status code of 0.

Request Body

Schema
object
sku
string

The unique identifier that your system uses to recognize this variation.
Acceptable: “HSC0424PP”, “112123343455432”.
Unacceptable: “2”, “a”.

required
access_token
string

Your access token

required

Responses

Schema
object
code
number

Contains the status code for the request, 0 means success and any other number implies a failure

1 validation + required
message
string

Sometimes will store a human readable status message to aid in debugging. It is generally used only for errors

required
data
object

Send a Test Request

Send requests directly from the browser (CORS must be enabled)
$$.env
1 variable not set
host