Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

See a detailed Demo Example

Check our Detail Demo sample via Postman Here

Endpoint

HTTP

POST https://api.indicina.co/api/v3/client/pdf/extract

Header

HTTP

Content Type: multipart/form-data
Authentication: Bearer <Token>

📘

NOTE:

  • The request body takes the path to the customer's bank statement alongside some other data including their bank_code, pdf, currency, request_type, customer_id, and model_name.

  • Header Content-Type: multipart/form-data

Sample Request cURL

curl --location 'https://api.indicina.co/api/v3/client/pdf/extract' \
--header 'Content-Type: multipart/form-data' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6DUMMY.----jEtYWI2NS02NzdlNjdlMWE4MmIiLCJleHAiOjE3MTYyMTU5NzAsImlhdCI6MTcxNjIxMjM3MCwiaXNzIjoiaW5kaWNpbmEuY28iLCJzdWIiOiIzZGM4ZjAwMi1jOWMzLTRmZDctODQyNi01NDYxMTQ4Mzk2ZjciLCJqdGkiOiI2ZTRiODNkMS1jZDdkLTRlNzctYWQzMS1mMjQzYzczZjE2MTUiLCJhdXRoZW50aWNhdGlvblR5cGUiOiJQQVNTV09SRCIsImVtYWlsIjoic3VwcG9ydEBpbmRpY2luYS5jbyIsImVtYWlsX3ZlcmlmaWVkIjp0cnVlLCJhcHBsaWNhdGlvbklkIjoiNWFiODUxOGQtOThjZi00N2IxLWFiNjUtNjc3ZTY3ZTFhODJiIiwicm9sZXMiOlsiT3JpZ2luYXRlTVAiXSwic2lkIjoiODVkZWY2ZjgtNmE3Yi00NmY0LWI4YTctODk2N2JhYzI2NWQ0IiwiYXV0aF90aW1lIjoxNzE2MjEyMzcwLCJ0aWQiOiI0YjM4YWYwOS03ZmRkLTQ0OGUtOWFkZS02MmQ2MzBhY2JhNTUiLCJtZXJjaGFudFNsdWciOiJpbmRpY2luYSIsInVzZXJJZCI6IjYzYTMzZDg1N2NhYTQyODg2N2Y3YmVmYiIsImFjY291bnRJZCI6IjYzYTMzZDgzN2NhYTQyODg2N2Y3YmUzNiIsInRlbmFudElkIjoiNGIzOGFmMDktN2ZkZC00NDhlLTlhZGUtNjJkNjMwYWNiYTU1Iiwic2x1ZyI6ImluZGljaW5hIn0.VGHUn25t7h6-XK9I4Crv4qsRkSg4Z4gziKggn6Lj-Lg' \
--form 'bank_code="058"' \
--form 'currency="NGN"' \
--form 'request_type="score"' \
--form 'customer_id="admoll.test@mail.com"' \
--form 'pdf=@"/Users/mac/Downloads/admoll dummy.pdf"' \
--form 'model_name="bsp-sme"'

Sample Request

{
	"pdf": "bank_statement.pdf", // this is an uploaded document in PDF format
	"bank_code": "058",
	"currency": "NGN",
	"request_type": "score",
	"customer_id": "ckpy5ebhx000001mi74zghkwg",
  "model_name": "bsp-sme"
}

Sample Response

{
  "status": "success",
  "data": {
    "jobId": "fbe89a66d0c2973f401a23cee0854824d901cb3c8115969191f3a8427b6e327c",
    "status": "IN_PROGRESS"
  }
}
  • No labels