Skip to main content
POST
Bulk Delete

Bulk Delete

Delete multiple purchases by their IDs. All purchases must belong to the requesting organization. Related emission records (total_impacts) are automatically deleted to maintain referential integrity. Returns detailed results for each ID, allowing you to handle partial failures gracefully.

Request

Headers

string
required
Your API key for authenticationExample: sk_live_1234567890abcdef
string
required
Your organization UUIDExample: a8315ef3-dd50-43f8-b7ce-d839e68d51fa

Body Parameters

string[]
required
Array of purchase UUIDs to delete (1–100,000 per request)

Response

string[]
UUIDs of successfully deleted purchases
object[]
Failed deletions with reason:

Example

Successful Response

Common Errors

401 Unauthorized

Cause: Missing or invalid API key

403 Forbidden

Cause: The authenticated user is not a member of the organization

422 Validation Error

Cause: Empty array or more than 100,000 IDs

Bulk Delete by Filters

Delete all purchases matching filter criteria

List Purchases

Browse and filter purchases