crudBeneficiaries (PUT)

This function enables the addition, editing, and removal of beneficiaries from an order. The required input parameters include the token, voucher code, and action (Add (ADD), Edit (PUT), Delete (DELETE)). These modifications can only be executed if the order associated with these passengers is not yet in effect, and additionally, they must be initiated via the 'report_order' function. This function also manages the alteration of the fields that are submitted in their entirety.

  • Endpoint : preview.ilsbsys.com/apirest_v1/quote

Campos de Entrada

Tag Name Type Size Priority
token string 16 (Mandatory)
codigo string 30 (Mandatory)
action string

- ADD
- DELETE
- PUT

30 (Mandatory)
ADD
nacimiento string 50 (Mandatory)
email string 300 (Mandatory)
nombres string 300 (Mandatory)
apellidos string 300 (Mandatory)
documento string 50 (Mandatory)
medicas string 300 (Mandatory)
telefono string 300 (Mandatory)
procedenciaBack string 300 (Optional)
PUT
nacimiento string 50 (Optional)
email string 300 (Optional)
nombres string 300 (Optional)
apellidos string 300 (Optional)
documento string 50 (Optional)
medicas string 300 (Optional)
telefono string 300 (Optional)
idbeneficiarie string 300 (Mandatory)
procedenciaBack string 300 (Optional)
DELETE
idbeneficiarie string 300 (Mandatory)

Acción 'ADD'

Campos

{
    "request": "crudBeneficiaries",
    "token": "A97AG67FJ2F7",
    "codigo": "TES-1DE8LL",
    "action": "ADD",
    "databeneficiarie":{
        "nacimiento":"26/06/1996",
        "email": "test@gmail.com",
        "nombres": "Patricio",
        "apellidos": "Freites",
        "documento": "12344333",
        "medicas": "test",
        "telefono": "5753544000",
        "idbeneficiarie": ""
      },
      "procedenciaBack": ""    
}

Resultados

{
  "status": "OK",
}

Acción 'PUT'

Campos

{
    "request": "crudBeneficiaries",
    "token": "A97AG67FJ2F7",
    "codigo": "TES-1DE8LL",
    "action": "PUT",
    "databeneficiarie":{
        "nacimiento":"26/06/1996",
        "email": "test@gmail.com",
        "nombres": "Patricio",
        "apellidos": "Freites",
        "documento": "12344333",
        "medicas": "test",
        "telefono": "5753544000",
        "idbeneficiarie": "6600660"
      },
      "procedenciaBack": ""    
}


Resultados

{
  "status": "OK",
}

Acción 'DELETE'

Campos

{
    "request": "crudBeneficiaries",
    "token": "A97AG67FJ2F7",
    "codigo": "TES-1DE8LL",
    "action": "DELETE",
    "databeneficiarie":{
        "nacimiento":"",
        "email": "",
        "nombres": "",
        "apellidos": "",
        "documento": "",
        "medicas": "",
        "telefono": "",
        "idbeneficiarie": "6600660"
      },
      "procedenciaBack": ""    
}


Resultados

{
  "status": "OK",
}


Errores Comunes Retornados por la Función

  • 1005 : Invalid supplied token
  • 1020 : Requested voucher number is not registered
  • 1062 : Invalid date of birth
  • 3086 : Invalid document number
  • 3260 : User does not have permissions to make changes
  • 4001 : Current date is greater than Departure date
  • 4006 : Empty passenger document
  • 4007 : Empty passenger last name
  • 4008 : Invalid passenger phone
  • 5006 : Empty medical conditions
  • 6020 : Empty token
  • 6023 : Empty voucher
  • 6031 : Empty date of birth