Skip to main content
POST
/
credit-applications
/
credit-terms
/
{credit_application_id}
/
files
Upload credit terms trade profile file
curl --request POST \
  --url https://api.mycreditapp.ai/v1-beta/credit-applications/credit-terms/{credit_application_id}/files \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --header 'Requester-Organization-ID: <requester-organization-id>' \
  --header 'Target-Organization-ID: <target-organization-id>' \
  --form uploading_file='@example-file'
{
  "mime_type": "<string>",
  "filename": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication using a JWT token. Provide a valid access token. Authorization header format: Authorization: Bearer <token>.

Headers

Requester-Organization-ID
string<uuid>
required

The unique identifier of the organization making the request. This ID is used to authorize the requester within the system.

Example:

"054b4106-174b-46b0-97f8-86d8d7b6f0af"

Target-Organization-ID
string<uuid>
required

The unique identifier of the organization that is the target of the request. The Target-Organization-ID may match the Requester-Organization-ID if the requester accesses their own resources. If the Target-Organization-ID differs from the Requester-Organization-ID, the requester can access third-party resources if the requester has a connection with the target organization and is authorized to perform such actions.

Example:

"123e4567-e89b-12d3-a456-426614174000"

Path Parameters

credit_application_id
string<uuid>
required

Unique identifier of the credit application

Example:

"b2a9f8d3-7b7d-4c1b-a2a1-9c2d0b123456"

Body

multipart/form-data
uploading_file
file
required

Response

Successful Response

mime_type
string
required

Media type of the uploaded file, must be on of: application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, application/x-rar-compressed, application/vnd.ms-excel, application/vnd.rar, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/zip, application/x-7z-compressed, application/pdf

Examples:

"application/pdf"

"application/zip"

filename
string
required

Credit application trade profile document filename

Example:

"invoice1.pdf"