Retrieve
curl --request GET \
--url https://{defaultHost}/v1/bulk_actions/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://{defaultHost}/v1/bulk_actions/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{defaultHost}/v1/bulk_actions/{id}', 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://{defaultHost}/v1/bulk_actions/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{defaultHost}/v1/bulk_actions/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{defaultHost}/v1/bulk_actions/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{defaultHost}/v1/bulk_actions/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "b4c734cf-b3b4-49b1-ab82-bd0aa441cd5e",
"object": "bulk_action",
"action_type": "delete_products",
"record_ids": [
"c3cada2a-f5bf-4f71-b11d-9f48f72152b6",
"d66a1b2b-c5e9-4487-aa7f-5739415df555",
"512ef706-a8bc-439e-a0d1-5ea8a921b9c9",
"176add1d-dd61-414a-89f1-4a470af17b42",
"84a0a31f-f104-41c4-ab36-6b2fd403cda4"
],
"skipped_record_ids": [],
"status": "pending",
"created_at": 1793796850,
"updated_at": 1793796850
}Bulk Actions
Retrieve
Retrieves details of a specific bulk action.
GET
/
v1
/
bulk_actions
/
{id}
Retrieve
curl --request GET \
--url https://{defaultHost}/v1/bulk_actions/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://{defaultHost}/v1/bulk_actions/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{defaultHost}/v1/bulk_actions/{id}', 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://{defaultHost}/v1/bulk_actions/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{defaultHost}/v1/bulk_actions/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{defaultHost}/v1/bulk_actions/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{defaultHost}/v1/bulk_actions/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "b4c734cf-b3b4-49b1-ab82-bd0aa441cd5e",
"object": "bulk_action",
"action_type": "delete_products",
"record_ids": [
"c3cada2a-f5bf-4f71-b11d-9f48f72152b6",
"d66a1b2b-c5e9-4487-aa7f-5739415df555",
"512ef706-a8bc-439e-a0d1-5ea8a921b9c9",
"176add1d-dd61-414a-89f1-4a470af17b42",
"84a0a31f-f104-41c4-ab36-6b2fd403cda4"
],
"skipped_record_ids": [],
"status": "pending",
"created_at": 1793796850,
"updated_at": 1793796850
}Authorizations
Response
200 - application/json
Success
The status of the bulk action. Possible values include:
completed: The bulk action has been executed, possibly with some errors.invalid: The bulk action contains no record_ids that support the given action.pending: The bulk action is pending and not yet processed.processing: The bulk action is currently being processed.succeeded: The bulk action has succeeded with no errors for all the supporting record_ids.
Was this page helpful?