CSQ Docs
    CSQ Docs
    CSQ API Doc
    • CSQ API Doc
    • Dummy Product Usage Guide
    • 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
    • Get Fields
      GET
    • Get Nationalities
      GET
    • Create Cart
      POST
    • Purchase
      POST
    • Get Orders
      GET
    • Get Order Status Details
      GET
    • Get Orders Host
      GET

      Get Fields

      GET
      /physical-products/fields/{terminalId}/{categoryId}
      This endpoint returns the list of dynamic fields required for cart creation in a given terminal and category context. It is typically used before calling Create Cart, so the client knows exactly what data must be provided to complete the transaction.
      ⸻
      🔍 Description
      Use this method to:
      Retrieve the fields that must be filled in order to create a cart.
      Display localized field labels (English and Spanish) for the UI.
      Identify the data types and allowed values for each field.
      📌 This endpoint does not return products or categories. Instead, it describes the form structure (fields, labels, and possible values) needed to continue the flow.
      ⸻
      📥 Request Details
      Method: GET
      Authentication: Required
      Path Parameters:
      terminalId (integer): ID of the requesting terminal
      categoryId (integer): ID of the selected product category
      ⸻
      📤 Response
      Returns an array of field objects:
      FieldTypeDescription
      fieldstringField identifier (used when sending values to Create Cart)
      typestringField type (e.g., string, number, select)
      labelsobjectContains localized labels for the field (en, es)
      valuesarrayPossible values for the field (if applicable, e.g., dropdown options)
      pathstringPath reference to the dynamic flow configuration (if present)
      Example
      [
        {
          "field": "nationality",
          "type": "select",
          "labels": {
            "en": "Nationality",
            "es": "Nacionalidad"
          },
          "values": ["Colombiana", "Venezolana", "Argentina"],
          "path": "/physical-products/nationalities"
        },
        {
          "field": "documentNumber",
          "type": "string",
          "labels": {
            "en": "Document Number",
            "es": "Número de Documento"
          },
          "values": [],
          "path": ""
        }
      ]
      🧠 Usage Notes
      This method is always called before Create Cart to know what data must be sent.
      The labels object ensures multilingual UI support.
      values will be populated when the field has predefined options (e.g., nationality, operator).
      Fields without values or path are meant to be filled directly by the user (e.g., free text or numbers).

      Request

      Path Params

      Header Params

      Request Code 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 'https://evsb.csqworld.com/physical-products/fields//' \
      --header 'U;' \
      --header 'SH;' \
      --header 'ST;'

      Responses

      🟢200OK
      */*
      OK
      Body

      Example
      [
          {
              "field": "string",
              "type": "string",
              "labels": {
                  "en": "string",
                  "es": "string"
              },
              "values": [
                  "string"
              ],
              "path": "string"
          }
      ]
      Modified at 2025-09-26 11:27:32
      Previous
      Get Products
      Next
      Get Nationalities
      Built with