CCP 3.0 (Complemento Carta Porte 3.0) - tipos carro
Los registros paginados
/api/v1/SAT/catalogs/ccp-30-tipos-carro
Este servicio proporciona un JSON que contiene TODOS los registros del catalogo
URL
bash
GET /api/v1/SAT/catalogs/ccp-30-tipos-carro
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": "TC01",
"texto": "Furg\u00f3n",
"contenedor": "0",
"vigencia_desde": "2023-11-25",
"vigencia_hasta": ""
},
{
"id": "TC02",
"texto": "G\u00f3ndola",
"contenedor": "0",
"vigencia_desde": "2023-11-25",
"vigencia_hasta": ""
},
{
"id": "TC03",
"texto": "Tolva",
"contenedor": "0",
"vigencia_desde": "2023-11-25",
"vigencia_hasta": ""
},
{
"id": "TC04",
"texto": "Tanque",
"contenedor": "0",
"vigencia_desde": "2023-11-25",
"vigencia_hasta": ""
},
{
"id": "TC05",
"texto": "Plataforma Intermodal",
"contenedor": "1",
"vigencia_desde": "2023-11-25",
"vigencia_hasta": ""
},
{
"id": "TC06",
"texto": "Plataforma de Uso General",
"contenedor": "0",
"vigencia_desde": "2023-11-25",
"vigencia_hasta": ""
},
{
"id": "TC07",
"texto": "Plataforma Automotriz",
"contenedor": "0",
"vigencia_desde": "2023-11-25",
"vigencia_hasta": ""
},
{
"id": "TC08",
"texto": "Locomotora",
"contenedor": "0",
"vigencia_desde": "2023-11-25",
"vigencia_hasta": ""
},
{
"id": "TC09",
"texto": "Carro Especial",
"contenedor": "0",
"vigencia_desde": "2023-11-25",
"vigencia_hasta": ""
},
{
"id": "TC10",
"texto": "Pasajeros",
"contenedor": "0",
"vigencia_desde": "2023-11-25",
"vigencia_hasta": ""
},
{
"id": "TC11",
"texto": "Mantenimiento de V\u00eda",
"contenedor": "0",
"vigencia_desde": "2023-11-25",
"vigencia_hasta": ""
}
],
"links": {
"first": "https://bridge.paladins.mx/api/v1/SAT/catalogs/ccp-30-tipos-carro?page=1",
"last": "https://bridge.paladins.mx/api/v1/SAT/catalogs/ccp-30-tipos-carro?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-30-tipos-carro?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "https://bridge.paladins.mx/api/v1/SAT/catalogs/ccp-30-tipos-carro",
"per_page": 15,
"to": 11,
"total": 11
}
}
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-30-tipos-carro' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer 3|jIoi6R40Kic8IkKtT7XQu4nUM78BqwqxTsPKtQGi67f00c2a'
El registro dado un identificador
/api/v1/SAT/catalogs/ccp-30-tipos-carro/
Este servicio proporciona un JSON que contiene UN la infomación de un registro del catalogo
URL
bash
GET api/v1/SAT/catalogs/ccp-30-tipos-carro/{ccp_30_tipos_carro}
Headers
Authorization: Bearer {token}
Accept: application/json
URL Params
Input | Type | Required | Values acceptable | Default |
---|---|---|---|---|
ccp_30_tipos_carro | string | true |
Data Params
txt
None
Respuestas Posibles
Success
Code: 200 Response Aceptada
Content:
json
{
"data": {
"id": "TC01",
"texto": "Furg\u00f3n",
"contenedor": "0",
"vigencia_desde": "2023-11-25",
"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-30-tipos-carro/TC01' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer 3|jIoi6R40Kic8IkKtT7XQu4nUM78BqwqxTsPKtQGi67f00c2a'