Purchases API
The Purchases API allows you to create, retrieve, update, and delete purchase records for tracking Scope 3 Category 1 (Purchased Goods and Services) emissions. Purchases can be tracked using spend-based or supplier-specific methodologies for accurate CO2e calculations.GHG Protocol Scope 3 Category 1Purchased Goods and Services covers emissions from the production of goods and services purchased by your organization. This API helps you collect and manage the data needed for accurate Category 1 reporting using either spend-based or supplier-specific emission factors.
Key Features
- Purchase Management: Create and manage purchase records with supplier and product information
- Spend-Based Tracking: Calculate emissions based on monetary spend and sector-specific emission factors
- Supplier-Specific Factors: Use custom emission factors for more accurate calculations
- CAPEX/OPEX Classification: Distinguish between capital and operational expenditures
- File Attachments: Link purchases to uploaded documents (invoices, receipts)
- Pagination Support: Efficiently retrieve large purchase lists
- Filtering: Filter purchases by status, type, expense type, and file
Authentication
All endpoints require authentication using an API key included in thex-api-key header.
Headers
All requests must include:string
required
Your organization UUIDExample:
a8315ef3-dd50-43f8-b7ce-d839e68d51fastring
required
Your API key for authenticationExample:
sk_live_1234567890abcdefAvailable Endpoints
List Purchases
Retrieve all purchases with filtering and pagination
Get Purchase
Get a specific purchase by ID
Create Purchase
Add a new purchase to your organization
Update Purchase
Modify purchase details
Delete Purchase
Remove a purchase from your organization
Data Model
Purchase Object
The purchase object contains detailed information about a purchased good or service:Purchase Attributes
Purchase Types
Spend-Based vs Supplier-Specific
- Spend-based is easier to implement but less accurate. It uses average emission factors for economic sectors.
- Supplier-specific requires more data but provides more accurate results by using actual emission factors from your suppliers.
Expense Types
Status Types
CO2e Calculation
Emissions are calculated using different methodologies based on purchase type:Spend-Based Method
Supplier-Specific Method
Workflow
Tracking Purchases
- Create Purchase: Add purchase with product, quantity, and sector information
- Set Type: Choose spend-based or supplier-specific calculation method
- Link Supplier Factor (optional): For supplier-specific, link a custom emission factor
- Query Results: Retrieve purchases to see calculated CO2e
Bulk Upload
For large volumes of purchases, use the CSV bulk upload feature in the Dcycle app or the Legacy API bulk upload endpoint.Error Handling
Common HTTP Status Codes
Error Response Format
Use Cases
Track Office Supplies Spend
Monitor CO2e emissions for office supply purchases:Calculate Category 1 Totals
Sum up all purchased goods and services emissions:Related Documentation
Scope 3 Category 1 Guide
Complete tutorial for tracking Scope 3 Category 1 emissions
Custom Emission Factors
Create supplier-specific emission factors
Authentication Guide
Learn how to authenticate API requests
Suppliers API
Manage supplier data
MCP Tools
Query purchase data from AI assistants via MCP