Invoices
Create and manage invoices
Returns all invoices.
Your API key (obtain from dashboard)
Page number (1-based)
1Example: 1Number of items per page
10Example: 10Search by invoice reference
INV-123Filter by invoice status
pendingPossible values: Filter by invoice state
openPossible values: Filter by currency
NGNFilter invoices created from this date/time (ISO 8601)
2026-03-01T00:00:00ZFilter invoices created up to this date/time (ISO 8601)
2026-03-11T23:59:59ZIndicates if the request was successful
trueResponse message
SuccessUnauthorized
GET /api/v1/invoices HTTP/1.1
Host: api.coincircuit.io
x-api-key: YOUR_API_KEY
Accept: */*
{
"success": true,
"message": "Success",
"data": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"reference": "inv_ref_abc123xyz789",
"description": "Payment for subscription service",
"status": "pending",
"state": "open",
"isRefunded": false,
"isUnderpaymentAccepted": false,
"amount": "100000",
"amountPaid": "50000",
"currency": "NGN",
"items": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Pro Plan subscription",
"description": "January 2025 billing period",
"unit": "seats",
"quantity": "3",
"unitPrice": "5000.00",
"lineTotal": "15000.00"
}
],
"asset": "USDT",
"chain": "ethereum",
"merchant": {
"businessName": "Acme Corporation",
"logoUrl": "https://example.com/logo.png"
},
"customer": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"firstName": "John",
"lastName": "Doe",
"email": "customer@example.com",
"phone": "+1234567890",
"telegramId": "123456789",
"metadata": {
"source": "website",
"referrer": "google"
},
"createdAt": "2024-01-15T10:30:00.000Z",
"updatedAt": "2024-01-15T10:30:00.000Z"
},
"url": "https://checkout.coincircuit.io/invoice/inv-abc123",
"successUrl": "https://example.com/success",
"cancelUrl": "https://example.com/cancel",
"metadata": {
"orderId": "ORD-12345",
"customerId": "CUST-67890"
},
"periodStart": "2024-01-01T00:00:00.000Z",
"periodEnd": "2024-01-31T23:59:59.999Z",
"paidAt": "2024-01-20T10:30:00.000Z",
"expiresAt": "2024-02-15T10:30:00.000Z",
"createdAt": "2024-01-15T10:30:00.000Z"
}
],
"meta": {
"page": 1,
"size": 10,
"total": 42,
"totalPages": 5
}
}Creates an invoice for a product/service.
Your API key (obtain from dashboard)
Custom invoice reference. If not provided, auto-generated.
INV-2024-001Fiat currency for the invoice
NGNPossible values: Invoice description shown to the customer
Payment for Pro Plan - January 2025Invoice expiry date in ISO 8601 format. Defaults to 1 day from creation, up to a maximum of 5 days.
2025-01-16T22:30:00.000ZBilling period start date (for subscription/recurring invoices)
2024-12-01T00:00:00.000ZBilling period end date (for subscription/recurring invoices)
2024-12-31T23:59:59.000Zcustom metadata
{"orderId":"12345","customField":"value"}Custom success redirect URL for invoice
https://example.com/successCustom cancel redirect URL for invoice
https://example.com/cancelOptional URL to receive webhook notifications for this invoice (must be HTTPS). Overrides your dashboard webhook URL for this invoice only.
https://example.com/webhooksCryptocurrency asset
USDTBlockchain network
ethereumIndicates if the request was successful
trueResponse message
SuccessInvalid input or expiration date exceeds 5 days
Unauthorized
Internal server error
POST /api/v1/invoices HTTP/1.1
Host: api.coincircuit.io
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 705
{
"reference": "INV-2024-001",
"items": [
{
"name": "Pro Plan subscription",
"description": "January 2025 billing period",
"unit": "seats",
"quantity": "3",
"unitPrice": "5000.00"
}
],
"currency": "NGN",
"description": "Payment for Pro Plan - January 2025",
"expiresAt": "2025-01-16T22:30:00.000Z",
"periodStart": "2024-12-01T00:00:00.000Z",
"periodEnd": "2024-12-31T23:59:59.000Z",
"metadata": {
"orderId": "12345",
"customField": "value"
},
"successUrl": "https://example.com/success",
"cancelUrl": "https://example.com/cancel",
"webhookUrl": "https://example.com/webhooks",
"asset": "USDT",
"chain": "ethereum",
"customer": {
"email": "customer@example.com",
"firstName": "Jane Doe",
"lastName": "Doe",
"phone": "+2348012345678",
"telegramId": "1283761283"
}
}{
"success": true,
"message": "Success",
"data": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"reference": "inv_ref_abc123xyz789",
"description": "Payment for subscription service",
"status": "pending",
"state": "open",
"isRefunded": false,
"isUnderpaymentAccepted": false,
"amount": "100000",
"amountPaid": "50000",
"currency": "NGN",
"items": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Pro Plan subscription",
"description": "January 2025 billing period",
"unit": "seats",
"quantity": "3",
"unitPrice": "5000.00",
"lineTotal": "15000.00"
}
],
"asset": "USDT",
"chain": "ethereum",
"merchant": {
"businessName": "Acme Corporation",
"logoUrl": "https://example.com/logo.png"
},
"customer": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"firstName": "John",
"lastName": "Doe",
"email": "customer@example.com",
"phone": "+1234567890",
"telegramId": "123456789",
"metadata": {
"source": "website",
"referrer": "google"
},
"createdAt": "2024-01-15T10:30:00.000Z",
"updatedAt": "2024-01-15T10:30:00.000Z"
},
"url": "https://checkout.coincircuit.io/invoice/inv-abc123",
"successUrl": "https://example.com/success",
"cancelUrl": "https://example.com/cancel",
"metadata": {
"orderId": "ORD-12345",
"customerId": "CUST-67890"
},
"periodStart": "2024-01-01T00:00:00.000Z",
"periodEnd": "2024-01-31T23:59:59.999Z",
"paidAt": "2024-01-20T10:30:00.000Z",
"expiresAt": "2024-02-15T10:30:00.000Z",
"createdAt": "2024-01-15T10:30:00.000Z"
}
}Returns the invoice for the given reference.
Invoice reference
inv-lx123abc-xyz789def0123456789Indicates if the request was successful
trueResponse message
SuccessInvoice not found
GET /api/v1/invoices/reference/{reference} HTTP/1.1
Host: api.coincircuit.io
Accept: */*
{
"success": true,
"message": "Success",
"data": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"reference": "inv_ref_abc123xyz789",
"description": "Payment for subscription service",
"status": "pending",
"state": "open",
"isRefunded": false,
"isUnderpaymentAccepted": false,
"amount": "100000",
"amountPaid": "50000",
"currency": "NGN",
"items": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Pro Plan subscription",
"description": "January 2025 billing period",
"unit": "seats",
"quantity": "3",
"unitPrice": "5000.00",
"lineTotal": "15000.00"
}
],
"asset": "USDT",
"chain": "ethereum",
"merchant": {
"businessName": "Acme Corporation",
"logoUrl": "https://example.com/logo.png"
},
"customer": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"firstName": "John",
"lastName": "Doe",
"email": "customer@example.com",
"phone": "+1234567890",
"telegramId": "123456789",
"metadata": {
"source": "website",
"referrer": "google"
},
"createdAt": "2024-01-15T10:30:00.000Z",
"updatedAt": "2024-01-15T10:30:00.000Z"
},
"url": "https://checkout.coincircuit.io/invoice/inv-abc123",
"successUrl": "https://example.com/success",
"cancelUrl": "https://example.com/cancel",
"metadata": {
"orderId": "ORD-12345",
"customerId": "CUST-67890"
},
"periodStart": "2024-01-01T00:00:00.000Z",
"periodEnd": "2024-01-31T23:59:59.999Z",
"paidAt": "2024-01-20T10:30:00.000Z",
"expiresAt": "2024-02-15T10:30:00.000Z",
"createdAt": "2024-01-15T10:30:00.000Z"
}
}Last updated
Was this helpful?