POST api/Statements/InsertStatement?centerNumber={centerNumber}

Добавление выписки по указанному центру

Request Information

URI Parameters

НаименованиеОписаниеТипДополнительная информация
centerNumber

integer

Required

Body Parameters

StatementISO20022
НаименованиеОписаниеТипДополнительная информация
Document

документ по выписке (выписка)

Document

Required

Request Formats

application/json, text/json

Sample:
{
  "Document": {
    "BkToCstmrStmt": {
      "GrpHdr": {
        "CreDtTm": "2025-04-03T02:43:37.0635735+03:00",
        "MsgId": "sample string 2"
      },
      "Stmt": {
        "Acct": {
          "Ccy": "sample string 1",
          "Id": {
            "IBAN": "sample string 1"
          },
          "Ownr": {
            "Id": {
              "OrgId": {
                "Othr": {
                  "Id": "sample string 1"
                }
              }
            },
            "Nm": "sample string 1"
          },
          "Svcr": {
            "FinInstnId": {
              "BICFI": "sample string 1",
              "Nm": "sample string 2"
            }
          }
        },
        "Bal": {
          "Amt": {
            "Ccy": "sample string 1",
            "value": 2.0
          },
          "CdtDbtInd": "sample string 1",
          "Tp": {
            "CdOrPrtry": {
              "Cd": "sample string 1"
            }
          }
        },
        "Id": "sample string 1",
        "Ntry": {
          "Amt": {
            "Ccy": "sample string 1",
            "value": 2.0
          },
          "AmtDtls": {
            "PrtryAmt": {
              "Amt": {
                "Ccy": "sample string 1",
                "value": 2.0
              },
              "Tp": "sample string 1"
            }
          },
          "BkTxCd": {
            "Prtry": {
              "Cd": "sample string 1"
            }
          },
          "BookgDt": {
            "DtTm": "2025-04-03T02:43:37.0791945+03:00"
          },
          "CdtDbtInd": "sample string 1",
          "NtryDtls": {
            "TxDtls": {
              "AddtlTxInf": "sample string 1",
              "Refs": {
                "MsgId": "sample string 1"
              },
              "RltdAgts": {
                "CdtrAgt": {
                  "FinInstnId": {
                    "BICFI": "sample string 1",
                    "Nm": "sample string 2"
                  }
                },
                "DbtrAgt": {
                  "FinInstnId": {
                    "BICFI": "sample string 1",
                    "Nm": "sample string 2",
                    "ClrSysMmbId": {
                      "MmbId": "sample string 1"
                    }
                  }
                }
              },
              "RltdPties": {
                "Cdtr": {
                  "Id": {
                    "OrgId": {
                      "Othr": {
                        "Id": "sample string 1"
                      }
                    }
                  },
                  "Pty": {
                    "Nm": "sample string 1"
                  }
                },
                "CdtrAcct": {
                  "Ccy": "sample string 1",
                  "Id": {
                    "IBAN": "sample string 1"
                  }
                },
                "Dbtr": {
                  "Id": {
                    "OrgId": {
                      "Othr": {
                        "Id": "sample string 1"
                      }
                    }
                  },
                  "Pty": {
                    "Nm": "sample string 1"
                  }
                },
                "DbtrAcct": {
                  "Ccy": "sample string 1",
                  "Id": {
                    "IBAN": "sample string 1",
                    "Othr": {
                      "Id": "sample string 1"
                    }
                  }
                }
              },
              "RmtInf": {
                "Strd": {
                  "RfrdDocInf": {
                    "Nb": "sample string 1",
                    "RltdDt": "sample string 2",
                    "Tp": {
                      "CdOrPrtry": {
                        "Cd": "sample string 1"
                      }
                    }
                  }
                }
              }
            }
          },
          "RvslInd": "sample string 2"
        }
      }
    }
  }
}

application/xml, text/xml

