Skip to main content
DELETE
Delete Purchase

Delete Purchase

Permanently delete a purchase from your organization. This will remove the purchase and its associated CO2e emissions data from your Scope 3 Category 1 calculations.
Irreversible Action: Deleting a purchase permanently removes all its data, including emissions calculations. Consider updating the status to inactive instead if you want to preserve historical data while excluding it from calculations.

Request

Headers

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

Path Parameters

string
required
The unique identifier (UUID) of the purchase to deleteExample: 550e8400-e29b-41d4-a716-446655440000

Response

Returns 204 No Content on successful deletion. No response body is returned.

Example

Successful Response

No response body is returned.

Common Errors

401 Unauthorized

Cause: Missing or invalid API key
Solution: Verify your API key is valid and active.

404 Not Found

Cause: Purchase not found or doesn’t belong to your organization
Solution: Verify the purchase ID is correct and belongs to your organization.

422 Validation Error

Cause: Invalid purchase ID format
Solution: Ensure the purchase ID is a valid UUID format.

Use Cases

Delete Single Purchase

Remove a purchase from the system:

Delete with Confirmation

Verify the purchase details before deleting:

Bulk Delete Purchases

Delete multiple purchases:

Delete Purchases by File

Remove all purchases linked to a specific file:

Delete Inactive Purchases

Clean up purchases marked as inactive:

Best Practices

Consider Alternatives

Before deleting, consider:
  1. Set to Inactive: Update status: "inactive" to preserve historical data
  2. Archive Data: Export purchase data before deletion for audit trails
  3. Verify Impact: Check if the purchase’s CO2e data is needed for reports

Preserve Historical Data

If you need to keep emissions records:

Audit Trail

Maintain a log of deletions:

Update Purchase

Modify purchase (e.g., set as inactive instead of deleting)

List Purchases

View all purchases

Create Purchase

Add a new purchase

Get Purchase

View purchase details before deleting