Overview
Invoice
Authorization
JWS
token in the X-JWS-Signature
headerJWS
is the part of the JWT
token that contains only the header
and signature
application/json
.Signature generation example
{
"order_id": "828cf71d-a447-4a67-a149-c1df8bc197ca",
"merchant_id": "123456",
"amount": 100,
"description": "Service invoice",
"invoice_method": "qr",
"currency": "KZT"
}
JWT
token header:{
"uri": "/v5/merchant/invoice/init",
"merchant_id": "123456",
"method": "POST",
"params": "",
"alg": "HS512"
}
secret_key
. In this case, the following JWT
token can be generated:eyJwYXRoIjoiL3Y1L21lcmNoYW50L2ludm9pY2UvaW5pdCIsIm1lcmNoYW50X2lkIjoxMjM0NTYsIm1ldGhvZCI6IlBPU1QiLCJwYXJhbXMiOiIiLCJhbGciOiJIUzUxMiJ9.eyJvcmRlcl9pZCI6IjgyOGNmNzFkLWE0NDctNGE2Ny1hMTQ5LWMxZGY4YmMxOTdjYSIsIm1lcmNoYW50X2lkIjoxMjM0NTYsImFtb3VudCI6MTAwLCJkZXNjcmlwdGlvbiI6ItCh0YfQtdGCINC30LAg0YPRgdC70YPQs9C4IiwiaW52b2ljZV9tZXRob2QiOiJxciIsImN1cnJlbmN5IjoiS1pUIn0.wCwFCAmxN0nbTm6mad8GxowIjgkCwfF7IAy2ijO9thLjsZFXnS4K_I4NPnXjkTFTMnEzqjk8rtIVmtf7NbGyvg
payload
from the JWT
token and get the following line:eyJwYXRoIjoiL3Y1L21lcmNoYW50L2ludm9pY2UvaW5pdCIsIm1lcmNoYW50X2lkIjoxMjM0NTYsIm1ldGhvZCI6IlBPU1QiLCJwYXJhbXMiOiIiLCJhbGciOiJIUzUxMiJ9..wCwFCAmxN0nbTm6mad8GxowIjgkCwfF7IAy2ijO9thLjsZFXnS4K_I4NPnXjkTFTMnEzqjk8rtIVmtf7NbGyvg
X-JWS-Signature
request header parameter.Supported signature encryption algorithm
HS512
.Modified at 2025-03-02 18:45:11