Paying a loan

Please make sure you read the Conventions before continuing with this guide.

Prerequisites

You will need an X-API-KEY and a Basic Access Authentication token generated from your username and password.

Steps to pay a loan

1) Add the loadn repayment to the cart

You will need the transaction Id that was paid with the loan. The Id of the loan that you want to paid and the providerId for the transaction.

With those values you will submit a post to the /sales/cart endpoint of the Sales Bucket to add a loan repayment item to the shopping cart.

2) Retrieve payment types

To complete the order, first retrieve the available payment types and select one. Remember, these must be the payment types for the provider.

3) Complete the order

Create an order (pay for the items in the cart) using one of the available payment types.

Once the payment is accepted, the loan will be shown as paid and the original transaction status will be changed to paid as well.