RET 2.0 (CFDI De Retenciones e Información de Pagos) - ejercicios
Los registros paginados
/api/v1/SAT/catalogs/ret-20-ejercicios
Este servicio proporciona un JSON que contiene TODOS los registros del catalogo
URL
bash
GET /api/v1/SAT/catalogs/ret-20-ejercicios
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": 2021,
"texto": "",
"vigencia_desde": "2022-01-01",
"vigencia_hasta": ""
},
{
"id": 2022,
"texto": "",
"vigencia_desde": "2022-01-01",
"vigencia_hasta": ""
},
{
"id": 2023,
"texto": "",
"vigencia_desde": "2023-01-01",
"vigencia_hasta": ""
},
{
"id": 2024,
"texto": "",
"vigencia_desde": "2024-01-01",
"vigencia_hasta": ""
},
{
"id": 2025,
"texto": "",
"vigencia_desde": "2025-01-01",
"vigencia_hasta": ""
},
{
"id": 2026,
"texto": "",
"vigencia_desde": "2026-01-01",
"vigencia_hasta": ""
},
{
"id": 2027,
"texto": "",
"vigencia_desde": "2027-01-01",
"vigencia_hasta": ""
}
],
"links": {
"first": "https://bridge.paladins.mx/api/v1/SAT/catalogs/ret-20-ejercicios?page=1",
"last": "https://bridge.paladins.mx/api/v1/SAT/catalogs/ret-20-ejercicios?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/ret-20-ejercicios?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "https://bridge.paladins.mx/api/v1/SAT/catalogs/ret-20-ejercicios",
"per_page": 15,
"to": 7,
"total": 7
}
}
Unauthorized
Code: 401 Unauthorized
Content:
json
{
"message": "Unauthenticated."
}
Ejemplo con curl
bash
curl --location --request GET 'https://bridge.paladins.mx/api/v1/SAT/catalogs/ret-20-ejercicios' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer 3|jIoi6R40Kic8IkKtT7XQu4nUM78BqwqxTsPKtQGi67f00c2a'
El registro dado un identificador
/api/v1/SAT/catalogs/ret-20-ejercicios/
Este servicio proporciona un JSON que contiene UN la infomación de un registro del catalogo
URL
bash
GET api/v1/SAT/catalogs/ret-20-ejercicios/{ret_20_ejercicio}
Headers
Authorization: Bearer {token}
Accept: application/json
URL Params
Input | Type | Required | Values acceptable | Default |
---|---|---|---|---|
ret_20_ejercicio | string | true |
Data Params
txt
None
Respuestas Posibles
Success
Code: 200 Response Aceptada
Content:
json
{
"data": {
"id": 2021,
"texto": "",
"vigencia_desde": "2022-01-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/ret-20-ejercicios/2021' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer 3|jIoi6R40Kic8IkKtT7XQu4nUM78BqwqxTsPKtQGi67f00c2a'