curl --request POST \
--url https://sandbox.api.fin.com/v1/beneficiaries/{beneficiary_id}/documents \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form doc1='@example-file'{
"data": {
"files": [
{
"invoice1": "/wKbvfH5E_Invoice.pdf"
},
{
"invoice2": "/XUOdWacK_Invoice.jpg"
}
]
}
}Upload one or more documents for a specific beneficiary using multipart/form-data
curl --request POST \
--url https://sandbox.api.fin.com/v1/beneficiaries/{beneficiary_id}/documents \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form doc1='@example-file'{
"data": {
"files": [
{
"invoice1": "/wKbvfH5E_Invoice.pdf"
},
{
"invoice2": "/XUOdWacK_Invoice.jpg"
}
]
}
}PDFJPG / JPEGPNGfile1, document1, etc.).
The field name you use will be returned as the key in the response.Bearer token authentication. Obtain token from /v1/oauth/token endpoint
Unique identifier for the beneficiary
Document file to upload (can be repeated multiple times for multiple files)
OK - Documents uploaded successfully
Show child attributes