PaygateDeveloper documentation

Simulate Payout

POST/api/v1/test/payouts/{id}/simulate
operationId
testkit.SimulatePayout
Permission
simulate
Idempotency
required

An Idempotency-Key header is required.

Parameters

FieldinTypeRequiredDescription
idpathstringYes
Idempotency-KeyheaderstringYes
PG-Versionheaderstring

Request body

application/json

FieldTypeRequiredDescription
outcomeenumValues: `paid`, `returned`, `failed`
payout_idstring
return_reasonstring

Example

Generated from the schema — a shape, not a sample.

{
  "outcome": "paid",
  "payout_id": "string",
  "return_reason": "string"
}

Responses

200 OK

SimulateResult

Response headers: `X-Request-Id`

FieldTypeRequiredDescription
action_idstring
outcomestring
payment_idstring
payout_idstring
provider_event_idstring
refund_idstring
replayedboolean
{
  "action_id": "string",
  "outcome": "string",
  "payment_id": "string",
  "payout_id": "string",
  "provider_event_id": "string",
  "refund_id": "string",
  "replayed": false
}

default Error

Problem

FieldTypeRequiredDescription
codestringYes
detailstring
detailsobject
errorsobject[]
errors.codestring
errors.fieldstring
errors.messagestring
instancestring
statusintegerYes
titlestringYes
typestring
{
  "code": "string",
  "detail": "string",
  "details": {},
  "errors": [
    {
      "code": "string",
      "field": "string",
      "message": "string"
    }
  ],
  "instance": "string",
  "status": 0,
  "title": "string",
  "type": "string"
}

Errors

Derived from the modules this operation touches, because the snapshot carries no x-errors list yet — it may list codes this operation cannot return.

Try it

POST/test/payouts/%7Bid%7D/simulate

Makes a real call in test mode with your own key. The key stays in this tab and is never sent anywhere but the API.

No API base URL is configured for this environment, so try-it is unavailable.

Starts with pg_test_. A live key is refused before any request is made.

curl -X POST '<API_BASE_URL>/api/v1/test/payouts/%7Bid%7D/simulate' \
  -H 'Authorization: Bearer pg_test_…' \
  -H 'PG-Version: 2026-09-01' \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: <uuid v7>' \
  -d '{
  "outcome": "paid",
  "payout_id": "string",
  "return_reason": "string"
}'