Get a presigned URL to upload multiple purchases via CSV
Request presigned URL
/api/v1/purchases/bulk/csv with your file nameUpload to S3
Asynchronous processing
Verify results
sk_live_1234567890abcdefff4adcc7-8172-45fe-9cf1-e90a6de53aa9a1b2c3d4-e5f6-7890-abcd-ef1234567890"2024_q1_purchases.csv""text/csv"| Column | Description | Valid Values | Example |
|---|---|---|---|
quantity | Purchase amount | Positive number | 25000.50 |
unit_id | UUID of currency unit | UUID from /api/v1/units?type=fiat_currency | eur-unit-uuid |
sector | Economic sector | Sector name from EXIOBASE | "IT Services" |
product_name | Product or service name | Free text | "Cloud Computing" |
purchase_date | Date of purchase | YYYY-MM-DD format | 2024-01-15 |
country | Country of purchase | ISO 3166-1 alpha-2 code | ES |
| Column | Description | Example |
|---|---|---|
description | Purchase description or notes | "Q1 AWS infrastructure" |
recycled | Recycled content percentage (0.0 to 1.0) | 0.3 (30% recycled) |
frequency | Purchase frequency | once, weekly, monthly, quarterly, yearly |
supplier_business_name | Supplier company name | "AWS EMEA SARL" |
supplier_country | Supplier country | ES, US, etc. |
GET /api/v1/units?type=fiat_currency"IT Services", "Manufacturing", "Transportation", "Construction""Cloud Computing", "Office Furniture", "Legal Services"YYYY-MM-DDES (Spain), US (USA), FR (France), DE (Germany), GB (UK)once, weekly, monthly, quarterly, yearlyonce0.0 (0%) to 1.0 (100%)0.0 if not applicablefile_name parameter in the request body.
unit_id doesn’t exist or is not a currency unit
Solution: Use the Units endpoint to get valid currency unit IDs, or use EUR/USD/GBP units.
purchase_date is in the future
Solution: Ensure all purchase dates are today or in the past.
| Limit | Value |
|---|---|
| Maximum file size | 100 MB |
| Maximum rows per CSV | 50,000 |
| URL expiration time | 15 minutes |
| Processing time | ~1 second per 100 purchases |
/api/v1/units?type=fiat_currencystatus: "error":
Manufacturing - General manufacturingFood & Beverage ManufacturingTextile ManufacturingChemical ManufacturingIT Services - Technology and software servicesProfessional Services - Consulting, legal, accountingFinancial Services - Banking, insuranceHealthcare Services - Medical servicesTransportation - General transport servicesAir Transport - Air freight and passengerWater Transport - Sea and inland water transportLand Transport - Road and rail transportConstruction - Building and infrastructureReal Estate - Property servicesOffice Supplies - Stationery, equipmentUtilities - Water, waste managementAgriculture - Agricultural productsCO2e = Amount (EUR) × Emission Factor (kg CO2e/EUR)recycled percentage is provided:
ESUSFRDEGBITNL