We are using cookies in our website in order to offer better service to you. You allow us to use cookies by continuing to use our internet website. You can reach the detailed information on cookies from our Privacy Policy and Cookies Policy.
X
Home > Api Products > Product Collections

Product Collections

Description

​This API is used to retrieve all product collections and pay collections.​

Product Collections

​This API is used to retrieve product collections.​

How it Works

Sample Request

GET /api/isbank/v1/product-collections?customer_number=9999904
Headers:
X-IBM-client-id: {YOUR_CLEINT_ID} 
X-IBM-client-secret: {YOUR_CLEINT_SECRET} 
Authorization: Bearer {access_token}
Content-Type: application/json

Product Collections

​This API is used to pay product collections.​

How it Works

Parameters

This part needs to be in body of the request.

{
    "product_code": "0001-999999",
    "account_id": 9999905,
    "commission_id": 16791,
    "details": [
        {
            "payment_amount": 0.92,
            "payment_status_code": "1",
            "payment_currency_code": "TRY",
            "payment_type_code": "K",
            "detail_id": 176327,
            "commission_date": "2020-06-03+03:00"
        }
    ]
}

Sample Request

POST /api/isbank/v1/product-collections/
Headers:
X-IBM-client-id: {YOUR_CLEINT_ID} 
X-IBM-client-secret: {YOUR_CLEINT_SECRET} 
Authorization: Bearer {access_token}
Content-Type: application/json​



Sample Response

​Sample Response for Product Collections

[
    {
        "start_date": "2020-06-15+03:00",
        "product_type_code": "TEST",
        "commission_name": "Ürün X Ücreti",
        "fee_amount": 000.01,
        "fee_currency_code": "TRY",
        "criteria_code": [
            {
                "name": "#safeSize",
                "value": "criteria_1"
            },
            {
                "name": "#exceptionType",
                "value": "Others"
            }
        ],
        "product_code": "0001",
        "details": [
            {
                "payment_amount": 1,
                "payment_status_code": "2",
                "payment_currency_code": "TRY",
                "payment_type_code": "V",
                "detail_id": 00001,
                "commission_date": "2020-06-15+03:00"
            },
            {
                "payment_amount": 00.01,
                "payment_status_code": "2",
                "payment_currency_code": "TRY",
                "payment_type_code": "K",
                "detail_id": 243766,
                "commission_date": "2020-07-15+03:00"
            },
            {
                "payment_amount": 1,
                "payment_status_code": "2",
                "payment_currency_code": "TRY",
                "payment_type_code": "V",
                "detail_id": 243767,
                "commission_date": "2020-07-15+03:00"
            },
            {
                "payment_amount": 19.99,
                "payment_status_code": "2",
                "payment_currency_code": "TRY",
                "payment_type_code": "K",
                "detail_id": 250185,
                "commission_date": "2020-08-15+03:00"
            },
            {
                "payment_amount": 1,
                "payment_status_code": "2",
                "payment_currency_code": "TRY",
                "payment_type_code": "V",
                "detail_id": 250186,
                "commission_date": "2020-08-15+03:00"
            },
            {
                "payment_amount": 19.99,
                "payment_status_code": "2",
                "payment_currency_code": "TRY",
                "payment_type_code": "K",
                "detail_id": 261038,
                "commission_date": "2020-09-15+03:00"
            },
            {
                "payment_amount": 1,
                "payment_status_code": "2",
                "payment_currency_code": "TRY",
                "payment_type_code": "V",
                "detail_id": 261039,
                "commission_date": "2020-09-15+03:00"
            }
        ]
}

Sample Response for Post Product Collections

{
    "subscription_id": "0123",
    "product_name": "Ürün X Ücreti",
    "product_code": "0001",
    "total_amount": "0.92"
}