---
title: "Get Partner Invoice"
method: GET
path: "/networks/billings/affiliates/invoices/{invoiceId}"
tags: ["Billing"]
---

# Get Partner Invoice

`GET /networks/billings/affiliates/invoices/{invoiceId}`

## Request

- Base URL: `https://api.eflow.team/v1`
- URL: `https://api.eflow.team/v1/networks/billings/affiliates/invoices/{invoiceId}`
- Auth: API key in header `X-Eflow-Api-Key`
- TypeScript: <https://skmtc.dev/everflow/apis/everflow-network-api-tracking-domains/docs/networks/billings/affiliates/invoices/:invoiceId/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `invoiceId` integer, required

## Query parameters

- `relationship` 'affiliate' | 'all'

## Response `200`

- Invoice
  - `network_affiliate_invoice_id` integer: Unique invoice ID.
  - `network_id` integer: Network ID.
  - `network_affiliate_id` integer: The ID of the partner that was invoiced.
  - `status` 'paid' | 'unpaid' | 'deleted': Invoice status.
  - `start_time` string: Invoice period start date.
  - `end_time` string: Invoice period end date.
  - `timezone_id` integer: Timezone ID for the invoice period.
  - `balance` number, double: Outstanding balance.
  - `currency_id` string: Currency code (e.g. USD).
  - `payment_terms` integer: Number of days for the affiliate payment term (e.g. 20 for NET 20).
  - `is_hidden_affiliate` boolean: Whether the invoice is visible to the partner or not.
  - `public_notes` string: Notes visible to both network employees and the invoiced partner.
  - `internal_notes` string: Notes visible to network employees but not the invoiced partner.
  - `time_created` integer: Unix timestamp of creation.
  - `time_saved` integer: Unix timestamp of last update.
  - `relationship` object: Related data. The `details` and `payments` keys are always included. The `affiliate` key is included when `relationship=affiliate` or `relationship=all` is passed.
    - `affiliate` object: The invoiced partner's details. Only included with `relationship=affiliate` or `relationship=all`.
    - `details` InvoiceDetail[]: Invoice line items.
      - `network_affiliate_invoice_detail_id` integer: Unique invoice detail ID.
      - `network_affiliate_invoice_id` integer: Parent invoice ID.
      - `network_offer_id` integer: Offer ID for this line item.
      - `network_offer_name` string: Offer name for this line item.
      - `amount` number, double: Amount for this line item.
      - `invoice_currency_amount` number, double: Amount in the invoice currency.
      - `currency_id` string: Currency code for this line item.
      - `notes` string: Notes for this line item.
      - `quantity` integer: Quantity for this line item.
      - `time_created` integer: Unix timestamp of creation.
      - `time_saved` integer: Unix timestamp of last update.
      - `referral_history_id` integer: Referral history ID (0 if not a referral).
      - `type` string: Line item type (e.g. offer_detail, vat).
    - `payments` InvoicePayment[]: Payment history for this invoice.
      - `network_affiliate_payment_id` integer: Unique payment ID.
      - `network_id` integer: Network ID.
      - `network_affiliate_invoice_id` integer: Invoice ID this payment belongs to.
      - `status` string: Payment status.
      - `payment_type` string: Payment method type.
      - `notes` string: Payment notes.
      - `confirmation_code` string: Payment confirmation code.
      - `amount` number, double: Payment amount.
      - `currency` string: Payment currency code.
      - `unix_timestamp` integer: Unix timestamp of the payment.
      - `tax_id` string: Tax ID associated with the payment.
      - `is_auto_generated` boolean: Whether the payment was auto-generated.
      - `debug_info` string: Debug information for the payment.
      - `relationship` object: Related data for the payment.
        - `employee` object: Employee who created or processed the payment.
      - `payee_original_amount` number, double: Original amount to payee.
      - `payee_fee_amount` number, double: Fee amount charged to payee.
      - `payee_currency` string: Payee's currency.
      - `time_approved` integer: Unix timestamp of approval.
      - `time_completed` integer: Unix timestamp of completion.
  - `details` InvoiceDetail[], nullable: Invoice line items (root-level, nullable).
    - `network_affiliate_invoice_detail_id` integer: Unique invoice detail ID.
    - `network_affiliate_invoice_id` integer: Parent invoice ID.
    - `network_offer_id` integer: Offer ID for this line item.
    - `network_offer_name` string: Offer name for this line item.
    - `amount` number, double: Amount for this line item.
    - `invoice_currency_amount` number, double: Amount in the invoice currency.
    - `currency_id` string: Currency code for this line item.
    - `notes` string: Notes for this line item.
    - `quantity` integer: Quantity for this line item.
    - `time_created` integer: Unix timestamp of creation.
    - `time_saved` integer: Unix timestamp of last update.
    - `referral_history_id` integer: Referral history ID (0 if not a referral).
    - `type` string: Line item type (e.g. offer_detail, vat).
  - `extra_periods` object[], nullable: Additional billing periods associated with this invoice.

## Other responses

- `404`: Invoice not found.

---

[API](https://skmtc.dev/everflow/apis/everflow-network-api-tracking-domains.md) - [All operations](https://skmtc.dev/everflow/apis/everflow-network-api-tracking-domains/llms.txt) - [OpenAPI document](https://skmtc.dev/everflow/apis/everflow-network-api-tracking-domains/revisions/39242cee0e32?raw)
