KashierDevelopersKashier Developers
Direct API integration

Installment plans

List installment banks and plans, pay with a selected plan, and see the standalone BNPL providers (valU, Octo, Souhoola, Contact, Mogo, Tru, Forsa)

To retrieve installment plans and pay with one:

Step 1: Get available banks

EndpointValue
URLhttps://test-api.kashier.io/merchant/installments/banks/plans?mid=yourMerchantID&amount=productPrice
MethodGET

Whenever you are ready for production, use the following production API endpoint URL instead.

EndpointValue
URLhttps://api.kashier.io/merchant/installments/banks/plans?mid=yourMerchantID&amount=productPrice
MethodGET
curl -X 'GET'
  'https://test-api.kashier.io/merchant/installments/banks/plans?mid=MID-XXXXX-XXX&amount=500'

Full parameter and response reference → Get available banks.

Query parameters

ParameterRequiredNotes
midYesYour merchant ID.
amountYesThe product price, used to filter out plans whose minimum the order doesn't meet.
clientTypeNoOptional client type. Use POS for point-of-sale integrations.

minimunInstallmentAmount is misspelled on the wire

This step returns each bank's minimum as minimunInstallmentAmount — the missing second m is genuinely part of the wire key, not a typo in these docs. Step 2 returns the same value under a different name, Minimum installment amount. Handle both spellings across the two steps.

allowFawry

allowFawry may still appear in this response. Fawry is not currently supported; confirm with Kashier support before building against the flag.

BNPL availability flags

Alongside banks, the response carries boolean flags showing which BNPL providers are available for the merchant:

FlagEnabled when
allowValuvalU is enabled for the merchant
allowOctoOcto is enabled for the merchant
allowSouhoolaSouhoola is enabled for the merchant

These BNPL providers use their own dedicated payment flow — they are not paid via the installments.planId card path described in Step 3 below.

Step 2: Get plans for a specific bank

EndpointValue
URLhttps://test-api.kashier.io/merchant/installments/plans?mid=yourMerchantID&amount=productPrice&currency=EGP&fiId=banknSystemID
MethodGET

Whenever you are ready for production, use the following production API endpoint URL instead.

EndpointValue
URLhttps://api.kashier.io/merchant/installments/plans?mid=yourMerchantID&amount=productPrice&currency=EGP&fiId=banknSystemID
MethodGET
curl -X 'GET'
  'https://test-api.kashier.io/merchant/installments/plans?mid=MID-XXXXX-XXX&amount=10000&currency=EGP&fiId=FI-XX'

Full parameter and response reference → Get plans for specific bank.

Query parameters

ParameterRequiredNotes
midYesYour merchant ID.
amountYesThe product price.
currencyYesMust be EGP. Bank installments are EGP-only; any other value returns 400.
fiId or cardBinExactly onefiId is the Bank system ID from Step 1. cardBin is an accepted alternative: pass the customer's card BIN and Kashier resolves the bank for you. Send exactly one of them; sending both or neither returns 400.
clientTypeNoOptional client type. Use POS for point-of-sale integrations.

The response renames the Step 1 minimum: what Step 1 calls minimunInstallmentAmount is returned here as Minimum installment amount.

Step 3: Pay with a plan

Once you have a Merchant Plan ID (e.g. INSPLAN-XX) from Step 2, pay with it by adding installments.planId to a normal card payment request. This is the same POST /v3/orders request used for any card payment — the plan is validated before the card is charged.

EndpointValue
URLhttps://test-fep.kashier.io/v3/orders/
MethodPOST

Whenever you are ready for production, use the following production API endpoint URL instead.

EndpointValue
URLhttps://fep.kashier.io/v3/orders/
MethodPOST
curl -X 'POST' 'https://test-fep.kashier.io/v3/orders/' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -H 'Kashier-Hash: your_generated_hash' \
  -d '{
      "apiOperation": "PAY",
      "installments": {
          "planId": "INSPLAN-XX"
      },
      "paymentMethod": {
          "type": "CARD",
          "card": {
              "number": "XXXXXXXXXXXX0001",
              "expiry": {
                  "month": "05",
                  "year": "26"
              },
              "nameOnCard": "TEST",
              "securityCode": "100"
          }
      },
      "order": {
          "reference": "PM-89451648984",
          "amount": "10000",
          "currency": "EGP",
          "description": ""
      },
      "interactionSource": "ECOMMERCE",
      "reconciliation": {
          "webhookUrl": "https://your-call-back-url.com",
          "merchantRedirect": "https://your-call-back-url.com",
          "redirect": true
      },
      "customer": {
          "reference": "24"
      },
      "merchantId": "MID-XXXXX-XXX"
  }'

Body parameters

ParameterDescription
installments.planId (string)The Merchant Plan ID from Step 2 (e.g. INSPLAN-XX). Omit installments entirely for a regular (non-installment) card payment.

Before you submit

Validate the card BIN against Supported BINs in your own UI before submitting, so the customer is not shown a plan their card cannot use.

Test mode

Test-mode plan data may differ from live. Verify your plans in live before launch.

Pay-time errors

CodeMeaningFix
PLAN_NOT_EXISTThe planId is not a valid plan for your account.Re-read the plan list from Step 2 and send a Merchant Plan ID from the current response.
PLAN_NOT_ACTIVEThe plan exists but is not active.Pick another plan, or ask Kashier support to activate it for your account.
INVALID_BIN_RANGEThe card BIN is outside the plan's supported ranges.Ask the customer for a card from the bank that owns the plan, or offer a different plan.
INVALID_MERCHANT_PLANThe planId is not a valid plan for your account.Use only plans returned for your own mid.

Response

The normal card payment flow runs unchanged — including 3DS, capture, and the response shape. See Customized card form for the full response structure, and 3D Secure handling for the 3DS redirect flow.

You can find how much the customer will pay monthly for every plan in the Installment amount per month parameter of the Step 2 response.

BNPL installment providers

Beyond bank card installments (Steps 1–3 above), Kashier supports several standalone BNPL (buy-now-pay-later) providers. Each is its own paymentMethod.type, with its own dedicated payment flow — none of them are paid via the installments.planId card path.

ProviderpaymentMethod.type
valUvalu
Octoocto
Souhoolasouhoola
Contactcontact
Mogomogo
Trutru
Forsaforsa

Availability

Of these, three are surfaced as availability flags on the Step 1 banks response — allowValu, allowOcto, and allowSouhoola.

Contact

Contact (paymentMethod.type: "contact") is a BNPL provider, not a cash or kiosk method. It has its own dedicated payment flow with tenure selection and OTP confirmation.

On this page