curl --request GET \
--url https://api.syntage.com/events/{id} \
--header 'X-API-Key: <api-key>'
{
"@context": "/contexts/Event",
"@id": "/events/91106968-1abd-4d64-85c1-4e73d96fb997",
"@type": "Event",
"id": "e0a24894-7fbf-48ae-bfb0-efaae30a6319",
"taxpayer": {
"@id": "/taxpayers/PEIC211118IS0",
"@type": "Taxpayer",
"id": "PEIC211118IS0",
"personType": "physical",
"registrationDate": "2023-12-25",
"name": "Pedro Infante Cruz"
},
"type": "credential.updated",
"source": "/extractions/91106968-1abd-4d64-85c1-4e73d96fb997",
"resource": "/credentials/91106968-1abd-4d64-85c1-4e73d96fb997",
"data": {
"object": {
"id": "91106968-1abd-4d64-85c1-4e73d96fb997",
"rfc": "PEIC211118IS0",
"type": "ciec",
"status": "valid",
"createdAt": "2020-01-17 11:47:27"
},
"changes": {
"status": {
"old": "pending",
"new": "valid"
}
}
},
"createdAt": "2020-01-01T12:15:00.000Z",
"updatedAt": "2020-01-01T12:15:00.000Z"
}
curl --request GET \
--url https://api.syntage.com/events/{id} \
--header 'X-API-Key: <api-key>'
{
"@context": "/contexts/Event",
"@id": "/events/91106968-1abd-4d64-85c1-4e73d96fb997",
"@type": "Event",
"id": "e0a24894-7fbf-48ae-bfb0-efaae30a6319",
"taxpayer": {
"@id": "/taxpayers/PEIC211118IS0",
"@type": "Taxpayer",
"id": "PEIC211118IS0",
"personType": "physical",
"registrationDate": "2023-12-25",
"name": "Pedro Infante Cruz"
},
"type": "credential.updated",
"source": "/extractions/91106968-1abd-4d64-85c1-4e73d96fb997",
"resource": "/credentials/91106968-1abd-4d64-85c1-4e73d96fb997",
"data": {
"object": {
"id": "91106968-1abd-4d64-85c1-4e73d96fb997",
"rfc": "PEIC211118IS0",
"type": "ciec",
"status": "valid",
"createdAt": "2020-01-17 11:47:27"
},
"changes": {
"status": {
"old": "pending",
"new": "valid"
}
}
},
"createdAt": "2020-01-01T12:15:00.000Z",
"updatedAt": "2020-01-01T12:15:00.000Z"
}
Your API key is available in the Production and Sandbox dashboards.
Event resource response
The response is of type object
.