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 Nationalities

      GET
      /physical-products/nationalities/{terminalId}
      This endpoint returns the list of available nationalities for a given terminal. It is typically used as part of the initial step in a dynamic location-based product selection flow, where nationality information is required to proceed with further filtering or categorization.
      ⸻
      🔍 Description
      Use this method to:
      Retrieve the available nationalities for the current terminal.
      Display a list of nationalities (ID + name) to the user.
      Provide input for the next step in the product selection flow.
      📌 Unlike product endpoints, this response does not include detailed product metadata. It only provides the identifiers and names of the available nationalities.
      ⸻
      📥 Request Details
      Method: GET
      Authentication: Required
      Path Parameters:
      terminalId (integer): ID of the requesting terminal
      ⸻
      📤 Response
      Returns an array of nationality objects:
      FieldTypeDescription
      idintegerUnique identifier of nationality
      namestringDisplay name of nationality
      Example
      [
        {
          "id": 1,
          "name": "Colombia"
        },
        {
          "id": 2,
          "name": "Venezuela"
        },
        {
          "id": 3,
          "name": "Argentina"
        }
      ]
      🧠 Usage Notes
      This method provides the list of nationalities available for a given terminal.
      The response is typically used to populate selection dropdowns or filters in the user interface.

      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/nationalities/' \
      --header 'U;' \
      --header 'SH;' \
      --header 'ST;'

      Responses

      🟢200OK
      */*
      OK
      Body

      Example
      [
          {
              "id": 0,
              "name": "string"
          }
      ]
      Modified at 2025-09-26 11:47:19
      Previous
      Get Fields
      Next
      Create Cart
      Built with