{
"id": "invoice_019851f5-39f7-714a-8f2c-3c3eede808b4",
"organization_id": "org_0196b0e9-11d8-7f26-b1d2-bd47054e4827",
"status": "PENDING",
"substatus": null,
"currency": "EUR",
"price": "56.550000000000000000000000000000",
"price_usd": "66.750000000000000000000000000000",
"created_at": "2025-07-28 18:54:42",
"updated_at": "2025-07-28 18:55:34",
"redirect_url": null,
"customer_email": "test@test.tt",
"metadata": {
"one": "1",
"two": "2",
"three": "3",
"four": "4"
},
"items": [
{
"id": "invoice_item_019851f5-39f8-753b-9cf5-985300807b51",
"organization_id": "org_0196b0e9-11d8-7f26-b1d2-bd47054e4827",
"invoice_id": "invoice_019851f5-39f7-714a-8f2c-3c3eede808b4",
"type": "PRODUCT",
"currency": "GBP",
"product_id": "product_01982266-ee05-7249-a0bf-787b4b6e0946",
"billing_schema_id": "schema_01982266-ee06-70fe-9cac-bc4b6d964815",
"payment_intent_id": null,
"quantity": 4,
"status": "INCLUDED",
"exclude_reason": null,
"created_at": "2025-07-28 18:54:42",
"updated_at": null,
"product": {
"id": "product_01982266-ee05-7249-a0bf-787b4b6e0946",
"version_group_id": "product_01981e60-62f5-7f75-8576-aa262be8ea54",
"is_active": 1,
"name": "Product #1",
"organization_id": "org_0196b0e9-11d8-7f26-b1d2-bd47054e4827",
"description": "111",
"image_id": null,
"created_at": "2025-07-19 13:17:07",
"updated_at": null,
"image": null
},
"billing_schema": {
"id": "schema_01982266-ee06-70fe-9cac-bc4b6d964815",
"is_active": 1,
"version_group_id": "schema_01982266-ee06-70fe-9cac-bc4b6d964815",
"name": "Basic Product",
"description": "Billing Schema #1",
"organization_id": "org_0196b0e9-11d8-7f26-b1d2-bd47054e4827",
"product_id": "product_01982266-ee05-7249-a0bf-787b4b6e0946",
"type": "ONE_TIME",
"currency": "GBP",
"base_price": "10.000000000000000000000000000000",
"interval_type": null,
"interval_count": null,
"payment_type": null,
"renew_type": null,
"billing_type": null,
"created_at": "2025-07-19 13:17:07",
"updated_at": null
}
},
{
"id": "invoice_item_019851f5-39f9-7eeb-aa8c-2ddfca8c65a3",
"organization_id": "org_0196b0e9-11d8-7f26-b1d2-bd47054e4827",
"invoice_id": "invoice_019851f5-39f7-714a-8f2c-3c3eede808b4",
"type": "PRODUCT",
"currency": "EUR",
"product_id": "product_0198222f-fe06-743f-8651-42128a1e218a",
"billing_schema_id": "schema_0198222f-fe07-76a8-87d0-880d5289f759",
"payment_intent_id": null,
"quantity": 1,
"status": "INCLUDED",
"exclude_reason": null,
"created_at": "2025-07-28 18:54:42",
"updated_at": null,
"product": {
"id": "product_0198222f-fe06-743f-8651-42128a1e218a",
"version_group_id": "product_0198222f-fe06-743f-8651-42128a1e218a",
"is_active": 1,
"name": "Product #2",
"organization_id": "org_0196b0e9-11d8-7f26-b1d2-bd47054e4827",
"description": "ONE_TIME PRODUCT",
"image_id": null,
"created_at": "2025-07-19 12:17:07",
"updated_at": null,
"image": null
},
"billing_schema": {
"id": "schema_0198222f-fe07-76a8-87d0-880d5289f759",
"is_active": 1,
"version_group_id": "schema_0198222f-fe07-76a8-87d0-880d5289f759",
"name": "Product #2",
"description": "Billing Schema #1",
"organization_id": "org_0196b0e9-11d8-7f26-b1d2-bd47054e4827",
"product_id": "product_0198222f-fe06-743f-8651-42128a1e218a",
"type": "ONE_TIME",
"currency": "EUR",
"base_price": "10.000000000000000000000000000000",
"interval_type": null,
"interval_count": null,
"payment_type": null,
"renew_type": null,
"billing_type": null,
"created_at": "2025-07-19 12:17:07",
"updated_at": null
}
}
],
"calculations": [
{
"id": "invoice_calc_019851f6-03c9-7768-9a6f-3e7a86b7eeed",
"organization_id": "org_0196b0e9-11d8-7f26-b1d2-bd47054e4827",
"invoice_id": "invoice_019851f5-39f7-714a-8f2c-3c3eede808b4",
"invoice_item_id": "invoice_item_019851f5-39f8-753b-9cf5-985300807b51",
"title": "Product #1",
"calculation_type": "PRODUCT",
"idx": 0,
"currency": "GBP",
"initial_price": "40.000000000000000000000000000000",
"price_delta": "0.000000000000000000000000000000",
"price": "40.000000000000000000000000000000",
"details": {
"price": "10.000000000000000000000000000000",
"currency": "GBP",
"quantity": 4,
"product_id": "product_01982266-ee05-7249-a0bf-787b4b6e0946"
},
"created_at": "2025-07-28 18:55:34",
"updated_at": null
},
{
"id": "invoice_calc_019851f6-03cc-7fe9-8c19-a4cb550bb75c",
"organization_id": "org_0196b0e9-11d8-7f26-b1d2-bd47054e4827",
"invoice_id": "invoice_019851f5-39f7-714a-8f2c-3c3eede808b4",
"invoice_item_id": "invoice_item_019851f5-39f8-753b-9cf5-985300807b51",
"title": "Currency change GBP => EUR",
"calculation_type": "CURRENCY_CHANGE",
"idx": 1,
"currency": "EUR",
"initial_price": "40.000000000000000000000000000000",
"price_delta": "0.000000000000000000000000000000",
"price": "46.557223908892338549036308436250",
"details": {
"to": "EUR",
"from": "GBP",
"to_rate_usd": "0.847260000000000000",
"from_rate_usd": "0.727930000000000000"
},
"created_at": "2025-07-28 18:55:34",
"updated_at": null
},
{
"id": "invoice_calc_019851f6-03ce-7afb-a2e6-897bb4a22728",
"organization_id": "org_0196b0e9-11d8-7f26-b1d2-bd47054e4827",
"invoice_id": "invoice_019851f5-39f7-714a-8f2c-3c3eede808b4",
"invoice_item_id": "invoice_item_019851f5-39f9-7eeb-aa8c-2ddfca8c65a3",
"title": "Product #2",
"calculation_type": "PRODUCT",
"idx": 0,
"currency": "EUR",
"initial_price": "10.000000000000000000000000000000",
"price_delta": "0.000000000000000000000000000000",
"price": "10.000000000000000000000000000000",
"details": {
"price": "10.000000000000000000000000000000",
"currency": "EUR",
"quantity": 1,
"product_id": "product_0198222f-fe06-743f-8651-42128a1e218a"
},
"created_at": "2025-07-28 18:55:34",
"updated_at": null
},
{
"id": "invoice_calc_019851f6-03d0-755e-ac57-96ca8b9dd424",
"organization_id": "org_0196b0e9-11d8-7f26-b1d2-bd47054e4827",
"invoice_id": "invoice_019851f5-39f7-714a-8f2c-3c3eede808b4",
"invoice_item_id": null,
"title": "Total",
"calculation_type": "TOTAL",
"idx": 0,
"currency": "EUR",
"initial_price": "56.557223908892338549036308436250",
"price_delta": "0.000000000000000000000000000000",
"price": "56.557223908892338549036308436250",
"details": [],
"created_at": "2025-07-28 18:55:34",
"updated_at": null
},
{
"id": "invoice_calc_019851f6-03d2-7cd5-872e-d0fdc5f19f97",
"organization_id": "org_0196b0e9-11d8-7f26-b1d2-bd47054e4827",
"invoice_id": "invoice_019851f5-39f7-714a-8f2c-3c3eede808b4",
"invoice_item_id": null,
"title": "Total, USD",
"calculation_type": "TOTAL_USD",
"idx": 0,
"currency": "USD",
"initial_price": "66.753091033321930161976616901836",
"price_delta": "0.000000000000000000000000000000",
"price": "66.753091033321930161976616901836",
"details": [],
"created_at": "2025-07-28 18:55:34",
"updated_at": null
}
],
"organization": {
"name": "4",
"image_url": "https://assets.bitgpt.xyz/uploads/2025/03/26/156091ee0884f36de9836d.jpeg"
},
"payments": [
{
"id": "payment_01979449-dc2f-71e4-b565-42d78c0d83aa",
"idempotency_key": "1b70f35483e563e009967abe74308e6977f9b36f1bfc05168fa22104b64293d6-invoice_01979284-7610-79f8-86c4-978168730054",
"organization_id": "org_f44b7809595e5ebe3bb4d6",
"provider_id": "prov_bitcoin_bitcoin",
"invoice_id": "invoice_019851f5-39f7-714a-8f2c-3c3eede808b4",
"currency": "BITCOIN",
"price": "0.000126300000000000000000000000",
"status": "COMPLETED",
"created_at": "2025-06-21 22:59:17",
"updated_at": "2025-08-20 23:57:58",
"happened_at": "2025-06-21 22:59:17"
}
]
}Invoice
Invoice object containing billing information, invoice items, calculations, and organization details for payment processing
Unique identifier for the invoice
"invoice_0197d634-7d8e-7615-8007-e37b992cdb30"
Unique identifier for the organization
"org_0196b0e9-11d8-7f26-b1d2-bd47054e4827"
Current status of the invoice
PENDING, COMPLETED, VOIDED, PROCESSING, WAITING_FOR_CONFIRMATIONS, PARTIALLY_PAID "PENDING"
Currency code for the invoice
BITCOIN, ETHEREUM, USDT, USDC, USDC_NATIVE, SOLANA, BINANCE_COIN, RIPPLE, POLYGON, TRON, LITECOIN, BITCOIN_CASH, DOGECOIN, USD, EUR, CHF, GBP, AUD, JPY, CNY, CAD, HKD, SGD, SEK, KRW, NOK, NZD, INR, MXN, TWD, ZAR, BRL, DKK, PLN, THB, ILS, IDR, CZK, AED, TRY, HUF, CLP, SAR, PHP, MYR, COP, RUB, RON, PEN "EUR"
Total price of the invoice as a decimal string
"504.818257074815000000000000000000"
Timestamp when the invoice was created
"2025-07-04 18:10:53"
Timestamp when the invoice was last updated
"2025-07-04 18:10:53"
Customer email address for the invoice
"customer@example.com"
Provides additional context to the invoice's current status
OVERPAID "OVERPAID"
Total price of the invoice in USD as a decimal string
"504.818257074815000000000000000000"
Additional metadata for the invoice
URL to redirect to after payment completion
"https://example.com/success"
Array of invoice items
Show child attributes
Show child attributes
Array of invoice calculations
Show child attributes
Show child attributes
Summary of invoice calculations
Show child attributes
Show child attributes
Organization information
Show child attributes
Show child attributes
Array of payments
Show child attributes
Show child attributes

