# Get invoice by ID Retrieve detailed information about a specific invoice including line items and payment status. Endpoint: GET /partner/v2/account/{accountId}/location/{locationId}/invoice/{invoiceId} Version: 2.0 Security: PartnerOAuth ## Path parameters: - `invoiceId` (integer, required) Invoice ID - `accountId` (integer, required) Account identifier - `locationId` (integer, required) Location identifier ## Response 200 fields (application/json): - `appointmentId` (integer) Associated appointment ID - `createdAt` (string) Creation timestamp Example: "2025-01-15T10:00:00Z" - `currency` (string) Currency code Example: "USD" - `dueDate` (string) Due date Example: "2025-02-01T00:00:00Z" - `id` (integer) Unique invoice identifier Example: 12345 - `invoiceNumber` (string) Invoice number (display format) Example: "INV-2025-0001" - `lineItems` (array) Invoice line items - `lineItems.careResourceId` (integer) Reference to care resource/service ID - `lineItems.description` (string) Item description Example: "Office Visit - New Patient" - `lineItems.id` (integer) Line item ID Example: 11111 - `lineItems.quantity` (integer) Quantity Example: 1 - `lineItems.taxAmount` (number) Tax amount for this line item Example: 12 - `lineItems.total` (number) Line total (quantity * unit price) Example: 150 - `lineItems.type` (string) Item type Enum: "SERVICE", "PRODUCT", "EQUIPMENT", "OTHER" - `lineItems.unitPrice` (number) Unit price Example: 150 - `locationId` (integer) Location ID Example: 111 - `locationName` (string) Location name Example: "Main Street Clinic" - `paidAmount` (number) Amount paid Example: 166.5 - `paidAt` (string) Date payment was received - `patientId` (integer) Patient ID Example: 67890 - `patientName` (string) Patient name Example: "John Doe" - `refundedAmount` (number) Amount refunded - `status` (string) Invoice status Enum: "DRAFT", "OPEN", "VIEWED", "PAID", "FAILED", "PAST_DUE", "REFUNDED", "VOID" - `subscriptionId` (integer) Associated subscription ID (for recurring invoices) - `subtotal` (number) Subtotal amount (before tax and surcharge) Example: 150 - `surchargeAmount` (number) Surcharge amount (processing fee) Example: 4.5 - `taxAmount` (number) Tax amount Example: 12 - `totalAmount` (number) Total amount due Example: 166.5 - `updatedAt` (string) Last update timestamp Example: "2025-01-15T14:30:00Z" ## Response 401 fields ## Response 403 fields ## Response 404 fields