Skip to main content
Version: 202201

List Procurements

GET 

/openapi/2022-01/procurements

Retrieves a list of Procurement objects, representing the associations between products and Procurementions.

Request

Query Parameters

    page int32

    Page number for pagination. Must be greater than 0. Default: 1.

    limit int32

    Number of records per page. Must be greater than 0 and less than 100. Default: 10.

    ids string[]

    Array of Procurement IDs to filter by. Each ID must be a valid UUID.

    state int32

    Procurement state filter. Accepted values:
    1 (waiting for stock)
    2 (partial receipt)
    3(complete receipt)
    4(cancelled)

    created_at_min string

    Filter procurements created at or after this date (ISO-8601 format). Example: 2023-01-01T00:00:00Z.

    created_at_max string

    Filter procurements created at or before this date (ISO-8601 format). Example: 2023-01-31T23:59:59Z.

    updated_at_min string

    Filter procurements updated at or after this date (ISO-8601 format). Example: 2023-01-01T00:00:00Z.

    updated_at_max string

    Filter procurements updated at or before this date (ISO-8601 format). Example: 2023-01-31T23:59:59Z.

Responses

200

Schema
    procurements object[]
  • Array [
  • idstring
    Example: 382451985837728044
    procurement_snstring
    Example: 00000002
    supplier_idstring
    Example: 382453603865993516
    location_idstring
    Example: 190035786870033452
    notestring
    Example: teest note
    stateinteger
    Default value: 0
    Example: 4
    pending_quantityinteger
    Default value: 0
    Example: 0
    received_quantityinteger
    Default value: 0
    Example: 0
    rejected_quantityinteger
    Default value: 0
    Example: 0
    transfer_quantityinteger
    Default value: 0
    Example: 0
    created_bystring
    Example:
    created_atstring
    Example: 2024-05-21T08:47:39Z
    updated_atstring
    Example: 2024-05-21T09:59:29Z
  • ]
  • countinteger
    Default value: 0
    Example: 2