Sample:
<StatementISO20022 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ApiBerlioInfo.Dto.DataTypes.Statements">
  <Document>
    <BkToCstmrStmt>
      <GrpHdr>
        <CreDtTm>2025-04-03T02:43:37.0635735+03:00</CreDtTm>
        <MsgId>sample string 2</MsgId>
      </GrpHdr>
      <Stmt>
        <Acct>
          <Ccy>sample string 1</Ccy>
          <Id>
            <IBAN>sample string 1</IBAN>
          </Id>
          <Ownr>
            <Id>
              <OrgId>
                <Othr>
                  <Id>sample string 1</Id>
                </Othr>
              </OrgId>
            </Id>
            <Nm>sample string 1</Nm>
          </Ownr>
          <Svcr>
            <FinInstnId>
              <BICFI>sample string 1</BICFI>
              <Nm>sample string 2</Nm>
            </FinInstnId>
          </Svcr>
        </Acct>
        <Bal>
          <Amt>
            <Ccy>sample string 1</Ccy>
            <value>2</value>
          </Amt>
          <CdtDbtInd>sample string 1</CdtDbtInd>
          <Tp>
            <CdOrPrtry>
              <Cd>sample string 1</Cd>
            </CdOrPrtry>
          </Tp>
        </Bal>
        <Id>sample string 1</Id>
        <Ntry>
          <Amt>
            <Ccy>sample string 1</Ccy>
            <value>2</value>
          </Amt>
          <AmtDtls>
            <PrtryAmt>
              <Amt>
                <Ccy>sample string 1</Ccy>
                <value>2</value>
              </Amt>
              <Tp>sample string 1</Tp>
            </PrtryAmt>
          </AmtDtls>
          <BkTxCd>
            <Prtry>
              <Cd>sample string 1</Cd>
            </Prtry>
          </BkTxCd>
          <BookgDt>
            <DtTm>2025-04-03T02:43:37.0791945+03:00</DtTm>
          </BookgDt>
          <CdtDbtInd>sample string 1</CdtDbtInd>
          <NtryDtls>
            <TxDtls>
              <AddtlTxInf>sample string 1</AddtlTxInf>
              <Refs>
                <MsgId>sample string 1</MsgId>
              </Refs>
              <RltdAgts>
                <CdtrAgt>
                  <FinInstnId>
                    <BICFI>sample string 1</BICFI>
                    <Nm>sample string 2</Nm>
                  </FinInstnId>
                </CdtrAgt>
                <DbtrAgt>
                  <FinInstnId>
                    <BICFI>sample string 1</BICFI>
                    <ClrSysMmbId>
                      <MmbId>sample string 1</MmbId>
                    </ClrSysMmbId>
                    <Nm>sample string 2</Nm>
                  </FinInstnId>
                </DbtrAgt>
              </RltdAgts>
              <RltdPties>
                <Cdtr>
                  <Id>
                    <OrgId>
                      <Othr>
                        <Id>sample string 1</Id>
                      </Othr>
                    </OrgId>
                  </Id>
                  <Pty>
                    <Nm>sample string 1</Nm>
                  </Pty>
                </Cdtr>
                <CdtrAcct>
                  <Ccy>sample string 1</Ccy>
                  <Id>
                    <IBAN>sample string 1</IBAN>
                  </Id>
                </CdtrAcct>
                <Dbtr>
                  <Id>
                    <OrgId>
                      <Othr>
                        <Id>sample string 1</Id>
                      </Othr>
                    </OrgId>
                  </Id>
                  <Pty>
                    <Nm>sample string 1</Nm>
                  </Pty>
                </Dbtr>
                <DbtrAcct>
                  <Ccy>sample string 1</Ccy>
                  <Id>
                    <IBAN>sample string 1</IBAN>
                    <Othr>
                      <Id>sample string 1</Id>
                    </Othr>
                  </Id>
                </DbtrAcct>
              </RltdPties>
              <RmtInf>
                <Strd>
                  <RfrdDocInf>
                    <Nb>sample string 1</Nb>
                    <RltdDt>sample string 2</RltdDt>
                    <Tp>
                      <CdOrPrtry>
                        <Cd>sample string 1</Cd>
                      </CdOrPrtry>
                    </Tp>
                  </RfrdDocInf>
                </Strd>
              </RmtInf>
            </TxDtls>
          </NtryDtls>
          <RvslInd>sample string 2</RvslInd>
        </Ntry>
      </Stmt>
    </BkToCstmrStmt>
  </Document>
</StatementISO20022>

application/x-www-form-urlencoded

Sample:

Sample not available.

Информация о ответе

Resource Description

ResultInfo
НаименованиеОписаниеТипДополнительная информация
Message

string

None.

Success

boolean

None.

Code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Message": "sample string 1",
  "Success": true,
  "Code": 3
}

application/xml, text/xml

Sample:
<ResultInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BerlioSoft.Core.Common.Results">
  <Code>3</Code>
  <Message>sample string 1</Message>
  <Success>true</Success>
</ResultInfo>