Freedom Pay
  1. Settlement
Freedom Pay
  • Overview
  • Gateway API
    • Overview
    • Sync API
      • Overview
      • Purchase
        • Overview
        • Create payment
        • Any amount
        • Card
        • 3DSecure
        • Recurrent
        • Cancel
        • Clearing
        • Refund
        • Status
      • Payout
        • Overview
        • Card
        • IBAN
        • Balance
        • Status
      • Transfer
        • Overview
        • Card
        • 3DSecure
        • Rates
        • Status
      • Card
        • Overview
        • Add
        • 3DSecure
        • List
        • Remove
        • Status
      • Token
        • Overview
        • Token Pay
        • Apple Pay
        • Google Pay
        • Token Payout
        • Status
    • Async API
      • Overview
      • create
        • create payment
      • read
        • read payment
        • read request
      • edit
        • edit payment.refund
        • edit payment.reverse
        • edit payment.clearing
  • Merchant API
    • Overview
    • Purchase
      • Overview
      • Checkout
      • Card token
        • Overview
        • Tokenize card
        • Delete token
        • Card token list
        • Create payment (with CVC)
        • Confirm payment (with CVC)
        • Create payment
        • Confirm payment
      • Create payment
      • Any amount
      • Cancel payment
      • Clearing
      • Refund payment
      • Status
    • Payout
      • Overview
      • Card token
        • Tokenize card
        • Delete token
        • Card token list
        • Create payment
      • Create payment
      • IBAN
      • Balance status
      • Status by order_id
      • Status by Payment ID
      • Status
    • Mobile balance
      • Overview
      • Init
      • Pay
      • Approve
      • Resend code
      • Status
    • Invoice
      • Overview
      • Init
      • Info
      • Pay
      • Status
    • SDK
      • JS SDK
      • Google Pay
      • Freedom QR
        • Reader SDK (Android)
        • Provider SDK (Android)
      • Payment SDK
        • iOS
        • Android
      • Merchant SDK
        • Android
    • CMS
      • Overview
      • Get Merchant ID and key
      • WordPress
        • Overview
        • Installation
        • Configuration
        • Test
        • Live payments
        • Update
      • Tilda
        • Overview
        • Installation
        • Configuration
        • Test
        • Live payments
      • InSales
        • Overview
        • Installation
        • Configuration
        • Test
        • Live payments
      • Ecwid
        • Overview
        • Installation
        • Configuration
        • Test
        • Live payments
      • Bitrix
        • Overview
        • Installation
        • Configuration
        • Test
        • Live payments
      • PrestaShop
        • Overview
        • Installation
        • Configuration
        • Test
        • Live payments
      • OpenCart
        • Overview
        • Installation
        • Configuration
        • Test
        • Live payments
    • Redirect back
      POST
    • Result notify
      POST
    • Payout notify
      POST
    • Check request
      POST
  • Card API
    • Overview
    • Payment Cards
      • Overview
      • Dictionaries
      • Bulk issue
      • Issue card
      • Issue plastic card
      • Activate card
      • Block card
      • Unblock card
      • Set PIN
      • Reset PIN counter
      • Close card
      • Update client
      • Card info
      • Balance
      • Secret data
      • Secret data (version 2)
      • Operations' list
      • Statement extended
      • Create client
      • Edit client
      • Сards' list
      • Request' status
      • Create transaction
      • Clearing transaction
      • Refund transaction
      • Transaction info
      • Cardholder validation
      • Set limits
      • Limits list
    • Gift Cards
      • Overview
      • List
      • Issue
      • Confirm
      • Resend
      • Resend code
      • Status
  • Partner API
    • Rates
      • Overview
      • Rates
    • Products
      • Overview
      • Dictionaries
      • Add client with product
      • Request status
      • Create terminal
    • E-Money
      • Overview
      • Add
      • Owner identification
      • Info
      • Close
      • Block
      • Balance
      • Statement
      • Request Status
    • Freedom ID
      • Overview
      • Design
      • iOS SDK
      • Android SDK
      • OAuth2
        • Authorization link
        • Token exchange
        • Token refresh
        • User info
        • Request profile
        • Get profile status
        • Create user
        • Update user
      • OIDC
        • Authorization endpoint
        • Token exchange
        • Userinfo
      • Error codes
      • Examples
        • Keycloak
    • Transfer
      • Overview
      • Get token
      • Refresh token
      • Get agents
      • Fees
      • Create person
      • Create business
      • Create transfer
      • Print application
      • Confirm
      • Search
      • Payout
      • Payout confirm
      • Cancel
      • Get person info
      • Get business info
      • Status
      • Info
    • Device ID
      • Android SDK
      • iOS SDK
    • Implement SuperApp
      • Overview
      • Pay
      • Refund
    • Account
      • Settlement
        • Overview
        • Create payment
          POST
        • Payment status
          GET
    • Invoice
      GET
  1. Settlement

