Skip to main content

Get Notification Details

By using this method, you are expected to be able to debug each notification event given an entity_id.

GET /integrations/partner/notifications?entity_id={entity_id}

Sample Request

Sample Request
curl -X GET https://api.partner-sandbox.gobiz.co.id/integrations/partner/notifications?entity_id={entity_id} \
-H 'Authorization: Bearer {access-token}'

Path Parameters

NameDescriptionTypeRequired
entity_idID of the order or transaction.
for GoFood and GoMart entity_id is the order id i.e.: F-704173354
and for Payments, the entity_id is the transaction id i.e.: c5fbc785-629a-463f-b6f9-da1106a29f73
StringRequired

Sample Response - 200 Success

Sample Response
{
"success": true,
"data": {
"notifications": [
{
"entity_id": "F-704173354",
"created_at": "2023-05-03T16:11:50.446+00:00",
"partner_id": "c5fbc785-629a-463f-b6f9-da1106a29fa1",
"event_type": "gofood.order.merchant_accepted",
"delivery_status": "dead",
"endpoint": "https://webhook.site/5b8922ed-b310-456c-8ea2-9d7a0a9ba0f0",
"headers": {
"X-Go-Signature": "1158ebcb7e821406f0b4993a504d6d561177c494662dad890d651f94f3f08216",
"X-Go-Idempotency-Key": "446cb8ae-8fe3-3c2c-9e9f-c677f37c5e5c",
"Content-Type": "application/json",
"Accept": "application/json"
},
"payload": "stringified JSON of notification payload",
"history": [
{
"time": "2023-05-03T16:11:50.446+00:00",
"exception_message": "URL not found",
"delivered": false
},
{
"time": "2023-05-03T16:15:50.446+00:00",
"exception_message": "URL not found",
"delivered": false
},
{
"time": "2023-05-03T16:19:50.446+00:00",
"exception_message": "URL not found",
"delivered": false
},
{
"time": "2023-05-03T16:19:50.446+00:00",
"exception_message": "Failed after automatic attempts.",
"delivered": false
}
]
}
]
}
}

Response Parameters - 200 Success

JSON AttributeDescriptionType
successStatus of the request. Value true indicates successful submission of the request.Boolean
dataDetails of the notifications.Object
» notificationsArray of Notification Objects.Array(Object)
note
  • To perform this operation, you must be authenticated using go_auth_client_credentials(partner:outlet:read) or go_auth_client_credentials(outlet:read).
  • Possible error responses are 401, 406, and 415. Please refer Error Glossary.