> ## Documentation Index
> Fetch the complete documentation index at: https://docs.exode.biz/llms.txt
> Use this file to discover all available pages before exploring further.

# Payment and invoice

> Structures of the payment, invoice, invoice item and acquiring objects based on shared zod schemas

Public structures of financial objects: `payment`, `invoice`, `invoiceProduct`, `acquiring`. The full
`payment` tree arrives in the [`PaymentCompleted`](https://docs.exode.biz/en/exode-api/webhooks/about) webhook.

> [!NOTE]
>
> The [`invoice/list/raw`](https://docs.exode.biz/en/exode-api/school/invoice/list) method returns a compact projection of the invoice
> (`invoiceId`, `invoiceUuid`, `type`, `status`, amounts, `currency`, `user`, `products`). The full
> public schemas are below. Monetary fields are numbers (decimals from the database are cast to number).

## `payment`

**id** `integer` *required*

Payment ID.

**uuid** `string` *required*

Payment UUID.

**type** `enum` *required*

Type: `OneTime`, `RecurrentPay`, `RecurrentInit`.

**status** `enum | null`

Status: `Created`, `WaitingPay`, `WaitingForBinding`, `Processing`, `Completed`, `BindingCompleted`, `Canceled`.

**released** `boolean` *required*

The purchase has been delivered to the user: after payment, Exode processed the invoice items — granted or extended access to
the products.

**checkoutPaymentId** `string | null`

Payment ID in the payment system.

**checkoutUrl** `string | null`

Payment URL.

**paidAt** `string | null`

Payment date (ISO 8601).

**expireAt** `string | null`

Expiration date (ISO 8601).

**isCompleted** `boolean | null`

The payment is completed.

**isCanceled** `boolean | null`

The payment is canceled.

**meta** `object | null`

Internal metadata.

**webhookLogs** `object[] | null`

Payment system webhook logs.

**chargeLogs** `object[] | null`

Charge logs.

**statusHistoryLogs** `object[] | null`

Status history: `{ timestamp, status }`.

**acquiring** `object | null`

Acquiring (see below).

**invoice** `object | null`

Invoice (see below).

**createdAt** `string` *required*

Creation date (ISO 8601).

**updatedAt** `string` *required*

Update date (ISO 8601).

**archivedAt** `string | null`

Archiving date or `null`.

## `invoice`

**id** `integer` *required*

Invoice ID.

**uuid** `string` *required*

Invoice UUID.

**humanId** `integer | null`

Human-readable invoice number.

**type** `enum` *required*

Type: `Regular`, `InstallmentPay`, `InstallmentInit`, `SubscriptionPay`, `SubscriptionInit`.

**status** `enum | null`

Status: `Active`, `Canceled`.

**totalAmount** `number` *required*

Total amount.

**discountAmount** `number` *required*

Discount amount.

**currency** `enum` *required*

Currency: `Free`, `Exes`, `Rub`, `Uzs`, `Kzt`, `Usd`, `Eur`.

**expireAt** `string | null`

Expiration date (ISO 8601).

**isActive** `boolean | null`

The invoice is active.

**meta** `object | null`

Internal invoice metadata.

**user** `object | null`

The buyer — a [user with profile](https://docs.exode.biz/en/exode-api/objects/entities/user.md) object; may additionally contain `school`.

**products** `object[] | null`

Invoice items (see `invoiceProduct`).

**createdAt** `string` *required*

Creation date (ISO 8601).

**updatedAt** `string` *required*

Update date (ISO 8601).

## `invoiceProduct`

**id** `integer` *required*

Item ID.

**originalPrice** `number` *required*

Original price.

**totalPrice** `number` *required*

Total price.

**discountAmount** `number` *required*

Discount amount for the item.

**price** `object | null`

Product price — a [`productPrice`](./product) object.

**discount** `object | null`

Discount — a [`discount`](./product) object.

**product** `object | null`

Product — a [`product`](./product) object; may additionally contain `course`.

**createdAt** `string` *required*

Creation date (ISO 8601).

**updatedAt** `string` *required*

Update date (ISO 8601).

## `acquiring`

**id** `integer` *required*

Acquiring ID.

**uuid** `string` *required*

Acquiring UUID.

**active** `boolean | null`

Active.

**name** `string | null`

Name.

**description** `string | null`

Description.

**hasProviderCommission** `boolean | null`

Whether the provider charges a commission.

**provider** `object | null`

Provider: `{ id, type, name, active }`.

> [!NOTE]
>
> Provider secrets (apiKey, configuration) and the payment method/card number are not returned in the public schema.

***

*Updated: 2026-09-25 14:33 UTC*


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.