Create payment

Developing
POST
https://api.freedompay.kz/api/v5/partner/settlement-partitions/
Endpoint for creating payment instructions (PI) based on an ISO 20022 document. Allows sending an array of PIs for processing by the system.

Query Parameters:#

TagNameDescriptionMandatoryFormatValidation Rules
GrpHdr
MsgIdMessage IDUnique message identifier+Text (max 35)Non-empty, UUID/alphanumeric, length ≤ 35
CreDtTmCreation Date TimeDocument creation timestamp+ISO 8601 DateTimeYYYY-MM-DDThh:mm:ss
NbOfTxsNumber of TransactionsTotal transactions in the message+IntegerPositive integer (≥ 1)
CtrlSumControl SumTotal sum of all transactions+DecimalSum ≥ 0, max 2 decimal places
InitgPty/NmInitiating Party NamePayer’s name+Text (max 140)Non-empty, letters/digits/spaces allowed
PmtInf
PmtInfIdPayment Information IDUnique group ID+Text (max 35)Non-empty, unique
PmtMtdPayment MethodTransfer method+EnumOnly TRF
BtchBookgBatch BookingGroup transactions in statements-Booleantrue or false
NbOfTxsNumber of TransactionsTransactions in this group+IntegerPositive integer (≥ 1)
CtrlSumControl SumTotal sum for the group+DecimalSum ≥ 0
PmtTpInf/InstrPrtyInstruction PriorityPayment priority+EnumNORM (Normal) or HIGH(High)
ReqdExctnDt/DtRequired Execution DatePayment execution date+DateValid future date (YYYY-MM-DD)
Dbtr/NmDebtor NamePayer’s name+Text (max 140)Non-empty
DbtrAcct/Id/IBANDebtor Account (IBAN)Payer’s account (IBAN)+IBANStarts with KZ, valid IBAN format
DbtrAgt/FinInstnId/BICFIDebtor Agent BICPayer’s bank BIC/SWIFT+SWIFT BIC8 or 11 chars (A-Z/0-9)
Amt/InstdAmt Ccy="KZT"Instructed AmountTransaction amount+Decimal> 0, max 2 decimal places
CdtTrfTxInf
PmtId/EndToEndIdEnd-to-End IDUnique transaction identifier+Text (max 35)Unique per transaction
Amt/InstdAmt Ccy="KZT"Instructed AmountTransaction amount+Decimal> 0, max 2 decimal places
CdtrAgt/FinInstnId/BICFICreditor Agent BICRecipient’s bank BIC+SWIFT BIC8 or 11 chars (A-Z/0-9)
Cdtr/NmCreditor NameRecipient’s name+Text (max 140)Non-empty
CdtrAcct/Id/IBANCreditor Account (IBAN)Recipient’s account (IBAN)+IBANStarts with KZ, valid IBAN
Purp/CdPurpose Code (KBE)Payment purpose code+Numeric CodeFrom KBE directory
RmtInf/UstrdUnstructured Remittance InfoPayment description+Text (max 140)Free text
UltmtCdtr/NmUltimate Creditor NameFinal beneficiary (optional)-Text (max 140)Optional
UltmtCdtr/PstlAdr/CtryCountryBeneficiary’s country-ISO 3166-1 alpha-2Example: KZ
SplmtryData/Envlp/CdtrDtlSupplementary DataAdditional info (IIN/BIN of recipient)+Numeric (12)Exactly 12 digits
CdtrDtl/IdTpID TypeID type (e.g., TX for IIN/BIN)+EnumTX
CdtrDtl/IdValID ValueIIN/BIN value+Numeric (12)Exactly 12 digits

