Ping webhook
POST/v2/config/webhook/:webhookId/ping
This endpoint pings a webhook that was defined to trigger events to an external IT system. Use it to check that the payload URL answers.
The service sends a POST with an empty body to the payload URL. A ping carries no X-IGrant-Signature header, so the receiver cannot check its authenticity. The service does not record a ping as a webhook delivery.
The service answers with 200 for a reachable payload URL and for an unreachable one. Read the status field to tell the two apart.
Request
Path Parameters
Header Parameters
Optional. Unique identifier of the sandbox organisation to use for this request. When you send this header, the service runs the operation in the context of the named sandbox organisation, that is, against the wallet of that sandbox organisation and not against the main wallet of the organisation. Leave the header out to use the main wallet.
The service reads this header only when you authenticate with a bearer access token. When you authenticate with an API key, the service takes the sandbox organisation from the API key and ignores this header. To run an API-key call in a sandbox organisation, bind the key to the sandbox organisation with PUT /v2/config/admin/apikey/{apiKeyId}/sandbox-org instead.
X-SubwalletId is the deprecated name of this header. The service continues to accept it, but X-SandboxOrgId wins if you send both headers.
The sandbox organisation must exist, must belong to your organisation and must be deployed. An unknown identifier, an identifier of a sandbox organisation that is not deployed, and an identifier that belongs to a different organisation all make the call fail with HTTP 400.
Responses
- 200
- 401
- 404
- 500
The service completed the ping. The status field tells you if the payload URL answered.
Response Headers
- application/json
- Schema
- Example (from schema)
Schema
HTTP status code that the payload URL sent. The value is 0 when the service could not reach the payload URL.
HTTP status text that the payload URL sent. The value is an empty string when the service could not reach the payload URL.
UTC time when the ping started.
UTC time when the ping ended.
Possible values: [completed, failed]
Result of the ping. completed means the payload URL answered. failed means the service could not reach it.
Reason for a failure. The value is an empty string when status is completed.
{
"responseStatusCode": 200,
"responseStatusStr": "200 OK",
"executionStartTimestamp": "string",
"executionEndTimestamp": "string",
"status": "completed",
"statusDescription": "string"
}
Unauthorized
Response Headers
- application/json
- Schema
- Example (from schema)
Schema
{
"errorCode": 400,
"errorDescription": "Bad input parameter"
}
Resource not found
Response Headers
- application/json
- Schema
- Example (from schema)
Schema
{
"errorCode": 400,
"errorDescription": "Bad input parameter"
}
Internal server error
Response Headers
- application/json
- Schema
- Example (from schema)
Schema
{
"errorCode": 400,
"errorDescription": "Bad input parameter"
}