> This is Payabli documentation. For a complete page index, fetch https://docs.payabli.com/llms.txt — append .md to any page URL for lightweight markdown. For section-level indexes, query parameters, and other AI-optimized access methods, see https://docs.payabli.com/ai-agents.md

## v1.0.22

This release adds methods for ordering devices and managing a device's lifecycle, and lets the deposit date on batch detail records be null. See [November 17, 2026](/changelog/api-changelog/2026/11/17) and [November 18, 2026](/changelog/api-changelog/2026/11/18) and [November 30, 2026](/changelog/api-changelog/2026/11/30) for more information.

### Nullable deposit date on batch details

`BatchDetailResponseRecord.deposit_date` is now `typing.Optional[DepositDate]`. While Payabli holds a payment, its deposit date is null. Code keeps running, but a type checker flags code that treats it as always set.

### Device ordering

`client.device_order` is a new client with `get_device_ordering_enabled`, `get_device_order_catalog`, `get_device_order_recipients`, `submit_device_order`, `pay_device_order`, `get_device_order`, and `cancel_device_order`. `submit_device_order` takes `idempotency_key`, which is sent as the `Idempotency-Key` header.

`client.query` adds `list_device_orders` and `list_device_orders_org`, which return `QueryDeviceOrderResponse`.

#### Method signatures

```python
# client.device_order
def get_device_ordering_enabled(
    self,
    entry: Entry,
    *,
    request_options: typing.Optional[RequestOptions] = None
) -> DeviceOrderEnabledResponse: ...

def get_device_order_catalog(
    self,
    *,
    request_options: typing.Optional[RequestOptions] = None
) -> DeviceOrderCatalogResponse: ...

def get_device_order_recipients(
    self,
    *,
    request_options: typing.Optional[RequestOptions] = None
) -> DeviceOrderRecipientsResponse: ...

def submit_device_order(
    self,
    *,
    idempotency_key: str,
    lines: typing.Sequence[DeviceOrderLine],
    bill_to: DeviceOrderAddress,
    ship_to: DeviceOrderAddress,
    contact_email: str,
    terms_accepted: bool,
    organization_id: typing.Optional[int] = OMIT,
    entry_name: typing.Optional[str] = OMIT,
    contact_name: typing.Optional[str] = OMIT,
    contact_phone: typing.Optional[str] = OMIT,
    payment_option: typing.Optional[DeviceOrderPaymentOption] = OMIT,
    pay_inline: typing.Optional[bool] = OMIT,
    request_options: typing.Optional[RequestOptions] = None
) -> DeviceOrderResponse: ...

def pay_device_order(
    self,
    order_number: str,
    *,
    stored_method_id: str,
    request_options: typing.Optional[RequestOptions] = None
) -> DeviceOrderResponse: ...

def get_device_order(
    self,
    order_number: str,
    *,
    request_options: typing.Optional[RequestOptions] = None
) -> DeviceOrderResponse: ...

def cancel_device_order(
    self,
    order_number: str,
    *,
    reason: typing.Optional[str] = OMIT,
    request_options: typing.Optional[RequestOptions] = None
) -> DeviceOrderResponse: ...


# client.query
def list_device_orders(
    self,
    entry: Entry,
    *,
    export_format: typing.Optional[ExportFormat] = None,
    from_record: typing.Optional[int] = None,
    limit_record: typing.Optional[int] = None,
    parameters: typing.Optional[typing.Dict[str, typing.Optional[str]]] = None,
    sort_by: typing.Optional[str] = None,
    request_options: typing.Optional[RequestOptions] = None
) -> QueryDeviceOrderResponse: ...

def list_device_orders_org(
    self,
    org_id: int,
    *,
    export_format: typing.Optional[ExportFormat] = None,
    from_record: typing.Optional[int] = None,
    limit_record: typing.Optional[int] = None,
    parameters: typing.Optional[typing.Dict[str, typing.Optional[str]]] = None,
    sort_by: typing.Optional[str] = None,
    request_options: typing.Optional[RequestOptions] = None
) -> QueryDeviceOrderResponse: ...
```

### Device lifecycle

`client.device` adds `update_status`, `unregister`, and `force_unregister`, which return `DeviceLifecycleResponse`.

#### Method signatures

```python
# client.device
def update_status(
    self,
    entry: str,
    device_id: str,
    *,
    device_status: int,
    request_options: typing.Optional[RequestOptions] = None
) -> DeviceLifecycleResponse: ...

def unregister(
    self,
    entry: str,
    device_id: str,
    *,
    request_options: typing.Optional[RequestOptions] = None
) -> DeviceLifecycleResponse: ...

def force_unregister(
    self,
    entry: str,
    device_id: str,
    *,
    request_options: typing.Optional[RequestOptions] = None
) -> DeviceLifecycleResponse: ...
```

### Webhook event types

`NotificationStandardRequestContentEventType` accepts `"deviceorderplaced"`, `"deviceorderpaid"`, and `"deviceorderstatuschanged"`.

### Typed errors for sending invoices and payment links

`client.invoice.send_invoice`, `client.payment_link.send_pay_link_from_id`, and `client.payment_link.push_pay_link_from_id` now raise `ForbiddenError` for a `403` and `TooManyRequestsError` for a `429`.