Loans Swagger Specification
Paths
/loans/leads
Save the leads data and return status
TPP client credential authorisation flow with the ASPSP
The unique id of the ASPSP to which the request is issued. The unique id will be issued by OB.
The time when the PSU last logged in with the TPP. All dates in the HTTP headers are represented as RFC 7231 Full Dates. An example is below: Sun, 10 Sep 2017 19:43:31 UTC
{
"pattern": "^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), \\d{2} (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) \\d{4} \\d{2}:\\d{2}:\\d{2} (GMT|UTC)$"
}
The PSU's IP address if the PSU is currently logged in with the TPP.
An RFC4122 UID used as a correlation id.
An Authorisation Token as per https://tools.ietf.org/html/rfc6750
Indicates the user-agent that the PSU is using.
cc309236
A successful response.
Bad Request
Unauthorized
Forbidden
Too Many Requests
Internal Server Error
curl --request PUT \
--url https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/leads \
--header 'accept: application/json' \
--header 'authorization: Bearer REPLACE_BEARER_TOKEN' \
--header 'content-type: application/json' \
--header 'x-customer-user-agent: REPLACE_THIS_VALUE' \
--header 'x-fapi-customer-ip-address: REPLACE_THIS_VALUE' \
--header 'x-fapi-customer-last-logged-time: REPLACE_THIS_VALUE' \
--header 'x-fapi-financial-id: REPLACE_THIS_VALUE' \
--header 'x-fapi-interaction-id: REPLACE_THIS_VALUE' \
--header 'x-ibm-client-id: REPLACE_THIS_KEY' \
--header 'x-ibm-client-secret: REPLACE_THIS_KEY' \
--data '{"Data":{"Title":"mitekawug","Name":"Clara Ford","Surname":"Katie Welch","IDNumber":"7186279072530432","Cellphone":"(228) 512-8742","ProcessID":"6993986103279616","Email":"fujpot@hagzobe.kw","Work":"cuimniwok","Home":"wodemagufugoj","ProductCode":15614860}}'
require 'uri'
require 'openssl'
require 'net/http'
url = URI("https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/leads")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_PEER
request = Net::HTTP::Put.new(url)
request["x-ibm-client-id"] = 'REPLACE_THIS_KEY'
request["x-ibm-client-secret"] = 'REPLACE_THIS_KEY'
request["x-fapi-financial-id"] = 'REPLACE_THIS_VALUE'
request["x-fapi-customer-last-logged-time"] = 'REPLACE_THIS_VALUE'
request["x-fapi-customer-ip-address"] = 'REPLACE_THIS_VALUE'
request["x-fapi-interaction-id"] = 'REPLACE_THIS_VALUE'
request["authorization"] = 'Bearer REPLACE_BEARER_TOKEN'
request["x-customer-user-agent"] = 'REPLACE_THIS_VALUE'
request["content-type"] = 'application/json'
request["accept"] = 'application/json'
request.body = "{\"Data\":{\"Title\":\"mitekawug\",\"Name\":\"Clara Ford\",\"Surname\":\"Katie Welch\",\"IDNumber\":\"7186279072530432\",\"Cellphone\":\"(228) 512-8742\",\"ProcessID\":\"6993986103279616\",\"Email\":\"fujpot@hagzobe.kw\",\"Work\":\"cuimniwok\",\"Home\":\"wodemagufugoj\",\"ProductCode\":15614860}}"
response = http.request(request)
puts response.read_body
import http.client
conn = http.client.HTTPSConnection("api.nedbank.co.za")
payload = "{\"Data\":{\"Title\":\"mitekawug\",\"Name\":\"Clara Ford\",\"Surname\":\"Katie Welch\",\"IDNumber\":\"7186279072530432\",\"Cellphone\":\"(228) 512-8742\",\"ProcessID\":\"6993986103279616\",\"Email\":\"fujpot@hagzobe.kw\",\"Work\":\"cuimniwok\",\"Home\":\"wodemagufugoj\",\"ProductCode\":15614860}}"
headers = {
'x-ibm-client-id': "REPLACE_THIS_KEY",
'x-ibm-client-secret': "REPLACE_THIS_KEY",
'x-fapi-financial-id': "REPLACE_THIS_VALUE",
'x-fapi-customer-last-logged-time': "REPLACE_THIS_VALUE",
'x-fapi-customer-ip-address': "REPLACE_THIS_VALUE",
'x-fapi-interaction-id': "REPLACE_THIS_VALUE",
'authorization': "Bearer REPLACE_BEARER_TOKEN",
'x-customer-user-agent': "REPLACE_THIS_VALUE",
'content-type': "application/json",
'accept': "application/json"
}
conn.request("PUT", "/apimarket/sandbox/nb-loans/v1/loans/leads", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/leads",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => "{\"Data\":{\"Title\":\"mitekawug\",\"Name\":\"Clara Ford\",\"Surname\":\"Katie Welch\",\"IDNumber\":\"7186279072530432\",\"Cellphone\":\"(228) 512-8742\",\"ProcessID\":\"6993986103279616\",\"Email\":\"fujpot@hagzobe.kw\",\"Work\":\"cuimniwok\",\"Home\":\"wodemagufugoj\",\"ProductCode\":15614860}}",
CURLOPT_HTTPHEADER => array(
"accept: application/json",
"authorization: Bearer REPLACE_BEARER_TOKEN",
"content-type: application/json",
"x-customer-user-agent: REPLACE_THIS_VALUE",
"x-fapi-customer-ip-address: REPLACE_THIS_VALUE",
"x-fapi-customer-last-logged-time: REPLACE_THIS_VALUE",
"x-fapi-financial-id: REPLACE_THIS_VALUE",
"x-fapi-interaction-id: REPLACE_THIS_VALUE",
"x-ibm-client-id: REPLACE_THIS_KEY",
"x-ibm-client-secret: REPLACE_THIS_KEY"
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
// OkHttpClient from http://square.github.io/okhttp/
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"Data\":{\"Title\":\"mitekawug\",\"Name\":\"Clara Ford\",\"Surname\":\"Katie Welch\",\"IDNumber\":\"7186279072530432\",\"Cellphone\":\"(228) 512-8742\",\"ProcessID\":\"6993986103279616\",\"Email\":\"fujpot@hagzobe.kw\",\"Work\":\"cuimniwok\",\"Home\":\"wodemagufugoj\",\"ProductCode\":15614860}}");
Request request = new Request.Builder()
.url("https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/leads")
.put(body)
.addHeader("x-ibm-client-id", "REPLACE_THIS_KEY")
.addHeader("x-ibm-client-secret", "REPLACE_THIS_KEY")
.addHeader("x-fapi-financial-id", "REPLACE_THIS_VALUE")
.addHeader("x-fapi-customer-last-logged-time", "REPLACE_THIS_VALUE")
.addHeader("x-fapi-customer-ip-address", "REPLACE_THIS_VALUE")
.addHeader("x-fapi-interaction-id", "REPLACE_THIS_VALUE")
.addHeader("authorization", "Bearer REPLACE_BEARER_TOKEN")
.addHeader("x-customer-user-agent", "REPLACE_THIS_VALUE")
.addHeader("content-type", "application/json")
.addHeader("accept", "application/json")
.build();
Response response = client.newCall(request).execute();
// Install request by running "npm install --save request"
var request = require("request");
var options = { method: 'PUT',
url: 'https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/leads',
headers:
{ accept: 'application/json',
'content-type': 'application/json',
'x-customer-user-agent': 'REPLACE_THIS_VALUE',
authorization: 'Bearer REPLACE_BEARER_TOKEN',
'x-fapi-interaction-id': 'REPLACE_THIS_VALUE',
'x-fapi-customer-ip-address': 'REPLACE_THIS_VALUE',
'x-fapi-customer-last-logged-time': 'REPLACE_THIS_VALUE',
'x-fapi-financial-id': 'REPLACE_THIS_VALUE',
'x-ibm-client-secret': 'REPLACE_THIS_KEY',
'x-ibm-client-id': 'REPLACE_THIS_KEY' },
body:
{ Data:
{ Title: 'mitekawug',
Name: 'Clara Ford',
Surname: 'Katie Welch',
IDNumber: '7186279072530432',
Cellphone: '(228) 512-8742',
ProcessID: '6993986103279616',
Email: 'fujpot@hagzobe.kw',
Work: 'cuimniwok',
Home: 'wodemagufugoj',
ProductCode: 15614860 } },
json: true };
request(options, function (error, response, body) {
if (error) return console.error('Failed: %s', error.message);
console.log('Success: ', body);
});
package main
import (
"fmt"
"strings"
"net/http"
"io/ioutil"
)
func main() {
url := "https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/leads"
payload := strings.NewReader("{\"Data\":{\"Title\":\"mitekawug\",\"Name\":\"Clara Ford\",\"Surname\":\"Katie Welch\",\"IDNumber\":\"7186279072530432\",\"Cellphone\":\"(228) 512-8742\",\"ProcessID\":\"6993986103279616\",\"Email\":\"fujpot@hagzobe.kw\",\"Work\":\"cuimniwok\",\"Home\":\"wodemagufugoj\",\"ProductCode\":15614860}}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("x-ibm-client-id", "REPLACE_THIS_KEY")
req.Header.Add("x-ibm-client-secret", "REPLACE_THIS_KEY")
req.Header.Add("x-fapi-financial-id", "REPLACE_THIS_VALUE")
req.Header.Add("x-fapi-customer-last-logged-time", "REPLACE_THIS_VALUE")
req.Header.Add("x-fapi-customer-ip-address", "REPLACE_THIS_VALUE")
req.Header.Add("x-fapi-interaction-id", "REPLACE_THIS_VALUE")
req.Header.Add("authorization", "Bearer REPLACE_BEARER_TOKEN")
req.Header.Add("x-customer-user-agent", "REPLACE_THIS_VALUE")
req.Header.Add("content-type", "application/json")
req.Header.Add("accept", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
import Foundation
let headers = [
"x-ibm-client-id": "REPLACE_THIS_KEY",
"x-ibm-client-secret": "REPLACE_THIS_KEY",
"x-fapi-financial-id": "REPLACE_THIS_VALUE",
"x-fapi-customer-last-logged-time": "REPLACE_THIS_VALUE",
"x-fapi-customer-ip-address": "REPLACE_THIS_VALUE",
"x-fapi-interaction-id": "REPLACE_THIS_VALUE",
"authorization": "Bearer REPLACE_BEARER_TOKEN",
"x-customer-user-agent": "REPLACE_THIS_VALUE",
"content-type": "application/json",
"accept": "application/json"
]
let parameters = ["Data": [
"Title": "mitekawug",
"Name": "Clara Ford",
"Surname": "Katie Welch",
"IDNumber": "7186279072530432",
"Cellphone": "(228) 512-8742",
"ProcessID": "6993986103279616",
"Email": "fujpot@hagzobe.kw",
"Work": "cuimniwok",
"Home": "wodemagufugoj",
"ProductCode": 15614860
]]
let postData = NSJSONSerialization.dataWithJSONObject(parameters, options: nil, error: nil)
var request = NSMutableURLRequest(URL: NSURL(string: "https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/leads")!,
cachePolicy: .UseProtocolCachePolicy,
timeoutInterval: 10.0)
request.HTTPMethod = "PUT"
request.allHTTPHeaderFields = headers
request.HTTPBody = postData
let session = NSURLSession.sharedSession()
let dataTask = session.dataTaskWithRequest(request, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error)
} else {
let httpResponse = response as? NSHTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
/loans/getcaseid
Returns the case id ans its status
TPP client credential authorisation flow with the ASPSP
The unique id of the ASPSP to which the request is issued. The unique id will be issued by OB.
The time when the PSU last logged in with the TPP. All dates in the HTTP headers are represented as RFC 7231 Full Dates. An example is below: Sun, 10 Sep 2017 19:43:31 UTC
{
"pattern": "^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), \\d{2} (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) \\d{4} \\d{2}:\\d{2}:\\d{2} (GMT|UTC)$"
}
The PSU's IP address if the PSU is currently logged in with the TPP.
An RFC4122 UID used as a correlation id.
Indicates the user-agent that the PSU is using.
Intent id for this transaction
cc309236
A successful response.
Bad Request
Unauthorized
Forbidden
Too Many Requests
Internal Server Error
curl --request GET \
--url https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/getcaseid \
--header 'accept: application/json' \
--header 'authorization: Bearer REPLACE_BEARER_TOKEN' \
--header 'x-customer-user-agent: REPLACE_THIS_VALUE' \
--header 'x-fapi-customer-ip-address: REPLACE_THIS_VALUE' \
--header 'x-fapi-customer-last-logged-time: REPLACE_THIS_VALUE' \
--header 'x-fapi-financial-id: REPLACE_THIS_VALUE' \
--header 'x-fapi-interaction-id: REPLACE_THIS_VALUE' \
--header 'x-ibm-client-id: REPLACE_THIS_KEY' \
--header 'x-ibm-client-secret: REPLACE_THIS_KEY' \
--header 'x-nb-subscription-id: REPLACE_THIS_VALUE'
require 'uri'
require 'openssl'
require 'net/http'
url = URI("https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/getcaseid")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_PEER
request = Net::HTTP::Get.new(url)
request["x-ibm-client-id"] = 'REPLACE_THIS_KEY'
request["x-ibm-client-secret"] = 'REPLACE_THIS_KEY'
request["authorization"] = 'Bearer REPLACE_BEARER_TOKEN'
request["x-fapi-financial-id"] = 'REPLACE_THIS_VALUE'
request["x-fapi-customer-last-logged-time"] = 'REPLACE_THIS_VALUE'
request["x-fapi-customer-ip-address"] = 'REPLACE_THIS_VALUE'
request["x-fapi-interaction-id"] = 'REPLACE_THIS_VALUE'
request["x-customer-user-agent"] = 'REPLACE_THIS_VALUE'
request["x-nb-subscription-id"] = 'REPLACE_THIS_VALUE'
request["accept"] = 'application/json'
response = http.request(request)
puts response.read_body
import http.client
conn = http.client.HTTPSConnection("api.nedbank.co.za")
headers = {
'x-ibm-client-id': "REPLACE_THIS_KEY",
'x-ibm-client-secret': "REPLACE_THIS_KEY",
'authorization': "Bearer REPLACE_BEARER_TOKEN",
'x-fapi-financial-id': "REPLACE_THIS_VALUE",
'x-fapi-customer-last-logged-time': "REPLACE_THIS_VALUE",
'x-fapi-customer-ip-address': "REPLACE_THIS_VALUE",
'x-fapi-interaction-id': "REPLACE_THIS_VALUE",
'x-customer-user-agent': "REPLACE_THIS_VALUE",
'x-nb-subscription-id': "REPLACE_THIS_VALUE",
'accept': "application/json"
}
conn.request("GET", "/apimarket/sandbox/nb-loans/v1/loans/getcaseid", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/getcaseid",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => array(
"accept: application/json",
"authorization: Bearer REPLACE_BEARER_TOKEN",
"x-customer-user-agent: REPLACE_THIS_VALUE",
"x-fapi-customer-ip-address: REPLACE_THIS_VALUE",
"x-fapi-customer-last-logged-time: REPLACE_THIS_VALUE",
"x-fapi-financial-id: REPLACE_THIS_VALUE",
"x-fapi-interaction-id: REPLACE_THIS_VALUE",
"x-ibm-client-id: REPLACE_THIS_KEY",
"x-ibm-client-secret: REPLACE_THIS_KEY",
"x-nb-subscription-id: REPLACE_THIS_VALUE"
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
// OkHttpClient from http://square.github.io/okhttp/
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/getcaseid")
.get()
.addHeader("x-ibm-client-id", "REPLACE_THIS_KEY")
.addHeader("x-ibm-client-secret", "REPLACE_THIS_KEY")
.addHeader("authorization", "Bearer REPLACE_BEARER_TOKEN")
.addHeader("x-fapi-financial-id", "REPLACE_THIS_VALUE")
.addHeader("x-fapi-customer-last-logged-time", "REPLACE_THIS_VALUE")
.addHeader("x-fapi-customer-ip-address", "REPLACE_THIS_VALUE")
.addHeader("x-fapi-interaction-id", "REPLACE_THIS_VALUE")
.addHeader("x-customer-user-agent", "REPLACE_THIS_VALUE")
.addHeader("x-nb-subscription-id", "REPLACE_THIS_VALUE")
.addHeader("accept", "application/json")
.build();
Response response = client.newCall(request).execute();
// Install request by running "npm install --save request"
var request = require("request");
var options = { method: 'GET',
url: 'https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/getcaseid',
headers:
{ accept: 'application/json',
'x-nb-subscription-id': 'REPLACE_THIS_VALUE',
'x-customer-user-agent': 'REPLACE_THIS_VALUE',
'x-fapi-interaction-id': 'REPLACE_THIS_VALUE',
'x-fapi-customer-ip-address': 'REPLACE_THIS_VALUE',
'x-fapi-customer-last-logged-time': 'REPLACE_THIS_VALUE',
'x-fapi-financial-id': 'REPLACE_THIS_VALUE',
authorization: 'Bearer REPLACE_BEARER_TOKEN',
'x-ibm-client-secret': 'REPLACE_THIS_KEY',
'x-ibm-client-id': 'REPLACE_THIS_KEY' } };
request(options, function (error, response, body) {
if (error) return console.error('Failed: %s', error.message);
console.log('Success: ', body);
});
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/getcaseid"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-ibm-client-id", "REPLACE_THIS_KEY")
req.Header.Add("x-ibm-client-secret", "REPLACE_THIS_KEY")
req.Header.Add("authorization", "Bearer REPLACE_BEARER_TOKEN")
req.Header.Add("x-fapi-financial-id", "REPLACE_THIS_VALUE")
req.Header.Add("x-fapi-customer-last-logged-time", "REPLACE_THIS_VALUE")
req.Header.Add("x-fapi-customer-ip-address", "REPLACE_THIS_VALUE")
req.Header.Add("x-fapi-interaction-id", "REPLACE_THIS_VALUE")
req.Header.Add("x-customer-user-agent", "REPLACE_THIS_VALUE")
req.Header.Add("x-nb-subscription-id", "REPLACE_THIS_VALUE")
req.Header.Add("accept", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
import Foundation
let headers = [
"x-ibm-client-id": "REPLACE_THIS_KEY",
"x-ibm-client-secret": "REPLACE_THIS_KEY",
"authorization": "Bearer REPLACE_BEARER_TOKEN",
"x-fapi-financial-id": "REPLACE_THIS_VALUE",
"x-fapi-customer-last-logged-time": "REPLACE_THIS_VALUE",
"x-fapi-customer-ip-address": "REPLACE_THIS_VALUE",
"x-fapi-interaction-id": "REPLACE_THIS_VALUE",
"x-customer-user-agent": "REPLACE_THIS_VALUE",
"x-nb-subscription-id": "REPLACE_THIS_VALUE",
"accept": "application/json"
]
var request = NSMutableURLRequest(URL: NSURL(string: "https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/getcaseid")!,
cachePolicy: .UseProtocolCachePolicy,
timeoutInterval: 10.0)
request.HTTPMethod = "GET"
request.allHTTPHeaderFields = headers
let session = NSURLSession.sharedSession()
let dataTask = session.dataTaskWithRequest(request, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error)
} else {
let httpResponse = response as? NSHTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
/loans/customer-disburse
Return the status of the loan to be disbursed to customer/TPP
TPP client credential authorisation flow with the ASPSP
The unique id of the ASPSP to which the request is issued. The unique id will be issued by OB.
The time when the PSU last logged in with the TPP. All dates in the HTTP headers are represented as RFC 7231 Full Dates. An example is below: Sun, 10 Sep 2017 19:43:31 UTC
{
"pattern": "^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), \\d{2} (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) \\d{4} \\d{2}:\\d{2}:\\d{2} (GMT|UTC)$"
}
The PSU's IP address if the PSU is currently logged in with the TPP.
An RFC4122 UID used as a correlation id.
Indicates the user-agent that the PSU is using.
An Authorisation Token as per https://tools.ietf.org/html/rfc6750
cc309236
A successful response.
Bad Request
Unauthorized
Forbidden
Too Many Requests
Internal Server Error
curl --request GET \
--url https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/customer-disburse \
--header 'accept: application/json' \
--header 'authorization: Bearer REPLACE_BEARER_TOKEN' \
--header 'x-customer-user-agent: REPLACE_THIS_VALUE' \
--header 'x-fapi-customer-ip-address: REPLACE_THIS_VALUE' \
--header 'x-fapi-customer-last-logged-time: REPLACE_THIS_VALUE' \
--header 'x-fapi-financial-id: REPLACE_THIS_VALUE' \
--header 'x-fapi-interaction-id: REPLACE_THIS_VALUE' \
--header 'x-ibm-client-id: REPLACE_THIS_KEY' \
--header 'x-ibm-client-secret: REPLACE_THIS_KEY'
require 'uri'
require 'openssl'
require 'net/http'
url = URI("https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/customer-disburse")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_PEER
request = Net::HTTP::Get.new(url)
request["x-ibm-client-id"] = 'REPLACE_THIS_KEY'
request["x-ibm-client-secret"] = 'REPLACE_THIS_KEY'
request["x-fapi-financial-id"] = 'REPLACE_THIS_VALUE'
request["x-fapi-customer-last-logged-time"] = 'REPLACE_THIS_VALUE'
request["x-fapi-customer-ip-address"] = 'REPLACE_THIS_VALUE'
request["x-fapi-interaction-id"] = 'REPLACE_THIS_VALUE'
request["x-customer-user-agent"] = 'REPLACE_THIS_VALUE'
request["authorization"] = 'Bearer REPLACE_BEARER_TOKEN'
request["accept"] = 'application/json'
response = http.request(request)
puts response.read_body
import http.client
conn = http.client.HTTPSConnection("api.nedbank.co.za")
headers = {
'x-ibm-client-id': "REPLACE_THIS_KEY",
'x-ibm-client-secret': "REPLACE_THIS_KEY",
'x-fapi-financial-id': "REPLACE_THIS_VALUE",
'x-fapi-customer-last-logged-time': "REPLACE_THIS_VALUE",
'x-fapi-customer-ip-address': "REPLACE_THIS_VALUE",
'x-fapi-interaction-id': "REPLACE_THIS_VALUE",
'x-customer-user-agent': "REPLACE_THIS_VALUE",
'authorization': "Bearer REPLACE_BEARER_TOKEN",
'accept': "application/json"
}
conn.request("GET", "/apimarket/sandbox/nb-loans/v1/loans/customer-disburse", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/customer-disburse",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => array(
"accept: application/json",
"authorization: Bearer REPLACE_BEARER_TOKEN",
"x-customer-user-agent: REPLACE_THIS_VALUE",
"x-fapi-customer-ip-address: REPLACE_THIS_VALUE",
"x-fapi-customer-last-logged-time: REPLACE_THIS_VALUE",
"x-fapi-financial-id: REPLACE_THIS_VALUE",
"x-fapi-interaction-id: REPLACE_THIS_VALUE",
"x-ibm-client-id: REPLACE_THIS_KEY",
"x-ibm-client-secret: REPLACE_THIS_KEY"
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
// OkHttpClient from http://square.github.io/okhttp/
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/customer-disburse")
.get()
.addHeader("x-ibm-client-id", "REPLACE_THIS_KEY")
.addHeader("x-ibm-client-secret", "REPLACE_THIS_KEY")
.addHeader("x-fapi-financial-id", "REPLACE_THIS_VALUE")
.addHeader("x-fapi-customer-last-logged-time", "REPLACE_THIS_VALUE")
.addHeader("x-fapi-customer-ip-address", "REPLACE_THIS_VALUE")
.addHeader("x-fapi-interaction-id", "REPLACE_THIS_VALUE")
.addHeader("x-customer-user-agent", "REPLACE_THIS_VALUE")
.addHeader("authorization", "Bearer REPLACE_BEARER_TOKEN")
.addHeader("accept", "application/json")
.build();
Response response = client.newCall(request).execute();
// Install request by running "npm install --save request"
var request = require("request");
var options = { method: 'GET',
url: 'https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/customer-disburse',
headers:
{ accept: 'application/json',
authorization: 'Bearer REPLACE_BEARER_TOKEN',
'x-customer-user-agent': 'REPLACE_THIS_VALUE',
'x-fapi-interaction-id': 'REPLACE_THIS_VALUE',
'x-fapi-customer-ip-address': 'REPLACE_THIS_VALUE',
'x-fapi-customer-last-logged-time': 'REPLACE_THIS_VALUE',
'x-fapi-financial-id': 'REPLACE_THIS_VALUE',
'x-ibm-client-secret': 'REPLACE_THIS_KEY',
'x-ibm-client-id': 'REPLACE_THIS_KEY' } };
request(options, function (error, response, body) {
if (error) return console.error('Failed: %s', error.message);
console.log('Success: ', body);
});
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/customer-disburse"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-ibm-client-id", "REPLACE_THIS_KEY")
req.Header.Add("x-ibm-client-secret", "REPLACE_THIS_KEY")
req.Header.Add("x-fapi-financial-id", "REPLACE_THIS_VALUE")
req.Header.Add("x-fapi-customer-last-logged-time", "REPLACE_THIS_VALUE")
req.Header.Add("x-fapi-customer-ip-address", "REPLACE_THIS_VALUE")
req.Header.Add("x-fapi-interaction-id", "REPLACE_THIS_VALUE")
req.Header.Add("x-customer-user-agent", "REPLACE_THIS_VALUE")
req.Header.Add("authorization", "Bearer REPLACE_BEARER_TOKEN")
req.Header.Add("accept", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
import Foundation
let headers = [
"x-ibm-client-id": "REPLACE_THIS_KEY",
"x-ibm-client-secret": "REPLACE_THIS_KEY",
"x-fapi-financial-id": "REPLACE_THIS_VALUE",
"x-fapi-customer-last-logged-time": "REPLACE_THIS_VALUE",
"x-fapi-customer-ip-address": "REPLACE_THIS_VALUE",
"x-fapi-interaction-id": "REPLACE_THIS_VALUE",
"x-customer-user-agent": "REPLACE_THIS_VALUE",
"authorization": "Bearer REPLACE_BEARER_TOKEN",
"accept": "application/json"
]
var request = NSMutableURLRequest(URL: NSURL(string: "https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/customer-disburse")!,
cachePolicy: .UseProtocolCachePolicy,
timeoutInterval: 10.0)
request.HTTPMethod = "GET"
request.allHTTPHeaderFields = headers
let session = NSURLSession.sharedSession()
let dataTask = session.dataTaskWithRequest(request, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error)
} else {
let httpResponse = response as? NSHTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
/loans/{caseId}/accept-offer
Accept a selected loan offer
OAuth flow, it is required when the PSU needs to perform SCA with the ASPSP when a TPP wants to access an ASPSP resource owned by the PSU
The unique id of the ASPSP to which the request is issued. The unique id will be issued by OB.
The time when the PSU last logged in with the TPP. All dates in the HTTP headers are represented as RFC 7231 Full Dates. An example is below: Sun, 10 Sep 2017 19:43:31 UTC
{
"pattern": "^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), \\d{2} (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) \\d{4} \\d{2}:\\d{2}:\\d{2} (GMT|UTC)$"
}
The PSU's IP address if the PSU is currently logged in with the TPP.
An RFC4122 UID used as a correlation id.
An Authorisation Token as per https://tools.ietf.org/html/rfc6750
Indicates the user-agent that the PSU is using.
Case ID returned from the initialize loan request for this specific application.
cc309236
A successful response.
Bad Request
Unauthorized
Forbidden
Too Many Requests
Internal Server Error
curl --request POST \
--url https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/REPLACE_CASEID/accept-offer \
--header 'accept: application/json' \
--header 'authorization: Bearer REPLACE_BEARER_TOKEN' \
--header 'content-type: application/json' \
--header 'x-customer-user-agent: REPLACE_THIS_VALUE' \
--header 'x-fapi-customer-ip-address: REPLACE_THIS_VALUE' \
--header 'x-fapi-customer-last-logged-time: REPLACE_THIS_VALUE' \
--header 'x-fapi-financial-id: REPLACE_THIS_VALUE' \
--header 'x-fapi-interaction-id: REPLACE_THIS_VALUE' \
--header 'x-ibm-client-id: REPLACE_THIS_KEY' \
--header 'x-ibm-client-secret: REPLACE_THIS_KEY' \
--data '{"Data":{"LoanDetails":{"Amount":51782329,"Term":37326373},"EvidenceResponse":[{"Id":"391446985179136","Timestamp":"599064357","Response":"ruvl"}]}}'
require 'uri'
require 'openssl'
require 'net/http'
url = URI("https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/REPLACE_CASEID/accept-offer")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_PEER
request = Net::HTTP::Post.new(url)
request["x-ibm-client-id"] = 'REPLACE_THIS_KEY'
request["x-ibm-client-secret"] = 'REPLACE_THIS_KEY'
request["x-fapi-financial-id"] = 'REPLACE_THIS_VALUE'
request["x-fapi-customer-last-logged-time"] = 'REPLACE_THIS_VALUE'
request["x-fapi-customer-ip-address"] = 'REPLACE_THIS_VALUE'
request["x-fapi-interaction-id"] = 'REPLACE_THIS_VALUE'
request["authorization"] = 'Bearer REPLACE_BEARER_TOKEN'
request["x-customer-user-agent"] = 'REPLACE_THIS_VALUE'
request["content-type"] = 'application/json'
request["accept"] = 'application/json'
request.body = "{\"Data\":{\"LoanDetails\":{\"Amount\":51782329,\"Term\":37326373},\"EvidenceResponse\":[{\"Id\":\"391446985179136\",\"Timestamp\":\"599064357\",\"Response\":\"ruvl\"}]}}"
response = http.request(request)
puts response.read_body
import http.client
conn = http.client.HTTPSConnection("api.nedbank.co.za")
payload = "{\"Data\":{\"LoanDetails\":{\"Amount\":51782329,\"Term\":37326373},\"EvidenceResponse\":[{\"Id\":\"391446985179136\",\"Timestamp\":\"599064357\",\"Response\":\"ruvl\"}]}}"
headers = {
'x-ibm-client-id': "REPLACE_THIS_KEY",
'x-ibm-client-secret': "REPLACE_THIS_KEY",
'x-fapi-financial-id': "REPLACE_THIS_VALUE",
'x-fapi-customer-last-logged-time': "REPLACE_THIS_VALUE",
'x-fapi-customer-ip-address': "REPLACE_THIS_VALUE",
'x-fapi-interaction-id': "REPLACE_THIS_VALUE",
'authorization': "Bearer REPLACE_BEARER_TOKEN",
'x-customer-user-agent': "REPLACE_THIS_VALUE",
'content-type': "application/json",
'accept': "application/json"
}
conn.request("POST", "/apimarket/sandbox/nb-loans/v1/loans/REPLACE_CASEID/accept-offer", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/REPLACE_CASEID/accept-offer",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "{\"Data\":{\"LoanDetails\":{\"Amount\":51782329,\"Term\":37326373},\"EvidenceResponse\":[{\"Id\":\"391446985179136\",\"Timestamp\":\"599064357\",\"Response\":\"ruvl\"}]}}",
CURLOPT_HTTPHEADER => array(
"accept: application/json",
"authorization: Bearer REPLACE_BEARER_TOKEN",
"content-type: application/json",
"x-customer-user-agent: REPLACE_THIS_VALUE",
"x-fapi-customer-ip-address: REPLACE_THIS_VALUE",
"x-fapi-customer-last-logged-time: REPLACE_THIS_VALUE",
"x-fapi-financial-id: REPLACE_THIS_VALUE",
"x-fapi-interaction-id: REPLACE_THIS_VALUE",
"x-ibm-client-id: REPLACE_THIS_KEY",
"x-ibm-client-secret: REPLACE_THIS_KEY"
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
// OkHttpClient from http://square.github.io/okhttp/
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"Data\":{\"LoanDetails\":{\"Amount\":51782329,\"Term\":37326373},\"EvidenceResponse\":[{\"Id\":\"391446985179136\",\"Timestamp\":\"599064357\",\"Response\":\"ruvl\"}]}}");
Request request = new Request.Builder()
.url("https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/REPLACE_CASEID/accept-offer")
.post(body)
.addHeader("x-ibm-client-id", "REPLACE_THIS_KEY")
.addHeader("x-ibm-client-secret", "REPLACE_THIS_KEY")
.addHeader("x-fapi-financial-id", "REPLACE_THIS_VALUE")
.addHeader("x-fapi-customer-last-logged-time", "REPLACE_THIS_VALUE")
.addHeader("x-fapi-customer-ip-address", "REPLACE_THIS_VALUE")
.addHeader("x-fapi-interaction-id", "REPLACE_THIS_VALUE")
.addHeader("authorization", "Bearer REPLACE_BEARER_TOKEN")
.addHeader("x-customer-user-agent", "REPLACE_THIS_VALUE")
.addHeader("content-type", "application/json")
.addHeader("accept", "application/json")
.build();
Response response = client.newCall(request).execute();
// Install request by running "npm install --save request"
var request = require("request");
var options = { method: 'POST',
url: 'https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/REPLACE_CASEID/accept-offer',
headers:
{ accept: 'application/json',
'content-type': 'application/json',
'x-customer-user-agent': 'REPLACE_THIS_VALUE',
authorization: 'Bearer REPLACE_BEARER_TOKEN',
'x-fapi-interaction-id': 'REPLACE_THIS_VALUE',
'x-fapi-customer-ip-address': 'REPLACE_THIS_VALUE',
'x-fapi-customer-last-logged-time': 'REPLACE_THIS_VALUE',
'x-fapi-financial-id': 'REPLACE_THIS_VALUE',
'x-ibm-client-secret': 'REPLACE_THIS_KEY',
'x-ibm-client-id': 'REPLACE_THIS_KEY' },
body:
{ Data:
{ LoanDetails: { Amount: 51782329, Term: 37326373 },
EvidenceResponse:
[ { Id: '391446985179136',
Timestamp: '599064357',
Response: 'ruvl' } ] } },
json: true };
request(options, function (error, response, body) {
if (error) return console.error('Failed: %s', error.message);
console.log('Success: ', body);
});
package main
import (
"fmt"
"strings"
"net/http"
"io/ioutil"
)
func main() {
url := "https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/REPLACE_CASEID/accept-offer"
payload := strings.NewReader("{\"Data\":{\"LoanDetails\":{\"Amount\":51782329,\"Term\":37326373},\"EvidenceResponse\":[{\"Id\":\"391446985179136\",\"Timestamp\":\"599064357\",\"Response\":\"ruvl\"}]}}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-ibm-client-id", "REPLACE_THIS_KEY")
req.Header.Add("x-ibm-client-secret", "REPLACE_THIS_KEY")
req.Header.Add("x-fapi-financial-id", "REPLACE_THIS_VALUE")
req.Header.Add("x-fapi-customer-last-logged-time", "REPLACE_THIS_VALUE")
req.Header.Add("x-fapi-customer-ip-address", "REPLACE_THIS_VALUE")
req.Header.Add("x-fapi-interaction-id", "REPLACE_THIS_VALUE")
req.Header.Add("authorization", "Bearer REPLACE_BEARER_TOKEN")
req.Header.Add("x-customer-user-agent", "REPLACE_THIS_VALUE")
req.Header.Add("content-type", "application/json")
req.Header.Add("accept", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
import Foundation
let headers = [
"x-ibm-client-id": "REPLACE_THIS_KEY",
"x-ibm-client-secret": "REPLACE_THIS_KEY",
"x-fapi-financial-id": "REPLACE_THIS_VALUE",
"x-fapi-customer-last-logged-time": "REPLACE_THIS_VALUE",
"x-fapi-customer-ip-address": "REPLACE_THIS_VALUE",
"x-fapi-interaction-id": "REPLACE_THIS_VALUE",
"authorization": "Bearer REPLACE_BEARER_TOKEN",
"x-customer-user-agent": "REPLACE_THIS_VALUE",
"content-type": "application/json",
"accept": "application/json"
]
let parameters = ["Data": [
"LoanDetails": [
"Amount": 51782329,
"Term": 37326373
],
"EvidenceResponse": [
[
"Id": "391446985179136",
"Timestamp": "599064357",
"Response": "ruvl"
]
]
]]
let postData = NSJSONSerialization.dataWithJSONObject(parameters, options: nil, error: nil)
var request = NSMutableURLRequest(URL: NSURL(string: "https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/REPLACE_CASEID/accept-offer")!,
cachePolicy: .UseProtocolCachePolicy,
timeoutInterval: 10.0)
request.HTTPMethod = "POST"
request.allHTTPHeaderFields = headers
request.HTTPBody = postData
let session = NSURLSession.sharedSession()
let dataTask = session.dataTaskWithRequest(request, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error)
} else {
let httpResponse = response as? NSHTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
/loans/{caseId}/accept-offer/status
OAuth flow, it is required when the PSU needs to perform SCA with the ASPSP when a TPP wants to access an ASPSP resource owned by the PSU
The unique id of the ASPSP to which the request is issued. The unique id will be issued by OB.
The time when the PSU last logged in with the TPP. All dates in the HTTP headers are represented as RFC 7231 Full Dates. An example is below: Sun, 10 Sep 2017 19:43:31 UTC
{
"pattern": "^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), \\d{2} (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) \\d{4} \\d{2}:\\d{2}:\\d{2} (GMT|UTC)$"
}
The PSU's IP address if the PSU is currently logged in with the TPP.
An RFC4122 UID used as a correlation id.
An Authorisation Token as per https://tools.ietf.org/html/rfc6750
Indicates the user-agent that the PSU is using.
Case ID returned from the initialize loan request for this specific application.
cc309236
A successful response.
Bad Request
Unauthorized
Forbidden
Too Many Requests
Internal Server Error
curl --request GET \
--url https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/REPLACE_CASEID/accept-offer/status \
--header 'accept: application/json' \
--header 'authorization: Bearer REPLACE_BEARER_TOKEN' \
--header 'x-customer-user-agent: REPLACE_THIS_VALUE' \
--header 'x-fapi-customer-ip-address: REPLACE_THIS_VALUE' \
--header 'x-fapi-customer-last-logged-time: REPLACE_THIS_VALUE' \
--header 'x-fapi-financial-id: REPLACE_THIS_VALUE' \
--header 'x-fapi-interaction-id: REPLACE_THIS_VALUE' \
--header 'x-ibm-client-id: REPLACE_THIS_KEY' \
--header 'x-ibm-client-secret: REPLACE_THIS_KEY'
require 'uri'
require 'openssl'
require 'net/http'
url = URI("https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/REPLACE_CASEID/accept-offer/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_PEER
request = Net::HTTP::Get.new(url)
request["x-ibm-client-id"] = 'REPLACE_THIS_KEY'
request["x-ibm-client-secret"] = 'REPLACE_THIS_KEY'
request["x-fapi-financial-id"] = 'REPLACE_THIS_VALUE'
request["x-fapi-customer-last-logged-time"] = 'REPLACE_THIS_VALUE'
request["x-fapi-customer-ip-address"] = 'REPLACE_THIS_VALUE'
request["x-fapi-interaction-id"] = 'REPLACE_THIS_VALUE'
request["authorization"] = 'Bearer REPLACE_BEARER_TOKEN'
request["x-customer-user-agent"] = 'REPLACE_THIS_VALUE'
request["accept"] = 'application/json'
response = http.request(request)
puts response.read_body
import http.client
conn = http.client.HTTPSConnection("api.nedbank.co.za")
headers = {
'x-ibm-client-id': "REPLACE_THIS_KEY",
'x-ibm-client-secret': "REPLACE_THIS_KEY",
'x-fapi-financial-id': "REPLACE_THIS_VALUE",
'x-fapi-customer-last-logged-time': "REPLACE_THIS_VALUE",
'x-fapi-customer-ip-address': "REPLACE_THIS_VALUE",
'x-fapi-interaction-id': "REPLACE_THIS_VALUE",
'authorization': "Bearer REPLACE_BEARER_TOKEN",
'x-customer-user-agent': "REPLACE_THIS_VALUE",
'accept': "application/json"
}
conn.request("GET", "/apimarket/sandbox/nb-loans/v1/loans/REPLACE_CASEID/accept-offer/status", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/REPLACE_CASEID/accept-offer/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => array(
"accept: application/json",
"authorization: Bearer REPLACE_BEARER_TOKEN",
"x-customer-user-agent: REPLACE_THIS_VALUE",
"x-fapi-customer-ip-address: REPLACE_THIS_VALUE",
"x-fapi-customer-last-logged-time: REPLACE_THIS_VALUE",
"x-fapi-financial-id: REPLACE_THIS_VALUE",
"x-fapi-interaction-id: REPLACE_THIS_VALUE",
"x-ibm-client-id: REPLACE_THIS_KEY",
"x-ibm-client-secret: REPLACE_THIS_KEY"
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
// OkHttpClient from http://square.github.io/okhttp/
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/REPLACE_CASEID/accept-offer/status")
.get()
.addHeader("x-ibm-client-id", "REPLACE_THIS_KEY")
.addHeader("x-ibm-client-secret", "REPLACE_THIS_KEY")
.addHeader("x-fapi-financial-id", "REPLACE_THIS_VALUE")
.addHeader("x-fapi-customer-last-logged-time", "REPLACE_THIS_VALUE")
.addHeader("x-fapi-customer-ip-address", "REPLACE_THIS_VALUE")
.addHeader("x-fapi-interaction-id", "REPLACE_THIS_VALUE")
.addHeader("authorization", "Bearer REPLACE_BEARER_TOKEN")
.addHeader("x-customer-user-agent", "REPLACE_THIS_VALUE")
.addHeader("accept", "application/json")
.build();
Response response = client.newCall(request).execute();
// Install request by running "npm install --save request"
var request = require("request");
var options = { method: 'GET',
url: 'https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/REPLACE_CASEID/accept-offer/status',
headers:
{ accept: 'application/json',
'x-customer-user-agent': 'REPLACE_THIS_VALUE',
authorization: 'Bearer REPLACE_BEARER_TOKEN',
'x-fapi-interaction-id': 'REPLACE_THIS_VALUE',
'x-fapi-customer-ip-address': 'REPLACE_THIS_VALUE',
'x-fapi-customer-last-logged-time': 'REPLACE_THIS_VALUE',
'x-fapi-financial-id': 'REPLACE_THIS_VALUE',
'x-ibm-client-secret': 'REPLACE_THIS_KEY',
'x-ibm-client-id': 'REPLACE_THIS_KEY' } };
request(options, function (error, response, body) {
if (error) return console.error('Failed: %s', error.message);
console.log('Success: ', body);
});
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/REPLACE_CASEID/accept-offer/status"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-ibm-client-id", "REPLACE_THIS_KEY")
req.Header.Add("x-ibm-client-secret", "REPLACE_THIS_KEY")
req.Header.Add("x-fapi-financial-id", "REPLACE_THIS_VALUE")
req.Header.Add("x-fapi-customer-last-logged-time", "REPLACE_THIS_VALUE")
req.Header.Add("x-fapi-customer-ip-address", "REPLACE_THIS_VALUE")
req.Header.Add("x-fapi-interaction-id", "REPLACE_THIS_VALUE")
req.Header.Add("authorization", "Bearer REPLACE_BEARER_TOKEN")
req.Header.Add("x-customer-user-agent", "REPLACE_THIS_VALUE")
req.Header.Add("accept", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
import Foundation
let headers = [
"x-ibm-client-id": "REPLACE_THIS_KEY",
"x-ibm-client-secret": "REPLACE_THIS_KEY",
"x-fapi-financial-id": "REPLACE_THIS_VALUE",
"x-fapi-customer-last-logged-time": "REPLACE_THIS_VALUE",
"x-fapi-customer-ip-address": "REPLACE_THIS_VALUE",
"x-fapi-interaction-id": "REPLACE_THIS_VALUE",
"authorization": "Bearer REPLACE_BEARER_TOKEN",
"x-customer-user-agent": "REPLACE_THIS_VALUE",
"accept": "application/json"
]
var request = NSMutableURLRequest(URL: NSURL(string: "https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/REPLACE_CASEID/accept-offer/status")!,
cachePolicy: .UseProtocolCachePolicy,
timeoutInterval: 10.0)
request.HTTPMethod = "GET"
request.allHTTPHeaderFields = headers
let session = NSURLSession.sharedSession()
let dataTask = session.dataTaskWithRequest(request, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error)
} else {
let httpResponse = response as? NSHTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
{
"Data": {
"Status": "OFFERS_NOT_GENERATED",
"EvidenceRequest": [
{
"Id": "3056407890886656",
"FullText": "uwinomrijonp"
}
]
}
}
/loans/{caseId}/offers
Calculate and return offers based on available information
OAuth flow, it is required when the PSU needs to perform SCA with the ASPSP when a TPP wants to access an ASPSP resource owned by the PSU
The unique id of the ASPSP to which the request is issued. The unique id will be issued by OB.
The time when the PSU last logged in with the TPP. All dates in the HTTP headers are represented as RFC 7231 Full Dates. An example is below: Sun, 10 Sep 2017 19:43:31 UTC
{
"pattern": "^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), \\d{2} (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) \\d{4} \\d{2}:\\d{2}:\\d{2} (GMT|UTC)$"
}
The PSU's IP address if the PSU is currently logged in with the TPP.
An RFC4122 UID used as a correlation id.
An Authorisation Token as per https://tools.ietf.org/html/rfc6750
Indicates the user-agent that the PSU is using.
Case ID returned from the initialize loan request for this specific application.
cc309236
A successful response.
Bad Request
Unauthorized
Forbidden
Too Many Requests
Internal Server Error
curl --request GET \
--url https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/REPLACE_CASEID/offers \
--header 'accept: application/json' \
--header 'authorization: Bearer REPLACE_BEARER_TOKEN' \
--header 'x-customer-user-agent: REPLACE_THIS_VALUE' \
--header 'x-fapi-customer-ip-address: REPLACE_THIS_VALUE' \
--header 'x-fapi-customer-last-logged-time: REPLACE_THIS_VALUE' \
--header 'x-fapi-financial-id: REPLACE_THIS_VALUE' \
--header 'x-fapi-interaction-id: REPLACE_THIS_VALUE' \
--header 'x-ibm-client-id: REPLACE_THIS_KEY' \
--header 'x-ibm-client-secret: REPLACE_THIS_KEY'
require 'uri'
require 'openssl'
require 'net/http'
url = URI("https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/REPLACE_CASEID/offers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_PEER
request = Net::HTTP::Get.new(url)
request["x-ibm-client-id"] = 'REPLACE_THIS_KEY'
request["x-ibm-client-secret"] = 'REPLACE_THIS_KEY'
request["x-fapi-financial-id"] = 'REPLACE_THIS_VALUE'
request["x-fapi-customer-last-logged-time"] = 'REPLACE_THIS_VALUE'
request["x-fapi-customer-ip-address"] = 'REPLACE_THIS_VALUE'
request["x-fapi-interaction-id"] = 'REPLACE_THIS_VALUE'
request["authorization"] = 'Bearer REPLACE_BEARER_TOKEN'
request["x-customer-user-agent"] = 'REPLACE_THIS_VALUE'
request["accept"] = 'application/json'
response = http.request(request)
puts response.read_body
import http.client
conn = http.client.HTTPSConnection("api.nedbank.co.za")
headers = {
'x-ibm-client-id': "REPLACE_THIS_KEY",
'x-ibm-client-secret': "REPLACE_THIS_KEY",
'x-fapi-financial-id': "REPLACE_THIS_VALUE",
'x-fapi-customer-last-logged-time': "REPLACE_THIS_VALUE",
'x-fapi-customer-ip-address': "REPLACE_THIS_VALUE",
'x-fapi-interaction-id': "REPLACE_THIS_VALUE",
'authorization': "Bearer REPLACE_BEARER_TOKEN",
'x-customer-user-agent': "REPLACE_THIS_VALUE",
'accept': "application/json"
}
conn.request("GET", "/apimarket/sandbox/nb-loans/v1/loans/REPLACE_CASEID/offers", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/REPLACE_CASEID/offers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => array(
"accept: application/json",
"authorization: Bearer REPLACE_BEARER_TOKEN",
"x-customer-user-agent: REPLACE_THIS_VALUE",
"x-fapi-customer-ip-address: REPLACE_THIS_VALUE",
"x-fapi-customer-last-logged-time: REPLACE_THIS_VALUE",
"x-fapi-financial-id: REPLACE_THIS_VALUE",
"x-fapi-interaction-id: REPLACE_THIS_VALUE",
"x-ibm-client-id: REPLACE_THIS_KEY",
"x-ibm-client-secret: REPLACE_THIS_KEY"
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
// OkHttpClient from http://square.github.io/okhttp/
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/REPLACE_CASEID/offers")
.get()
.addHeader("x-ibm-client-id", "REPLACE_THIS_KEY")
.addHeader("x-ibm-client-secret", "REPLACE_THIS_KEY")
.addHeader("x-fapi-financial-id", "REPLACE_THIS_VALUE")
.addHeader("x-fapi-customer-last-logged-time", "REPLACE_THIS_VALUE")
.addHeader("x-fapi-customer-ip-address", "REPLACE_THIS_VALUE")
.addHeader("x-fapi-interaction-id", "REPLACE_THIS_VALUE")
.addHeader("authorization", "Bearer REPLACE_BEARER_TOKEN")
.addHeader("x-customer-user-agent", "REPLACE_THIS_VALUE")
.addHeader("accept", "application/json")
.build();
Response response = client.newCall(request).execute();
// Install request by running "npm install --save request"
var request = require("request");
var options = { method: 'GET',
url: 'https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/REPLACE_CASEID/offers',
headers:
{ accept: 'application/json',
'x-customer-user-agent': 'REPLACE_THIS_VALUE',
authorization: 'Bearer REPLACE_BEARER_TOKEN',
'x-fapi-interaction-id': 'REPLACE_THIS_VALUE',
'x-fapi-customer-ip-address': 'REPLACE_THIS_VALUE',
'x-fapi-customer-last-logged-time': 'REPLACE_THIS_VALUE',
'x-fapi-financial-id': 'REPLACE_THIS_VALUE',
'x-ibm-client-secret': 'REPLACE_THIS_KEY',
'x-ibm-client-id': 'REPLACE_THIS_KEY' } };
request(options, function (error, response, body) {
if (error) return console.error('Failed: %s', error.message);
console.log('Success: ', body);
});
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/REPLACE_CASEID/offers"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-ibm-client-id", "REPLACE_THIS_KEY")
req.Header.Add("x-ibm-client-secret", "REPLACE_THIS_KEY")
req.Header.Add("x-fapi-financial-id", "REPLACE_THIS_VALUE")
req.Header.Add("x-fapi-customer-last-logged-time", "REPLACE_THIS_VALUE")
req.Header.Add("x-fapi-customer-ip-address", "REPLACE_THIS_VALUE")
req.Header.Add("x-fapi-interaction-id", "REPLACE_THIS_VALUE")
req.Header.Add("authorization", "Bearer REPLACE_BEARER_TOKEN")
req.Header.Add("x-customer-user-agent", "REPLACE_THIS_VALUE")
req.Header.Add("accept", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
import Foundation
let headers = [
"x-ibm-client-id": "REPLACE_THIS_KEY",
"x-ibm-client-secret": "REPLACE_THIS_KEY",
"x-fapi-financial-id": "REPLACE_THIS_VALUE",
"x-fapi-customer-last-logged-time": "REPLACE_THIS_VALUE",
"x-fapi-customer-ip-address": "REPLACE_THIS_VALUE",
"x-fapi-interaction-id": "REPLACE_THIS_VALUE",
"authorization": "Bearer REPLACE_BEARER_TOKEN",
"x-customer-user-agent": "REPLACE_THIS_VALUE",
"accept": "application/json"
]
var request = NSMutableURLRequest(URL: NSURL(string: "https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/REPLACE_CASEID/offers")!,
cachePolicy: .UseProtocolCachePolicy,
timeoutInterval: 10.0)
request.HTTPMethod = "GET"
request.allHTTPHeaderFields = headers
let session = NSURLSession.sharedSession()
let dataTask = session.dataTaskWithRequest(request, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error)
} else {
let httpResponse = response as? NSHTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
/loans/{caseId}/offers/status
Calculate and return offers based on available information
OAuth flow, it is required when the PSU needs to perform SCA with the ASPSP when a TPP wants to access an ASPSP resource owned by the PSU
The unique id of the ASPSP to which the request is issued. The unique id will be issued by OB.
The time when the PSU last logged in with the TPP. All dates in the HTTP headers are represented as RFC 7231 Full Dates. An example is below: Sun, 10 Sep 2017 19:43:31 UTC
{
"pattern": "^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), \\d{2} (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) \\d{4} \\d{2}:\\d{2}:\\d{2} (GMT|UTC)$"
}
The PSU's IP address if the PSU is currently logged in with the TPP.
An RFC4122 UID used as a correlation id.
An Authorisation Token as per https://tools.ietf.org/html/rfc6750
Indicates the user-agent that the PSU is using.
Case ID returned from the initialize loan request for this specific application.
cc309236
A successful response.
Bad Request
Unauthorized
Forbidden
Too Many Requests
Internal Server Error
curl --request GET \
--url https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/REPLACE_CASEID/offers/status \
--header 'accept: application/json' \
--header 'authorization: Bearer REPLACE_BEARER_TOKEN' \
--header 'x-customer-user-agent: REPLACE_THIS_VALUE' \
--header 'x-fapi-customer-ip-address: REPLACE_THIS_VALUE' \
--header 'x-fapi-customer-last-logged-time: REPLACE_THIS_VALUE' \
--header 'x-fapi-financial-id: REPLACE_THIS_VALUE' \
--header 'x-fapi-interaction-id: REPLACE_THIS_VALUE' \
--header 'x-ibm-client-id: REPLACE_THIS_KEY' \
--header 'x-ibm-client-secret: REPLACE_THIS_KEY'
require 'uri'
require 'openssl'
require 'net/http'
url = URI("https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/REPLACE_CASEID/offers/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_PEER
request = Net::HTTP::Get.new(url)
request["x-ibm-client-id"] = 'REPLACE_THIS_KEY'
request["x-ibm-client-secret"] = 'REPLACE_THIS_KEY'
request["x-fapi-financial-id"] = 'REPLACE_THIS_VALUE'
request["x-fapi-customer-last-logged-time"] = 'REPLACE_THIS_VALUE'
request["x-fapi-customer-ip-address"] = 'REPLACE_THIS_VALUE'
request["x-fapi-interaction-id"] = 'REPLACE_THIS_VALUE'
request["authorization"] = 'Bearer REPLACE_BEARER_TOKEN'
request["x-customer-user-agent"] = 'REPLACE_THIS_VALUE'
request["accept"] = 'application/json'
response = http.request(request)
puts response.read_body
import http.client
conn = http.client.HTTPSConnection("api.nedbank.co.za")
headers = {
'x-ibm-client-id': "REPLACE_THIS_KEY",
'x-ibm-client-secret': "REPLACE_THIS_KEY",
'x-fapi-financial-id': "REPLACE_THIS_VALUE",
'x-fapi-customer-last-logged-time': "REPLACE_THIS_VALUE",
'x-fapi-customer-ip-address': "REPLACE_THIS_VALUE",
'x-fapi-interaction-id': "REPLACE_THIS_VALUE",
'authorization': "Bearer REPLACE_BEARER_TOKEN",
'x-customer-user-agent': "REPLACE_THIS_VALUE",
'accept': "application/json"
}
conn.request("GET", "/apimarket/sandbox/nb-loans/v1/loans/REPLACE_CASEID/offers/status", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/REPLACE_CASEID/offers/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => array(
"accept: application/json",
"authorization: Bearer REPLACE_BEARER_TOKEN",
"x-customer-user-agent: REPLACE_THIS_VALUE",
"x-fapi-customer-ip-address: REPLACE_THIS_VALUE",
"x-fapi-customer-last-logged-time: REPLACE_THIS_VALUE",
"x-fapi-financial-id: REPLACE_THIS_VALUE",
"x-fapi-interaction-id: REPLACE_THIS_VALUE",
"x-ibm-client-id: REPLACE_THIS_KEY",
"x-ibm-client-secret: REPLACE_THIS_KEY"
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
// OkHttpClient from http://square.github.io/okhttp/
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/REPLACE_CASEID/offers/status")
.get()
.addHeader("x-ibm-client-id", "REPLACE_THIS_KEY")
.addHeader("x-ibm-client-secret", "REPLACE_THIS_KEY")
.addHeader("x-fapi-financial-id", "REPLACE_THIS_VALUE")
.addHeader("x-fapi-customer-last-logged-time", "REPLACE_THIS_VALUE")
.addHeader("x-fapi-customer-ip-address", "REPLACE_THIS_VALUE")
.addHeader("x-fapi-interaction-id", "REPLACE_THIS_VALUE")
.addHeader("authorization", "Bearer REPLACE_BEARER_TOKEN")
.addHeader("x-customer-user-agent", "REPLACE_THIS_VALUE")
.addHeader("accept", "application/json")
.build();
Response response = client.newCall(request).execute();
// Install request by running "npm install --save request"
var request = require("request");
var options = { method: 'GET',
url: 'https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/REPLACE_CASEID/offers/status',
headers:
{ accept: 'application/json',
'x-customer-user-agent': 'REPLACE_THIS_VALUE',
authorization: 'Bearer REPLACE_BEARER_TOKEN',
'x-fapi-interaction-id': 'REPLACE_THIS_VALUE',
'x-fapi-customer-ip-address': 'REPLACE_THIS_VALUE',
'x-fapi-customer-last-logged-time': 'REPLACE_THIS_VALUE',
'x-fapi-financial-id': 'REPLACE_THIS_VALUE',
'x-ibm-client-secret': 'REPLACE_THIS_KEY',
'x-ibm-client-id': 'REPLACE_THIS_KEY' } };
request(options, function (error, response, body) {
if (error) return console.error('Failed: %s', error.message);
console.log('Success: ', body);
});
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/REPLACE_CASEID/offers/status"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-ibm-client-id", "REPLACE_THIS_KEY")
req.Header.Add("x-ibm-client-secret", "REPLACE_THIS_KEY")
req.Header.Add("x-fapi-financial-id", "REPLACE_THIS_VALUE")
req.Header.Add("x-fapi-customer-last-logged-time", "REPLACE_THIS_VALUE")
req.Header.Add("x-fapi-customer-ip-address", "REPLACE_THIS_VALUE")
req.Header.Add("x-fapi-interaction-id", "REPLACE_THIS_VALUE")
req.Header.Add("authorization", "Bearer REPLACE_BEARER_TOKEN")
req.Header.Add("x-customer-user-agent", "REPLACE_THIS_VALUE")
req.Header.Add("accept", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
import Foundation
let headers = [
"x-ibm-client-id": "REPLACE_THIS_KEY",
"x-ibm-client-secret": "REPLACE_THIS_KEY",
"x-fapi-financial-id": "REPLACE_THIS_VALUE",
"x-fapi-customer-last-logged-time": "REPLACE_THIS_VALUE",
"x-fapi-customer-ip-address": "REPLACE_THIS_VALUE",
"x-fapi-interaction-id": "REPLACE_THIS_VALUE",
"authorization": "Bearer REPLACE_BEARER_TOKEN",
"x-customer-user-agent": "REPLACE_THIS_VALUE",
"accept": "application/json"
]
var request = NSMutableURLRequest(URL: NSURL(string: "https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/REPLACE_CASEID/offers/status")!,
cachePolicy: .UseProtocolCachePolicy,
timeoutInterval: 10.0)
request.HTTPMethod = "GET"
request.allHTTPHeaderFields = headers
let session = NSURLSession.sharedSession()
let dataTask = session.dataTaskWithRequest(request, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error)
} else {
let httpResponse = response as? NSHTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
{
"Data": {
"Status": "DATA_REQUIRED",
"Finances": {
"Income": 19291035,
"Expenses": 58595950,
"DebtObligationTotal": 35071218
},
"Offers": [
{
"RequestedLoanAmount": 60622581,
"OriginallyRequestedLoanAmount": 32565158,
"LoanPurposeType": 27939589,
"IsAppealAllowed": false,
"IsChangeAllowed": true,
"Repayment": {
"Currency": "KYD",
"CreditCostMultiple": 82.13,
"MinAmount": 18.64813547,
"MaxAmount": 99.54803028,
"Amount": 29.09171418,
"TotalFeeAndCreditCost": 59.22,
"CreditAdvanced": 28.69178119,
"Frequency": "tobhedcib",
"TotalRepayment": 26.65117748,
"BaseInstallmentAmount": 58.96687268,
"TotalInstallmentAmount": 46.55773055,
"TotalPaymentToLenders": 88.14374111
},
"Interest": {
"Rate": 40.91158959,
"Type": "gisoz",
"FriendlyDescript
{
"Data": {
"Status": "DATA_REQUIRED",
"Finances": {
"Income": 19291035,
"Expenses": 58595950,
"DebtObligationTotal": 35071218
},
"Offers": [
{
"RequestedLoanAmount": 60622581,
"OriginallyRequestedLoanAmount": 32565158,
"LoanPurposeType": 27939589,
"IsAppealAllowed": false,
"IsChangeAllowed": true,
"Repayment": {
"Currency": "KYD",
"CreditCostMultiple": 82.13,
"MinAmount": 18.64813547,
"MaxAmount": 99.54803028,
"Amount": 29.09171418,
"TotalFeeAndCreditCost": 59.22,
"CreditAdvanced": 28.69178119,
"Frequency": "tobhedcib",
"TotalRepayment": 26.65117748,
"BaseInstallmentAmount": 58.96687268,
"TotalInstallmentAmount": 46.55773055,
"TotalPaymentToLenders": 88.14374111
},
"Interest": {
"Rate": 40.91158959,
"Type": "gisoz",
"FriendlyDescription": "Mid lemla bip wuc iz wi kectew he biesunu wo nepap cunnohama owe vejis jicric.",
"IsStaffPreferentialRate": false,
"DecimalRate": 4.81939064
},
"Pricing": {
"Fee": [
{
"Currency": "GHS",
"Amount": 90.12068587,
"Type": "nurgewarcuruslun",
"Frequency": "noisw",
"Description": "Vo tec gohefic goej ev kehefed ovesojsen rew ew ofiuji dekaz namta vede iz ho dapuv hupawvu."
}
]
},
"CrossSellDetails": {
"Optionality": "hahw",
"AcceptanceStatus": "5610111059275061"
},
"Insurance": {
"MonthlyInsurancePremium": 1.09880473,
"InsuranceCommission": 91.71181727,
"CostOfInsurance": 67.23,
"CreditCostMultiple": 12.07,
"InsuranceFlatFee": 72.92965984
}
}
],
"Items": [
"DEMOGRAPHIC"
],
"EvidenceRequest": [
{
"Id": "214867359301632",
"FullText": "kivasn"
}
]
}
}
x
/loans/{caseId}/recalculate-offer
Recalculate an offer based on updated information
OAuth flow, it is required when the PSU needs to perform SCA with the ASPSP when a TPP wants to access an ASPSP resource owned by the PSU
The unique id of the ASPSP to which the request is issued. The unique id will be issued by OB.
The time when the PSU last logged in with the TPP. All dates in the HTTP headers are represented as RFC 7231 Full Dates. An example is below: Sun, 10 Sep 2017 19:43:31 UTC
{
"pattern": "^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), \\d{2} (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) \\d{4} \\d{2}:\\d{2}:\\d{2} (GMT|UTC)$"
}
The PSU's IP address if the PSU is currently logged in with the TPP.
An RFC4122 UID used as a correlation id.
An Authorisation Token as per https://tools.ietf.org/html/rfc6750
Indicates the user-agent that the PSU is using.
Case ID returned from the initialize loan request for this specific application.
cc309236
A successful response.
Bad Request
Unauthorized
Forbidden
Too Many Requests
Internal Server Error
curl --request PUT \
--url https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/REPLACE_CASEID/recalculate-offer \
--header 'accept: application/json' \
--header 'authorization: Bearer REPLACE_BEARER_TOKEN' \
--header 'content-type: application/json' \
--header 'x-customer-user-agent: REPLACE_THIS_VALUE' \
--header 'x-fapi-customer-ip-address: REPLACE_THIS_VALUE' \
--header 'x-fapi-customer-last-logged-time: REPLACE_THIS_VALUE' \
--header 'x-fapi-financial-id: REPLACE_THIS_VALUE' \
--header 'x-fapi-interaction-id: REPLACE_THIS_VALUE' \
--header 'x-ibm-client-id: REPLACE_THIS_KEY' \
--header 'x-ibm-client-secret: REPLACE_THIS_KEY' \
--data '{"Data":{"LoanDetails":{"Amount":62373039,"Term":59182763}}}'
require 'uri'
require 'openssl'
require 'net/http'
url = URI("https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/REPLACE_CASEID/recalculate-offer")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_PEER
request = Net::HTTP::Put.new(url)
request["x-ibm-client-id"] = 'REPLACE_THIS_KEY'
request["x-ibm-client-secret"] = 'REPLACE_THIS_KEY'
request["x-fapi-financial-id"] = 'REPLACE_THIS_VALUE'
request["x-fapi-customer-last-logged-time"] = 'REPLACE_THIS_VALUE'
request["x-fapi-customer-ip-address"] = 'REPLACE_THIS_VALUE'
request["x-fapi-interaction-id"] = 'REPLACE_THIS_VALUE'
request["authorization"] = 'Bearer REPLACE_BEARER_TOKEN'
request["x-customer-user-agent"] = 'REPLACE_THIS_VALUE'
request["content-type"] = 'application/json'
request["accept"] = 'application/json'
request.body = "{\"Data\":{\"LoanDetails\":{\"Amount\":62373039,\"Term\":59182763}}}"
response = http.request(request)
puts response.read_body
import http.client
conn = http.client.HTTPSConnection("api.nedbank.co.za")
payload = "{\"Data\":{\"LoanDetails\":{\"Amount\":62373039,\"Term\":59182763}}}"
headers = {
'x-ibm-client-id': "REPLACE_THIS_KEY",
'x-ibm-client-secret': "REPLACE_THIS_KEY",
'x-fapi-financial-id': "REPLACE_THIS_VALUE",
'x-fapi-customer-last-logged-time': "REPLACE_THIS_VALUE",
'x-fapi-customer-ip-address': "REPLACE_THIS_VALUE",
'x-fapi-interaction-id': "REPLACE_THIS_VALUE",
'authorization': "Bearer REPLACE_BEARER_TOKEN",
'x-customer-user-agent': "REPLACE_THIS_VALUE",
'content-type': "application/json",
'accept': "application/json"
}
conn.request("PUT", "/apimarket/sandbox/nb-loans/v1/loans/REPLACE_CASEID/recalculate-offer", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/REPLACE_CASEID/recalculate-offer",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => "{\"Data\":{\"LoanDetails\":{\"Amount\":62373039,\"Term\":59182763}}}",
CURLOPT_HTTPHEADER => array(
"accept: application/json",
"authorization: Bearer REPLACE_BEARER_TOKEN",
"content-type: application/json",
"x-customer-user-agent: REPLACE_THIS_VALUE",
"x-fapi-customer-ip-address: REPLACE_THIS_VALUE",
"x-fapi-customer-last-logged-time: REPLACE_THIS_VALUE",
"x-fapi-financial-id: REPLACE_THIS_VALUE",
"x-fapi-interaction-id: REPLACE_THIS_VALUE",
"x-ibm-client-id: REPLACE_THIS_KEY",
"x-ibm-client-secret: REPLACE_THIS_KEY"
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
// OkHttpClient from http://square.github.io/okhttp/
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"Data\":{\"LoanDetails\":{\"Amount\":62373039,\"Term\":59182763}}}");
Request request = new Request.Builder()
.url("https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/REPLACE_CASEID/recalculate-offer")
.put(body)
.addHeader("x-ibm-client-id", "REPLACE_THIS_KEY")
.addHeader("x-ibm-client-secret", "REPLACE_THIS_KEY")
.addHeader("x-fapi-financial-id", "REPLACE_THIS_VALUE")
.addHeader("x-fapi-customer-last-logged-time", "REPLACE_THIS_VALUE")
.addHeader("x-fapi-customer-ip-address", "REPLACE_THIS_VALUE")
.addHeader("x-fapi-interaction-id", "REPLACE_THIS_VALUE")
.addHeader("authorization", "Bearer REPLACE_BEARER_TOKEN")
.addHeader("x-customer-user-agent", "REPLACE_THIS_VALUE")
.addHeader("content-type", "application/json")
.addHeader("accept", "application/json")
.build();
Response response = client.newCall(request).execute();
// Install request by running "npm install --save request"
var request = require("request");
var options = { method: 'PUT',
url: 'https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/REPLACE_CASEID/recalculate-offer',
headers:
{ accept: 'application/json',
'content-type': 'application/json',
'x-customer-user-agent': 'REPLACE_THIS_VALUE',
authorization: 'Bearer REPLACE_BEARER_TOKEN',
'x-fapi-interaction-id': 'REPLACE_THIS_VALUE',
'x-fapi-customer-ip-address': 'REPLACE_THIS_VALUE',
'x-fapi-customer-last-logged-time': 'REPLACE_THIS_VALUE',
'x-fapi-financial-id': 'REPLACE_THIS_VALUE',
'x-ibm-client-secret': 'REPLACE_THIS_KEY',
'x-ibm-client-id': 'REPLACE_THIS_KEY' },
body: { Data: { LoanDetails: { Amount: 62373039, Term: 59182763 } } },
json: true };
request(options, function (error, response, body) {
if (error) return console.error('Failed: %s', error.message);
console.log('Success: ', body);
});
package main
import (
"fmt"
"strings"
"net/http"
"io/ioutil"
)
func main() {
url := "https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/REPLACE_CASEID/recalculate-offer"
payload := strings.NewReader("{\"Data\":{\"LoanDetails\":{\"Amount\":62373039,\"Term\":59182763}}}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("x-ibm-client-id", "REPLACE_THIS_KEY")
req.Header.Add("x-ibm-client-secret", "REPLACE_THIS_KEY")
req.Header.Add("x-fapi-financial-id", "REPLACE_THIS_VALUE")
req.Header.Add("x-fapi-customer-last-logged-time", "REPLACE_THIS_VALUE")
req.Header.Add("x-fapi-customer-ip-address", "REPLACE_THIS_VALUE")
req.Header.Add("x-fapi-interaction-id", "REPLACE_THIS_VALUE")
req.Header.Add("authorization", "Bearer REPLACE_BEARER_TOKEN")
req.Header.Add("x-customer-user-agent", "REPLACE_THIS_VALUE")
req.Header.Add("content-type", "application/json")
req.Header.Add("accept", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
import Foundation
let headers = [
"x-ibm-client-id": "REPLACE_THIS_KEY",
"x-ibm-client-secret": "REPLACE_THIS_KEY",
"x-fapi-financial-id": "REPLACE_THIS_VALUE",
"x-fapi-customer-last-logged-time": "REPLACE_THIS_VALUE",
"x-fapi-customer-ip-address": "REPLACE_THIS_VALUE",
"x-fapi-interaction-id": "REPLACE_THIS_VALUE",
"authorization": "Bearer REPLACE_BEARER_TOKEN",
"x-customer-user-agent": "REPLACE_THIS_VALUE",
"content-type": "application/json",
"accept": "application/json"
]
let parameters = ["Data": ["LoanDetails": [
"Amount": 62373039,
"Term": 59182763
]]]
let postData = NSJSONSerialization.dataWithJSONObject(parameters, options: nil, error: nil)
var request = NSMutableURLRequest(URL: NSURL(string: "https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/REPLACE_CASEID/recalculate-offer")!,
cachePolicy: .UseProtocolCachePolicy,
timeoutInterval: 10.0)
request.HTTPMethod = "PUT"
request.allHTTPHeaderFields = headers
request.HTTPBody = postData
let session = NSURLSession.sharedSession()
let dataTask = session.dataTaskWithRequest(request, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error)
} else {
let httpResponse = response as? NSHTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
{
"Data": {
"Status": "LOAN_CALCULATED",
"Offer": {
"RequestedLoanAmount": 20683629,
"OriginallyRequestedLoanAmount": 76371971,
"LoanPurposeType": 52123201,
"IsAppealAllowed": false,
"IsChangeAllowed": true,
"Repayment": {
"Currency": "FJD",
"CreditCostMultiple": 91.33,
"MinAmount": 16.88041512,
"MaxAmount": 72.54933622,
"Amount": 20.87278503,
"TotalFeeAndCreditCost": 70.18,
"CreditAdvanced": 3.27420018,
"Frequency": "ejese",
"TotalRepayment": 68.16050925,
"BaseInstallmentAmount": 69.0635531,
"TotalInstallmentAmount": 72.34321973,
"TotalPaymentToLenders": 91.29472482
},
"Interest": {
"Rate": 41.95239625,
"Type": "perrowanurehkez",
"FriendlyDescription": "Posse led zi pit ubaku wunusmo iweifalu wu val ca ohu dana jir.",
"IsStaffPreferentialRate": true,
"DecimalRate": 40.74275014
},
"P
{
"Data": {
"Status": "LOAN_CALCULATED",
"Offer": {
"RequestedLoanAmount": 20683629,
"OriginallyRequestedLoanAmount": 76371971,
"LoanPurposeType": 52123201,
"IsAppealAllowed": false,
"IsChangeAllowed": true,
"Repayment": {
"Currency": "FJD",
"CreditCostMultiple": 91.33,
"MinAmount": 16.88041512,
"MaxAmount": 72.54933622,
"Amount": 20.87278503,
"TotalFeeAndCreditCost": 70.18,
"CreditAdvanced": 3.27420018,
"Frequency": "ejese",
"TotalRepayment": 68.16050925,
"BaseInstallmentAmount": 69.0635531,
"TotalInstallmentAmount": 72.34321973,
"TotalPaymentToLenders": 91.29472482
},
"Interest": {
"Rate": 41.95239625,
"Type": "perrowanurehkez",
"FriendlyDescription": "Posse led zi pit ubaku wunusmo iweifalu wu val ca ohu dana jir.",
"IsStaffPreferentialRate": true,
"DecimalRate": 40.74275014
},
"Pricing": {
"Fee": [
{
"Currency": "GHS",
"Amount": 67.20625763,
"Type": "barunnumehipew",
"Frequency": "vunlab",
"Description": "Apavej mew omibiv pefjuh cojipbi releso cecavo ju ahnolas pipgecjin gapah ru dadfuuji jimuw iha di dukehoze."
}
]
},
"CrossSellDetails": {
"Optionality": "vubemjaijauste",
"AcceptanceStatus": "6255004351139986"
},
"Insurance": {
"MonthlyInsurancePremium": 45.25592613,
"InsuranceCommission": 5.65054484,
"CostOfInsurance": 74.99,
"CreditCostMultiple": 23.94,
"InsuranceFlatFee": 15.59785457
}
}
}
}
x
/cancel-loan
Cancel the loan application
OAuth flow, it is required when the PSU needs to perform SCA with the ASPSP when a TPP wants to access an ASPSP resource owned by the PSU
The unique id of the ASPSP to which the request is issued. The unique id will be issued by OB.
The time when the PSU last logged in with the TPP. All dates in the HTTP headers are represented as RFC 7231 Full Dates. An example is below: Sun, 10 Sep 2017 19:43:31 UTC
{
"pattern": "^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), \\d{2} (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) \\d{4} \\d{2}:\\d{2}:\\d{2} (GMT|UTC)$"
}
The PSU's IP address if the PSU is currently logged in with the TPP.
An RFC4122 UID used as a correlation id.
An Authorisation Token as per https://tools.ietf.org/html/rfc6750
Indicates the user-agent that the PSU is using.
cc309236
A successful response.
Bad Request
Unauthorized
Forbidden
Too Many Requests
Internal Server Error
curl --request POST \
--url https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/cancel-loan \
--header 'accept: application/json' \
--header 'authorization: Bearer REPLACE_BEARER_TOKEN' \
--header 'content-type: application/json' \
--header 'x-customer-user-agent: REPLACE_THIS_VALUE' \
--header 'x-fapi-customer-ip-address: REPLACE_THIS_VALUE' \
--header 'x-fapi-customer-last-logged-time: REPLACE_THIS_VALUE' \
--header 'x-fapi-financial-id: REPLACE_THIS_VALUE' \
--header 'x-fapi-interaction-id: REPLACE_THIS_VALUE' \
--header 'x-ibm-client-id: REPLACE_THIS_KEY' \
--header 'x-ibm-client-secret: REPLACE_THIS_KEY' \
--data '{"Data":{"CaseId":"1190252911788032","Reason":"orotubhozsisira"}}'
require 'uri'
require 'openssl'
require 'net/http'
url = URI("https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/cancel-loan")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_PEER
request = Net::HTTP::Post.new(url)
request["x-ibm-client-id"] = 'REPLACE_THIS_KEY'
request["x-ibm-client-secret"] = 'REPLACE_THIS_KEY'
request["x-fapi-financial-id"] = 'REPLACE_THIS_VALUE'
request["x-fapi-customer-last-logged-time"] = 'REPLACE_THIS_VALUE'
request["x-fapi-customer-ip-address"] = 'REPLACE_THIS_VALUE'
request["x-fapi-interaction-id"] = 'REPLACE_THIS_VALUE'
request["authorization"] = 'Bearer REPLACE_BEARER_TOKEN'
request["x-customer-user-agent"] = 'REPLACE_THIS_VALUE'
request["content-type"] = 'application/json'
request["accept"] = 'application/json'
request.body = "{\"Data\":{\"CaseId\":\"1190252911788032\",\"Reason\":\"orotubhozsisira\"}}"
response = http.request(request)
puts response.read_body
import http.client
conn = http.client.HTTPSConnection("api.nedbank.co.za")
payload = "{\"Data\":{\"CaseId\":\"1190252911788032\",\"Reason\":\"orotubhozsisira\"}}"
headers = {
'x-ibm-client-id': "REPLACE_THIS_KEY",
'x-ibm-client-secret': "REPLACE_THIS_KEY",
'x-fapi-financial-id': "REPLACE_THIS_VALUE",
'x-fapi-customer-last-logged-time': "REPLACE_THIS_VALUE",
'x-fapi-customer-ip-address': "REPLACE_THIS_VALUE",
'x-fapi-interaction-id': "REPLACE_THIS_VALUE",
'authorization': "Bearer REPLACE_BEARER_TOKEN",
'x-customer-user-agent': "REPLACE_THIS_VALUE",
'content-type': "application/json",
'accept': "application/json"
}
conn.request("POST", "/apimarket/sandbox/nb-loans/v1/cancel-loan", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/cancel-loan",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "{\"Data\":{\"CaseId\":\"1190252911788032\",\"Reason\":\"orotubhozsisira\"}}",
CURLOPT_HTTPHEADER => array(
"accept: application/json",
"authorization: Bearer REPLACE_BEARER_TOKEN",
"content-type: application/json",
"x-customer-user-agent: REPLACE_THIS_VALUE",
"x-fapi-customer-ip-address: REPLACE_THIS_VALUE",
"x-fapi-customer-last-logged-time: REPLACE_THIS_VALUE",
"x-fapi-financial-id: REPLACE_THIS_VALUE",
"x-fapi-interaction-id: REPLACE_THIS_VALUE",
"x-ibm-client-id: REPLACE_THIS_KEY",
"x-ibm-client-secret: REPLACE_THIS_KEY"
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
// OkHttpClient from http://square.github.io/okhttp/
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"Data\":{\"CaseId\":\"1190252911788032\",\"Reason\":\"orotubhozsisira\"}}");
Request request = new Request.Builder()
.url("https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/cancel-loan")
.post(body)
.addHeader("x-ibm-client-id", "REPLACE_THIS_KEY")
.addHeader("x-ibm-client-secret", "REPLACE_THIS_KEY")
.addHeader("x-fapi-financial-id", "REPLACE_THIS_VALUE")
.addHeader("x-fapi-customer-last-logged-time", "REPLACE_THIS_VALUE")
.addHeader("x-fapi-customer-ip-address", "REPLACE_THIS_VALUE")
.addHeader("x-fapi-interaction-id", "REPLACE_THIS_VALUE")
.addHeader("authorization", "Bearer REPLACE_BEARER_TOKEN")
.addHeader("x-customer-user-agent", "REPLACE_THIS_VALUE")
.addHeader("content-type", "application/json")
.addHeader("accept", "application/json")
.build();
Response response = client.newCall(request).execute();
// Install request by running "npm install --save request"
var request = require("request");
var options = { method: 'POST',
url: 'https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/cancel-loan',
headers:
{ accept: 'application/json',
'content-type': 'application/json',
'x-customer-user-agent': 'REPLACE_THIS_VALUE',
authorization: 'Bearer REPLACE_BEARER_TOKEN',
'x-fapi-interaction-id': 'REPLACE_THIS_VALUE',
'x-fapi-customer-ip-address': 'REPLACE_THIS_VALUE',
'x-fapi-customer-last-logged-time': 'REPLACE_THIS_VALUE',
'x-fapi-financial-id': 'REPLACE_THIS_VALUE',
'x-ibm-client-secret': 'REPLACE_THIS_KEY',
'x-ibm-client-id': 'REPLACE_THIS_KEY' },
body: { Data: { CaseId: '1190252911788032', Reason: 'orotubhozsisira' } },
json: true };
request(options, function (error, response, body) {
if (error) return console.error('Failed: %s', error.message);
console.log('Success: ', body);
});
package main
import (
"fmt"
"strings"
"net/http"
"io/ioutil"
)
func main() {
url := "https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/cancel-loan"
payload := strings.NewReader("{\"Data\":{\"CaseId\":\"1190252911788032\",\"Reason\":\"orotubhozsisira\"}}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-ibm-client-id", "REPLACE_THIS_KEY")
req.Header.Add("x-ibm-client-secret", "REPLACE_THIS_KEY")
req.Header.Add("x-fapi-financial-id", "REPLACE_THIS_VALUE")
req.Header.Add("x-fapi-customer-last-logged-time", "REPLACE_THIS_VALUE")
req.Header.Add("x-fapi-customer-ip-address", "REPLACE_THIS_VALUE")
req.Header.Add("x-fapi-interaction-id", "REPLACE_THIS_VALUE")
req.Header.Add("authorization", "Bearer REPLACE_BEARER_TOKEN")
req.Header.Add("x-customer-user-agent", "REPLACE_THIS_VALUE")
req.Header.Add("content-type", "application/json")
req.Header.Add("accept", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
import Foundation
let headers = [
"x-ibm-client-id": "REPLACE_THIS_KEY",
"x-ibm-client-secret": "REPLACE_THIS_KEY",
"x-fapi-financial-id": "REPLACE_THIS_VALUE",
"x-fapi-customer-last-logged-time": "REPLACE_THIS_VALUE",
"x-fapi-customer-ip-address": "REPLACE_THIS_VALUE",
"x-fapi-interaction-id": "REPLACE_THIS_VALUE",
"authorization": "Bearer REPLACE_BEARER_TOKEN",
"x-customer-user-agent": "REPLACE_THIS_VALUE",
"content-type": "application/json",
"accept": "application/json"
]
let parameters = ["Data": [
"CaseId": "1190252911788032",
"Reason": "orotubhozsisira"
]]
let postData = NSJSONSerialization.dataWithJSONObject(parameters, options: nil, error: nil)
var request = NSMutableURLRequest(URL: NSURL(string: "https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/cancel-loan")!,
cachePolicy: .UseProtocolCachePolicy,
timeoutInterval: 10.0)
request.HTTPMethod = "POST"
request.allHTTPHeaderFields = headers
request.HTTPBody = postData
let session = NSURLSession.sharedSession()
let dataTask = session.dataTaskWithRequest(request, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error)
} else {
let httpResponse = response as? NSHTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
/refund-loan
Refund the provisioned loan
TPP client credential authorisation flow with the ASPSP
The unique id of the ASPSP to which the request is issued. The unique id will be issued by OB.
The time when the PSU last logged in with the TPP. All dates in the HTTP headers are represented as RFC 7231 Full Dates. An example is below: Sun, 10 Sep 2017 19:43:31 UTC
{
"pattern": "^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), \\d{2} (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) \\d{4} \\d{2}:\\d{2}:\\d{2} (GMT|UTC)$"
}
The PSU's IP address if the PSU is currently logged in with the TPP.
An RFC4122 UID used as a correlation id.
An Authorisation Token as per https://tools.ietf.org/html/rfc6750
Indicates the user-agent that the PSU is using.
cc309236
A successful response.
Bad Request
Unauthorized
Forbidden
Too Many Requests
Internal Server Error
curl --request POST \
--url https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/refund-loan \
--header 'accept: application/json' \
--header 'authorization: Bearer REPLACE_BEARER_TOKEN' \
--header 'content-type: application/json' \
--header 'x-customer-user-agent: REPLACE_THIS_VALUE' \
--header 'x-fapi-customer-ip-address: REPLACE_THIS_VALUE' \
--header 'x-fapi-customer-last-logged-time: REPLACE_THIS_VALUE' \
--header 'x-fapi-financial-id: REPLACE_THIS_VALUE' \
--header 'x-fapi-interaction-id: REPLACE_THIS_VALUE' \
--header 'x-ibm-client-id: REPLACE_THIS_KEY' \
--header 'x-ibm-client-secret: REPLACE_THIS_KEY' \
--data '{"Data":{"CaseId":"5072170461954048","OriginalAmount":12.16905391,"AmountToRefund":82.11099941,"DateTimeLoanProvisioned":"12/10/2104","Reason":"vacakzautw"}}'
require 'uri'
require 'openssl'
require 'net/http'
url = URI("https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/refund-loan")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_PEER
request = Net::HTTP::Post.new(url)
request["x-ibm-client-id"] = 'REPLACE_THIS_KEY'
request["x-ibm-client-secret"] = 'REPLACE_THIS_KEY'
request["x-fapi-financial-id"] = 'REPLACE_THIS_VALUE'
request["x-fapi-customer-last-logged-time"] = 'REPLACE_THIS_VALUE'
request["x-fapi-customer-ip-address"] = 'REPLACE_THIS_VALUE'
request["x-fapi-interaction-id"] = 'REPLACE_THIS_VALUE'
request["authorization"] = 'Bearer REPLACE_BEARER_TOKEN'
request["x-customer-user-agent"] = 'REPLACE_THIS_VALUE'
request["content-type"] = 'application/json'
request["accept"] = 'application/json'
request.body = "{\"Data\":{\"CaseId\":\"5072170461954048\",\"OriginalAmount\":12.16905391,\"AmountToRefund\":82.11099941,\"DateTimeLoanProvisioned\":\"12/10/2104\",\"Reason\":\"vacakzautw\"}}"
response = http.request(request)
puts response.read_body
import http.client
conn = http.client.HTTPSConnection("api.nedbank.co.za")
payload = "{\"Data\":{\"CaseId\":\"5072170461954048\",\"OriginalAmount\":12.16905391,\"AmountToRefund\":82.11099941,\"DateTimeLoanProvisioned\":\"12/10/2104\",\"Reason\":\"vacakzautw\"}}"
headers = {
'x-ibm-client-id': "REPLACE_THIS_KEY",
'x-ibm-client-secret': "REPLACE_THIS_KEY",
'x-fapi-financial-id': "REPLACE_THIS_VALUE",
'x-fapi-customer-last-logged-time': "REPLACE_THIS_VALUE",
'x-fapi-customer-ip-address': "REPLACE_THIS_VALUE",
'x-fapi-interaction-id': "REPLACE_THIS_VALUE",
'authorization': "Bearer REPLACE_BEARER_TOKEN",
'x-customer-user-agent': "REPLACE_THIS_VALUE",
'content-type': "application/json",
'accept': "application/json"
}
conn.request("POST", "/apimarket/sandbox/nb-loans/v1/refund-loan", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/refund-loan",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "{\"Data\":{\"CaseId\":\"5072170461954048\",\"OriginalAmount\":12.16905391,\"AmountToRefund\":82.11099941,\"DateTimeLoanProvisioned\":\"12/10/2104\",\"Reason\":\"vacakzautw\"}}",
CURLOPT_HTTPHEADER => array(
"accept: application/json",
"authorization: Bearer REPLACE_BEARER_TOKEN",
"content-type: application/json",
"x-customer-user-agent: REPLACE_THIS_VALUE",
"x-fapi-customer-ip-address: REPLACE_THIS_VALUE",
"x-fapi-customer-last-logged-time: REPLACE_THIS_VALUE",
"x-fapi-financial-id: REPLACE_THIS_VALUE",
"x-fapi-interaction-id: REPLACE_THIS_VALUE",
"x-ibm-client-id: REPLACE_THIS_KEY",
"x-ibm-client-secret: REPLACE_THIS_KEY"
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
// OkHttpClient from http://square.github.io/okhttp/
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"Data\":{\"CaseId\":\"5072170461954048\",\"OriginalAmount\":12.16905391,\"AmountToRefund\":82.11099941,\"DateTimeLoanProvisioned\":\"12/10/2104\",\"Reason\":\"vacakzautw\"}}");
Request request = new Request.Builder()
.url("https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/refund-loan")
.post(body)
.addHeader("x-ibm-client-id", "REPLACE_THIS_KEY")
.addHeader("x-ibm-client-secret", "REPLACE_THIS_KEY")
.addHeader("x-fapi-financial-id", "REPLACE_THIS_VALUE")
.addHeader("x-fapi-customer-last-logged-time", "REPLACE_THIS_VALUE")
.addHeader("x-fapi-customer-ip-address", "REPLACE_THIS_VALUE")
.addHeader("x-fapi-interaction-id", "REPLACE_THIS_VALUE")
.addHeader("authorization", "Bearer REPLACE_BEARER_TOKEN")
.addHeader("x-customer-user-agent", "REPLACE_THIS_VALUE")
.addHeader("content-type", "application/json")
.addHeader("accept", "application/json")
.build();
Response response = client.newCall(request).execute();
// Install request by running "npm install --save request"
var request = require("request");
var options = { method: 'POST',
url: 'https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/refund-loan',
headers:
{ accept: 'application/json',
'content-type': 'application/json',
'x-customer-user-agent': 'REPLACE_THIS_VALUE',
authorization: 'Bearer REPLACE_BEARER_TOKEN',
'x-fapi-interaction-id': 'REPLACE_THIS_VALUE',
'x-fapi-customer-ip-address': 'REPLACE_THIS_VALUE',
'x-fapi-customer-last-logged-time': 'REPLACE_THIS_VALUE',
'x-fapi-financial-id': 'REPLACE_THIS_VALUE',
'x-ibm-client-secret': 'REPLACE_THIS_KEY',
'x-ibm-client-id': 'REPLACE_THIS_KEY' },
body:
{ Data:
{ CaseId: '5072170461954048',
OriginalAmount: 12.16905391,
AmountToRefund: 82.11099941,
DateTimeLoanProvisioned: '12/10/2104',
Reason: 'vacakzautw' } },
json: true };
request(options, function (error, response, body) {
if (error) return console.error('Failed: %s', error.message);
console.log('Success: ', body);
});
package main
import (
"fmt"
"strings"
"net/http"
"io/ioutil"
)
func main() {
url := "https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/refund-loan"
payload := strings.NewReader("{\"Data\":{\"CaseId\":\"5072170461954048\",\"OriginalAmount\":12.16905391,\"AmountToRefund\":82.11099941,\"DateTimeLoanProvisioned\":\"12/10/2104\",\"Reason\":\"vacakzautw\"}}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-ibm-client-id", "REPLACE_THIS_KEY")
req.Header.Add("x-ibm-client-secret", "REPLACE_THIS_KEY")
req.Header.Add("x-fapi-financial-id", "REPLACE_THIS_VALUE")
req.Header.Add("x-fapi-customer-last-logged-time", "REPLACE_THIS_VALUE")
req.Header.Add("x-fapi-customer-ip-address", "REPLACE_THIS_VALUE")
req.Header.Add("x-fapi-interaction-id", "REPLACE_THIS_VALUE")
req.Header.Add("authorization", "Bearer REPLACE_BEARER_TOKEN")
req.Header.Add("x-customer-user-agent", "REPLACE_THIS_VALUE")
req.Header.Add("content-type", "application/json")
req.Header.Add("accept", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
import Foundation
let headers = [
"x-ibm-client-id": "REPLACE_THIS_KEY",
"x-ibm-client-secret": "REPLACE_THIS_KEY",
"x-fapi-financial-id": "REPLACE_THIS_VALUE",
"x-fapi-customer-last-logged-time": "REPLACE_THIS_VALUE",
"x-fapi-customer-ip-address": "REPLACE_THIS_VALUE",
"x-fapi-interaction-id": "REPLACE_THIS_VALUE",
"authorization": "Bearer REPLACE_BEARER_TOKEN",
"x-customer-user-agent": "REPLACE_THIS_VALUE",
"content-type": "application/json",
"accept": "application/json"
]
let parameters = ["Data": [
"CaseId": "5072170461954048",
"OriginalAmount": 12.16905391,
"AmountToRefund": 82.11099941,
"DateTimeLoanProvisioned": "12/10/2104",
"Reason": "vacakzautw"
]]
let postData = NSJSONSerialization.dataWithJSONObject(parameters, options: nil, error: nil)
var request = NSMutableURLRequest(URL: NSURL(string: "https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/refund-loan")!,
cachePolicy: .UseProtocolCachePolicy,
timeoutInterval: 10.0)
request.HTTPMethod = "POST"
request.allHTTPHeaderFields = headers
request.HTTPBody = postData
let session = NSURLSession.sharedSession()
let dataTask = session.dataTaskWithRequest(request, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error)
} else {
let httpResponse = response as? NSHTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
/loans/{caseId}/status
Return the status of the requested loan
TPP client credential authorisation flow with the ASPSP
The unique id of the ASPSP to which the request is issued. The unique id will be issued by OB.
The time when the PSU last logged in with the TPP. All dates in the HTTP headers are represented as RFC 7231 Full Dates. An example is below: Sun, 10 Sep 2017 19:43:31 UTC
{
"pattern": "^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), \\d{2} (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) \\d{4} \\d{2}:\\d{2}:\\d{2} (GMT|UTC)$"
}
The PSU's IP address if the PSU is currently logged in with the TPP.
An RFC4122 UID used as a correlation id.
Indicates the user-agent that the PSU is using.
Case ID returned from the initialize loan request for this specific application.
cc309236
A successful response.
Bad Request
Unauthorized
Forbidden
Too Many Requests
Internal Server Error
curl --request GET \
--url https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/REPLACE_CASEID/status \
--header 'accept: application/json' \
--header 'authorization: Bearer REPLACE_BEARER_TOKEN' \
--header 'x-customer-user-agent: REPLACE_THIS_VALUE' \
--header 'x-fapi-customer-ip-address: REPLACE_THIS_VALUE' \
--header 'x-fapi-customer-last-logged-time: REPLACE_THIS_VALUE' \
--header 'x-fapi-financial-id: REPLACE_THIS_VALUE' \
--header 'x-fapi-interaction-id: REPLACE_THIS_VALUE' \
--header 'x-ibm-client-id: REPLACE_THIS_KEY' \
--header 'x-ibm-client-secret: REPLACE_THIS_KEY'
require 'uri'
require 'openssl'
require 'net/http'
url = URI("https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/REPLACE_CASEID/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_PEER
request = Net::HTTP::Get.new(url)
request["x-ibm-client-id"] = 'REPLACE_THIS_KEY'
request["x-ibm-client-secret"] = 'REPLACE_THIS_KEY'
request["authorization"] = 'Bearer REPLACE_BEARER_TOKEN'
request["x-fapi-financial-id"] = 'REPLACE_THIS_VALUE'
request["x-fapi-customer-last-logged-time"] = 'REPLACE_THIS_VALUE'
request["x-fapi-customer-ip-address"] = 'REPLACE_THIS_VALUE'
request["x-fapi-interaction-id"] = 'REPLACE_THIS_VALUE'
request["x-customer-user-agent"] = 'REPLACE_THIS_VALUE'
request["accept"] = 'application/json'
response = http.request(request)
puts response.read_body
import http.client
conn = http.client.HTTPSConnection("api.nedbank.co.za")
headers = {
'x-ibm-client-id': "REPLACE_THIS_KEY",
'x-ibm-client-secret': "REPLACE_THIS_KEY",
'authorization': "Bearer REPLACE_BEARER_TOKEN",
'x-fapi-financial-id': "REPLACE_THIS_VALUE",
'x-fapi-customer-last-logged-time': "REPLACE_THIS_VALUE",
'x-fapi-customer-ip-address': "REPLACE_THIS_VALUE",
'x-fapi-interaction-id': "REPLACE_THIS_VALUE",
'x-customer-user-agent': "REPLACE_THIS_VALUE",
'accept': "application/json"
}
conn.request("GET", "/apimarket/sandbox/nb-loans/v1/loans/REPLACE_CASEID/status", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/REPLACE_CASEID/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => array(
"accept: application/json",
"authorization: Bearer REPLACE_BEARER_TOKEN",
"x-customer-user-agent: REPLACE_THIS_VALUE",
"x-fapi-customer-ip-address: REPLACE_THIS_VALUE",
"x-fapi-customer-last-logged-time: REPLACE_THIS_VALUE",
"x-fapi-financial-id: REPLACE_THIS_VALUE",
"x-fapi-interaction-id: REPLACE_THIS_VALUE",
"x-ibm-client-id: REPLACE_THIS_KEY",
"x-ibm-client-secret: REPLACE_THIS_KEY"
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
// OkHttpClient from http://square.github.io/okhttp/
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/REPLACE_CASEID/status")
.get()
.addHeader("x-ibm-client-id", "REPLACE_THIS_KEY")
.addHeader("x-ibm-client-secret", "REPLACE_THIS_KEY")
.addHeader("authorization", "Bearer REPLACE_BEARER_TOKEN")
.addHeader("x-fapi-financial-id", "REPLACE_THIS_VALUE")
.addHeader("x-fapi-customer-last-logged-time", "REPLACE_THIS_VALUE")
.addHeader("x-fapi-customer-ip-address", "REPLACE_THIS_VALUE")
.addHeader("x-fapi-interaction-id", "REPLACE_THIS_VALUE")
.addHeader("x-customer-user-agent", "REPLACE_THIS_VALUE")
.addHeader("accept", "application/json")
.build();
Response response = client.newCall(request).execute();
// Install request by running "npm install --save request"
var request = require("request");
var options = { method: 'GET',
url: 'https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/REPLACE_CASEID/status',
headers:
{ accept: 'application/json',
'x-customer-user-agent': 'REPLACE_THIS_VALUE',
'x-fapi-interaction-id': 'REPLACE_THIS_VALUE',
'x-fapi-customer-ip-address': 'REPLACE_THIS_VALUE',
'x-fapi-customer-last-logged-time': 'REPLACE_THIS_VALUE',
'x-fapi-financial-id': 'REPLACE_THIS_VALUE',
authorization: 'Bearer REPLACE_BEARER_TOKEN',
'x-ibm-client-secret': 'REPLACE_THIS_KEY',
'x-ibm-client-id': 'REPLACE_THIS_KEY' } };
request(options, function (error, response, body) {
if (error) return console.error('Failed: %s', error.message);
console.log('Success: ', body);
});
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/REPLACE_CASEID/status"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-ibm-client-id", "REPLACE_THIS_KEY")
req.Header.Add("x-ibm-client-secret", "REPLACE_THIS_KEY")
req.Header.Add("authorization", "Bearer REPLACE_BEARER_TOKEN")
req.Header.Add("x-fapi-financial-id", "REPLACE_THIS_VALUE")
req.Header.Add("x-fapi-customer-last-logged-time", "REPLACE_THIS_VALUE")
req.Header.Add("x-fapi-customer-ip-address", "REPLACE_THIS_VALUE")
req.Header.Add("x-fapi-interaction-id", "REPLACE_THIS_VALUE")
req.Header.Add("x-customer-user-agent", "REPLACE_THIS_VALUE")
req.Header.Add("accept", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
import Foundation
let headers = [
"x-ibm-client-id": "REPLACE_THIS_KEY",
"x-ibm-client-secret": "REPLACE_THIS_KEY",
"authorization": "Bearer REPLACE_BEARER_TOKEN",
"x-fapi-financial-id": "REPLACE_THIS_VALUE",
"x-fapi-customer-last-logged-time": "REPLACE_THIS_VALUE",
"x-fapi-customer-ip-address": "REPLACE_THIS_VALUE",
"x-fapi-interaction-id": "REPLACE_THIS_VALUE",
"x-customer-user-agent": "REPLACE_THIS_VALUE",
"accept": "application/json"
]
var request = NSMutableURLRequest(URL: NSURL(string: "https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/REPLACE_CASEID/status")!,
cachePolicy: .UseProtocolCachePolicy,
timeoutInterval: 10.0)
request.HTTPMethod = "GET"
request.allHTTPHeaderFields = headers
let session = NSURLSession.sharedSession()
let dataTask = session.dataTaskWithRequest(request, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error)
} else {
let httpResponse = response as? NSHTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
{
"Data": {
"CaseId": "6433503803604992",
"LoanAmount": 76.30975573,
"DateTimeLoanProvisioned": "11/26/2045",
"Status": "LOAN_STATUS_UNDEFINED"
}
}
/loans/initialise-loan/status
OAuth flow, it is required when the PSU needs to perform SCA with the ASPSP when a TPP wants to access an ASPSP resource owned by the PSU
The unique id of the ASPSP to which the request is issued. The unique id will be issued by OB.
The time when the PSU last logged in with the TPP. All dates in the HTTP headers are represented as RFC 7231 Full Dates. An example is below: Sun, 10 Sep 2017 19:43:31 UTC
{
"pattern": "^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), \\d{2} (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) \\d{4} \\d{2}:\\d{2}:\\d{2} (GMT|UTC)$"
}
The PSU's IP address if the PSU is currently logged in with the TPP.
An RFC4122 UID used as a correlation id.
An Authorisation Token as per https://tools.ietf.org/html/rfc6750
Indicates the user-agent that the PSU is using.
cc309236
A successful response.
Bad Request
Unauthorized
Forbidden
Too Many Requests
Internal Server Error
curl --request GET \
--url https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/initialise-loan/status \
--header 'accept: application/json' \
--header 'authorization: Bearer REPLACE_BEARER_TOKEN' \
--header 'x-customer-user-agent: REPLACE_THIS_VALUE' \
--header 'x-fapi-customer-ip-address: REPLACE_THIS_VALUE' \
--header 'x-fapi-customer-last-logged-time: REPLACE_THIS_VALUE' \
--header 'x-fapi-financial-id: REPLACE_THIS_VALUE' \
--header 'x-fapi-interaction-id: REPLACE_THIS_VALUE' \
--header 'x-ibm-client-id: REPLACE_THIS_KEY' \
--header 'x-ibm-client-secret: REPLACE_THIS_KEY'
require 'uri'
require 'openssl'
require 'net/http'
url = URI("https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/initialise-loan/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_PEER
request = Net::HTTP::Get.new(url)
request["x-ibm-client-id"] = 'REPLACE_THIS_KEY'
request["x-ibm-client-secret"] = 'REPLACE_THIS_KEY'
request["x-fapi-financial-id"] = 'REPLACE_THIS_VALUE'
request["x-fapi-customer-last-logged-time"] = 'REPLACE_THIS_VALUE'
request["x-fapi-customer-ip-address"] = 'REPLACE_THIS_VALUE'
request["x-fapi-interaction-id"] = 'REPLACE_THIS_VALUE'
request["authorization"] = 'Bearer REPLACE_BEARER_TOKEN'
request["x-customer-user-agent"] = 'REPLACE_THIS_VALUE'
request["accept"] = 'application/json'
response = http.request(request)
puts response.read_body
import http.client
conn = http.client.HTTPSConnection("api.nedbank.co.za")
headers = {
'x-ibm-client-id': "REPLACE_THIS_KEY",
'x-ibm-client-secret': "REPLACE_THIS_KEY",
'x-fapi-financial-id': "REPLACE_THIS_VALUE",
'x-fapi-customer-last-logged-time': "REPLACE_THIS_VALUE",
'x-fapi-customer-ip-address': "REPLACE_THIS_VALUE",
'x-fapi-interaction-id': "REPLACE_THIS_VALUE",
'authorization': "Bearer REPLACE_BEARER_TOKEN",
'x-customer-user-agent': "REPLACE_THIS_VALUE",
'accept': "application/json"
}
conn.request("GET", "/apimarket/sandbox/nb-loans/v1/loans/initialise-loan/status", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/initialise-loan/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => array(
"accept: application/json",
"authorization: Bearer REPLACE_BEARER_TOKEN",
"x-customer-user-agent: REPLACE_THIS_VALUE",
"x-fapi-customer-ip-address: REPLACE_THIS_VALUE",
"x-fapi-customer-last-logged-time: REPLACE_THIS_VALUE",
"x-fapi-financial-id: REPLACE_THIS_VALUE",
"x-fapi-interaction-id: REPLACE_THIS_VALUE",
"x-ibm-client-id: REPLACE_THIS_KEY",
"x-ibm-client-secret: REPLACE_THIS_KEY"
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
// OkHttpClient from http://square.github.io/okhttp/
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/initialise-loan/status")
.get()
.addHeader("x-ibm-client-id", "REPLACE_THIS_KEY")
.addHeader("x-ibm-client-secret", "REPLACE_THIS_KEY")
.addHeader("x-fapi-financial-id", "REPLACE_THIS_VALUE")
.addHeader("x-fapi-customer-last-logged-time", "REPLACE_THIS_VALUE")
.addHeader("x-fapi-customer-ip-address", "REPLACE_THIS_VALUE")
.addHeader("x-fapi-interaction-id", "REPLACE_THIS_VALUE")
.addHeader("authorization", "Bearer REPLACE_BEARER_TOKEN")
.addHeader("x-customer-user-agent", "REPLACE_THIS_VALUE")
.addHeader("accept", "application/json")
.build();
Response response = client.newCall(request).execute();
// Install request by running "npm install --save request"
var request = require("request");
var options = { method: 'GET',
url: 'https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/initialise-loan/status',
headers:
{ accept: 'application/json',
'x-customer-user-agent': 'REPLACE_THIS_VALUE',
authorization: 'Bearer REPLACE_BEARER_TOKEN',
'x-fapi-interaction-id': 'REPLACE_THIS_VALUE',
'x-fapi-customer-ip-address': 'REPLACE_THIS_VALUE',
'x-fapi-customer-last-logged-time': 'REPLACE_THIS_VALUE',
'x-fapi-financial-id': 'REPLACE_THIS_VALUE',
'x-ibm-client-secret': 'REPLACE_THIS_KEY',
'x-ibm-client-id': 'REPLACE_THIS_KEY' } };
request(options, function (error, response, body) {
if (error) return console.error('Failed: %s', error.message);
console.log('Success: ', body);
});
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/initialise-loan/status"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-ibm-client-id", "REPLACE_THIS_KEY")
req.Header.Add("x-ibm-client-secret", "REPLACE_THIS_KEY")
req.Header.Add("x-fapi-financial-id", "REPLACE_THIS_VALUE")
req.Header.Add("x-fapi-customer-last-logged-time", "REPLACE_THIS_VALUE")
req.Header.Add("x-fapi-customer-ip-address", "REPLACE_THIS_VALUE")
req.Header.Add("x-fapi-interaction-id", "REPLACE_THIS_VALUE")
req.Header.Add("authorization", "Bearer REPLACE_BEARER_TOKEN")
req.Header.Add("x-customer-user-agent", "REPLACE_THIS_VALUE")
req.Header.Add("accept", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
import Foundation
let headers = [
"x-ibm-client-id": "REPLACE_THIS_KEY",
"x-ibm-client-secret": "REPLACE_THIS_KEY",
"x-fapi-financial-id": "REPLACE_THIS_VALUE",
"x-fapi-customer-last-logged-time": "REPLACE_THIS_VALUE",
"x-fapi-customer-ip-address": "REPLACE_THIS_VALUE",
"x-fapi-interaction-id": "REPLACE_THIS_VALUE",
"authorization": "Bearer REPLACE_BEARER_TOKEN",
"x-customer-user-agent": "REPLACE_THIS_VALUE",
"accept": "application/json"
]
var request = NSMutableURLRequest(URL: NSURL(string: "https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/initialise-loan/status")!,
cachePolicy: .UseProtocolCachePolicy,
timeoutInterval: 10.0)
request.HTTPMethod = "GET"
request.allHTTPHeaderFields = headers
let session = NSURLSession.sharedSession()
let dataTask = session.dataTaskWithRequest(request, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error)
} else {
let httpResponse = response as? NSHTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
{
"Data": {
"Status": "DATA_REQUIRED",
"Items": [
"DEMOGRAPHIC"
],
"CaseId": "4452097609170944"
}
}
/loans/initialise-loan
Initializes the loan application
OAuth flow, it is required when the PSU needs to perform SCA with the ASPSP when a TPP wants to access an ASPSP resource owned by the PSU
The unique id of the ASPSP to which the request is issued. The unique id will be issued by OB.
The time when the PSU last logged in with the TPP. All dates in the HTTP headers are represented as RFC 7231 Full Dates. An example is below: Sun, 10 Sep 2017 19:43:31 UTC
{
"pattern": "^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), \\d{2} (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) \\d{4} \\d{2}:\\d{2}:\\d{2} (GMT|UTC)$"
}
The PSU's IP address if the PSU is currently logged in with the TPP.
An RFC4122 UID used as a correlation id.
An Authorisation Token as per https://tools.ietf.org/html/rfc6750
Indicates the user-agent that the PSU is using.
cc309236
A successful response.
Bad Request
Unauthorized
Forbidden
Too Many Requests
Internal Server Error
curl --request POST \
--url https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/initialise-loan \
--header 'accept: application/json' \
--header 'authorization: Bearer REPLACE_BEARER_TOKEN' \
--header 'content-type: application/json' \
--header 'x-customer-user-agent: REPLACE_THIS_VALUE' \
--header 'x-fapi-customer-ip-address: REPLACE_THIS_VALUE' \
--header 'x-fapi-customer-last-logged-time: REPLACE_THIS_VALUE' \
--header 'x-fapi-financial-id: REPLACE_THIS_VALUE' \
--header 'x-fapi-interaction-id: REPLACE_THIS_VALUE' \
--header 'x-ibm-client-id: REPLACE_THIS_KEY' \
--header 'x-ibm-client-secret: REPLACE_THIS_KEY' \
--data '{"Data":{"Amount":15608306,"ProductCode":99704305}}'
require 'uri'
require 'openssl'
require 'net/http'
url = URI("https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/initialise-loan")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_PEER
request = Net::HTTP::Post.new(url)
request["x-ibm-client-id"] = 'REPLACE_THIS_KEY'
request["x-ibm-client-secret"] = 'REPLACE_THIS_KEY'
request["x-fapi-financial-id"] = 'REPLACE_THIS_VALUE'
request["x-fapi-customer-last-logged-time"] = 'REPLACE_THIS_VALUE'
request["x-fapi-customer-ip-address"] = 'REPLACE_THIS_VALUE'
request["x-fapi-interaction-id"] = 'REPLACE_THIS_VALUE'
request["authorization"] = 'Bearer REPLACE_BEARER_TOKEN'
request["x-customer-user-agent"] = 'REPLACE_THIS_VALUE'
request["content-type"] = 'application/json'
request["accept"] = 'application/json'
request.body = "{\"Data\":{\"Amount\":15608306,\"ProductCode\":99704305}}"
response = http.request(request)
puts response.read_body
import http.client
conn = http.client.HTTPSConnection("api.nedbank.co.za")
payload = "{\"Data\":{\"Amount\":15608306,\"ProductCode\":99704305}}"
headers = {
'x-ibm-client-id': "REPLACE_THIS_KEY",
'x-ibm-client-secret': "REPLACE_THIS_KEY",
'x-fapi-financial-id': "REPLACE_THIS_VALUE",
'x-fapi-customer-last-logged-time': "REPLACE_THIS_VALUE",
'x-fapi-customer-ip-address': "REPLACE_THIS_VALUE",
'x-fapi-interaction-id': "REPLACE_THIS_VALUE",
'authorization': "Bearer REPLACE_BEARER_TOKEN",
'x-customer-user-agent': "REPLACE_THIS_VALUE",
'content-type': "application/json",
'accept': "application/json"
}
conn.request("POST", "/apimarket/sandbox/nb-loans/v1/loans/initialise-loan", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/initialise-loan",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "{\"Data\":{\"Amount\":15608306,\"ProductCode\":99704305}}",
CURLOPT_HTTPHEADER => array(
"accept: application/json",
"authorization: Bearer REPLACE_BEARER_TOKEN",
"content-type: application/json",
"x-customer-user-agent: REPLACE_THIS_VALUE",
"x-fapi-customer-ip-address: REPLACE_THIS_VALUE",
"x-fapi-customer-last-logged-time: REPLACE_THIS_VALUE",
"x-fapi-financial-id: REPLACE_THIS_VALUE",
"x-fapi-interaction-id: REPLACE_THIS_VALUE",
"x-ibm-client-id: REPLACE_THIS_KEY",
"x-ibm-client-secret: REPLACE_THIS_KEY"
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
// OkHttpClient from http://square.github.io/okhttp/
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"Data\":{\"Amount\":15608306,\"ProductCode\":99704305}}");
Request request = new Request.Builder()
.url("https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/initialise-loan")
.post(body)
.addHeader("x-ibm-client-id", "REPLACE_THIS_KEY")
.addHeader("x-ibm-client-secret", "REPLACE_THIS_KEY")
.addHeader("x-fapi-financial-id", "REPLACE_THIS_VALUE")
.addHeader("x-fapi-customer-last-logged-time", "REPLACE_THIS_VALUE")
.addHeader("x-fapi-customer-ip-address", "REPLACE_THIS_VALUE")
.addHeader("x-fapi-interaction-id", "REPLACE_THIS_VALUE")
.addHeader("authorization", "Bearer REPLACE_BEARER_TOKEN")
.addHeader("x-customer-user-agent", "REPLACE_THIS_VALUE")
.addHeader("content-type", "application/json")
.addHeader("accept", "application/json")
.build();
Response response = client.newCall(request).execute();
// Install request by running "npm install --save request"
var request = require("request");
var options = { method: 'POST',
url: 'https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/initialise-loan',
headers:
{ accept: 'application/json',
'content-type': 'application/json',
'x-customer-user-agent': 'REPLACE_THIS_VALUE',
authorization: 'Bearer REPLACE_BEARER_TOKEN',
'x-fapi-interaction-id': 'REPLACE_THIS_VALUE',
'x-fapi-customer-ip-address': 'REPLACE_THIS_VALUE',
'x-fapi-customer-last-logged-time': 'REPLACE_THIS_VALUE',
'x-fapi-financial-id': 'REPLACE_THIS_VALUE',
'x-ibm-client-secret': 'REPLACE_THIS_KEY',
'x-ibm-client-id': 'REPLACE_THIS_KEY' },
body: { Data: { Amount: 15608306, ProductCode: 99704305 } },
json: true };
request(options, function (error, response, body) {
if (error) return console.error('Failed: %s', error.message);
console.log('Success: ', body);
});
package main
import (
"fmt"
"strings"
"net/http"
"io/ioutil"
)
func main() {
url := "https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/initialise-loan"
payload := strings.NewReader("{\"Data\":{\"Amount\":15608306,\"ProductCode\":99704305}}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-ibm-client-id", "REPLACE_THIS_KEY")
req.Header.Add("x-ibm-client-secret", "REPLACE_THIS_KEY")
req.Header.Add("x-fapi-financial-id", "REPLACE_THIS_VALUE")
req.Header.Add("x-fapi-customer-last-logged-time", "REPLACE_THIS_VALUE")
req.Header.Add("x-fapi-customer-ip-address", "REPLACE_THIS_VALUE")
req.Header.Add("x-fapi-interaction-id", "REPLACE_THIS_VALUE")
req.Header.Add("authorization", "Bearer REPLACE_BEARER_TOKEN")
req.Header.Add("x-customer-user-agent", "REPLACE_THIS_VALUE")
req.Header.Add("content-type", "application/json")
req.Header.Add("accept", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
import Foundation
let headers = [
"x-ibm-client-id": "REPLACE_THIS_KEY",
"x-ibm-client-secret": "REPLACE_THIS_KEY",
"x-fapi-financial-id": "REPLACE_THIS_VALUE",
"x-fapi-customer-last-logged-time": "REPLACE_THIS_VALUE",
"x-fapi-customer-ip-address": "REPLACE_THIS_VALUE",
"x-fapi-interaction-id": "REPLACE_THIS_VALUE",
"authorization": "Bearer REPLACE_BEARER_TOKEN",
"x-customer-user-agent": "REPLACE_THIS_VALUE",
"content-type": "application/json",
"accept": "application/json"
]
let parameters = ["Data": [
"Amount": 15608306,
"ProductCode": 99704305
]]
let postData = NSJSONSerialization.dataWithJSONObject(parameters, options: nil, error: nil)
var request = NSMutableURLRequest(URL: NSURL(string: "https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/initialise-loan")!,
cachePolicy: .UseProtocolCachePolicy,
timeoutInterval: 10.0)
request.HTTPMethod = "POST"
request.allHTTPHeaderFields = headers
request.HTTPBody = postData
let session = NSURLSession.sharedSession()
let dataTask = session.dataTaskWithRequest(request, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error)
} else {
let httpResponse = response as? NSHTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
/loans/initiate-debicheck/status
OAuth flow, it is required when the PSU needs to perform SCA with the ASPSP when a TPP wants to access an ASPSP resource owned by the PSU
The unique id of the ASPSP to which the request is issued. The unique id will be issued by OB.
The time when the PSU last logged in with the TPP. All dates in the HTTP headers are represented as RFC 7231 Full Dates. An example is below: Sun, 10 Sep 2017 19:43:31 UTC
{
"pattern": "^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), \\d{2} (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) \\d{4} \\d{2}:\\d{2}:\\d{2} (GMT|UTC)$"
}
The PSU's IP address if the PSU is currently logged in with the TPP.
An RFC4122 UID used as a correlation id.
An Authorisation Token as per https://tools.ietf.org/html/rfc6750
Indicates the user-agent that the PSU is using.
cc309236
A successful response.
{
"schema": {
"type": "object",
"properties": {
"Status": {
"description": "status of debicheck mandate",
"type": "string"
}
}
}
}
Bad Request
Unauthorized
Forbidden
Too Many Requests
Internal Server Error
curl --request GET \
--url https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/initiate-debicheck/status \
--header 'accept: application/json' \
--header 'authorization: Bearer REPLACE_BEARER_TOKEN' \
--header 'x-customer-user-agent: REPLACE_THIS_VALUE' \
--header 'x-fapi-customer-ip-address: REPLACE_THIS_VALUE' \
--header 'x-fapi-customer-last-logged-time: REPLACE_THIS_VALUE' \
--header 'x-fapi-financial-id: REPLACE_THIS_VALUE' \
--header 'x-fapi-interaction-id: REPLACE_THIS_VALUE' \
--header 'x-ibm-client-id: REPLACE_THIS_KEY' \
--header 'x-ibm-client-secret: REPLACE_THIS_KEY'
require 'uri'
require 'openssl'
require 'net/http'
url = URI("https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/initiate-debicheck/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_PEER
request = Net::HTTP::Get.new(url)
request["x-ibm-client-id"] = 'REPLACE_THIS_KEY'
request["x-ibm-client-secret"] = 'REPLACE_THIS_KEY'
request["x-fapi-financial-id"] = 'REPLACE_THIS_VALUE'
request["x-fapi-customer-last-logged-time"] = 'REPLACE_THIS_VALUE'
request["x-fapi-customer-ip-address"] = 'REPLACE_THIS_VALUE'
request["x-fapi-interaction-id"] = 'REPLACE_THIS_VALUE'
request["authorization"] = 'Bearer REPLACE_BEARER_TOKEN'
request["x-customer-user-agent"] = 'REPLACE_THIS_VALUE'
request["accept"] = 'application/json'
response = http.request(request)
puts response.read_body
import http.client
conn = http.client.HTTPSConnection("api.nedbank.co.za")
headers = {
'x-ibm-client-id': "REPLACE_THIS_KEY",
'x-ibm-client-secret': "REPLACE_THIS_KEY",
'x-fapi-financial-id': "REPLACE_THIS_VALUE",
'x-fapi-customer-last-logged-time': "REPLACE_THIS_VALUE",
'x-fapi-customer-ip-address': "REPLACE_THIS_VALUE",
'x-fapi-interaction-id': "REPLACE_THIS_VALUE",
'authorization': "Bearer REPLACE_BEARER_TOKEN",
'x-customer-user-agent': "REPLACE_THIS_VALUE",
'accept': "application/json"
}
conn.request("GET", "/apimarket/sandbox/nb-loans/v1/loans/initiate-debicheck/status", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/initiate-debicheck/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => array(
"accept: application/json",
"authorization: Bearer REPLACE_BEARER_TOKEN",
"x-customer-user-agent: REPLACE_THIS_VALUE",
"x-fapi-customer-ip-address: REPLACE_THIS_VALUE",
"x-fapi-customer-last-logged-time: REPLACE_THIS_VALUE",
"x-fapi-financial-id: REPLACE_THIS_VALUE",
"x-fapi-interaction-id: REPLACE_THIS_VALUE",
"x-ibm-client-id: REPLACE_THIS_KEY",
"x-ibm-client-secret: REPLACE_THIS_KEY"
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
// OkHttpClient from http://square.github.io/okhttp/
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/initiate-debicheck/status")
.get()
.addHeader("x-ibm-client-id", "REPLACE_THIS_KEY")
.addHeader("x-ibm-client-secret", "REPLACE_THIS_KEY")
.addHeader("x-fapi-financial-id", "REPLACE_THIS_VALUE")
.addHeader("x-fapi-customer-last-logged-time", "REPLACE_THIS_VALUE")
.addHeader("x-fapi-customer-ip-address", "REPLACE_THIS_VALUE")
.addHeader("x-fapi-interaction-id", "REPLACE_THIS_VALUE")
.addHeader("authorization", "Bearer REPLACE_BEARER_TOKEN")
.addHeader("x-customer-user-agent", "REPLACE_THIS_VALUE")
.addHeader("accept", "application/json")
.build();
Response response = client.newCall(request).execute();
// Install request by running "npm install --save request"
var request = require("request");
var options = { method: 'GET',
url: 'https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/initiate-debicheck/status',
headers:
{ accept: 'application/json',
'x-customer-user-agent': 'REPLACE_THIS_VALUE',
authorization: 'Bearer REPLACE_BEARER_TOKEN',
'x-fapi-interaction-id': 'REPLACE_THIS_VALUE',
'x-fapi-customer-ip-address': 'REPLACE_THIS_VALUE',
'x-fapi-customer-last-logged-time': 'REPLACE_THIS_VALUE',
'x-fapi-financial-id': 'REPLACE_THIS_VALUE',
'x-ibm-client-secret': 'REPLACE_THIS_KEY',
'x-ibm-client-id': 'REPLACE_THIS_KEY' } };
request(options, function (error, response, body) {
if (error) return console.error('Failed: %s', error.message);
console.log('Success: ', body);
});
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/initiate-debicheck/status"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-ibm-client-id", "REPLACE_THIS_KEY")
req.Header.Add("x-ibm-client-secret", "REPLACE_THIS_KEY")
req.Header.Add("x-fapi-financial-id", "REPLACE_THIS_VALUE")
req.Header.Add("x-fapi-customer-last-logged-time", "REPLACE_THIS_VALUE")
req.Header.Add("x-fapi-customer-ip-address", "REPLACE_THIS_VALUE")
req.Header.Add("x-fapi-interaction-id", "REPLACE_THIS_VALUE")
req.Header.Add("authorization", "Bearer REPLACE_BEARER_TOKEN")
req.Header.Add("x-customer-user-agent", "REPLACE_THIS_VALUE")
req.Header.Add("accept", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
import Foundation
let headers = [
"x-ibm-client-id": "REPLACE_THIS_KEY",
"x-ibm-client-secret": "REPLACE_THIS_KEY",
"x-fapi-financial-id": "REPLACE_THIS_VALUE",
"x-fapi-customer-last-logged-time": "REPLACE_THIS_VALUE",
"x-fapi-customer-ip-address": "REPLACE_THIS_VALUE",
"x-fapi-interaction-id": "REPLACE_THIS_VALUE",
"authorization": "Bearer REPLACE_BEARER_TOKEN",
"x-customer-user-agent": "REPLACE_THIS_VALUE",
"accept": "application/json"
]
var request = NSMutableURLRequest(URL: NSURL(string: "https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/initiate-debicheck/status")!,
cachePolicy: .UseProtocolCachePolicy,
timeoutInterval: 10.0)
request.HTTPMethod = "GET"
request.allHTTPHeaderFields = headers
let session = NSURLSession.sharedSession()
let dataTask = session.dataTaskWithRequest(request, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error)
} else {
let httpResponse = response as? NSHTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
/loans/initiate-debicheck
Initiate debicheck mandate
OAuth flow, it is required when the PSU needs to perform SCA with the ASPSP when a TPP wants to access an ASPSP resource owned by the PSU
The unique id of the ASPSP to which the request is issued. The unique id will be issued by OB.
The time when the PSU last logged in with the TPP. All dates in the HTTP headers are represented as RFC 7231 Full Dates. An example is below: Sun, 10 Sep 2017 19:43:31 UTC
{
"pattern": "^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), \\d{2} (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) \\d{4} \\d{2}:\\d{2}:\\d{2} (GMT|UTC)$"
}
The PSU's IP address if the PSU is currently logged in with the TPP.
An RFC4122 UID used as a correlation id.
An Authorisation Token as per https://tools.ietf.org/html/rfc6750
Indicates the user-agent that the PSU is using.
cc309236
A successful response.
Bad Request
Unauthorized
Forbidden
Too Many Requests
Internal Server Error
curl --request POST \
--url https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/initiate-debicheck \
--header 'accept: application/json' \
--header 'authorization: Bearer REPLACE_BEARER_TOKEN' \
--header 'content-type: application/json' \
--header 'x-customer-user-agent: REPLACE_THIS_VALUE' \
--header 'x-fapi-customer-ip-address: REPLACE_THIS_VALUE' \
--header 'x-fapi-customer-last-logged-time: REPLACE_THIS_VALUE' \
--header 'x-fapi-financial-id: REPLACE_THIS_VALUE' \
--header 'x-fapi-interaction-id: REPLACE_THIS_VALUE' \
--header 'x-ibm-client-id: REPLACE_THIS_KEY' \
--header 'x-ibm-client-secret: REPLACE_THIS_KEY' \
--data '{"Data":{"CaseId":"8776636614836224"}}'
require 'uri'
require 'openssl'
require 'net/http'
url = URI("https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/initiate-debicheck")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_PEER
request = Net::HTTP::Post.new(url)
request["x-ibm-client-id"] = 'REPLACE_THIS_KEY'
request["x-ibm-client-secret"] = 'REPLACE_THIS_KEY'
request["x-fapi-financial-id"] = 'REPLACE_THIS_VALUE'
request["x-fapi-customer-last-logged-time"] = 'REPLACE_THIS_VALUE'
request["x-fapi-customer-ip-address"] = 'REPLACE_THIS_VALUE'
request["x-fapi-interaction-id"] = 'REPLACE_THIS_VALUE'
request["authorization"] = 'Bearer REPLACE_BEARER_TOKEN'
request["x-customer-user-agent"] = 'REPLACE_THIS_VALUE'
request["content-type"] = 'application/json'
request["accept"] = 'application/json'
request.body = "{\"Data\":{\"CaseId\":\"8776636614836224\"}}"
response = http.request(request)
puts response.read_body
import http.client
conn = http.client.HTTPSConnection("api.nedbank.co.za")
payload = "{\"Data\":{\"CaseId\":\"8776636614836224\"}}"
headers = {
'x-ibm-client-id': "REPLACE_THIS_KEY",
'x-ibm-client-secret': "REPLACE_THIS_KEY",
'x-fapi-financial-id': "REPLACE_THIS_VALUE",
'x-fapi-customer-last-logged-time': "REPLACE_THIS_VALUE",
'x-fapi-customer-ip-address': "REPLACE_THIS_VALUE",
'x-fapi-interaction-id': "REPLACE_THIS_VALUE",
'authorization': "Bearer REPLACE_BEARER_TOKEN",
'x-customer-user-agent': "REPLACE_THIS_VALUE",
'content-type': "application/json",
'accept': "application/json"
}
conn.request("POST", "/apimarket/sandbox/nb-loans/v1/loans/initiate-debicheck", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/initiate-debicheck",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "{\"Data\":{\"CaseId\":\"8776636614836224\"}}",
CURLOPT_HTTPHEADER => array(
"accept: application/json",
"authorization: Bearer REPLACE_BEARER_TOKEN",
"content-type: application/json",
"x-customer-user-agent: REPLACE_THIS_VALUE",
"x-fapi-customer-ip-address: REPLACE_THIS_VALUE",
"x-fapi-customer-last-logged-time: REPLACE_THIS_VALUE",
"x-fapi-financial-id: REPLACE_THIS_VALUE",
"x-fapi-interaction-id: REPLACE_THIS_VALUE",
"x-ibm-client-id: REPLACE_THIS_KEY",
"x-ibm-client-secret: REPLACE_THIS_KEY"
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
// OkHttpClient from http://square.github.io/okhttp/
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"Data\":{\"CaseId\":\"8776636614836224\"}}");
Request request = new Request.Builder()
.url("https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/initiate-debicheck")
.post(body)
.addHeader("x-ibm-client-id", "REPLACE_THIS_KEY")
.addHeader("x-ibm-client-secret", "REPLACE_THIS_KEY")
.addHeader("x-fapi-financial-id", "REPLACE_THIS_VALUE")
.addHeader("x-fapi-customer-last-logged-time", "REPLACE_THIS_VALUE")
.addHeader("x-fapi-customer-ip-address", "REPLACE_THIS_VALUE")
.addHeader("x-fapi-interaction-id", "REPLACE_THIS_VALUE")
.addHeader("authorization", "Bearer REPLACE_BEARER_TOKEN")
.addHeader("x-customer-user-agent", "REPLACE_THIS_VALUE")
.addHeader("content-type", "application/json")
.addHeader("accept", "application/json")
.build();
Response response = client.newCall(request).execute();
// Install request by running "npm install --save request"
var request = require("request");
var options = { method: 'POST',
url: 'https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/initiate-debicheck',
headers:
{ accept: 'application/json',
'content-type': 'application/json',
'x-customer-user-agent': 'REPLACE_THIS_VALUE',
authorization: 'Bearer REPLACE_BEARER_TOKEN',
'x-fapi-interaction-id': 'REPLACE_THIS_VALUE',
'x-fapi-customer-ip-address': 'REPLACE_THIS_VALUE',
'x-fapi-customer-last-logged-time': 'REPLACE_THIS_VALUE',
'x-fapi-financial-id': 'REPLACE_THIS_VALUE',
'x-ibm-client-secret': 'REPLACE_THIS_KEY',
'x-ibm-client-id': 'REPLACE_THIS_KEY' },
body: { Data: { CaseId: '8776636614836224' } },
json: true };
request(options, function (error, response, body) {
if (error) return console.error('Failed: %s', error.message);
console.log('Success: ', body);
});
package main
import (
"fmt"
"strings"
"net/http"
"io/ioutil"
)
func main() {
url := "https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/initiate-debicheck"
payload := strings.NewReader("{\"Data\":{\"CaseId\":\"8776636614836224\"}}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-ibm-client-id", "REPLACE_THIS_KEY")
req.Header.Add("x-ibm-client-secret", "REPLACE_THIS_KEY")
req.Header.Add("x-fapi-financial-id", "REPLACE_THIS_VALUE")
req.Header.Add("x-fapi-customer-last-logged-time", "REPLACE_THIS_VALUE")
req.Header.Add("x-fapi-customer-ip-address", "REPLACE_THIS_VALUE")
req.Header.Add("x-fapi-interaction-id", "REPLACE_THIS_VALUE")
req.Header.Add("authorization", "Bearer REPLACE_BEARER_TOKEN")
req.Header.Add("x-customer-user-agent", "REPLACE_THIS_VALUE")
req.Header.Add("content-type", "application/json")
req.Header.Add("accept", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
import Foundation
let headers = [
"x-ibm-client-id": "REPLACE_THIS_KEY",
"x-ibm-client-secret": "REPLACE_THIS_KEY",
"x-fapi-financial-id": "REPLACE_THIS_VALUE",
"x-fapi-customer-last-logged-time": "REPLACE_THIS_VALUE",
"x-fapi-customer-ip-address": "REPLACE_THIS_VALUE",
"x-fapi-interaction-id": "REPLACE_THIS_VALUE",
"authorization": "Bearer REPLACE_BEARER_TOKEN",
"x-customer-user-agent": "REPLACE_THIS_VALUE",
"content-type": "application/json",
"accept": "application/json"
]
let parameters = ["Data": ["CaseId": "8776636614836224"]]
let postData = NSJSONSerialization.dataWithJSONObject(parameters, options: nil, error: nil)
var request = NSMutableURLRequest(URL: NSURL(string: "https://api.nedbank.co.za/apimarket/sandbox/nb-loans/v1/loans/initiate-debicheck")!,
cachePolicy: .UseProtocolCachePolicy,
timeoutInterval: 10.0)
request.HTTPMethod = "POST"
request.allHTTPHeaderFields = headers
request.HTTPBody = postData
let session = NSURLSession.sharedSession()
let dataTask = session.dataTaskWithRequest(request, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error)
} else {
let httpResponse = response as? NSHTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
Definitions
{
"type": "string",
"enum": [
"SUCCESS",
"FAILED"
],
"default": "SUCCESS"
}
{
"type": "object",
"properties": {
"Data": {
"$ref": "#/definitions/InitiateDebiCheckRequestDataMessage"
}
}
}
{
"type": "object",
"properties": {
"CaseId": {
"type": "string"
}
}
}
{
"type": "string",
"enum": [
"SUCCESS",
"DECLINED"
],
"default": "SUCCESS"
}
{
"type": "object",
"properties": {
"Data": {
"$ref": "#/definitions/LeadsRequestDataMessage"
}
}
}
{
"type": "object",
"properties": {
"Data": {
"$ref": "#/definitions/LeadsResponseDataMessage"
}
}
}
{
"type": "object",
"required": [
"Name",
"Surname",
"IDNumber",
"Cellphone",
"ProcessID"
],
"properties": {
"Title": {
"type": "string"
},
"Name": {
"type": "string"
},
"Surname": {
"type": "string"
},
"IDNumber": {
"type": "string"
},
"Cellphone": {
"type": "string"
},
"ProcessID": {
"type": "string"
},
"Email": {
"type": "string"
},
"Work": {
"type": "string"
},
"Home": {
"type": "string"
},
"ProductCode": {
"type": "integer",
"format": "int64"
}
}
}
{
"type": "object",
"properties": {
"Status": {
"$ref": "#/definitions/LeadsResponseStatus"
},
"LeadID": {
"type": "string"
}
}
}
{
"type": "object",
"properties": {
"Data": {
"$ref": "#/definitions/CaseIdResponseDataMessage"
}
}
}
{
"type": "object",
"properties": {
"CaseId": {
"type": "string"
},
"Status": {
"$ref": "#/definitions/CaseIdResponseStatus"
}
}
}
{
"type": "string",
"enum": [
"DATA_REQUIRED",
"LOAN_INITIALIZED",
"LOAN_DECLINED",
"LOAN_REJECTED_STAFF",
"OFFERS_NOT_GENERATED",
"EVIDENCE_REQUIRED",
"LOAN_ACCEPTED",
"LOAN_CALCULATED",
"LOAN_ALREADY_CALCULATED",
"LOAN_ALREADY_ACCEPTED",
"LOAN_PROCESS_FAILED",
"CANCEL_SUCCESS",
"CANCEL_FAILED"
],
"default": "CANCEL_SUCCESS"
}
{
"type": "object",
"properties": {
"Data": {
"$ref": "#/definitions/StatusResponseDataMessage"
}
}
}
{
"type": "object",
"properties": {
"Status": {
"$ref": "#/definitions/StatusEnum"
}
}
}
{
"type": "string",
"enum": [
"IN_PROGRESS"
],
"default": "IN_PROGRESS"
}
{
"type": "object",
"properties": {
"Data": {
"$ref": "#/definitions/CustomerDisburseResponseDataMessage"
}
}
}
{
"type": "object",
"properties": {
"Status": {
"type": "string",
"enum": [
"SUCCESS",
"FAILED"
],
"default": "SUCCESS"
},
"DisburseToCustomer": {
"type": "string",
"default": "No"
}
}
}
{
"type": "object",
"properties": {
"Data": {
"$ref": "#/definitions/LoanStatusResponseDataMessage"
}
}
}
{
"type": "object",
"properties": {
"CaseId": {
"type": "string"
},
"LoanAmount": {
"type": "number",
"format": "float"
},
"DateTimeLoanProvisioned": {
"type": "string"
},
"Status": {
"type": "string",
"enum": [
"LOAN_STATUS_UNDEFINED",
"LOAN_DECLINED",
"LOAN_ACCEPTED"
],
"default": "LOAN_STATUS_UNDEFINED"
}
}
}
{
"type": "object",
"properties": {
"LoanDetails": {
"$ref": "#/definitions/LoanDetails"
},
"EvidenceResponse": {
"type": "array",
"items": {
"$ref": "#/definitions/EvidenceResponse"
}
}
}
}
{
"type": "object",
"properties": {
"Status": {
"$ref": "#/definitions/AcceptLoanResponseStatus"
},
"EvidenceRequest": {
"type": "array",
"items": {
"$ref": "#/definitions/EvidenceRequest"
}
}
}
}
{
"type": "object",
"properties": {
"Status": {
"$ref": "#/definitions/LoanResponseStatus"
},
"Finances": {
"$ref": "#/definitions/Finances"
},
"Offers": {
"type": "array",
"items": {
"$ref": "#/definitions/CalculatedOffer"
}
},
"Items": {
"type": "array",
"items": {
"$ref": "#/definitions/RequiredItemsType"
}
},
"EvidenceRequest": {
"type": "array",
"items": {
"$ref": "#/definitions/EvidenceRequest"
}
}
}
}
{
"type": "object",
"properties": {
"Amount": {
"type": "integer",
"format": "int64"
},
"ProductCode": {
"type": "integer",
"format": "int64"
}
}
}
{
"type": "object",
"properties": {
"Status": {
"$ref": "#/definitions/InitializeResponseStatus"
},
"Items": {
"type": "array",
"items": {
"$ref": "#/definitions/RequiredItemsType"
}
},
"CaseId": {
"type": "string"
}
}
}
{
"type": "object",
"properties": {
"LoanDetails": {
"$ref": "#/definitions/LoanDetails"
}
}
}
{
"type": "object",
"properties": {
"Status": {
"$ref": "#/definitions/RecalculateResponseStatus"
},
"Offer": {
"$ref": "#/definitions/CalculatedOffer"
}
}
}
{
"type": "object",
"properties": {
"Data": {
"$ref": "#/definitions/AcceptOfferRequestDataMessage"
}
}
}
{
"type": "object",
"properties": {
"Data": {
"$ref": "#/definitions/AcceptOfferResponseDataMessage"
}
}
}
{
"type": "object",
"properties": {
"RequestedLoanAmount": {
"type": "integer",
"format": "int64"
},
"OriginallyRequestedLoanAmount": {
"type": "integer",
"format": "int64"
},
"LoanPurposeType": {
"type": "integer",
"format": "int64"
},
"IsAppealAllowed": {
"type": "boolean",
"format": "boolean"
},
"IsChangeAllowed": {
"type": "boolean",
"format": "boolean"
},
"Repayment": {
"$ref": "#/definitions/LoanRepayentDetails"
},
"Interest": {
"$ref": "#/definitions/InterestDetails"
},
"Pricing": {
"$ref": "#/definitions/ProductPricing"
},
"CrossSellDetails": {
"$ref": "#/definitions/CrossSellDetails"
},
"Insurance": {
"$ref": "#/definitions/Insurance"
}
}
}
{
"type": "object",
"properties": {
"Optionality": {
"type": "string"
},
"AcceptanceStatus": {
"type": "string"
}
}
}
{
"type": "object",
"properties": {
"Id": {
"type": "string"
},
"FullText": {
"type": "string"
}
}
}
{
"type": "object",
"properties": {
"Id": {
"type": "string"
},
"Timestamp": {
"type": "string"
},
"Response": {
"type": "string"
}
}
}
{
"type": "object",
"properties": {
"Currency": {
"type": "string"
},
"Amount": {
"type": "number",
"format": "float"
},
"Type": {
"type": "string"
},
"Frequency": {
"type": "string"
},
"Description": {
"type": "string"
}
}
}
{
"type": "object",
"properties": {
"Income": {
"type": "integer",
"format": "int32"
},
"Expenses": {
"type": "integer",
"format": "int32"
},
"DebtObligationTotal": {
"type": "integer",
"format": "int32"
}
}
}
{
"type": "object",
"properties": {
"Data": {
"$ref": "#/definitions/LoanOffersResponseDataMessage"
}
}
}
{
"type": "object",
"properties": {
"Data": {
"$ref": "#/definitions/InitializeLoanRequestDataMessage"
}
}
}
{
"type": "object",
"properties": {
"Data": {
"$ref": "#/definitions/InitializeLoanResponseDataMessage"
}
}
}
{
"type": "object",
"properties": {
"MonthlyInsurancePremium": {
"type": "number",
"format": "float"
},
"InsuranceCommission": {
"type": "number",
"format": "float"
},
"CostOfInsurance": {
"type": "number",
"format": "float"
},
"CreditCostMultiple": {
"type": "number",
"format": "float"
},
"InsuranceFlatFee": {
"type": "number",
"format": "float"
}
}
}
{
"type": "object",
"properties": {
"Rate": {
"type": "number",
"format": "float"
},
"Type": {
"type": "string"
},
"FriendlyDescription": {
"type": "string"
},
"IsStaffPreferentialRate": {
"type": "boolean",
"format": "boolean"
},
"DecimalRate": {
"type": "number",
"format": "float"
}
}
}
{
"type": "object",
"properties": {
"Amount": {
"type": "integer",
"format": "int64"
},
"Term": {
"type": "integer",
"format": "int64"
}
}
}
{
"type": "object",
"properties": {
"Currency": {
"type": "string"
},
"CreditCostMultiple": {
"type": "number",
"format": "float"
},
"MinAmount": {
"type": "number",
"format": "float"
},
"MaxAmount": {
"type": "number",
"format": "float"
},
"Amount": {
"type": "number",
"format": "float"
},
"TotalFeeAndCreditCost": {
"type": "number",
"format": "float"
},
"CreditAdvanced": {
"type": "number",
"format": "float"
},
"Frequency": {
"type": "string"
},
"TotalRepayment": {
"type": "number",
"format": "float"
},
"BaseInstallmentAmount": {
"type": "number",
"format": "float"
},
"TotalInstallmentAmount": {
"type": "number",
"format": "float"
},
"TotalPaymentToLenders": {
"type": "number",
"format": "float"
}
}
}
{
"type": "object",
"properties": {
"Fee": {
"type": "array",
"items": {
"$ref": "#/definitions/Fee"
}
}
}
}
{
"type": "object",
"properties": {
"Data": {
"$ref": "#/definitions/RecalculateOfferRequestDataMessage"
}
}
}
{
"type": "object",
"properties": {
"Data": {
"$ref": "#/definitions/RecalculateOfferResponseDataMessage"
}
}
}
{
"type": "object",
"properties": {
"Data": {
"$ref": "#/definitions/CancelLoanRequestCancelDataMessage"
}
}
}
{
"type": "object",
"properties": {
"CaseId": {
"type": "string"
},
"Reason": {
"type": "string"
}
}
}
{
"type": "object",
"properties": {
"Data": {
"$ref": "#/definitions/CancelLoanResponseDataMessage"
}
}
}
{
"type": "object",
"properties": {
"Status": {
"$ref": "#/definitions/CancelResponseStatus"
},
"CaseId": {
"type": "string"
}
}
}
{
"type": "object",
"properties": {
"Data": {
"$ref": "#/definitions/RefundLoanRequestDataMessage"
}
}
}
{
"type": "object",
"properties": {
"CaseId": {
"type": "string"
},
"OriginalAmount": {
"type": "number",
"format": "float"
},
"AmountToRefund": {
"type": "number",
"format": "float"
},
"DateTimeLoanProvisioned": {
"type": "string"
},
"Reason": {
"type": "string"
}
}
}
{
"type": "object",
"properties": {
"Data": {
"$ref": "#/definitions/RefundLoanResponseDataMessage"
}
}
}
{
"type": "object",
"properties": {
"Status": {
"$ref": "#/definitions/RefundResponseStatus"
},
"CaseId": {
"type": "string"
}
}
}
{
"type": "string",
"enum": [
"DEMOGRAPHIC",
"RESIDENTIAL_ADDRESS",
"EMPLOYMENT",
"NATIONALITY",
"COUNTRY_OF_RESIDENCE",
"PLACE_OF_BIRTH",
"COUNTRY_OF_BIRTH",
"SOURCE_OF_INCOME",
"ID_DOCUMENT",
"XDS_QUESTIONS",
"FINANCIAL_DATA",
"FATCA",
"MARITAL_STATUS"
],
"default": "DEMOGRAPHIC"
}
{
"type": "string",
"enum": [
"DATA_REQUIRED",
"LOAN_CALCULATED",
"LOAN_ALREADY_CALCULATED",
"LOAN_DECLINED",
"LOAN_ACCEPTED",
"LOAN_ALREADY_ACCEPTED",
"LOAN_PROCESS_FAILED"
],
"default": "DATA_REQUIRED"
}
{
"type": "string",
"enum": [
"OFFERS_NOT_GENERATED",
"EVIDENCE_REQUIRED",
"LOAN_DECLINED",
"LOAN_ACCEPTED",
"LOAN_ALREADY_ACCEPTED",
"LOAN_PROCESS_FAILED"
],
"default": "OFFERS_NOT_GENERATED"
}
{
"type": "string",
"enum": [
"LOAN_CALCULATED",
"LOAN_DECLINED",
"LOAN_PROCESS_FAILED"
],
"default": "LOAN_CALCULATED"
}
{
"type": "string",
"enum": [
"DATA_REQUIRED",
"LOAN_INITIALIZED",
"LOAN_DECLINED",
"LOAN_PROCESS_FAILED",
"LOAN_REJECTED_STAFF"
],
"default": "DATA_REQUIRED"
}
{
"type": "string",
"enum": [
"CANCEL_SUCCESS",
"CANCEL_FAILED"
],
"default": "CANCEL_SUCCESS"
}
{
"type": "string",
"enum": [
"REFUND_SUCCESS",
"REFUND_FAILED"
],
"default": "REFUND_FAILED"
}