Skip to main content

MasaPrisa API

Welcome to the official MasaPrisa API documentation. This REST API allows you to integrate shipping services into your applications.

Environments

EnvironmentBase URL
Productionhttps://ws-api.masaprisaoperativo.com/api
Developmenthttps://ws-api-dev.masaprisaoperativo.com/api

:::warning Important Use the Development environment for testing and integration. Once validated, switch to Production. :::

Features

  • JWT Authentication - Secure tokens with configurable expiration
  • Guide Creation - Generate shipping guides programmatically
  • PDF Labels - Download print-ready labels
  • Branch Query - Get available destinations

Basic Flow

1. Login → Get JWT
2. Use JWT in headers → Authorization: Bearer {token}
3. Create guides, get labels, etc.

Quick Start

1. Authenticate

curl -X POST "https://ws-api.masaprisaoperativo.com/api/auth/login" \
-H "X-Username: your_username" \
-H "X-Password: your_password"

2. Create a guide

curl -X POST "https://ws-api.masaprisaoperativo.com/api/guias/crear" \
-H "Authorization: Bearer {your_token}" \
-H "Content-Type: application/json" \
-d '{
"TipoServicio": "Ocurre",
"Guia": [{
"Remitente": {"Nombre": "Juan Perez"},
"Destinatario": {"Nombre": "Maria Lopez", "DestinoCode": "GDLGL"},
"Producto": {"Contenido": "Documents"},
"Creado_por": {}
}]
}'

3. Get label

curl -X GET "https://ws-api.masaprisaoperativo.com/api/guias/etiqueta/{guide_number}" \
-H "Authorization: Bearer {your_token}"

Support

Need help? Contact your account executive or email soporte@masaprisa.com