• Credit

    US flag
  • Credit

    US flag

XYZ fintech has launched a credit card scheme in partnership with ABC Bank. They offer an interest free credit period of 90 days for credit card balance transfers.

Jane holds a credit card issued by another bank which has an outstanding balance of $600. She decided to transfer the outstanding balance to her XYZ fintech credit card.

Jane logged into XYZ fintech’s customer portal and submitted a request for credit card balance transfer. The request contains her phone number, email address, and the details of the other credit card including the card number and outstanding balance.

XYZ fintech accepts the request and issues a cashier’s check of $600 dollars to settle the other credit card.

In this cookbook, we will see how XYZ fintech records the balance transfer of $600 as a debit transaction.

Post a debit transaction for a specific amount using the product ID and the account ID.

POST{{rubyUrl}}/tenants/{{tenantId}}/products/{{productId}}/accounts/{{accountId}}/debits
cURL command
Switch Theme
Expand More
Copy
curl -X POST "https://ruby.internal.mum1-pp.zetaapps.in/ruby/tenants/1478259/products/2703641852851877968/accounts/dc346fd7-16ca-4465-8196-4260c2c2c645/debits" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 -d {
    "requestID": "d573ab86-25a3-11ec-9621-0242ac130002",
    "systemLedgerID": "3510506205318709231",
    "remarks": "Towards foreclosure adjustment",
    "categoryType": "CASH",
    "value": {
        "amount": 60000,
        "currency": "USD"
    },
    "bookTime": "2021-01-30 08:30:00",
    "valueTime": "2021-01-30 08:30:00",
    "attributes": {}
}
Code Copied
JSON sample
Switch Theme
Expand More
Copy
{
    "requestID": "d573ab86-25a3-11ec-9621-0242ac130002",
    "transactionID": "12345184-bd0b-4181-9674-126dd5f072bc",
    "status": "SUCCESS"
}
Code Copied