1. Invoices
Freedom Pay
  • Overview
  • Gateway API
    • Overview
    • Sync API
      • Overview
      • Card data encryption
      • Payments
        • Overview
        • Pay by card
        • Pay by card: complete 3DS
        • Pay with Apple Pay
        • Pay with Google Pay
        • Pay by recurring profile
        • Create payment page
        • Create payment page with any amount
        • Capture payment (clearing)
        • Cancel payment
        • Refund payment
        • Get payment status
      • Payouts
        • Overview
        • Pay out to card
        • Pay out to IBAN
        • Get payout balance
        • Get payout status
      • Transfers
        • Overview
        • Transfer from card to card
        • Transfer from card to card: complete 3DS
        • Get exchange rates
        • Get transfer status
      • Saved cards
        • Overview
        • Save card
        • Save card: complete 3DS
        • List saved cards
        • Remove saved card
        • Pay by card token
        • Pay out to card token
        • Get payment status
    • Async API
      • Overview
      • Create
        • Create payment
        • Save card without a charge
      • Read
        • Get payment status
        • Get request result
      • Edit
        • Capture payment (clearing)
        • Cancel payment (reverse)
        • Refund payment
  • Merchant API
    • Overview
    • Payments
      • Overview
      • Checkout
      • Pay by saved card
        • Overview
        • Create payment
        • Confirm payment with CVC
        • Confirm payment without the client
      • Create payment
      • Create payment with a payment page template
      • Create payment in a payment frame
      • Create payment with any amount
      • Create recurring payment
      • Capture payment (clearing)
      • Cancel payment
      • Refund payment
      • Get payment status
    • Payouts
      • Overview
      • Create payout page
      • Pay out to saved card
      • Pay out to IBAN
      • Get payout status
      • Get payout balance
    • Saved cards
      • Get saved cards
      • Save card
      • Save card for payouts
      • Delete saved card
      • Save card without a charge
    • Mobile balance
      • Overview
      • Create mobile balance payment
      • Charge mobile balance
      • Get mobile balance payment status
      • Confirm payment with SMS code
      • Resend SMS code
    • Invoices
      • Overview
      • Recurring payments
        • Overview
        • Create recurring profile
        • Get recurring profile
        • Charge by recurring profile
        • Cancel recurring profile
        • Recurring profile notification
      • Tips
        • Overview
        • Create
      • Create invoice
      • Get invoice status
      • Get invoice details
      • Cancel invoice
      • Refund invoice
    • SDK
      • JS SDK
      • Merchant SDK
        • Android
        • iOS
        • Migration guide
    • 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
      • CS-Cart
        • Overview
        • Installation
        • Configuration
        • Test
        • Live payments
    • Installment
      • Overview
      • Status
        • Get application status
        • Application status notification
        • Change application status
      • Get partners
      • Create application
    • Callbacks
      • Overview
      • Result notify
      • Check request
      • Payout notify
      • Redirect back
  • Partner API
    • Overview
    • Rates
      • Overview
      • Rates
    • Products
      • Overview
      • Dictionaries
      • Add client with product
      • Client request status
      • Create terminal
      • Update terminal limits
      • Product request status
    • E-Money
      • Overview
      • Add
      • Owner identification
      • Info
      • Close
      • Block
      • Balance
      • Statement
      • Request Status
    • Device ID
      • Android SDK
      • iOS SDK
    • Implement SuperApp
      • Overview
      • Pay
      • Refund
      • Status
    • Account
      • Overview
      • Create payment
      • Payment status
      • Batch statuses
      • Statement
      • Statement status
      • Balance
      • Balance status
    • Invoices
      • Info
        POST
  1. Invoices

Info

KZ
https://api.freedompay.kz
KZ
https://api.freedompay.kz
POST
https://api.freedompay.kz
/v5/partner/invoices/info
Use this method to provide payment details to the payer after they are redirected from the merchant platform to the payment app. This method is called when an invoice is paid.

Request Header block#

Request headers
NameValueDescription
X-Request-Iduuidv7Unique request Id. Expected parameter format: UUID v7
Content-typeapplication/jsonRequest body format
X-JWS-SignaturestringRequest signature
Acceptapplication/jsonRequest body format

Response Header block#

Response headers
NameValueDescription
X-Request-Iduuidv7Unique request Id. Expected parameter format: UUID v7
X-DatetimedatetimeDate and time of request processing
X-Request-StatusstringRequest body format

Generating the X-JWS-Signature#

To send any request, a request signature must be generated using JWS technology.
The JWS format must include the mandatory blocks header and signature and should be passed in the request header X-JWS-Signature.

Header structure#

{
    "uri": "/v5/partner/invoices/info",
    "auth_id": "12345", 
    "method": "POST",
    "params": "" 
    "alg": "HS256"
}
Header description:
NameDescriptionField requirement
uriThe path to the API endpoint being calledRequired
auth_idUser ID for signature verificationRequired
methodRequest methodRequired
paramsReserved fieldRequired
algEncryption algorithmRequired

Payload structure#

The payload for generating JWS includes the HTTP request body.
The supported signature encryption algorithm is HS256, and the merchant's secret_key should be used as the signing key.
{
  "id": "b4c5c7de-99f2-4c1d-b61d-7a8e9df22f7b"
}
Generated JWS:
eyJwYXRoIjoiL3Y1L21lcmNoYW50L2ludm9pY2UvaW5pdCIsIm1lcmNoYW50X2lkIjoxMjM0NTYsIm1ldGhvZCI6IlBPU1QiLCJwYXJhbXMiOiIiLCJhbGciOiJIUzUxMiJ9..wCwFCAmxN0nbTm6mad8GxowIjgkCwfF7IAy2ijO9thLjsZFXnS4K_I4NPnXjkTFTMnEzqjk8rtIVmtf7NbGyvg

Request

Body Params application/jsonRequired

Example
{
    "invoice_id": "019d0652-4e2f-7f54-a179-007c80c48adu"
}

Responses

🟢200Success
application/json
Bodyapplication/json

Example
{
  "status": "new",
  "amount": 500.00,
  "currency": "KZT",
  "merchant_id": 12345,
  "merchant_name": "SHOP NAME",
  "description": "invoice description",
  "expires_at": "2026-01-23T11:00:00Z",
  "back_url": "https://back.url", 
  "refunds": [
    {
      "id": "019d0652-4e2f-7f54-a179-007c80c48cef",
      "amount": 100, 
      "status": "success", 
      "created_at": "2026-01-25T11:00:00Z", 
    }
   ], 
  "tax": [
    {
      "name": "Position",
      "price": 500.00,
      "type": "standard",
      "count": 1
    }
  ],
 "device": {
   "id": "device-abc-123",
   "browser_version": "Chrome/121.0.0.0",
   "ip": "85.116.189.120"
  },
 "created_at": "2026-01-22T11:00:00Z"
}
Previous
Balance status