CCP 3.1 (Complemento Carta Porte 3.1) - contenedores maritimos
Los registros paginados
/api/v1/SAT/catalogs/ccp-31-contenedores-maritimos
Este servicio proporciona un JSON que contiene TODOS los registros del catalogo
URL
bash
GET /api/v1/SAT/catalogs/ccp-31-contenedores-maritimos
Headers
Authorization: Bearer {token}
Accept: application/json
URL Params
Input | Type | Required | Values acceptable | Default |
---|---|---|---|---|
page | number | false |
Data Params
txt
None
Respuestas Posibles
Success
Code: 200 Response Aceptada
Content:
json
{
"data": [
{
"id": "CM001",
"texto": "Contenedores refrigerados de 20FT",
"vigencia_desde": "2024-07-17",
"vigencia_hasta": ""
},
{
"id": "CM002",
"texto": "Contenedores refrigerados de 40FT",
"vigencia_desde": "2024-07-17",
"vigencia_hasta": ""
},
{
"id": "CM003",
"texto": "Contenedores est\u00e1ndar de 8FT",
"vigencia_desde": "2024-07-17",
"vigencia_hasta": ""
},
{
"id": "CM004",
"texto": "Contenedores est\u00e1ndar de 10FT",
"vigencia_desde": "2024-07-17",
"vigencia_hasta": ""
},
{
"id": "CM005",
"texto": "Contenedores est\u00e1ndar de 20FT",
"vigencia_desde": "2024-07-17",
"vigencia_hasta": ""
},
{
"id": "CM006",
"texto": "Contenedores est\u00e1ndar de 40FT",
"vigencia_desde": "2024-07-17",
"vigencia_hasta": ""
},
{
"id": "CM007",
"texto": "Contenedores Open Side",
"vigencia_desde": "2024-07-17",
"vigencia_hasta": ""
},
{
"id": "CM008",
"texto": "Contenedor Isotanque",
"vigencia_desde": "2024-07-17",
"vigencia_hasta": ""
},
{
"id": "CM009",
"texto": "Contenedor flat racks",
"vigencia_desde": "2024-07-17",
"vigencia_hasta": ""
},
{
"id": "CM010",
"texto": "Buque tanque",
"vigencia_desde": "2024-07-17",
"vigencia_hasta": ""
},
{
"id": "CM011",
"texto": "Ferri",
"vigencia_desde": "2024-07-17",
"vigencia_hasta": ""
},
{
"id": "CM012",
"texto": "Ferri \u2013 Tur\u00edstico y vac\u00edos",
"vigencia_desde": "2024-07-17",
"vigencia_hasta": ""
}
],
"links": {
"first": "https://bridge.paladins.mx/api/v1/SAT/catalogs/ccp-31-contenedores-maritimos?page=1",
"last": "https://bridge.paladins.mx/api/v1/SAT/catalogs/ccp-31-contenedores-maritimos?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "https://bridge.paladins.mx/api/v1/SAT/catalogs/ccp-31-contenedores-maritimos?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "https://bridge.paladins.mx/api/v1/SAT/catalogs/ccp-31-contenedores-maritimos",
"per_page": 15,
"to": 12,
"total": 12
}
}
Unauthorized
Code: 401 Unauthorized
Content:
json
{
"message": "Unauthenticated."
}
Ejemplo con curl
bash
curl --location --request GET 'https://bridge.paladins.mx/api/v1/SAT/catalogs/ccp-31-contenedores-maritimos' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer 3|jIoi6R40Kic8IkKtT7XQu4nUM78BqwqxTsPKtQGi67f00c2a'
El registro dado un identificador
/api/v1/SAT/catalogs/ccp-31-contenedores-maritimos/
Este servicio proporciona un JSON que contiene UN la infomación de un registro del catalogo
URL
bash
GET api/v1/SAT/catalogs/ccp-31-contenedores-maritimos/{ccp_31_contenedores_maritimo}
Headers
Authorization: Bearer {token}
Accept: application/json
URL Params
Input | Type | Required | Values acceptable | Default |
---|---|---|---|---|
ccp_31_contenedores_maritimo | string | true |
Data Params
txt
None
Respuestas Posibles
Success
Code: 200 Response Aceptada
Content:
json
{
"data": {
"id": "CM001",
"texto": "Contenedores refrigerados de 20FT",
"vigencia_desde": "2024-07-17",
"vigencia_hasta": ""
}
}
Unauthorized
Code: 401 Unauthorized
Content:
json
{
"message": "Unauthenticated."
}
Ejemplo con curl
bash
curl --location --request GET 'https://bridge.paladins.mx/api/v1/SAT/catalogs/ccp-31-contenedores-maritimos/CM001' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer 3|jIoi6R40Kic8IkKtT7XQu4nUM78BqwqxTsPKtQGi67f00c2a'