Retry Transaction Webhook
API Details
Action: Retry Transaction Webhook
Method: GET
Path: /v1/transaction/:transaction_id/webhook
Auth Requirement: Public Key or Secret Key via bearer auth.
Business Summary
This endpoint executes a manual retry of a transaction webhook.
Request Parameters
Path Parameters
| Name | Type | Required | Default | Allowed Values | Description |
|---|---|---|---|---|---|
transaction_id | string | Yes | - | - | Transaction database ID or transaction reference |
Request Headers
| Name | Type | Required | Description |
|---|---|---|---|
Authorization | string | Conditionally | Bearer token in the form ``Bearer pub_.... Optional if public_key`` is passed in the request body. |
Request Examples
cURL
curl --request GET \
--url https://api.basqet.com/v1/transaction/BASQET_TXN_REF_12345/webhook \
--header 'Authorization: Bearer sec_live_xxxxxxxxxxxxx'
Response Schema
| Field | Type | Nullable | Description |
|---|---|---|---|
status | string | No | Always success for 2xx responses. |
data | string | No | Success message(e.g Webhook sent successfully) |
meta | object | No | Usually {}. |
Sample Response
{
"status": "success",
"data": "Webhook sent successfully",
"meta": {}
}
Error Reference
| HTTP Code | Message | Resolution |
|---|---|---|
| 400 | Authorization header is malformed or API key format is invalid. | Ensure the Authorization header is correctly formatted and the key uses the valid prefix (pub_ or sec_). |
| 401 | Authorization header is missing. | Include the Authorization header with your Bearer token in the request. |
| 403 | API key is valid but does not belong to the transaction's merchant. | Verify that the API key provided belongs to the specific merchant account associated with this transaction. |
| 404 | Transaction does not exist. | Check that the transaction_id or transaction reference provided in the URL path is correct. |
| 500 | Unexpected server error. | An unexpected error occurred. Please retry the request or contact Basqet support. |
Updated 5 days ago