Get Installments
Retrieve available installment cards and their supported month options. Use this endpoint to display installment plans to the customer before creating a payment.
Request Parameters
| Name | Type | Description |
|---|---|---|
public_keyRequired | String | Merchant identifier. Example: `i000000001` |
currencyRequired | String | Payment currency. Values: `AZN`, `USD`, `EUR`, `RUB` |
languageRequired | String | Page display language. Values: `az`, `en`, `ru` |
order_idRequired | String | Unique order ID. Max 250 characters. |
amountOptional | Number | Payment amount. Example: `100`, `20.50` |
descriptionOptional | String | Description. Max 1000 characters. |
other_attrOptional | Array | Additional parameters. Max 1000 characters. |
Request Example
Send Request
Payload
{ "public_key": "i000000001", "currency": "AZN", "language": "az", "order_id": "order-123"}1DATA=$(echo -n '{"public_key":"i000000001","currency":"AZN","language":"az","order_id":"order-123"}' | base64)2SIGNATURE=$(echo -n "$PRIVATE_KEY$DATA$PRIVATE_KEY" | openssl dgst -sha1 -binary | base64)3
4curl -X POST *** \5-H "Content-Type: application/x-www-form-urlencoded" \6-d "data=$DATA&signature=$SIGNATURE"Response Parameters
| Name | Type | Description |
|---|---|---|
nameRequired | String | Installment card name. |
installment_card_idRequired | String | Installment card identifier. Use this value when creating an installment payment. |
installment_monthsRequired | Array | Available installment month options. Example: `[3, 6, 12]` |
Success
Success Response
1[2 {3 "name": "Birbank Taksit",4 "installment_card_id": "1",5 "installment_months": [6 3,7 6,8 129 ]10 },11 {12 "name": "Tamkart Taksit",13 "installment_card_id": "2",14 "installment_months": [15 3,16 6,17 9,18 1219 ]20 }21]Note: Use the
installment_card_idand one of theinstallment_monthsvalues when creating an installment payment via the Installment Request endpoint.