Instalments at checkout, in a few calls
Ready-made modules for the popular webshop engines, one script for the product-page box, and a public REST API for everything else. This page is an overview; the details are in the documentation.
Three ways to connect
Ready-made module
Shoprenter, UNAS, WooCommerce and Shopify: no development, just settings.
Integrations by engine →Product-page widget
One script and one element: the instalments, the APR and the representative example load from our side.
The widget in brief →REST API
For custom webshops and checkouts: eligibility check, calculation, application, webhook.
The checkout flow →Environments
API calls are identified by the API key sent in the X-Api-Key header. Staging behaves exactly like production: at the start you receive a separate staging merchant ID, offer ID and API key.
| Production | Staging | |
|---|---|---|
| API gateway | https://gateway.instacash.hu | https://gateway-staging.instacash.hu |
| Application flow (redirect) | https://bnpl.instacash.hu/{financier}/{publicId} | https://bnpl-staging.instacash.hu/{financier}/{publicId} |
| Widget script | https://bnpl.instacash.hu/widget/v1/loader.js | https://bnpl-staging.instacash.hu/widget/v1/loader.js |
The checkout flow
How an order moves from showing the payment method to shipping.
- 1
GET
/bnpl/external/is-eligibleCan the payment method be shown?
Call it while listing payment methods, with a phone number or e-mail address. Nothing is created, and no reason is returned if the answer is no.
Docs ↗ - 2
GET
/bnpl/external/calculation/{offerId}Calculation for the cart amount
Returns the instalment details. It creates nothing, hence GET. Cache it by price and offer instead of calling it on every page load.
Docs ↗ - 3
POST
/bnpl/external/prepared-application-checkIs there an application for this cart already?
Takes the same body as creating an application, so the order button can send the very same request here first.
Docs ↗ - 4
POST
/bnpl/external/applicationCreate the application
Creates the application, the deal and the purchase, and returns a publicId. Use it to redirect the shopper to the application flow.
Docs ↗ - 5
POST ←
{your webhook URL}Webhook on status change
Every status change is POSTed to the URL configured for your shop, from 193.39.12.114. Your response is ignored.
Docs ↗ - 6
GET
/bnpl/external/deal/{id}Fetch the current status
Fetch the fresh status by the dealId in the webhook, and match the order on purchase.orderId.
Docs ↗ - 7
DELETE
/bnpl/external/application/{id}Close the application
If the order is deleted in the webshop, close its application with this call.
Docs ↗
Queries
- GET
/bnpl/external/available-offersYour shop's live offersDocs ↗ - GET
/bnpl/external/offer/{offerId}Basic data of an offer (no authentication)Docs ↗ - GET
/bnpl/external/application/{id}Current status of an applicationDocs ↗ - GET
/bnpl/external/purchase/{id}Data of a purchaseDocs ↗ - GET
/bnpl/external/dealList of your shop's dealsDocs ↗
When can you ship?
The deal status decides, not the application's. The full list is in the documentation and grows from time to time.
INITIAL_PAYMENT_COMPLETEDThe shopper paid the first instalment: the order can be fulfilled and invoiced.ONGOING, ONGOING_DELAYED, COMPLETEDRepayment running or finished: the order can be fulfilled.PREPARED, READYThe first instalment is not paid yet: wait.CANCELLED_FALLBACKA new (fallback) application was created for the same order: the order continues on it.CANCELLED, INTERRUPTEDThe deal has ended: the order can be closed.
Product-page widget
One script, and one element per box. We set up the offers, box types, layouts and allowed domains for your shop.
- Find your publishable key (pk_live_…, or pk_test_… for testing) in the Merchant Portal. It is not secret and appears in your page source.
- The box watches data-amount, so it recalculates by itself on a variant change.
- If your site sends a Content-Security-Policy header, allow bnpl.instacash.hu under script-src and frame-src.
- The widget always shows the instalments, APR, representative example and legal texts from your real offer.
<script async src="https://bnpl.instacash.hu/widget/v1/loader.js"
data-key="pk_live_…"></script>
<div data-instacash-widget
data-amount="549990"
data-product-name="Termék neve"></div>Good to know
An unfinished application closes automatically after 15 days of inactivity. For your own "abandoned application" logic we suggest a grace period of at least 24–48 hours.
Some engines expire unpaid orders after a few days, while the shopper has 15 days. Do not close a pending order by hand.
Cache the calculation and offers by price and offer. If that is not enough, we can issue a higher-limit key.
After a failed first payment a fallback deal can be created with the same orderId. Always match orders on purchase.orderId.
Use the gateway.instacash.hu/bnpl/external/… routes, not the legacy /api/… routes.
This is always a configuration issue on our side. Send us your merchant and offer ID and we will fix it.
Request test access
Tell us what your webshop runs on. We will send the staging merchant ID, offer ID and API key.