Skip to main content

Get Notification

Use this endpoint to get the details of a specific notification by its id.

Available Environments​

https://api.gateway.com.br/dispatcher

Endpoint​

  • Method: GET
  • Endpoint: /request/{id}
  • Authentication: Bearer token

Path Params​

NameTypeRequiredDescriptionValidations
idstringYesNotification identifierMust be a valid notification ID

Request Example​

curl --request GET \
--url https://api.gateway.com.br/dispatcher/request/553e8400-e29b-41d4-a716-446655440000 \
--header 'Authorization: Bearer your-jwt-token'

Success Response​

FieldTypeRequiredDescription
idstringYesNotification ID
hashstringYesNotification hash
tenantstringYesTenant of the notification
urlstringYesDestination URL of the notification
referenceIdstringYesReference ID
bodyobject | stringYesPayload sent in the notification
tagsstring[]YesNotification tags
statusstring (enum) - RECEIVED, SENT, FAILED, ERRORYesCurrent status of the notification
statusHistoryarrayYesStatus history (see Sub-Object StatusHistory)
createdAtstring (ISO)YesCreation date
updatedAtstring (ISO)YesLast update date
executionsarrayYesNotification executions (see Sub-Object Execution)
errorstringYesError message of the notification (returns null when there is no error)

Sub-Objects​

StatusHistory (item)​

FieldTypeRequiredDescription
statusstringYesStatus recorded in the history
datestring (ISO)YesDate and time of the status change
durationInMillisecondsnumberNoDuration of the previous status in milliseconds

Execution (item)​

FieldTypeRequiredDescription
urlstringYesURL called on the notification execution
headersobjectNoHeaders sent on the execution
createdAtstring (ISO)YesDate and time of the execution
responseobjectYesExecution response (see Sub-Object ResponseVo)
userIdstringYesIdentifier of the user related to the execution
storeIdstringYesIdentifier of the store related to the execution

ResponseVo​

FieldTypeRequiredDescription
statusCodenumberYesHTTP status code returned by the destination
bodyanyYesResponse body returned by the destination
responseTimenumberYesExecution response time in milliseconds

Response Example (with every field)​

{
"id": "553e8400-e29b-41d4-a716-446655440000",
"hash": "ffb2f88d-a863-4a03-bf53-81e7ef73db31",
"tenant": "splitwave.com.br",
"url": "https://api.example.com/webhook",
"referenceId": "123e4567-e89b-12d3-a456-426614174001",
"body": {
"event": "PAYMENT_APPROVED",
"amount": 1000
},
"tags": ["webhook", "notification"],
"status": "RECEIVED",
"statusHistory": [
{
"status": "RECEIVED",
"date": "2026-03-24T10:00:00.000Z",
"durationInMilliseconds": 1000
},
{
"status": "FAILED",
"date": "2026-03-24T10:00:01.000Z",
"durationInMilliseconds": 4000
},
{
"status": "SENT",
"date": "2026-03-24T10:00:05.000Z"
}
],
"createdAt": "2026-03-24T10:00:00.000Z",
"updatedAt": "2026-03-24T10:00:05.000Z",
"executions": [
{
"url": "https://api.example.com/webhooks/order-events",
"headers": {
"Content-Type": "application/json",
"X-Splitwave-Signature": "sha256=abcdef123456"
},
"createdAt": "2026-03-24T10:00:01.000Z",
"response": {
"statusCode": 500,
"body": "Internal Server Error",
"responseTime": 1200
},
"userId": "11111111-1111-1111-1111-111111111111",
"storeId": "22222222-2222-2222-2222-222222222222"
},
{
"url": "https://api.example.com/webhooks/order-events",
"headers": {
"Content-Type": "application/json",
"X-Splitwave-Signature": "sha256=abcdef123456"
},
"createdAt": "2026-03-24T10:00:05.000Z",
"response": {
"statusCode": 200,
"body": "ok",
"responseTime": 350
},
"userId": "11111111-1111-1111-1111-111111111111",
"storeId": "22222222-2222-2222-2222-222222222222"
}
],
"error": "Connection timeout on first attempt"
}

Possible Errors​

CodeDescriptionSolution
401Invalid credentialsCheck your token
403No permission/authorizationCheck the get_dispatcher scope
404Notification not foundCheck the id you sent
500Internal errorContact support