> ## Documentation Index
> Fetch the complete documentation index at: https://docs.finventi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Payment Status Change

> Webhook notification sent when payment/payment return status changes

<Note>
  This webhook sends notifications when payment/payment return status changes to one of the following statuses: Created, To sign, Signed, Sent to clear, Accepted, Completed, Cancelled, Rejected.
</Note>

## Webhook Details

<ParamField body="trx_id" type="integer" required>
  Transaction ID
</ParamField>

<ParamField body="end_to_end_id" type="string" required>
  End-to-end transaction identifier
</ParamField>

<ParamField body="type" type="string" required>
  Transaction type. Available values: "Payment", "Payment return", "Payment cancellation", "CSM fees", "Reverse payment", "Adjustment"
</ParamField>

<ParamField body="direction" type="string" required>
  Transaction direction. Available values: "INBOUND", "OUTBOUND"
</ParamField>

<ParamField body="amount" type="integer" required>
  Transaction amount in cents
</ParamField>

<ParamField body="currency" type="string" required>
  Transaction currency. Available values: "EUR"
</ParamField>

<ParamField body="status" type="string" required>
  Transaction status. Available values: "Created", "To sign", "Signed", "Sent to clear", "Accepted", "Completed", "Cancelled", "Rejected", "Pending confirmation"
</ParamField>

<ParamField body="updated_at" type="string" required>
  Date and time when status was updated (format: YYYY-MM-DD HH:MM:SS.fffffffffZ)
</ParamField>

<ParamField body="debtor_iban" type="string">
  Debtor IBAN
</ParamField>

<ParamField body="creditor_iban" type="string">
  Creditor IBAN
</ParamField>

<ParamField body="method" type="string">
  Transaction method. Available values: "SEPA", "INST", "SDD", "SWIFT"
</ParamField>

## Request Example

```json theme={null}
{
  "trx_id": 2018845,
  "end_to_end_id": "2302231660139326",
  "type": "Payment",
  "direction": "OUTBOUND",
  "amount": 10657,
  "currency": "EUR",
  "status": "Created",
  "updated_at": "2023-02-23 07:49:37.452592973Z",
  "debtor_iban": "LT543210010000000003",
  "creditor_iban": "LT123450010000000004",
  "method": "SEPA"
}
```

## Retry Mechanism

There is a retry mechanism - if an endpoint fails, the notification will be repeatedly sent until it is successfully delivered. During this retry process, all other notifications will be held back and will only be delivered once the initially blocked notification is successfully sent.
