CSQ Docs
    CSQ Docs
    eVSB
    • eVSB
    • Back to home
    • Location Based Products
    • Get Labels
      GET
    • Get Countries
      GET
    • Get Categories
      GET
    • Get States
      GET
    • Get Municipalities
      GET
    • Get Deliver Locations
      GET
    • Get Products
      GET
    • Create Cart
      POST
    • Purchase
      POST
    • Get Orders
      GET
    • Get Order Status
      GET

      Get States

      GET
      /physical-products/states/{terminalId}/{categoryId}/{levelId}
      physical-product-controller
      Returns the available states or provinces based on the selected category. Only required for products that depend on subnational locations.

      Request

      Path Params
      terminalId
      integer <int32>
      required
      categoryId
      integer <int32>
      required
      levelId
      integer <int32>
      required
      Header Params
      U
      string 
      required
      Default:
      {{U}}
      SH
      string 
      required
      Default:
      {{SH}}
      ST
      string 
      required
      Default:
      {{ST}}

      Request samples

      Shell
      JavaScript
      Java
      Swift
      Go
      PHP
      Python
      HTTP
      C
      C#
      Objective-C
      Ruby
      OCaml
      Dart
      R
      Request Request Example
      Shell
      JavaScript
      Java
      Swift
      curl --location --request GET 'http://evsbus.csqworld.com/physical-products/states///' \
      --header 'U;' \
      --header 'SH;' \
      --header 'ST;'

      Responses

      🟢200OK
      application/json
      OK
      Body
      array of:
      stateId
      integer 
      required
      name
      string 
      required
      name
      nextPath
      string 
      required
      nextField
      string 
      required
      Example
      [
          {
              "stateId": 3,
              "name": "state",
              "nextPath": "/physical-products/{{nextPath}}/{{terminalId}}/3",
              "nextField": "{nextField}"
          }
      ]
      Modified at 2025-06-19 11:47:53
      Previous
      Get Categories
      Next
      Get Municipalities
      Built with