---
agentTools:
  projectIndex: https://docs.basqet.com/llms.txt
---

# Retry Transaction Webhook

## API Details

| Field                | Value                                      |
| -------------------- | ------------------------------------------ |
| **Action**           | Retry Transaction Webhook                  |
| **Method**           | `GET`                                      |
| **Path**             | `/v1/transaction/:transaction_id/webhook`  |
| **Auth Requirement** | Public key or secret key using 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 |      Yes | Bearer token in the form `Bearer pub_...` or `Bearer sec_...`. |

***

## Request Example

### cURL

```bash
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

```json
{
  "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 a valid prefix, either `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 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. Retry the request or contact Basqet support.                                         |