Skip to main content

Validate Destination

Validates if a destination branch code is valid before creating guides.

GET /api/guias/validar-destino/{destinoCode}

Required permission: guias.read

Parameters

ParameterTypeDescription
destinoCodestringBranch code (e.g.: GDLGL, MOR, URU)

Example

curl -X GET "https://ws-api.masaprisaoperativo.com/api/guias/validar-destino/GDLGL" \
-H "Authorization: Bearer {token}"

Successful Response

{
"response": "OK",
"message": "Codigo de destino valido",
"destinoCode": "GDLGL"
}

Error Response

{
"response": "ERROR",
"message": "DestinoCode no corresponde a ninguna sucursal valida"
}

Use this endpoint to validate codes before creating guides, especially if:

  • The user enters the code manually
  • You're importing data from an external system
  • You want to show immediate feedback in your UI
tip

To get the complete list of valid destinations, use GET /api/sucursales/destinos.