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
2 = Voucher cancellation and notification to
the email of the main beneficiary of the order

1 (Mandatory)


Fields

{
    "request" : "request_cancellation",
    "token" : "123456789ABC",
    "codigo" : "FT-K21JDD",
    "notificar" : "1"
}

Results

{
    "status": "OK"
}

Common Error Codes

  • 6037 : All fields are empty
  • 4001 : Increased cancellation date for departure
  • 4050 : Invalid notificaction
  • 1020 : Voucher not found
  • 1021 : Inactive voucher
  • 3220 : Unauthorized operation
  • 3051 : User not associated to an agency