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());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.