Batch debit
Upload batch as JSON
POST
/api/v1/batch-file-base64/upload-batch-fileUploads base64 file content inside JSON.
This API needs a Signature header. The portal signs when that company code has a signing key configured. Without it, the sandbox receives the request unsigned.
Headers
| Fields | Description |
|---|---|
Content-TypeRequired | application/json |
AuthorizationRequired | Authorization key Fintwin issues for the company code. |
SignatureRequired | Body integrity signature. The signing key is issued with the API key. |
Body
| Fields | Description |
|---|---|
fileNameRequired | File name. |
fileContentRequired | Base64 content of a sample file. |
declaredFileSizeOptional | Declared size. |
Samples
curl -X POST 'https://sandbox.example.invalid/api/v1/batch-file-base64/upload-batch-file' \
-H 'Content-Type: application/json' \
-H 'Authorization: <authorization-key>' \
-d '{"fileName":"batch-TEST.txt","fileContent":"VEVTVA==","declaredFileSize":4}'