Delete alternate SKU
curl --request DELETE \
--url https://{companyName}.api.joinluminous.com/external/api/v1/products/alternate-sku \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"alternate_sku": "WIDGET-ALT-001"
}
'import requests
url = "https://{companyName}.api.joinluminous.com/external/api/v1/products/alternate-sku"
payload = { "alternate_sku": "WIDGET-ALT-001" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({alternate_sku: 'WIDGET-ALT-001'})
};
fetch('https://{companyName}.api.joinluminous.com/external/api/v1/products/alternate-sku', 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://{companyName}.api.joinluminous.com/external/api/v1/products/alternate-sku",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_POSTFIELDS => json_encode([
'alternate_sku' => 'WIDGET-ALT-001'
]),
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://{companyName}.api.joinluminous.com/external/api/v1/products/alternate-sku"
payload := strings.NewReader("{\n \"alternate_sku\": \"WIDGET-ALT-001\"\n}")
req, _ := http.NewRequest("DELETE", 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.delete("https://{companyName}.api.joinluminous.com/external/api/v1/products/alternate-sku")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"alternate_sku\": \"WIDGET-ALT-001\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{companyName}.api.joinluminous.com/external/api/v1/products/alternate-sku")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"alternate_sku\": \"WIDGET-ALT-001\"\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"product_id": 123,
"product_sku": "<string>",
"alternate_sku": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>",
"errors": {}
}Alternate SKUs
Delete alternate SKU
Remove an alternate SKU from whichever product it is attached to. Matching is case-insensitive,
mirroring the uniqueness check used by POST /products/alternate-sku.
Useful for bulk cleanup (e.g. via script) instead of removing alternate SKUs by hand.
Returns the deleted row, or 404 if no alternate SKU matches.
DELETE
/
products
/
alternate-sku
Delete alternate SKU
curl --request DELETE \
--url https://{companyName}.api.joinluminous.com/external/api/v1/products/alternate-sku \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"alternate_sku": "WIDGET-ALT-001"
}
'import requests
url = "https://{companyName}.api.joinluminous.com/external/api/v1/products/alternate-sku"
payload = { "alternate_sku": "WIDGET-ALT-001" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({alternate_sku: 'WIDGET-ALT-001'})
};
fetch('https://{companyName}.api.joinluminous.com/external/api/v1/products/alternate-sku', 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://{companyName}.api.joinluminous.com/external/api/v1/products/alternate-sku",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_POSTFIELDS => json_encode([
'alternate_sku' => 'WIDGET-ALT-001'
]),
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://{companyName}.api.joinluminous.com/external/api/v1/products/alternate-sku"
payload := strings.NewReader("{\n \"alternate_sku\": \"WIDGET-ALT-001\"\n}")
req, _ := http.NewRequest("DELETE", 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.delete("https://{companyName}.api.joinluminous.com/external/api/v1/products/alternate-sku")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"alternate_sku\": \"WIDGET-ALT-001\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{companyName}.api.joinluminous.com/external/api/v1/products/alternate-sku")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"alternate_sku\": \"WIDGET-ALT-001\"\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"product_id": 123,
"product_sku": "<string>",
"alternate_sku": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>",
"errors": {}
}Authorizations
Authenticate using a bearer token. To create a token, navigate to /settings/api-tokens and click Create API Token.
Body
application/json
The alternate SKU value to delete (matched case-insensitively)
⌘I