Skip to main content

Submitting A Bank Statement

To submit a bank statement, you will make this request:

Request

Method: POST
Endpoint: api/v1/credit-assessment/submit
Headers :

{
 	"apiKey" : [YOUR APP API_KEY],
	"apiSecret" : [YOUR APP API_SECRET],
	"Content-Type": "multipart/form-data"
}

Body :

{
    "file" : [YOUR BANK STATEMENT FILE],
	"password" : [BANK STATEMENT PASSWORD],
	"title" : [TITLE OF THE SUBMISSION E.G USER'S FULLNAME],
	"bvn" : [BVN OF THE USER]
}

Example:

const axios = require("axios");
const fs = require("fs");
const FormData = require("form-data");

const form = new FormData();
form.append("file", fs.createReadStream("[YOUR BANK STATEMENT FILE]"));
form.append("password", "[BANK STATEMENT PASSWORD]");
form.append("title", "[TITLE OF THE SUBMISSION E.G USER'S FULLNAME]");
form.append("bvn", "[BVN OF THE USER]");

const options = {
method: "POST",
url: "https://sigmaprod.sabipay.com/ap1/v1/credit-assessment/submit",
headers: {
apiKey: "[YOUR APP API_KEY]",
apiSecret: "[YOUR APP API_SECRET]",
...form.getHeaders(),
},
data: form,
};

axios
.request(options)
.then(function (response) {
console.log(response.data);
})
.catch(function (error) {
console.error(error);
});
ParameterTypeDescription
file (required)blobThis is the bank statement PDF file to be uploaded. The uploaded file must be accessible when submitting the URL to Sigma.
title (required)StringThe name of the submission. For example: the account holder’s name or an ID from your records.
bvn (optional)NumberThe Bank Verification Number of the owner of the bank statement.
password (optional)StringIf your bank statement is locked with a password, use this field to provide the password to unlock the file.
Responses

See Response Section to view all expected responses