Accept Tenured Offer —Channels Implementation
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 Email or Mobile Number of the Customer. | |
2 | debitMethod | Object | The Object containing the properties of the Card to be debited when the loan is due. This is required when the debitMethodId is not provided. | ||
3a. | identifier | String | false | The Payment Method Identifier (GUID) of the Card to be debited. | |
3b. | authData | String | false | The AuthData of the Card to be debited. This is only provided when the Card to be debited doesn’t have all the required details. It is the encryption of the Card PAN or Identifier, Expiry Date, PIN, and CVV. | |
4 | providerCode | String | true | The Code of the provider from which this offer was retrieved. | |
5 | merchantCode | String | true | The merchant identifier |
Endpoint
POST /tenured-offers/{offerId}/accept |
Headers
|
Sample Requests
Sample Request One
{ "customerId" : "2348123456789" , "providerCode" : "ABCREDIT" , "merchantCode" : "MX1049" , "debitMethod" : { "identifier" : "ADA4C1FFE6DE40C584ABD3CBAFDA0D08" } } |
Sample Request Two
{ "customerId" : "2348123456789" , "providerCode" : "ABCREDIT" , "merchantCode" : "MX1049" , "debitMethod" : { "identifier" : "ADA4C1FFE6DE40C584ABD3CBAFDA0D08" , "authData" : "OjlDC8aB24QNtbc654TAmTC7s/J4WG7LVf3HursqxMj9Kx0iMLWg8chKuQrB3E4SaBoegl 7znXDTZ0QTwS+gr5IrFX+7LplB5My/eJ9a3VgY7SL9izhXWPowDIT7y2SZzgJIpYgGp2bTKZcDO0vUPREV/0NMxPOktx FlXHKkeYe3nn2WrP877Tw09XCN4eZfe7M5dD4wdb0IRcMktHCdbbdyZa60UTkxhTDWk9t5Nm3opWda5zV+ERQhgpod99rG61odZE0brQ9iGf5KPYmaoyn fL00I6CQYjnANoEnjOTh5Kt7uhaRrhUSk9zKIV4woME8LXetvdvQUee+ZXcbXPg==" } } |
Sample Request Three
{ "customerId" : "2348123456789" , "providerCode" : "ABCREDIT" , "merchantCode" : "MX1049" , "debitMethod" : { "authData" : "NQkmlsofwtUI/h8M9jN8xYjCYRmzdIfM/v2X2q9eVjnuU75E31MPKTYYlinxuzSth jY0C1S2i4+A0vyAAFwth6sJx6p9ekp9H4hsiO3iG+x587KqVwhBY5DC76oArxINzzxP4F09Aw/a527jVb4Agx5aTDQiyAKV8WSTzjHY7KH8XB2/lI+WwUEOhs49yC RPXh+tXJCGdefZgZYFyI09WNp2w8AWDQUZvRpzPFzS09QAeiI4qWuFZ01F/HAF4D09I8Gg+61lWwclw4zcPLXWB17zzb/BrMZcjJvyrouCbbn6n7zaUqy FG4H4r3NTRAcuVxCnDCC2wjRO9ZRq2la4lA==" } } |
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" : "2389000" } |
Sample Response (failure)
{ "responseCode" : "96" , "responseMessage" : "Oops. Something went wrong. Please try again later" } |