CCP 2.0 (Complemento Carta Porte 2.0) - tipos servicio
Los registros paginados
/api/v1/SAT/catalogs/ccp-20-tipos-servicio
Este servicio proporciona un JSON que contiene TODOS los registros del catalogo
URL
bash
GET /api/v1/SAT/catalogs/ccp-20-tipos-servicio
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": "TS01",
"texto": "Carros Ferroviarios",
"contenedor": "0",
"vigencia_desde": "2021-12-01",
"vigencia_hasta": ""
},
{
"id": "TS02",
"texto": "Carros Ferroviarios intermodal",
"contenedor": "1",
"vigencia_desde": "2021-12-01",
"vigencia_hasta": ""
},
{
"id": "TS03",
"texto": "Tren unitario de carros ferroviarios",
"contenedor": "0",
"vigencia_desde": "2021-12-01",
"vigencia_hasta": ""
},
{
"id": "TS04",
"texto": "Tren unitario Intermodal",
"contenedor": "1",
"vigencia_desde": "2021-12-01",
"vigencia_hasta": ""
}
],
"links": {
"first": "https://bridge.paladins.mx/api/v1/SAT/catalogs/ccp-20-tipos-servicio?page=1",
"last": "https://bridge.paladins.mx/api/v1/SAT/catalogs/ccp-20-tipos-servicio?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-20-tipos-servicio?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "https://bridge.paladins.mx/api/v1/SAT/catalogs/ccp-20-tipos-servicio",
"per_page": 15,
"to": 4,
"total": 4
}
}
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-20-tipos-servicio' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer 3|jIoi6R40Kic8IkKtT7XQu4nUM78BqwqxTsPKtQGi67f00c2a'
El registro dado un identificador
/api/v1/SAT/catalogs/ccp-20-tipos-servicio/
Este servicio proporciona un JSON que contiene UN la infomación de un registro del catalogo
URL
bash
GET api/v1/SAT/catalogs/ccp-20-tipos-servicio/{ccp_20_tipos_servicio}
Headers
Authorization: Bearer {token}
Accept: application/json
URL Params
Input | Type | Required | Values acceptable | Default |
---|---|---|---|---|
ccp_20_tipos_servicio | string | true |
Data Params
txt
None
Respuestas Posibles
Success
Code: 200 Response Aceptada
Content:
json
{
"data": {
"id": "TS01",
"texto": "Carros Ferroviarios",
"contenedor": "0",
"vigencia_desde": "2021-12-01",
"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-20-tipos-servicio/TS01' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer 3|jIoi6R40Kic8IkKtT7XQu4nUM78BqwqxTsPKtQGi67f00c2a'