Skip to content

CCP 2.0 (Complemento Carta Porte 2.0) - contenedores maritimos

Los registros paginados

/api/v1/SAT/catalogs/ccp-20-contenedores-maritimos

Este servicio proporciona un JSON que contiene TODOS los registros del catalogo

URL

bash
    GET /api/v1/SAT/catalogs/ccp-20-contenedores-maritimos

Headers

Authorization: Bearer {token}

Accept: application/json

URL Params

InputTypeRequiredValues acceptableDefault
pagenumberfalse

Data Params

txt
    None

Respuestas Posibles

Success

Code: 200 Response Aceptada

Content:

json
{
    "data": [
        {
            "id": "CM001",
            "texto": "Contenedores refrigerados de 20FT",
            "vigencia_desde": "2021-06-01",
            "vigencia_hasta": ""
        },
        {
            "id": "CM002",
            "texto": "Contenedores refrigerados de 40FT",
            "vigencia_desde": "2021-06-01",
            "vigencia_hasta": ""
        },
        {
            "id": "CM003",
            "texto": "Contenedores est\u00e1ndar de 8FT",
            "vigencia_desde": "2021-06-01",
            "vigencia_hasta": ""
        },
        {
            "id": "CM004",
            "texto": "Contenedores est\u00e1ndar de 10FT",
            "vigencia_desde": "2021-06-01",
            "vigencia_hasta": ""
        },
        {
            "id": "CM005",
            "texto": "Contenedores est\u00e1ndar de 20FT",
            "vigencia_desde": "2021-06-01",
            "vigencia_hasta": ""
        },
        {
            "id": "CM006",
            "texto": "Contenedores est\u00e1ndar de 40FT",
            "vigencia_desde": "2021-06-01",
            "vigencia_hasta": ""
        },
        {
            "id": "CM007",
            "texto": "Contenedores Open Side",
            "vigencia_desde": "2021-06-01",
            "vigencia_hasta": ""
        },
        {
            "id": "CM008",
            "texto": "Contenedor Isotanque",
            "vigencia_desde": "2021-06-01",
            "vigencia_hasta": ""
        },
        {
            "id": "CM009",
            "texto": "Contenedor flat racks",
            "vigencia_desde": "2021-06-01",
            "vigencia_hasta": ""
        },
        {
            "id": "CM010",
            "texto": "Buque tanque",
            "vigencia_desde": "2022-01-01",
            "vigencia_hasta": ""
        },
        {
            "id": "CM011",
            "texto": "Ferri",
            "vigencia_desde": "2022-12-28",
            "vigencia_hasta": ""
        },
        {
            "id": "CM012",
            "texto": "Ferri \u2013 Tur\u00edstico y vac\u00edos",
            "vigencia_desde": "2024-01-25",
            "vigencia_hasta": ""
        }
    ],
    "links": {
        "first": "https://bridge.paladins.mx/api/v1/SAT/catalogs/ccp-20-contenedores-maritimos?page=1",
        "last": "https://bridge.paladins.mx/api/v1/SAT/catalogs/ccp-20-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-20-contenedores-maritimos?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "Next »",
                "active": false
            }
        ],
        "path": "https://bridge.paladins.mx/api/v1/SAT/catalogs/ccp-20-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-20-contenedores-maritimos' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer 3|jIoi6R40Kic8IkKtT7XQu4nUM78BqwqxTsPKtQGi67f00c2a'

El registro dado un identificador

/api/v1/SAT/catalogs/ccp-20-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-20-contenedores-maritimos/{ccp_20_contenedores_maritimo}

Headers

Authorization: Bearer {token}

Accept: application/json

URL Params

InputTypeRequiredValues acceptableDefault
ccp_20_contenedores_maritimostringtrue

Data Params

txt
    None

Respuestas Posibles

Success

Code: 200 Response Aceptada

Content:

json
{
    "data": {
        "id": "CM001",
        "texto": "Contenedores refrigerados de 20FT",
        "vigencia_desde": "2021-06-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-contenedores-maritimos/CM001' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer 3|jIoi6R40Kic8IkKtT7XQu4nUM78BqwqxTsPKtQGi67f00c2a'

Busqueda de registros