request_cancellation (PUT)
This function requests the cancellation of a voucher or order. For the cancellation to be successful, the voucher must exist, be active, and only the user who issued it can override it. The input parameters required are the token and the voucher or order number to be canceled. The output message indicates success or an error in case of any issues.
- Endpoint :
preview.ilsbsys.com/apirest_v1/quote
Input Fields
Tag Name | Type | Size | Priority |
---|---|---|---|
token | string | 16 | (Mandatory) |
codigo | string | 30 | (Mandatory) |
notificar | string 1 = Voucher cancellation |
1 | (Mandatory) |
Fields
{
"request" : "request_cancellation",
"token" : "123456789ABC",
"codigo" : "FT-K21JDD",
"notificar" : "1"
}
Results
{
"status": "OK"
}
Common Error Codes
6037
: All fields are empty4001
: Increased cancellation date for departure4050
: Invalid notificaction1020
: Voucher not found1021
: Inactive voucher3220
: Unauthorized operation3051
: User not associated to an agency