---
title: "Get a pain file."
method: GET
path: "/payments/refundPayout/{message-id}"
tags: ["XS2A.pay"]
---

# Get a pain file.

`GET /payments/refundPayout/{message-id}`

Here you can retrieve a specific pain file by its `message_id`.

## Path parameters

- `message-id` string, required

## Response `200`

Request successfully processed

- string — ```html <?xml version="1.0" encoding="UTF-8"?> <Document xmlns="urn:iso:std:iso:20022:tech:xsd:pain.001.001.03" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:iso:std:iso:20022:tech:xsd:pain.001.001.03 pain.001.001.03.xsd"> <CstmrCdtTrfInitn> <GrpHdr> <MsgId>XFECURW7-payment-6077f1b9390f3</MsgId> <CreDtTm>2021-04-15T09:56:41Z</CreDtTm> <NbOfTxs>1</NbOfTxs> <CtrlSum>10.00</CtrlSum> <InitgPty> <Nm>Rollin Klocko</Nm> </InitgPty> </GrpHdr> <PmtInf> <PmtInfId>PmtInfId-6077f1b939ed1</PmtInfId> <PmtMtd>TRF</PmtMtd> <BtchBookg>true</BtchBookg> <NbOfTxs>1</NbOfTxs> <CtrlSum>10.00</CtrlSum> <PmtTpInf> <SvcLvl> <Cd>SEPA</Cd> </SvcLvl> </PmtTpInf> <ReqdExctnDt>2021-04-15</ReqdExctnDt> <Dbtr> <Nm>Rollin Klocko</Nm> </Dbtr> <DbtrAcct> <Id> <IBAN>DE83801896687814439938</IBAN> </Id> <Ccy>EUR</Ccy> </DbtrAcct> <DbtrAgt> <FinInstnId> <BIC>XFECURW7</BIC> </FinInstnId> </DbtrAgt> <ChrgBr>SLEV</ChrgBr> <CdtTrfTxInf> <PmtId> <EndToEndId></EndToEndId> </PmtId> <Amt> <InstdAmt Ccy="EUR">10.00</InstdAmt> </Amt> <CdtrAgt> <FinInstnId> <BIC>AVAHUZKZSND</BIC> </FinInstnId> </CdtrAgt> <Cdtr> <Nm>Evangeline Hamill</Nm> </Cdtr> <CdtrAcct> <Id> <IBAN>DE98615332112027258920</IBAN> </Id> </CdtrAcct> <RmtInf> <Ustrd>Purpose</Ustrd> </RmtInf> </CdtTrfTxInf> </PmtInf> </CstmrCdtTrfInitn> </Document> ```

## Other responses

- `401` — Authentication failed API key missing or not valid
- `403` — Forbidden Access blocked
- `404` — Product not enabled or Not found The requested object does not exist on the server
- `422` — Validation failed Something is wrong with the user input
- `500` — An internal server problem occurred

---

[API](https://skmtc.dev/xs2a/apis/xs2a-api.md) · [All operations](https://skmtc.dev/xs2a/apis/xs2a-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/xs2a/xs2a-api/revisions/ae5fbc5feee3/schema)
