> For the complete documentation index, see [llms.txt](https://docs.editran.onesait.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.editran.onesait.com/documentacion-editran/ibm-editran-v5.3-comun-z-os-en/editran-sepa/adaptacion-para-pagos-telematicos-de-la-tgss/envio-de-la-confirmacion.md).

# Sending the confirmation

TGSS expects to receive an XML confirmation file from the entities according to the pain.002.001.03.xsd schema.

*TGSS Confirmation to XML Converter (pain.002.001.03)*

Users who have generated them in their applications in plain format and according to the following structure can obtain it with the Converter:

CONFIRMATION RESPONSE FILE (plain format)

* FIELD A Identification of the Booklet and Operation Type of the CSB. Its value will be 3414
* FIELD B Identification of the transmitted file.
  * *B1 Corresponds to FIELD F1 of the Transmission Header Record*
  * *B2 Corresponds to FIELD F2 of the Transmission Header Record*
  * *B3 Corresponds to FIELD F3 of the Transmission Header Record*
* FIELD C Identification of the Issuing Entities
  * *C1 Reserved. 12-position field*
  * *C2 Identification of the Entity. 40-character alphanumeric field*
* FIELD D Identification of the Financial Entity.
  * *D1 NRBE of the Entity. 4-digit numeric field*
  * *D2 Reserved. 4-digit field*
* FIELD E Data for the Quadrant
  * *E1 Total Number of Records appearing in the trailer record of the logical file. 10-digit numeric field*
  * *E2 Total Amount appearing in the trailer record of the logical file. 17-digit numeric field*
  * *E3 Number of Records in the Received File. 10-digit numeric field*
  * *E4 Total Sum of Amounts in the Received File. 17-digit numeric field.*
  * *Note: In the first version, where there is a single physical file, fields E1 and E2 will appear as zeros.*
* FIELD F Control Codes.
  * *F1 Transmission Result Code. 2-digit numeric field.*
  * *F2 Reserved for future codes. 2-digit numeric field. Its value will be 00*
* FIELD G Additional Customer Verification Information
  * *G1 Corresponds to FIELD D of the Transmission Header Record*
  * *G2 Corresponds to FIELD E of the Transmission Header Record*
  * *G3 Corresponds to FIELD G of the Transmission Header Record*
  * *G4 Reserved. 8-position field*

The mapping performed by the Converter is as follows:

* \<CstmrPmtStsRpt>\<GrpHdr>\<MsgId>: G1 + B1 + positions 2 to 5 of B3 + G3
* \<CstmrPmtStsRpt>\<GrpHdr>\<CreDtTm>: in ISODateTime format YYYY-MM-DDThh:mm:ss. First and second digits of B1, formatted as YYYY + “-“ + third and fourth digits of B1 + “-“ + fifth and sixth digits of B1 + “T00:00:00”
* \<CstmrPmtStsRpt>\<OrgnlGrpInfAndSts>\<OrgnlMsgId>: same content as \<CstmrCdtTrfInitn>\<GrpHdr>\<MsgId>
* \<CstmrPmtStsRpt>\<OrgnlGrpInfAndSts>\<OrgnlMsgNmId>: pain.001.001.03
* \<CstmrPmtStsRpt>\<OrgnlGrpInfAndSts>\<OrgnlCtrlSum>: E4 (with the two digits on the right separated by ‘.’).
* \<CstmrPmtStsRpt>\<OrgnlGrpInfAndSts>\<GrpsSts>: ACTC if F1 is 00, RJCT for any other value.
* \<CstmrPmtStsRpt>\<OrgnlGrpInfAndSts>\<GrpsSts>\<StsRsnInf>\<Rsn>\<Cd>: according to the content of F1 and provided it is not 00.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.editran.onesait.com/documentacion-editran/ibm-editran-v5.3-comun-z-os-en/editran-sepa/adaptacion-para-pagos-telematicos-de-la-tgss/envio-de-la-confirmacion.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
