Freedom Pay
  1. Rates
Freedom Pay
  • Overview
  • Gateway API
    • Overview
    • Sync API
      • Overview
      • Purchase
        • Overview
        • Create payment
        • Any amount
        • Card
        • 3DSecure
        • 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
        • create payment recurrent
      • read
        • read payment
        • read request
      • edit
        • edit payment.refund
        • edit payment.reverse
        • edit payment.clearing
      • delete
  • 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
    • 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)
      • Statement
      • Statement extended
      • Create client
      • Edit client
      • Сards' list
      • Request' status
      • Create transaction
      • Clearing transaction
      • Refund transaction
      • Transaction request' status
      • Transaction info
    • Gift Cards
      • Overview
      • List
      • Issue
      • Confirm
      • Resend
      • Resend code
      • Status
  • Partner API
    • Rates
      • Overview
      • Rates
        POST
    • Products
      • Overview
      • Dictionaries
      • Add client with product
      • Request status
    • 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
  1. Rates

Rates

POST
https://api.freedompay.kz/v5/partner/rates/add

Request

Body Params application/json
rates
object 
required
currency_from
string 
required
Currency for conversion.
KZT, USD, EUR. Directory of currencies
currency_to
string 
required
Convertible currency.
KZT, USD, EUR. Directory of currencies
rate
number 
required
Conversion rate
rate_type
string 
optional
Type is used if there is the same currency pair, but with a different exchange rate depending on the transactions. Example: p2p, retail
start_date
string 
optional
Date and time of the start of the course in the format YYYY-MM-DD HH:MM:SS. If no date is specified or the specified date is less than the date of the request, then the date and time of receipt of the request to add the course is used as the start date.
Example: 2019-01-01 12:00:00
end_date
string 
optional
Date and time of the end of the course in the format YYYY-MM-DD HH:MM:SS. If no end date is specified, the course will be used indefinitely until the next request to add a course.
Example: 2019-01-01 12:00:00
operation
string 
optional
Currency Exchange Operation Type. Example: - sell, buy - Purchase/Sale - rate - Standard rates (National Bank)
Example
{
  "rates": {
    "currency_from": "string",
    "currency_to": "string",
    "rate": 0,
    "rate_type": "string",
    "start_date": "string",
    "end_date": "string",
    "operation": "string"
  }
}

Request 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/v5/partner/rates/add' \
--header 'Content-Type: application/json' \
--data-raw '{
    "rates": {
        "currency_from": "string",
        "currency_to": "string",
        "rate": 0,
        "rate_type": "string",
        "start_date": "string",
        "end_date": "string",
        "operation": "string"
    }
}'

Responses

🟢200Success
application/json
Body
status
string 
optional
Request execution status
ok: Request was successful.
error: Request passed with an error.
error_code
integer 
optional
Error code ID
error_description
string 
optional
Text description of the error
dt
string <date-time>
optional
Date and time of the request. Format: YYYY-MM-DDThh:mm:ss±hh:mm
Example
{
  "status": "string",
  "error_code": 0,
  "error_description": "string",
  "dt": "2019-08-24T14:15:22Z"
}
Previous
Overview
Next
Overview