POST - Upload Files

Upload files to a lead

Upload files to a LEAD

Note: Lead ID from the create lead response is required to upload files to Bizmate.

Method: POST

Endpoint: /attachments/new

Maximum Length: 255

Headers:

Name
Value

Content-Type

application/json

Authorization

Bearer <API TOKEN>

Body:

Field
Field in Portal
Type
Example
Description
Required?

entityType

LEAD

text

LEAD

Identify the entity type

entityId

LEAD_ID

text

7e8a17fd-3577-48f4-a0e4-6cb83ea204ba

Identifier for a LEAD

attachments[0][type]

text, Enum: [ Bank Statements, Proof of Identity or ID, Image ]

Bank Statements

Use the exact values as mentioned in the type

attachments[0][fileName]

text

Some Text

Name of the company.

attachments[0][file]

text

Some Text

File to be attached(only one attachment)

Request Body Example:

To upload multiple files, use the format illustrated in the Multiple Files Upload table, ensuring each file entry follows the structure shown, incrementing the index for each attachment.

Type : form-data

Single File Upload:

Key
type
Value

entityType

text

LEAD

entityId

text

2e22bca2-b98e-467c-b9d

attachments[0][type]

text

Bank Statements

attachments[0][fileName]

text

attachments[0][file]

file

transaction.pdf

Multiple Files Upload:

Key
type
Value

entityType

text

LEAD

entityId

text

2e22bca2-b98e-467c-b9d

attachments[0][type]

text

Bank Statements

attachments[0][fileName]

text

attachments[0][file]

file

transaction.pdf

attachments[1][type]

text

Proof of Identity or ID

attachments[1][type]

text

Drivers_License_Front

attachments[1][type]

file

license.jpg

Response

{
        "id": "2794fe94bf",
        "createdAt": "2024-12-03T02:31:33.939Z",
        "updatedAt": "2024-12-03T02:31:33.939Z",
        "updatedBy": "2e6-b3c078a66521",
        "createdBy": "2f078a66521",
        "fields": {
            "fileName": "transaction.pdf",
            "type": "Bank Statements",
            "entityType": "LEAD",
            "entityId": "2e22bca2-b98e-9"
        }
  }

Last updated

Logo

Copyright © Zwab Ventures PTY LTD (ACN 625 682 831), Bizcap NZ Limited (NZBN 9429048276863) and Bizcap AU Pty Ltd (ACN 633 927 090) of PO Box 195, Balaclava VIC 3183