Bulk Delete
Bulk Delete
Delete multiple purchases by ID in a single request
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
Your API key for authenticationExample:
sk_live_1234567890abcdefYour organization UUIDExample:
a8315ef3-dd50-43f8-b7ce-d839e68d51faBody Parameters
Array of purchase UUIDs to delete (1–100,000 per request)
Response
UUIDs of successfully deleted purchases
Failed deletions with reason:
| Field | Type | Description |
|---|---|---|
id | string | The purchase UUID that failed |
reason | string | Why the deletion failed |
Example
Successful Response
Common Errors
401 Unauthorized
Cause: Missing or invalid API key403 Forbidden
Cause: The authenticated user is not a member of the organization422 Validation Error
Cause: Empty array or more than 100,000 IDsRelated Endpoints
Bulk Delete by Filters
Delete all purchases matching filter criteria
List Purchases
Browse and filter purchases

