Overwrite Deliverables
curl --request PUT \
--url https://api.sellauth.com/v1/shops/{shopId}/products/{productId}/deliverables/overwrite/{variantId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"deliverables": [
"KEY-AAAA-1111-XXXX",
"KEY-BBBB-2222-YYYY"
],
"confirm_empty": false
}
'import requests
url = "https://api.sellauth.com/v1/shops/{shopId}/products/{productId}/deliverables/overwrite/{variantId}"
payload = {
"deliverables": ["KEY-AAAA-1111-XXXX", "KEY-BBBB-2222-YYYY"],
"confirm_empty": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
deliverables: ['KEY-AAAA-1111-XXXX', 'KEY-BBBB-2222-YYYY'],
confirm_empty: false
})
};
fetch('https://api.sellauth.com/v1/shops/{shopId}/products/{productId}/deliverables/overwrite/{variantId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sellauth.com/v1/shops/{shopId}/products/{productId}/deliverables/overwrite/{variantId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'deliverables' => [
'KEY-AAAA-1111-XXXX',
'KEY-BBBB-2222-YYYY'
],
'confirm_empty' => false
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.sellauth.com/v1/shops/{shopId}/products/{productId}/deliverables/overwrite/{variantId}"
payload := strings.NewReader("{\n \"deliverables\": [\n \"KEY-AAAA-1111-XXXX\",\n \"KEY-BBBB-2222-YYYY\"\n ],\n \"confirm_empty\": false\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.sellauth.com/v1/shops/{shopId}/products/{productId}/deliverables/overwrite/{variantId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"deliverables\": [\n \"KEY-AAAA-1111-XXXX\",\n \"KEY-BBBB-2222-YYYY\"\n ],\n \"confirm_empty\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sellauth.com/v1/shops/{shopId}/products/{productId}/deliverables/overwrite/{variantId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"deliverables\": [\n \"KEY-AAAA-1111-XXXX\",\n \"KEY-BBBB-2222-YYYY\"\n ],\n \"confirm_empty\": false\n}"
response = http.request(request)
puts response.read_body[
"KEY-AAAA-1111-XXXX",
"KEY-BBBB-2222-YYYY"
]{
"success": false,
"message": "This would permanently delete all 3 remaining deliverables and cannot be undone. Resend with \"confirm_empty\": true to proceed."
}Products
Overwrite Deliverables
Replaces all deliverables of a variant. Stock is set to the new deliverable count.
PUT
/
v1
/
shops
/
{shopId}
/
products
/
{productId}
/
deliverables
/
overwrite
/
{variantId}
Overwrite Deliverables
curl --request PUT \
--url https://api.sellauth.com/v1/shops/{shopId}/products/{productId}/deliverables/overwrite/{variantId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"deliverables": [
"KEY-AAAA-1111-XXXX",
"KEY-BBBB-2222-YYYY"
],
"confirm_empty": false
}
'import requests
url = "https://api.sellauth.com/v1/shops/{shopId}/products/{productId}/deliverables/overwrite/{variantId}"
payload = {
"deliverables": ["KEY-AAAA-1111-XXXX", "KEY-BBBB-2222-YYYY"],
"confirm_empty": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
deliverables: ['KEY-AAAA-1111-XXXX', 'KEY-BBBB-2222-YYYY'],
confirm_empty: false
})
};
fetch('https://api.sellauth.com/v1/shops/{shopId}/products/{productId}/deliverables/overwrite/{variantId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sellauth.com/v1/shops/{shopId}/products/{productId}/deliverables/overwrite/{variantId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'deliverables' => [
'KEY-AAAA-1111-XXXX',
'KEY-BBBB-2222-YYYY'
],
'confirm_empty' => false
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.sellauth.com/v1/shops/{shopId}/products/{productId}/deliverables/overwrite/{variantId}"
payload := strings.NewReader("{\n \"deliverables\": [\n \"KEY-AAAA-1111-XXXX\",\n \"KEY-BBBB-2222-YYYY\"\n ],\n \"confirm_empty\": false\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.sellauth.com/v1/shops/{shopId}/products/{productId}/deliverables/overwrite/{variantId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"deliverables\": [\n \"KEY-AAAA-1111-XXXX\",\n \"KEY-BBBB-2222-YYYY\"\n ],\n \"confirm_empty\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sellauth.com/v1/shops/{shopId}/products/{productId}/deliverables/overwrite/{variantId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"deliverables\": [\n \"KEY-AAAA-1111-XXXX\",\n \"KEY-BBBB-2222-YYYY\"\n ],\n \"confirm_empty\": false\n}"
response = http.request(request)
puts response.read_body[
"KEY-AAAA-1111-XXXX",
"KEY-BBBB-2222-YYYY"
]{
"success": false,
"message": "This would permanently delete all 3 remaining deliverables and cannot be undone. Resend with \"confirm_empty\": true to proceed."
}Authorizations
You can retrieve your API key from your dashboard under Account > Developers.
Path Parameters
The shop ID.
The product ID.
The variant ID.
Body
application/json
The full new deliverables list, one per array item. Must be sent; empty strings are dropped. Anything not in this list is deleted permanently.
Example:
["KEY-AAAA-1111-XXXX", "KEY-BBBB-2222-YYYY"]
Required to be true when sending an empty list while deliverables still exist, otherwise the wipe is rejected.
Example:
false
Response
The new deliverables list
Example:
["KEY-AAAA-1111-XXXX", "KEY-BBBB-2222-YYYY"]