> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.epaygames.io/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.epaygames.io/_mcp/server.

# Repost Transaction (for testing only)

POST https://disbursement-api-stg.epaygames.io/v1/api/disbursement/transactions/repost

### Repost Transaction

The **Repost Transaction** endpoint reposts a transaction by its reference number to re-trigger the associated webhook callback.

Use this during development and QA to simulate webhook delivery for a specific transaction without initiating a new payout. This is useful for testing your webhook handler's response to transaction status events (e.g., `completed`, `cancelled`).

> For testing purposes only. Do not use this endpoint in a production environment.

Reference: https://docs.epaygames.io/disbursement-api/testing/repost-transaction-for-testing-only

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: disbursement
  version: 1.0.0
paths:
  /v1/api/disbursement/transactions/repost:
    post:
      operationId: Repost Transaction (for testing only)
      summary: Repost Transaction (for testing only)
      description: >-
        ### Repost Transaction


        The **Repost Transaction** endpoint reposts a transaction by its
        reference number to re-trigger the associated webhook callback.


        Use this during development and QA to simulate webhook delivery for a
        specific transaction without initiating a new payout. This is useful for
        testing your webhook handler's response to transaction status events
        (e.g., `completed`, `cancelled`).


        > For testing purposes only. Do not use this endpoint in a production
        environment.
      tags:
        - testing
      parameters:
        - name: reference_no
          in: query
          description: >-
            The `reference_no` of the existing transaction whose webhook
            callback should be re-sent.
          required: true
          schema:
            type: string
        - name: Authorization
          in: header
          description: >-
            Bearer token obtained from the Create Access Token endpoint. Tokens
            are valid for ~60 minutes — cache and reuse a token for its full
            lifetime instead of re-authenticating per request.
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/Disbursement API_Testing_Repost
                  Transaction (for testing only)_Response_200
        '401':
          description: Unauthorized — missing, invalid, or expired bearer token.
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/PostV1ApiDisbursementTransactionsRepostRequestUnauthorizedError
        '429':
          description: >-
            Too Many Requests — this testing endpoint is rate-limited to prevent
            misuse of the callback-resend mechanism.
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/PostV1ApiDisbursementTransactionsRepostRequestTooManyRequestsError
servers:
  - url: https://disbursement-api.epaygames.io
    description: Production
  - url: https://disbursement-api-stg.epaygames.io
    description: Staging/Sandbox
components:
  schemas:
    Disbursement API_Testing_Repost Transaction (for testing only)_Response_200:
      type: object
      properties:
        message:
          type: string
      required:
        - message
      title: >-
        Disbursement API_Testing_Repost Transaction (for testing
        only)_Response_200
    PostV1ApiDisbursementTransactionsRepostRequestUnauthorizedError:
      type: object
      properties:
        message:
          type: string
      required:
        - message
      title: PostV1ApiDisbursementTransactionsRepostRequestUnauthorizedError
    PostV1ApiDisbursementTransactionsRepostRequestTooManyRequestsError:
      type: object
      properties:
        message:
          type: string
      required:
        - message
      title: PostV1ApiDisbursementTransactionsRepostRequestTooManyRequestsError
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Bearer token obtained from the Create Access Token endpoint. Tokens are
        valid for ~60 minutes — cache and reuse a token for its full lifetime
        instead of re-authenticating per request.

```

## Examples



**Response**

```json
{
  "message": "Transaction callback notification has been successfully reposted."
}
```

**SDK Code**

```python Disbursement API_Testing_Repost Transaction (for testing only)_example
import requests

url = "https://disbursement-api-stg.epaygames.io/v1/api/disbursement/transactions/repost"

querystring = {"reference_no":"TESTINGREFNO01"}

headers = {"Authorization": "Bearer <token>"}

response = requests.post(url, headers=headers, params=querystring)

print(response.json())
```

```javascript Disbursement API_Testing_Repost Transaction (for testing only)_example
const url = 'https://disbursement-api-stg.epaygames.io/v1/api/disbursement/transactions/repost?reference_no=TESTINGREFNO01';
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Disbursement API_Testing_Repost Transaction (for testing only)_example
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://disbursement-api-stg.epaygames.io/v1/api/disbursement/transactions/repost?reference_no=TESTINGREFNO01"

	req, _ := http.NewRequest("POST", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Disbursement API_Testing_Repost Transaction (for testing only)_example
require 'uri'
require 'net/http'

url = URI("https://disbursement-api-stg.epaygames.io/v1/api/disbursement/transactions/repost?reference_no=TESTINGREFNO01")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java Disbursement API_Testing_Repost Transaction (for testing only)_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://disbursement-api-stg.epaygames.io/v1/api/disbursement/transactions/repost?reference_no=TESTINGREFNO01")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php Disbursement API_Testing_Repost Transaction (for testing only)_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://disbursement-api-stg.epaygames.io/v1/api/disbursement/transactions/repost?reference_no=TESTINGREFNO01', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp Disbursement API_Testing_Repost Transaction (for testing only)_example
using RestSharp;

var client = new RestClient("https://disbursement-api-stg.epaygames.io/v1/api/disbursement/transactions/repost?reference_no=TESTINGREFNO01");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift Disbursement API_Testing_Repost Transaction (for testing only)_example
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://disbursement-api-stg.epaygames.io/v1/api/disbursement/transactions/repost?reference_no=TESTINGREFNO01")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```