Skip to content

Instantly share code, notes, and snippets.

@abelorian
Last active March 11, 2021 22:32
Show Gist options
  • Save abelorian/04b7830c6449d687615de7c1e4cbeb94 to your computer and use it in GitHub Desktop.
Save abelorian/04b7830c6449d687615de7c1e4cbeb94 to your computer and use it in GitHub Desktop.
Starken API Rest - WebService

Las ciudades y agencias se obtienen haciendo un GET a https://gateway.starken.cl/agency/city .

Para calcular el precio de un envío se hace lo siguiente:

POST a https://gateway.starken.cl/quote/cotizador con el siguiente body:

{
    "alto": 1,
    "ancho": 1,
    "bulto": "DOCUMENTO", # puede ser: "PAQUETE"
    "destino": 19, # buscar el code_dls. Al parecer no funciona con el code_dls de comuna, solo ciudad.
    "entrega": "DOMICILIO", # puede ser: "AGENCIA"
    "kilos": 1,
    "largo": 1,
    "origen": 1,
    "servicio": "NORMAL" # no se si hay otros
}

y con la siguiente cabecera:

Content-Type: application/json;charset=UTF-8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment