v1
latestOpenAPI 3.1.02026-08-042453938.9 KBCharges
Get a charge
Retrieve details for a specific charge by ID.
get/v1/charges/{id}
Path parameters
idstring required
Charge ID
Response
Charge details
Example response
{
"id": "chg_abc123def456",
"customerId": "cus_abc123",
"customer": {
"id": "cus_abc123",
"onchainAddress": "0x742d35Cc6634C0532925a3b844Bc9e7595f00000",
"externalCustomerId": "user_123"
},
"usageId": "usg_xyz789",
"usageEvent": {
"id": "usg_xyz789",
"type": "api_call",
"quantity": "100",
"metadata": {
"endpoint": "/v1/chat",
"model": "gpt-4"
},
"createdAt": "2024-01-15T10:30:00.000Z"
},
"amountUsdc": "0.100000",
"amountToken": "100000",
"txHash": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
"blockNumber": "12345678",
"status": "CONFIRMED",
"createdAt": "2024-01-15T10:30:00.000Z",
"confirmedAt": "2024-01-15T10:30:05.000Z"
}