---
title: "Gets a list of SupplierPayment current supplier"
method: POST
path: "/api/v{version}/supplier-payment/search"
tags: ["treasury"]
---

# Gets a list of SupplierPayment current supplier

`POST /api/v{version}/supplier-payment/search`

Gets a list of SupplierPayment current supplier with pagination and filtering support

## Path parameters

- `version` string, required

## Headers

- `X-Tenant` string, required

## Request body

- SearchSupplierPaymentsCurrentSupplierRequest
  - `advancedSearch` Search
    - `fields` string[], nullable
    - `keyword` string, nullable
  - `keyword` string, nullable
  - `advancedFilter` Filter
    - `logic` string, nullable
    - `filters` Filter[], nullable
    - `field` string, nullable
    - `operator` string, nullable
    - `value` unknown
  - `pageSize` integer
  - `pageNumber` integer
  - `orderBy` string[], nullable

## Response `200`

OK

- PagedListSupplierPaymentResponse
  - `items` SupplierPaymentResponse[], nullable
    - `id` string, uuid
    - `supplier` TreasurySupplierResponse
      - `id` string, uuid
      - `name` string, nullable
      - `tenantId` string, nullable
      - `address` AddressDto
        - `street` string, nullable
        - `city` string, nullable
        - `cityTerritoryId` string, uuid
        - `district` string, nullable
        - `districtTerritoryId` string, uuid
        - `postalCode` string, nullable
        - `country` string, nullable
        - `coordinates` Coordinates
          - `lat` number, double, nullable
          - `lng` number, double, nullable
      - `paymentDays` string[], nullable
      - `phone` PhoneDto
        - `number1` string, nullable
        - `number2` string, nullable
        - `number3` string, nullable
      - `owner` TreasurySupplierOwnerDto
        - `firstName` string, nullable
        - `lastName` string, nullable
        - `email` string, nullable
      - `legalInformation` SupplierLegalInformationDto
        - `rc` string, nullable
        - `nif` string, nullable
        - `ai` string, nullable
        - `nis` string, nullable
    - `amount` number, double
    - `totalParcelsDelivered` integer
    - `totalParcelsCancelled` integer
    - `totalRefundsCredited` integer
    - `totalRefundsDebited` integer
    - `totalItemLabeling` integer
    - `labelingAmount` number, double
    - `storage` number, double
    - `createdAt` string, date-time
    - `acceptedAt` string, date-time, nullable
    - `cashDrawer` CashDrawerResponse
      - `id` string, uuid
      - `cashDrawerUser` CashDrawerUserResponse
        - `id` string, uuid
        - `firstName` string, nullable
        - `lastName` string, nullable
      - `amount` number, double
      - `isActive` boolean
      - `hub` TreasuryHubResponse
        - `id` string, uuid
        - `name` string, nullable
        - `type` string, nullable
        - `address` AddressDto
          - `street` string, nullable
          - `city` string, nullable
          - `cityTerritoryId` string, uuid
          - `district` string, nullable
          - `districtTerritoryId` string, uuid
          - `postalCode` string, nullable
          - `country` string, nullable
          - `coordinates` Coordinates
            - `lat` number, double, nullable
            - `lng` number, double, nullable
    - `referenceId` string, nullable
    - `status` string, nullable
  - `pageNumber` integer
  - `pageSize` integer
  - `totalCount` integer
  - `totalPages` integer
  - `hasPrevious` boolean
  - `hasNext` boolean

---

[API](https://skmtc.net/zrexpress/apis/zrexpress-api.md) · [All operations](https://skmtc.net/zrexpress/apis/zrexpress-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/zrexpress/zrexpress-api/revisions/99b075e0b641/schema)
