This Endpoint is to accept a loan offer. On calling this endpoint, the service will mark an offer as accepted and then notify the provider of this decision while providing them with the account details of the customer.
Request Message description
Field # |
Field name
|
Data type
|
Max length
|
Required
|
Description
|
---|---|---|---|---|---|
1 | customerId | String | true | The Mobile Number of the Customer. | |
3 | debitMethod | Object | The Object containing the properties of the Card to be debited when the loan is due. The account tied to the card will also be credited | ||
3a. | authData | String | false | The AuthData of the Card to be debited and account to be credited. It is the encryption of the Card PAN, Expiry Date, PIN, and CVV. | |
4 | channelCode | String | true | The Code of the Channel from which this request is being sent. | |
5 | providerCode | String | true | The Code of the provider from which this offer was retrieved. |
Endpoint
POST /v2/offers/{offerId}/accept |
Sample Request Three
|
Response Message field description
Field # |
Field name
|
Description
|
---|---|---|
1 | responseCode | The Code representing the result of the request processing. |
2 | responseMessage | The Description of the responseCode. |
Sample Response (success)
{ "responseCode" : "00" , "responseMessage" : "Transaction successful. Account would be credited shortly" , "loanId" : "23467881" } |
Sample Response (failure)
{ "responseCode" : "96" , "responseMessage" : "Oops. Something went wrong. Please try again later" } |