List Conversions
Retrieve all conversions (orders) for a project.
Page number for pagination (default: 1)
Number of results per page (default: 15)
Search by order code, customer email, or name
GET /api/brands/{brand}/conversions
curl "https://app.elasticfunnels.io/api/brands/{brand_id}/conversions?page=1&per_page=15" \
-H "EF-Access-Key: your_api_key_here"
{
"data": [
{
"code": "ORD-12345",
"customer_email": "[email protected]",
"customer_name": "John Doe",
"total": 149.97,
"currency": "USD",
"status": "completed",
"created_at": "2024-12-10T10:30:00.000000Z"
}
],
"meta": {
"current_page": 1,
"per_page": 15,
"total": 150
}
}
Get Conversion Details
Retrieve details about a specific conversion.
GET /api/brands/{brand}/conversions/{code}
curl https://app.elasticfunnels.io/api/brands/{brand_id}/conversions/ORD-12345 \
-H "EF-Access-Key: your_api_key_here"
{
"code": "ORD-12345",
"customer_email": "[email protected]",
"customer_name": "John Doe",
"customer_phone": "+1234567890",
"total": 149.97,
"currency": "USD",
"status": "completed",
"items": [
{
"product_name": "Main Product",
"price": 49.99,
"quantity": 1,
"type": "main"
},
{
"product_name": "Upsell Product",
"price": 99.98,
"quantity": 2,
"type": "upsell"
}
],
"shipping_address": {
"address_1": "123 Main St",
"city": "New York",
"state": "NY",
"zip": "10001",
"country": "US"
},
"created_at": "2024-12-10T10:30:00.000000Z"
}
Export Conversions
Export conversions to CSV.
Filter by status: completed, refunded, chargeback
POST /api/brands/{brand}/conversions/export
curl -X POST https://app.elasticfunnels.io/api/brands/{brand_id}/conversions/export \
-H "EF-Access-Key: your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"start_date": "2024-12-01",
"end_date": "2024-12-10"
}'
{
"message": "Export is being processed",
"export_id": "exp_abc123",
"download_url": "https://app.elasticfunnels.io/api/brands/{brand_id}/exports/exp_abc123/download/{token}"
}
Refund Conversion
Process a refund for a conversion (requires admin/owner permissions).
Refund amount (optional, defaults to full refund)
POST /api/brands/{brand}/conversions/{code}/refund
curl -X POST https://app.elasticfunnels.io/api/brands/{brand_id}/conversions/ORD-12345/refund \
-H "EF-Access-Key: your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"reason": "Customer request"
}'
{
"message": "Refund processed successfully",
"code": "ORD-12345",
"refund_amount": 149.97,
"status": "refunded"
}