InstaCash API
BNPL APIExamples
BNPL APIExamples
  1. Initialization
  • Initialization
    • Queries the available offers for the merchant
      GET
    • Runs a calculation on a cart amount
      GET
    • Create a BNPL application
      POST
    • Cancel an ongoing Application
      DELETE
  • Status Lists
    • Application Statuses
    • Deal Statuses
  • Querying
    • Returns offer data for a given offer ID
      GET
    • Get a listing of all BNPL Applications
      GET
    • Get the current status of a BNPL Application
      GET
    • Get a listing of all BNPL Purchases
      GET
    • Get data of specific Purchase
      GET
    • Get a listing of all BNPL Deals
      GET
    • Get data of Deal
      GET
  • One Click
    • /api/bnpl/external/one-click/calculation
      POST
    • /api/bnpl/external/one-click/approve
      POST
    • /api/bnpl/external/one-click/application
      POST
  • Hook
    • Called when a status update happens on a deal or application
  1. Initialization

Cancel an ongoing Application

STAGING Gateway
https://gateway-staging.instacash.hu
STAGING Gateway
https://gateway-staging.instacash.hu
DELETE
https://gateway-staging.instacash.hu
/bnpl/external/application/{id}
Used to cancel an application

Request

Authorization
API Key
Add parameter in header
X-Api-Key
Example:
X-Api-Key: ********************
or
Path Params

Responses

🟢200OK
OK
This response does not have a body.
🔴500Internal Server Error
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request DELETE 'https://gateway-staging.instacash.hu/bnpl/external/application/' \
--header 'X-Api-Key: <api-key>'
Response Response Example
{
    "headers": {
        "empty": true,
        "location": "http://example.com",
        "host": {
            "address": {
                "canonicalHostName": "string",
                "hostAddress": "string",
                "address": [
                    "string"
                ],
                "hostName": "string",
                "linkLocalAddress": true,
                "multicastAddress": true,
                "anyLocalAddress": true,
                "loopbackAddress": true,
                "siteLocalAddress": true,
                "mcglobal": true,
                "mcnodeLocal": true,
                "mclinkLocal": true,
                "mcsiteLocal": true,
                "mcorgLocal": true
            },
            "port": 0,
            "unresolved": true,
            "hostName": "string",
            "hostString": "string"
        },
        "lastModified": 0,
        "contentLength": 0,
        "date": 0,
        "origin": "string",
        "contentType": {
            "type": "string",
            "subtype": "string",
            "parameters": {
                "property1": "string",
                "property2": "string"
            },
            "qualityValue": 0,
            "charset": "string",
            "concrete": true,
            "wildcardType": true,
            "wildcardSubtype": true,
            "subtypeSuffix": "string"
        },
        "connection": [
            "string"
        ],
        "ifModifiedSince": 0,
        "range": [
            {}
        ],
        "contentDisposition": {
            "type": "string",
            "name": "string",
            "filename": "string",
            "charset": "string",
            "size": 0,
            "creationDate": "2019-08-24T14:15:22Z",
            "modificationDate": "2019-08-24T14:15:22Z",
            "readDate": "2019-08-24T14:15:22Z",
            "inline": true,
            "attachment": true,
            "formData": true
        },
        "acceptCharset": [
            "string"
        ],
        "allow": [
            {}
        ],
        "cacheControl": "string",
        "contentLanguage": {
            "language": "string",
            "script": "string",
            "country": "string",
            "variant": "string",
            "unicodeLocaleAttributes": [
                "string"
            ],
            "unicodeLocaleKeys": [
                "string"
            ],
            "displayLanguage": "string",
            "displayScript": "string",
            "displayCountry": "string",
            "displayVariant": "string",
            "displayName": "string",
            "extensionKeys": [
                "string"
            ],
            "iso3Language": "string",
            "iso3Country": "string"
        },
        "etag": "string",
        "acceptLanguageAsLocales": [
            {
                "language": "string",
                "script": "string",
                "country": "string",
                "variant": "string",
                "unicodeLocaleAttributes": [
                    "string"
                ],
                "unicodeLocaleKeys": [
                    "string"
                ],
                "displayLanguage": "string",
                "displayScript": "string",
                "displayCountry": "string",
                "displayVariant": "string",
                "displayName": "string",
                "extensionKeys": [
                    "string"
                ],
                "iso3Language": "string",
                "iso3Country": "string"
            }
        ],
        "accessControlAllowCredentials": true,
        "accessControlMaxAge": 0,
        "accessControlExposeHeaders": [
            "string"
        ],
        "accessControlAllowOrigin": "string",
        "ifUnmodifiedSince": 0,
        "accessControlAllowMethods": [
            {}
        ],
        "accessControlRequestMethod": {},
        "accessControlRequestHeaders": [
            "string"
        ],
        "accessControlAllowHeaders": [
            "string"
        ],
        "acceptLanguage": [
            {
                "range": "string",
                "weight": 0
            }
        ],
        "accept": [
            {
                "type": "string",
                "subtype": "string",
                "parameters": {
                    "property1": "string",
                    "property2": "string"
                },
                "qualityValue": 0,
                "charset": "string",
                "concrete": true,
                "wildcardType": true,
                "wildcardSubtype": true,
                "subtypeSuffix": "string"
            }
        ],
        "acceptPatch": [
            {
                "type": "string",
                "subtype": "string",
                "parameters": {
                    "property1": "string",
                    "property2": "string"
                },
                "qualityValue": 0,
                "charset": "string",
                "concrete": true,
                "wildcardType": true,
                "wildcardSubtype": true,
                "subtypeSuffix": "string"
            }
        ],
        "vary": [
            "string"
        ],
        "upgrade": "string",
        "ifMatch": [
            "string"
        ],
        "expires": 0,
        "ifNoneMatch": [
            "string"
        ],
        "pragma": "string",
        "property1": [
            "string"
        ],
        "property2": [
            "string"
        ]
    },
    "statusCode": {
        "error": true,
        "is1xxInformational": true,
        "is2xxSuccessful": true,
        "is3xxRedirection": true,
        "is5xxServerError": true,
        "is4xxClientError": true
    },
    "body": {
        "type": "http://example.com",
        "title": "string",
        "status": 0,
        "detail": "string",
        "instance": "http://example.com",
        "properties": {
            "property1": {},
            "property2": {}
        }
    },
    "titleMessageCode": "string",
    "detailMessageArguments": [
        {}
    ],
    "detailMessageCode": "string"
}
Previous
Create a BNPL application
Next
Status Lists
Built with