> 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

## v3.0.23

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` can now be `nil`. While Payabli holds a payment, its deposit date is null.

### 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 `Payabli::Types::QueryDeviceOrderResponse`.

The methods take keyword arguments. The signatures below use RBS notation, where `?` marks an optional argument.

#### Method signatures

```ruby
# client.device_order
def get_device_ordering_enabled: (
  entry: String,
  ?request_options: Hash[Symbol, untyped]
) -> Payabli::Types::DeviceOrderEnabledResponse

def get_device_order_catalog: (
  ?request_options: Hash[Symbol, untyped]
) -> Payabli::Types::DeviceOrderCatalogResponse

def get_device_order_recipients: (
  ?request_options: Hash[Symbol, untyped]
) -> Payabli::Types::DeviceOrderRecipientsResponse

def submit_device_order: (
  idempotency_key: String,
  lines: Array[Payabli::Types::DeviceOrderLine],
  bill_to: Payabli::Types::DeviceOrderAddress,
  ship_to: Payabli::Types::DeviceOrderAddress,
  contact_email: String,
  terms_accepted: bool,
  ?organization_id: Integer,
  ?entry_name: String,
  ?contact_name: String,
  ?contact_phone: String,
  ?payment_option: Payabli::Types::DeviceOrderPaymentOption,
  ?pay_inline: bool,
  ?request_options: Hash[Symbol, untyped]
) -> Payabli::Types::DeviceOrderResponse

def pay_device_order: (
  order_number: String,
  stored_method_id: String,
  ?request_options: Hash[Symbol, untyped]
) -> Payabli::Types::DeviceOrderResponse

def get_device_order: (
  order_number: String,
  ?request_options: Hash[Symbol, untyped]
) -> Payabli::Types::DeviceOrderResponse

def cancel_device_order: (
  order_number: String,
  ?reason: String,
  ?request_options: Hash[Symbol, untyped]
) -> Payabli::Types::DeviceOrderResponse


# client.query
def list_device_orders: (
  entry: String,
  ?export_format: Payabli::Types::ExportFormat,
  ?from_record: Integer,
  ?limit_record: Integer,
  ?parameters: Hash[String, String?],
  ?sort_by: String,
  ?request_options: Hash[Symbol, untyped]
) -> Payabli::Types::QueryDeviceOrderResponse

def list_device_orders_org: (
  org_id: Integer,
  ?export_format: Payabli::Types::ExportFormat,
  ?from_record: Integer,
  ?limit_record: Integer,
  ?parameters: Hash[String, String?],
  ?sort_by: String,
  ?request_options: Hash[Symbol, untyped]
) -> Payabli::Types::QueryDeviceOrderResponse
```

### Device lifecycle

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

#### Method signatures

```ruby
# client.device
def update_status: (
  entry: String,
  device_id: String,
  device_status: Integer,
  ?request_options: Hash[Symbol, untyped]
) -> Payabli::Types::DeviceLifecycleResponse

def unregister: (
  entry: String,
  device_id: String,
  ?request_options: Hash[Symbol, untyped]
) -> Payabli::Types::DeviceLifecycleResponse

def force_unregister: (
  entry: String,
  device_id: String,
  ?request_options: Hash[Symbol, untyped]
) -> Payabli::Types::DeviceLifecycleResponse
```

### Webhook event types

`NotificationStandardRequestContentEventType` adds `DEVICEORDERPLACED`, `DEVICEORDERPAID`, and `DEVICEORDERSTATUSCHANGED`.