Skip to main content
GET
/
v1
/
bulk_actions
/
{id}
Retrieve
curl --request GET \
  --url https://{defaultHost}/v1/bulk_actions/{id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "23b4d26a-e0a0-4fc3-b63f-cd5b19b3779c",
  "object": "bulk_action",
  "action_type": "delete_products",
  "record_ids": [
    "10c47574-aa3f-4ef0-94b6-efe6a8569768",
    "b1c1c8cb-d930-43fb-b0de-1ccc87653eb6",
    "80a13789-ff98-4ac9-a3de-cf3c6925d160",
    "86b19a6e-055c-41a1-96db-bce52c2027fa",
    "2f658dfe-201a-4abc-9411-e819d9bb5284"
  ],
  "skipped_record_ids": [],
  "status": "pending",
  "created_at": 1778010860,
  "updated_at": 1778010860
}

Documentation Index

Fetch the complete documentation index at: https://developer.surecart.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Response

200 - application/json

Success

id
string | null

The UUID of the specific object.

object
string

A string describing the object type returned.

action_type
string

The type of action to be performed. Possible values include:

  • delete_customers
  • delete_products
record_ids
array

The id of records to perform the bulk action on.

skipped_record_ids
array

The array of ids that are skipped due to the action not being applicable to them.

status
string

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.
created_at
integer | null

Time at which the object was created. Measured in seconds since the Unix epoch.

updated_at
integer | null

Time at which the object was last updated. Measured in seconds since the Unix epoch.