MENU navbar-image

Introduction

API for managing tracking, manifests, and events.

<h2>Welcome to the Customs API</h2>
<p>This documentation covers all available endpoints for managing packages, tracking, events, and users. Here you will find usage examples, required parameters, and expected responses.</p>
<ul>
    <li>Authenticated and public endpoints</li>
    <li>Examples in multiple languages</li>
    <li>Download Postman collection and OpenAPI spec</li>
</ul>
<aside>Use the "Try it out" button to execute real requests directly from the documentation.</aside>

Authenticating requests

To authenticate requests, include an Authorization header with the value "Bearer {YOUR_AUTH_KEY}".

All authenticated endpoints are marked with a requires authentication badge in the documentation below.

Para obtener tu token de acceso, inicia sesiΓ³n y copia el valor desde tu panel de usuario o solicita uno al administrador.

Endpoints

POST api/login

requires authentication

Example request:
curl --request POST \
    "https://aduana.stargateserp.com/api/login" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
const url = new URL(
    "https://aduana.stargateserp.com/api/login"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST api/login

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

GET api/paquete/eventos/{warehouse}

requires authentication

Example request:
curl --request GET \
    --get "https://aduana.stargateserp.com/api/paquete/eventos/{warehouse}" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
const url = new URL(
    "https://aduana.stargateserp.com/api/paquete/eventos/{warehouse}"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/paquete/eventos/{warehouse}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

POST api/manifiesto

requires authentication

Example request:
curl --request POST \
    "https://aduana.stargateserp.com/api/manifiesto" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
const url = new URL(
    "https://aduana.stargateserp.com/api/manifiesto"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST api/manifiesto

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}