Description
This API is used to create and delete product membership.
Product Memberships
This API is used to create product membership.
How it Works
Parameters
This part needs to be in body of the request.
{
"product_code": "0001-99999",
"account_id": 1234567,
"criteria_code": "criteria_1",
"start_date" : "2020-07-17"
}
Sample Request
POST /api/isbank/v1/product-memberships/
Headers:
X-IBM-client-id: {YOUR_CLEINT_ID}
X-IBM-client-secret: {YOUR_CLEINT_SECRET}
Authorization: Bearer {access_token}
Content-Type: application/json
Product Memberships Delete
This API is used to delete membership on product.
How it Works
Parameters
This part needs to be in body of the request.
{
"product_code": "0001"
}
Sample Request
DELETE /api/isbank/v1/product-memberships/
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 Membership
{
"subscription_id": "99999",
"product_code": "0001",
"product_name": "Ürün X Ücreti",
"safe_size": "criteria_1",
"start_date": "2020-07-17+03:00"
}
Sample Response for Product Memberships
{
"data": {
isSuccessful: true
}
}