Vendors

Get Many Vendors

GET
/merchantos/vendors
x-access-token<token>

In: header

Query Parameters

page?number
Formatdouble
Default0
limit?number
Formatdouble
Default20
search?string
Default""
order_by?"created_at"
Default"created_at"

Value in

  • "created_at"
order?string

Shared sort/order types used across handler input schemas.

Defining these centrally avoids inline z.enum(["asc", "desc"]) literals sprinkled across handler input schemas; callers should reference APISortDirection via z.nativeEnum(APISortDirection) instead. API values intentionally stay lowercase to match persisted table-filter state.

Value in

  • "asc"
  • "desc"
product_id?string
Default""

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://example.com/merchantos/vendors"
{  "data": [    {      "id": "string",      "created_at": "2019-08-24T14:15:22Z",      "updated_at": "2019-08-24T14:15:22Z",      "vendor_name": "string",      "company_name": "string",      "address": "string",      "address_2": "string",      "city": "string",      "state": "string",      "zip_code": "string",      "country": "string",      "contact_person_name": "string",      "contact_email": "string",      "contact_phone": "string",      "internal_notes": "string",      "merchant_team_id": "string",      "merchant_team_name": "string",      "fulfiller_team_id": "string",      "fulfiller_team_name": "string"    }  ],  "meta": {    "page": 0.1,    "page_size": 0.1,    "has_next_page": true,    "has_previous_page": true,    "start_index": 0.1,    "end_index": 0.1  }}