SETW API V3
    SETW API V3
    • LOGIN
      GET
    • GET_VOUCHER_INFO
      GET
    • GET_VOUCHERS
      GET

      GET_VOUCHER_INFO

      GET
      /get_voucher_info.php

      Get Voucher Information#

      This endpoint retrieves detailed information about a specific voucher using the provided voucher number and authentication token.
      Este endpoint retorna toda la información de un voucher específico utilizando el número de voucher proporcionado y el token de autenticación.

      Request#

      Method: GET
      Endpoint: {{endpoint_url}}get_voucher_info.php
      Query Parameters / Parámetros de consulta:
      token (string): The authentication token required to access the voucher information.
      voucher_number (string): The unique identifier for the voucher whose information is being requested.

      Response#

      Upon a successful request, the API returns a JSON response with the following structure / Tras una petición exitosa, la API devuelve una respuesta JSON con la siguiente estructura:
      Status: 200 (OK)
      Content-Type: application/json
      Body:
      type: (string) The type of response.
      message: (string) A message providing additional context about the response.
      data: (array) An array containing objects with the following fields:
      FIRSTNAME: (string) The first name associated with the voucher.
      LASTNAME: (string) The last name associated with the voucher.
      POLICY_NUMBER: (string) The policy number linked to the voucher.
      POLICY_KEY: (string) The key for the policy.
      PRODUCT_CODE: (string) The code for the product.
      PRODUCT: (string) The name of the product.
      ISSUING_COUNTRY: (string) The country where the voucher was issued.
      ISSUING_COUNTRY_ISO: (string) The ISO code of the issuing country.
      ISSUED_ON: (string) The date when the voucher was issued.
      START_DATE: (string) The start date of the coverage.
      END_DATE: (string) The end date of the coverage.
      DOCUMENT_TYPE: (string) The type of document associated with the voucher.
      DOCUMENT_NBR: (string) The document number.
      STREET: (string) The street address.
      CITY: (string) The city of residence.
      COUNTRY_CODE: (string) The country code.
      PHONE: (string) The contact phone number.
      EMAIL: (string) The email address.
      ISO_COUNTRY: (string) The ISO country code.
      TRAVEL_COUNTRY: (string) The country of travel.
      GENDER: (string) The gender of the voucher holder.
      DATE_OF_BIRTH: (string) The date of birth of the voucher holder.
      TRAVEL_AGENCY_ID: (string) The ID of the travel agency.
      TRAVEL_AGENCY: (string) The name of the travel agency.
      REGION: (string) The region associated with the voucher.
      CNUMBER: (string) The customer number.
      PRODUCT_ID: (string) The ID of the product.
      ELECTRONICS_QTY: (integer) The quantity of electronics covered.
      INSURER: (string) The name of the insurer.
      COMMENTS: (array) An array of comments related to the voucher.
      This endpoint is essential for obtaining comprehensive details about a specific voucher, which can be used for verification, customer service, or further processing.
      Request Request Example
      Shell
      JavaScript
      Java
      Swift
      curl --location -g --request GET '/get_voucher_info.php?token={{token}}&voucher_number={{voucher_number}}'
      Response Response Example
      {}

      Request

      Query Params

      Responses

      🟢200Success
      application/json
      Body

      Modified at 2025-07-28 19:00:59
      Previous
      LOGIN
      Next
      GET_VOUCHERS
      Built with