Request

Body Params application/json

Example
{
    "document_type": "iso20022",
    "document_body": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Document xmlns=\"urn:iso:std:iso:20022:tech:xsd:pain.001.001.12\" \n          xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" \n          xsi:schemaLocation=\"urn:iso:std:iso:20022:tech:xsd:pain.001.001.12 pain.001.001.12.xsd\">\n  <CstmrCdtTrfInitn>\n    <GrpHdr>\n      <MsgId>batch-payment-001</MsgId>\n      <CreDtTm>2025-06-04T12:00:00</CreDtTm>\n      <NbOfTxs>2</NbOfTxs>\n      <CtrlSum>2000.75</CtrlSum>\n      <InitgPty>\n        <Nm>Фактический плательщик</Nm>\n      </InitgPty>\n    </GrpHdr>\n\n    <PmtInf>\n      <PmtInfId>PAYMENT-GROUP-002</PmtInfId>\n      <PmtMtd>TRF</PmtMtd>\n      <BtchBookg>false</BtchBookg>\n      <NbOfTxs>2</NbOfTxs>\n      <CtrlSum>2000.75</CtrlSum>\n      <PmtTpInf>\n        <InstrPrty>NORM</InstrPrty>\n      </PmtTpInf>\n\n      <ReqdExctnDt>\n        <Dt>2024-06-10</Dt>\n      </ReqdExctnDt>\n\n      <Dbtr>\n        <Nm>Фактический плательщик</Nm>\n      </Dbtr>\n      <DbtrAcct>\n        <Id>\n          <IBAN>KZ000000000000000000</IBAN>\n        </Id>\n      </DbtrAcct>\n\n      <DbtrAgt>\n        <FinInstnId>\n          <BICFI>TESTBEBB</BICFI>\n        </FinInstnId>\n      </DbtrAgt>\n\n      <CdtTrfTxInf>\n        <PmtId>\n          <EndToEndId>INV-001</EndToEndId>\n        </PmtId>\n        <Amt>\n          <InstdAmt Ccy=\"KZT\">1000.50</InstdAmt>\n        </Amt>\n        <CdtrAgt>\n          <FinInstnId>\n            <BICFI>TESTBEBB</BICFI>\n          </FinInstnId>\n        </CdtrAgt>\n        <Cdtr>\n          <Nm>ТОО Компания 1</Nm>\n        </Cdtr>\n        <CdtrAcct>\n          <Id>\n            <IBAN>KZ123456789012345678</IBAN>\n          </Id>\n        </CdtrAcct>\n        <Purp>\n          <Cd>170</Cd>\n        </Purp>\n        <RmtInf>\n          <Ustrd>Оплата по договору №123</Ustrd>\n        </RmtInf>\n\n        <SplmtryData>\n          <Envlp>\n            <CdtrDtl>\n              <IdTp>TX</IdTp>\n              <IdVal>123456789012</IdVal>\n            </CdtrDtl>\n          </Envlp>\n        </SplmtryData>\n      </CdtTrfTxInf>\n\n      <CdtTrfTxInf>\n        <PmtId>\n          <EndToEndId>INV-001</EndToEndId>\n        </PmtId>\n        <Amt>\n          <InstdAmt Ccy=\"KZT\">1000.50</InstdAmt>\n        </Amt>\n        <CdtrAgt>\n          <FinInstnId>\n            <BICFI>TESTBEBB</BICFI>\n          </FinInstnId>\n        </CdtrAgt>\n        <Cdtr>\n          <Nm>ТОО Компания 1</Nm>\n        </Cdtr>\n        <CdtrAcct>\n          <Id>\n            <IBAN>KZ123456789012345678</IBAN>\n          </Id>\n        </CdtrAcct>\n        <Purp>\n          <Cd>170</Cd>\n        </Purp>\n        <RmtInf>\n          <Ustrd>Оплата по договору №123</Ustrd>\n        </RmtInf>\n\n        <SplmtryData>\n          <Envlp>\n            <CdtrDtl>\n              <IdTp>TX</IdTp>\n              <IdVal>123456789012</IdVal>\n            </CdtrDtl>\n          </Envlp>\n        </SplmtryData>\n      </CdtTrfTxInf>\n\n    </PmtInf>\n  </CstmrCdtTrfInitn>\n</Document>"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.freedompay.kz/api/v5/partner/settlement-partitions/' \
--header 'Content-Type: application/json' \
--data-raw '{
    "document_type": "iso20022",
    "document_body": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Document xmlns=\"urn:iso:std:iso:20022:tech:xsd:pain.001.001.12\" \n          xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" \n          xsi:schemaLocation=\"urn:iso:std:iso:20022:tech:xsd:pain.001.001.12 pain.001.001.12.xsd\">\n  <CstmrCdtTrfInitn>\n    <GrpHdr>\n      <MsgId>batch-payment-001</MsgId>\n      <CreDtTm>2025-06-04T12:00:00</CreDtTm>\n      <NbOfTxs>2</NbOfTxs>\n      <CtrlSum>2000.75</CtrlSum>\n      <InitgPty>\n        <Nm>Фактический плательщик</Nm>\n      </InitgPty>\n    </GrpHdr>\n\n    <PmtInf>\n      <PmtInfId>PAYMENT-GROUP-002</PmtInfId>\n      <PmtMtd>TRF</PmtMtd>\n      <BtchBookg>false</BtchBookg>\n      <NbOfTxs>2</NbOfTxs>\n      <CtrlSum>2000.75</CtrlSum>\n      <PmtTpInf>\n        <InstrPrty>NORM</InstrPrty>\n      </PmtTpInf>\n\n      <ReqdExctnDt>\n        <Dt>2024-06-10</Dt>\n      </ReqdExctnDt>\n\n      <Dbtr>\n        <Nm>Фактический плательщик</Nm>\n      </Dbtr>\n      <DbtrAcct>\n        <Id>\n          <IBAN>KZ000000000000000000</IBAN>\n        </Id>\n      </DbtrAcct>\n\n      <DbtrAgt>\n        <FinInstnId>\n          <BICFI>TESTBEBB</BICFI>\n        </FinInstnId>\n      </DbtrAgt>\n\n      <CdtTrfTxInf>\n        <PmtId>\n          <EndToEndId>INV-001</EndToEndId>\n        </PmtId>\n        <Amt>\n          <InstdAmt Ccy=\"KZT\">1000.50</InstdAmt>\n        </Amt>\n        <CdtrAgt>\n          <FinInstnId>\n            <BICFI>TESTBEBB</BICFI>\n          </FinInstnId>\n        </CdtrAgt>\n        <Cdtr>\n          <Nm>ТОО Компания 1</Nm>\n        </Cdtr>\n        <CdtrAcct>\n          <Id>\n            <IBAN>KZ123456789012345678</IBAN>\n          </Id>\n        </CdtrAcct>\n        <Purp>\n          <Cd>170</Cd>\n        </Purp>\n        <RmtInf>\n          <Ustrd>Оплата по договору №123</Ustrd>\n        </RmtInf>\n\n        <SplmtryData>\n          <Envlp>\n            <CdtrDtl>\n              <IdTp>TX</IdTp>\n              <IdVal>123456789012</IdVal>\n            </CdtrDtl>\n          </Envlp>\n        </SplmtryData>\n      </CdtTrfTxInf>\n\n      <CdtTrfTxInf>\n        <PmtId>\n          <EndToEndId>INV-001</EndToEndId>\n        </PmtId>\n        <Amt>\n          <InstdAmt Ccy=\"KZT\">1000.50</InstdAmt>\n        </Amt>\n        <CdtrAgt>\n          <FinInstnId>\n            <BICFI>TESTBEBB</BICFI>\n          </FinInstnId>\n        </CdtrAgt>\n        <Cdtr>\n          <Nm>ТОО Компания 1</Nm>\n        </Cdtr>\n        <CdtrAcct>\n          <Id>\n            <IBAN>KZ123456789012345678</IBAN>\n          </Id>\n        </CdtrAcct>\n        <Purp>\n          <Cd>170</Cd>\n        </Purp>\n        <RmtInf>\n          <Ustrd>Оплата по договору №123</Ustrd>\n        </RmtInf>\n\n        <SplmtryData>\n          <Envlp>\n            <CdtrDtl>\n              <IdTp>TX</IdTp>\n              <IdVal>123456789012</IdVal>\n            </CdtrDtl>\n          </Envlp>\n        </SplmtryData>\n      </CdtTrfTxInf>\n\n    </PmtInf>\n  </CstmrCdtTrfInitn>\n</Document>"
}'

Responses

🟢200Success
application/xml

Query Parameters:

TagNameDescription
GrpHdr
GrpHdr/MsgIdMessage IDUnique message identifier
GrpHdr/CreDtTmCreation Date TimeReport creation date and time
OrgnlGrpInfAndSts
OrgnlGrpInfAndSts/OrgnlMsgIdOriginal Message IDUnique ID of the original request message (pain.001)
OrgnlPmtInfAndSts
OrgnlPmtInfAndSts/TxInfAndSts/EndToEndIdEnd-to-End IDUnique identifier of the payment instruction from pain.001
OrgnlPmtInfAndSts/TxInfAndSts/OrgnlInstrIdOriginal Instruction IDUnique platform id
OrgnlPmtInfAndSts/TxInfAndSts/TxStsTransaction StatusPayment processing status (e.g., ACCP, RJCT, PDNG)
OrgnlPmtInfAndSts/TxInfAndSts/AccptncDtTmAcceptance Date TimeTransaction completion timestamp by the bank

Additional conditions:

If the number of payment orders (PO) in the ISO document exceeds the limit (500), the server will return:
{
"status": "error",
"error_code": 1001,
"error_description": "Loaded more than 500 payment orders in one request",
"document_type": "iso20022",
"document_description": ""
}
Body

Example
{
  "status": "success",
  "error_code": 0,
  "error_description": 0,
  "document_type": "iso20022",
  "document_body": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Document xmlns=\"urn:iso:std:iso:20022:tech:xsd:pain.002.001.14\">\n  <CstmrPmtStsRpt>\n    <GrpHdr>\n      <MsgId>LiaUvQVYxY9GOPzNIcX9oHtBD</MsgId>\n      <CreDtTm>2025-06-16T09:27:54+00:00</CreDtTm>\n    </GrpHdr>\n    <OrgnlGrpInfAndSts>\n      <OrgnlMsgId>batch-payment-001</OrgnlMsgId>\n      <OrgnlMsgNmId>pain.001.001.14</OrgnlMsgNmId>\n      <GrpSts>PART</GrpSts>\n    </OrgnlGrpInfAndSts>\n    <OrgnlPmtInfAndSts>\n      <OrgnlPmtInfId>PMT-001</OrgnlPmtInfId>\n      <TxInfAndSts>\n        <OrgnlEndToEndId>INV-001</OrgnlEndToEndId>\n        <TxSts>RJCT</TxSts>\n      </TxInfAndSts>\n      <TxInfAndSts>\n        <OrgnlInstrId>12345</OrgnlInstrId>\n      <OrgnlEndToEndId>INV-001</OrgnlEndToEndId>\n     <OrgnlEndToEndId>INV-001</OrgnlEndToEndId>\n       <TxSts>RJCT</TxSts>\n      </TxInfAndSts>\n    </OrgnlPmtInfAndSts>\n  </CstmrPmtStsRpt>\n</Document>",
  "dt": "2025-06-16T09:27:54+00:00"
}
Modified at 2025-07-25 07:02:04
Previous
Overview
Next
Payment status