IsRefundedExternally has to be set to true when accepting the refund and the file received by the billing provider added in the RefundedDocumentUrl
In Nayax Core, this is set when accepting or declining a refund by selecting Refunded Externally. You can upload the refund document. See the image below:

Lynx API
With Lynx API you can also upload the refund documentation to get theRefundedDocumentUrl the endpoint below is used for this:
Upload Refund Documentation
POST
Request
| Name | Type | Description |
|---|---|---|
| FileName | string | The name of the file being uploaded. |
| FileData | base64 | The base64-encoded content of the file being uploaded. You can use a PDF to base 64 online convertor. |
| TransactionId | int64 | The unique identifier of the transaction associated with the file. |
| SiteId | int32 | The unique identifier of the site where the transaction occurred. |
| MachineAuTime | date-time | The machine’s authorization time is associated with the transaction. |
The
TransactionId, SiteId and MachineAuTime need to be the same as sent in the refund request.Response
RefundedDocumentUrl flag when using the Approve Refund endpoint.