# 7.9 PUT /quotes/{ID}/error

| Financial Institution to Financial Institution Payment Status Report - **pacs.002.001.15** |
| ------------------------------------------------------------------------------------------ |

### Context

*(DFSP -> DFSP, HUB -> DFSP)*

This is triggered as a callback response to the POST /quotes call when an error occurs. The message is generated by the entity who first encounter the error which can either be the DFSP, or the HUB. All other participants involved are informed by this message. The `TxInfAndSts.StsRsnInf.Rsn.Cd` contains the Mojaloop error code, which specified the source and cause of the error.

Here is an example of the message:

```json
{
"GrpHdr": {
    "MsgId":"01JBVM1CGC5A18XQVYYRF68FD1",
    "CreDtTm":"2024-11-04T12:57:45.228Z"},
"TxInfAndSts":{"StsRsnInf":{"Rsn": {"Prtry":"ErrorCode"}}}
}
```

### Message Details

The details on how to compose and make this API are covered in the following sections:

1. [Core Data Elements](#core-data-elements)\
   This section specifies which fields are required, which fields are optional, and which fields are unsupported in order to meet the message validating requirements.
2. [Header Details](https://mojaloop.gitbook.io/mojaloop/docs/product/features/iso20022-1/v1.0/script/broken-reference)\
   This general section specifies the header requirements for the API are specified.
3. [Supported HTTP Responses](https://mojaloop.gitbook.io/mojaloop/docs/product/features/iso20022-1/v1.0/script/broken-reference)\
   This general section specifies the http responses that must be supported.
4. [Common Error Payload](https://mojaloop.gitbook.io/mojaloop/docs/product/features/iso20022-1/v1.0/script/broken-reference)\
   This general section specifies the common error payload that is provided in synchronous http error response.

### Core Data Elements

Here are the core data elements that are needed to meet this market practice requirement.

The background colours indicate the classification of the data element.

| Data Model Type Key | Description                                                                                                                                                                         |
| ------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| required            | These fields are required in order to meet the message validating requirements.                                                                                                     |
| optional            | These fields can be optionally included in the message. (Some of these fields may be required for a specific scheme as defined in the Scheme Rules for that scheme.)                |
| unsupported         | These fields are actively not supported. The functionality specifying data in these fields are not compatible with a Mojaloop scheme, and will fail message validation if provided. |

\ <br>

Here is the defined core data element table.

| ISO 20022 Field                                         | Data Model | Description                                                                                                                                                                                                                                                                                               |
| ------------------------------------------------------- | ---------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| GrpHdr - GroupHeader120                                 | \[1..1]    | <p>Set of characteristics shared by all individual transactions included in the message.<br></p>                                                                                                                                                                                                          |
| MsgId - MessageIdentification                           | \[1..1]    | <p>Definition: Point to point reference, as assigned by the instructing party, and sent to the next party in the chain to unambiguously identify the message.<br>Usage: The instructing party has to make sure that MessageIdentification is unique per instructed party for a pre-agreed period.<br></p> |
| CreDtTm - CreationDateTime                              | \[1..1]    | <p>Date and time at which the message was created.<br></p>                                                                                                                                                                                                                                                |
| InstgAgt - BranchAndFinancialInstitutionIdentification8 | \[0..0]    | <p>Unique and unambiguous identification of a financial institution or a branch of a financial institution.<br></p>                                                                                                                                                                                       |
| InstdAgt - BranchAndFinancialInstitutionIdentification8 | \[0..0]    | <p>Unique and unambiguous identification of a financial institution or a branch of a financial institution.<br></p>                                                                                                                                                                                       |
| OrgnlBizQry - OriginalBusinessQuery1                    | \[0..0]    |                                                                                                                                                                                                                                                                                                           |
| OrgnlGrpInfAndSts - OriginalGroupHeader22               | \[0..0]    |                                                                                                                                                                                                                                                                                                           |
| TxInfAndSts - PaymentTransaction161                     | \[1..1]    | <p>Information concerning the original transactions, to which the status report message refers.<br></p>                                                                                                                                                                                                   |
| StsId - Max35Text                                       | \[0..1]    | <p>Unique identification, as assigned by the original sending party, to unambiguously identify the status report.<br></p>                                                                                                                                                                                 |
| OrgnlGrpInf - OriginalGroupInformation29                | \[0..0]    |                                                                                                                                                                                                                                                                                                           |
| OrgnlInstrId - Max35Text                                | \[0..1]    | <p>Unique identification, as assigned by the original sending party, to<br>unambiguously identify the original instruction.<br><br>(FSPIOP equivalent: transactionRequestId)<br></p>                                                                                                                      |
| OrgnlEndToEndId - Max35Text                             | \[0..1]    | <p>Unique identification, as assigned by the original sending party, to<br>unambiguously identify the original end-to-end transaction.<br><br>(FSPIOP equivalent: transactionId)<br></p>                                                                                                                  |
| OrgnlTxId - Max35Text                                   | \[0..1]    | <p>Unique identification, as assigned by the original sending party, to<br>unambiguously identify the original transaction.<br><br>(FSPIOP equivalent: quoteId)<br></p>                                                                                                                                   |
| OrgnlUETR - UUIDv4Identifier                            | \[0..1]    | <p>Unique end-to-end transaction reference, as assigned by the original sending party, to unambiguously identify the original transaction.<br></p>                                                                                                                                                        |
| TxSts - ExternalPaymentTransactionStatus1Code           | \[0..1]    | <p>Specifies the status of the transaction.<br></p>                                                                                                                                                                                                                                                       |
| StsRsnInf - StatusReasonInformation14                   | \[1..1]    | <p>Information concerning the reason for the status.<br></p>                                                                                                                                                                                                                                              |
| Orgtr - Originator                                      | \[0..1]    | <p>Party that issues the status.<br></p>                                                                                                                                                                                                                                                                  |
| Nm - Name                                               | \[0..1]    | <p>Name by which a party is known and which is usually used to identify that party.<br></p>                                                                                                                                                                                                               |
| PstlAdr - Postal Address                                | \[0..1]    | <p>Information that locates and identifies a specific address, as defined by postal services.<br></p>                                                                                                                                                                                                     |
| AdrTp - AddressType3Choice                              | \[0..1]    | Type of address, as defined by the postal services.                                                                                                                                                                                                                                                       |
| Cd - Code                                               | \[0..1]    | <p>Type of address expressed as a code.<br></p>                                                                                                                                                                                                                                                           |
| Prtry - Proprietary                                     | \[0..1]    | <p>Type of address expressed as a proprietary code.<br></p>                                                                                                                                                                                                                                               |
| Id - Identification                                     | \[0..1]    | <p>Proprietary information, often a code, issued by the data source scheme issuer.<br></p>                                                                                                                                                                                                                |
| Issr - Issuer                                           | \[0..1]    | <p>Entity that assigns the identification.<br></p>                                                                                                                                                                                                                                                        |
| SchmeNm - SchemeName                                    | \[0..1]    | <p>Short textual description of the scheme.<br></p>                                                                                                                                                                                                                                                       |
| CareOf - Max140Text                                     | \[0..1]    | Name of the person or entity the mail is directed to, if different from the recipient.                                                                                                                                                                                                                    |
| Dept - Max70Text                                        | \[0..1]    | Name of a department within an organization.                                                                                                                                                                                                                                                              |
| SubDept - Max70Text                                     | \[0..1]    | Name of a sub-department within a department.                                                                                                                                                                                                                                                             |
| StrtNm - Max140Text                                     | \[0..1]    | Name of the street or thoroughfare.                                                                                                                                                                                                                                                                       |
| BldgNb - Max16Text                                      | \[0..1]    | Number that identifies a building on the street.                                                                                                                                                                                                                                                          |
| BldgNm - Max140Text                                     | \[0..1]    | Name of the building, if applicable.                                                                                                                                                                                                                                                                      |
| Flr - Max70Text                                         | \[0..1]    | Floor number or identifier within a building.                                                                                                                                                                                                                                                             |
| UnitNb - Max16Text                                      | \[0..1]    | Unit or apartment number within a building.                                                                                                                                                                                                                                                               |
| PstBx - Max16Text                                       | \[0..1]    | Post office box number.                                                                                                                                                                                                                                                                                   |
| Room - Max70Text                                        | \[0..1]    | Room number or identifier within a building.                                                                                                                                                                                                                                                              |
| PstCd - Max16Text                                       | \[0..1]    | Postal code or ZIP code.                                                                                                                                                                                                                                                                                  |
| TwnNm - Max140Text                                      | \[0..1]    | Name of the town or city.                                                                                                                                                                                                                                                                                 |
| TwnLctnNm - Max140Text                                  | \[0..1]    | Name of the location within a town or city.                                                                                                                                                                                                                                                               |
| DstrctNm - Max140Text                                   | \[0..1]    | Name of the district or region.                                                                                                                                                                                                                                                                           |
| CtrySubDvsn - Max35Text                                 | \[0..1]    | Name of the country subdivision, such as a state or province.                                                                                                                                                                                                                                             |
| Ctry - CountryCode                                      | \[0..1]    | Country code, as defined by ISO 3166-1 alpha-2.                                                                                                                                                                                                                                                           |
| AdrLine - Max70Text                                     | \[0..1]    | Free-form text line for the address.                                                                                                                                                                                                                                                                      |
| Id - Identification                                     | \[0..1]    | <p>Unique and unambiguous identification of a party.<br></p>                                                                                                                                                                                                                                              |
| OrgId - Organisation                                    | \[0..1]    | <p>Unique and unambiguous way to identify an organisation.<br></p>                                                                                                                                                                                                                                        |
| AnyBIC - AnyBIC                                         | \[0..1]    | <p>Business identification code of the organisation.<br></p>                                                                                                                                                                                                                                              |
| LEI - LEI                                               | \[0..1]    | <p>Legal entity identification as an alternate identification for a party.<br></p>                                                                                                                                                                                                                        |
| Othr - Other                                            | \[0..1]    | <p>Unique identification of an organisation, as assigned by an institution, using an identification scheme.<br></p>                                                                                                                                                                                       |
| Id - Identification                                     | \[0..1]    | <p>Identification assigned by an institution.<br></p>                                                                                                                                                                                                                                                     |
| SchmeNm - SchemeName                                    | \[0..1]    | <p>Name of the identification scheme.<br></p>                                                                                                                                                                                                                                                             |
| Cd - Code                                               | \[0..1]    | <p>Name of the identification scheme, in a coded form as published in an external list.<br></p>                                                                                                                                                                                                           |
| Prtry - Proprietary                                     | \[0..1]    | <p>Name of the identification scheme, in a free text form.<br></p>                                                                                                                                                                                                                                        |
| Issr - Issuer                                           | \[0..1]    | <p>Entity that assigns the identification.<br></p>                                                                                                                                                                                                                                                        |
| PrvtId - Person                                         | \[0..1]    | <p>Unique and unambiguous identification of a person, for example a passport.<br></p>                                                                                                                                                                                                                     |
| DtAndPlcOfBirth - DateAndPlaceOfBirth                   | \[0..1]    | <p>Date and place of birth of a person.<br></p>                                                                                                                                                                                                                                                           |
| BirthDt - BirthDate                                     | \[0..1]    | <p>Date on which a person was born.<br></p>                                                                                                                                                                                                                                                               |
| PrvcOfBirth - ProvinceOfBirth                           | \[0..1]    | <p>Province where a person was born.<br></p>                                                                                                                                                                                                                                                              |
| CityOfBirth - CityOfBirth                               | \[0..1]    | <p>City where a person was born.<br></p>                                                                                                                                                                                                                                                                  |
| CtryOfBirth - CountryOfBirth                            | \[0..1]    | <p>Country where a person was born.<br></p>                                                                                                                                                                                                                                                               |
| Othr - Other                                            | \[0..1]    | <p>Unique identification of a person, as assigned by an institution, using an identification scheme.<br></p>                                                                                                                                                                                              |
| Id - Identification                                     | \[0..1]    | <p>Unique and unambiguous identification of a person.<br></p>                                                                                                                                                                                                                                             |
| SchmeNm - SchemeName                                    | \[0..1]    | <p>Name of the identification scheme.<br></p>                                                                                                                                                                                                                                                             |
| Cd - Code                                               | \[0..1]    | <p>Name of the identification scheme, in a coded form as published in an external list.<br></p>                                                                                                                                                                                                           |
| Prtry - Proprietary                                     | \[0..1]    | <p>Name of the identification scheme, in a free text form.<br></p>                                                                                                                                                                                                                                        |
| Issr - Issuer                                           | \[0..1]    | <p>Entity that assigns the identification.<br></p>                                                                                                                                                                                                                                                        |
| CtryOfRes - CountryCode                                 | \[0..1]    | <p>Country of Residence<br>Country in which a person resides (the place of a person's home). In the case of a company, it is the country from which the affairs of that company are directed.<br></p>                                                                                                     |
| CtctDtls - Contact Details                              | \[0..1]    | <p>Set of elements used to indicate how to contact the party.<br></p>                                                                                                                                                                                                                                     |
| NmPrfx - NamePrefix                                     | \[0..1]    | <p>Specifies the terms used to formally address a person.<br></p>                                                                                                                                                                                                                                         |
| Nm - Name                                               | \[0..1]    | <p>Name by which a party is known and which is usually used to identify that party.<br></p>                                                                                                                                                                                                               |
| PhneNb - PhoneNumber                                    | \[0..1]    | <p>Collection of information that identifies a phone number, as defined by telecom services.<br></p>                                                                                                                                                                                                      |
| MobNb - MobilePhoneNumber                               | \[0..1]    | <p>Collection of information that identifies a mobile phone number, as defined by telecom services.<br></p>                                                                                                                                                                                               |
| FaxNb - FaxNumber                                       | \[0..1]    | <p>Collection of information that identifies a fax number, as defined by telecom services.<br></p>                                                                                                                                                                                                        |
| URLAdr - URLAddress                                     | \[0..1]    | <p>Address for the Universal Resource Locator (URL), for example an address used over the www (HTTP) service.<br></p>                                                                                                                                                                                     |
| EmailAdr - EmailAddress                                 | \[0..1]    | <p>Address for electronic mail (e-mail).<br></p>                                                                                                                                                                                                                                                          |
| EmailPurp - EmailPurpose                                | \[0..1]    | <p>Purpose for which an email address may be used.<br></p>                                                                                                                                                                                                                                                |
| JobTitl - JobTitle                                      | \[0..1]    | <p>Title of the function.<br></p>                                                                                                                                                                                                                                                                         |
| Rspnsblty - Responsibility                              | \[0..1]    | <p>Role of a person in an organisation.<br></p>                                                                                                                                                                                                                                                           |
| Dept - Department                                       | \[0..1]    | <p>Identification of a division of a large organisation or building.<br></p>                                                                                                                                                                                                                              |
| Othr - OtherContact                                     | \[0..1]    | <p>Contact details in another form.<br></p>                                                                                                                                                                                                                                                               |
| ChanlTp - ChannelType                                   | \[0..1]    | <p>Method used to contact the financial institution's contact for the specific tax region.<br></p>                                                                                                                                                                                                        |
| Id - Identifier                                         | \[0..1]    | <p>Communication value such as phone number or email address.<br></p>                                                                                                                                                                                                                                     |
| PrefrdMtd - PreferredContactMethod                      | \[0..1]    | <p>Preferred method used to reach the contact.<br></p>                                                                                                                                                                                                                                                    |
| Rsn - Reason                                            | \[1..1]    | <p>Specifies the reason for the status report.<br></p>                                                                                                                                                                                                                                                    |
| Cd - Code                                               | \[1..1]    | <p>Reason for the status, as published in an external reason code list.<br></p>                                                                                                                                                                                                                           |
| Prtry - Proprietary                                     | \[1..1]    | <p>Reason for the status, in a proprietary form.<br></p>                                                                                                                                                                                                                                                  |
| AddtlInf - AdditionalInformation                        | \[0..1]    | <p>Additional information about the status report.<br></p>                                                                                                                                                                                                                                                |
| ChrgsInf - Charges16                                    | \[0..0]    | <p>NOTE: Unsure on description.<br><br>Seemingly a generic schema for charges, with an amount, agent, and type.<br></p>                                                                                                                                                                                   |
| AccptncDtTm - ISODateTime                               | \[0..1]    | <p>Date and time at which the status was accepted.<br></p>                                                                                                                                                                                                                                                |
| PrcgDt - DateAndDateTime2Choice                         | \[0..1]    | <p>Date/time at which the instruction was processed by the specified party.<br></p>                                                                                                                                                                                                                       |
| Dt - Date                                               | \[0..1]    | <p>Specified date.<br></p>                                                                                                                                                                                                                                                                                |
| DtTm - DateTime                                         | \[0..1]    | <p>Specified date and time.<br></p>                                                                                                                                                                                                                                                                       |
| FctvIntrBkSttlmDt - DateAndDateTime2Choice              | \[0..0]    | <p>Specifies the reason for the status.<br></p>                                                                                                                                                                                                                                                           |
| AcctSvcrRef - Max35Text                                 | \[0..1]    | <p>Unique reference, as assigned by the account servicing institution, to unambiguously identify the status report.<br></p>                                                                                                                                                                               |
| ClrSysRef - Max35Text                                   | \[0..1]    | <p>Reference that is assigned by the account servicing institution and sent to the account owner to unambiguously identify the transaction.<br></p>                                                                                                                                                       |
| InstgAgt - BranchAndFinancialInstitutionIdentification8 | \[0..0]    | <p>Unique and unambiguous identification of a financial institution or a branch of a financial institution.<br></p>                                                                                                                                                                                       |
| InstdAgt - BranchAndFinancialInstitutionIdentification8 | \[0..0]    | <p>Unique and unambiguous identification of a financial institution or a branch of a financial institution.<br></p>                                                                                                                                                                                       |
| OrgnlTxRef - OriginalTransactionReference42             | \[0..0]    |                                                                                                                                                                                                                                                                                                           |
| SplmtryData - SupplementaryData1                        | \[0..1]    | <p>Additional information that cannot be captured in the structured elements and/or any other specific block.<br></p>                                                                                                                                                                                     |
| PlcAndNm - PlaceAndName                                 | \[0..1]    | <p>Unambiguous reference to the location where the supplementary data must be inserted in the message instance.<br></p>                                                                                                                                                                                   |
| Envlp - Envelope                                        | \[0..1]    | <p>Technical element wrapping the supplementary data.<br>Technical component that contains the validated supplementary data information. This technical envelope allows to segregate the supplementary data information from any other information.<br></p>                                               |
| SplmtryData - SupplementaryData1                        | \[0..1]    | <p>Additional information that cannot be captured in the structured elements and/or any other specific block.<br></p>                                                                                                                                                                                     |
| PlcAndNm - PlaceAndName                                 | \[0..1]    | <p>Unambiguous reference to the location where the supplementary data must be inserted in the message instance.<br></p>                                                                                                                                                                                   |
| Envlp - Envelope                                        | \[0..1]    | <p>Technical element wrapping the supplementary data.<br>Technical component that contains the validated supplementary data information. This technical envelope allows to segregate the supplementary data information from any other information.<br></p>                                               |
