API – Creating AutoPays for Parent-Child Loans


This article goes over how to create an AutoPay for a parent loan through the API. Creating an AutoPay on a parent loan requires additions to the typical AutoPay Payload.

When creating the AutoPay, use this request:

PUT https://loanpro.simnang.com/api/public/api/1/odata.svc/Loans(id)

Make sure to change id to the ID of the parent loan you are using. The payload should look something like this:

            "name":"Single AutoPay",
            "mcProcessor":"{\"creditCard\":{\"id\":\"10\",\"key\":\"anet\",\"name\":\"Test Default Processor\",\"default\":\"1\"}, \"bankAccount\":{\"id\":\"11\",\"key\":\"speedchex\",\"name\":\"Test Bank Account Processor\",\"default\":\"1\"}}",
            "processDateTime":"2019-12-20 07:00:00",

In the "PrimaryPaymentMethod" of the payload, you should make sure you're using the payment profile ID's for the customer (found by going to Customer > Payment Profiles within the loan) in the uri and id parameters (in short, anywhere it says '362' here). The "paymentAccount.type.checking" is a collection that may also need to be changed depending on what type of payment profile is being used.




Used for credit card payment profiles


Used for checking account payment profile

If you get an error, make sure the "date" is updated.

The difference between a standard AutoPay and an AutoPay on a parent loan is that the payload contains the TransactionChilds object. This allows you to allocate each portion of the AutoPay amount correctly to each child loan. The amounts should add up to the total amount of the AutoPay.




This is the ID of the child loan.


This should equal Entity.Autopay.


This is the amount of the AutoPay that will be applied to the child loan.

How did we do?

Powered by HelpDocs (opens in a new tab)