curl --request PUT \
--url https://gateway-sandbox.matambaintelligence.com/v1/applications/{id}/documents/{type} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: image/jpeg' \
--data '<string>'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'image/jpeg'},
body: '<string>'
};
fetch('https://gateway-sandbox.matambaintelligence.com/v1/applications/{id}/documents/{type}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://gateway-sandbox.matambaintelligence.com/v1/applications/{id}/documents/{type}"
payload = "<string>"
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "image/jpeg"
}
response = requests.put(url, data=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://gateway-sandbox.matambaintelligence.com/v1/applications/{id}/documents/{type}"
payload := strings.NewReader("<string>")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "image/jpeg")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Send a document
Sends one of the application’s four documents: the file itself as the body, a JPEG or PNG smaller than 1,000,000 bytes and at most 8,000 pixels wide and high. We check that the file is whole and hold it, sealed, until the depository has opened the account; then we send it to the broker, and erase our copy once the account opens. The same file sent again once we hold it isn’t taken twice; one whose earlier answer was unconfirmed is taken again. A different file for a type we hold, or whose earlier file is unconfirmed, is refused. At most two of your documents are on their way to us at once. Send documents while the application is documents_required or submitted; the fourth makes it submitted. Requires the apply scope.
curl --request PUT \
--url https://gateway-sandbox.matambaintelligence.com/v1/applications/{id}/documents/{type} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: image/jpeg' \
--data '<string>'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'image/jpeg'},
body: '<string>'
};
fetch('https://gateway-sandbox.matambaintelligence.com/v1/applications/{id}/documents/{type}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://gateway-sandbox.matambaintelligence.com/v1/applications/{id}/documents/{type}"
payload = "<string>"
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "image/jpeg"
}
response = requests.put(url, data=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://gateway-sandbox.matambaintelligence.com/v1/applications/{id}/documents/{type}"
payload := strings.NewReader("<string>")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "image/jpeg")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Authorizations
Path Parameters
Which of the four documents.
photo: a passport photograph. government_id: a government-issued ID. utility_bill: a utility bill, for the address. signature: a specimen of the customer's signature. New values can be added: handle an unrecognised value with a safe default.
photo, government_id, utility_bill, signature Body
The file itself.
The body is of type file.
Response
The document, as we hold it.
One document of an application, as we hold it. We keep the file sealed until we've sent it to the broker, and erase it once the account opens or the application ends. If we haven't asked the depository to open the account within 7 days of when you sent the application, or it becomes uncertain before we have, we erase it then.
photo: a passport photograph. government_id: a government-issued ID. utility_bill: a utility bill, for the address. signature: a specimen of the customer's signature. New values can be added: handle an unrecognised value with a safe default.
photo, government_id, utility_bill, signature