get_beneficiaries_bycode (GET)
This function queries the beneficiaries associated with an order. The token and the order code are required as input parameters. Returns a string in Json format with the passenger information. This function is complementary to 'crud_beneficiaries' function, since it allows us to obtain the ID of the passengers to make changes to their information.
- Endpoint :
preview.ilsbsys.com/apirest_v1/information
Input Fields
Tag Name | Type | Size | Priority |
---|---|---|---|
token | string | 16 | (Mandatory) |
codigo | string | 11 | (Mandatory) |
Fields
{
"request" : "get_beneficiaries_bycode",
"token" : "123456789ABC",
"codigo" : "EXMPL-1234"
}
Results
[
{
"id": "124",
"id_orden": "555",
"nombre": "jose",
"apellido": "De La Mota ",
"email": "jose@jose.com",
"telefono": "34651348695",
"nacimiento": "1969-09-12",
"documento": "154545",
"condicion_medica": "ninguna",
"precio_vta": "4.50",
"precio_cost": "4.50",
"total_neto_benefit": null,
"neto_cost": null,
"ben_status": "1",
"raider": "N/A"
}
]
Common Error Codes
1005
: Invalid token9015
: No results9018
: Order not issued by this user