Skip to main content

Get a business document

PUT /api/v1/BusinessesDocuments/update

Description

This endpoint allows the updating of an existing business document.

Request

Path

/api/v{version}/BusinessesDocuments/update

Headers

  • Accept-Language: Change default response message language from English(en). Available languages fr,en

Path Parameters

  • version: API version.

Request Body

jsonCopy code{
"schema": {
"$ref": "#/components/schemas/UpdateBusinessDocumentRequest"
}
}

Response

Success (200)
jsonCopy code{
"schema": {
"$ref": "#/components/schemas/BusinessDocumentResponse"
}
}

/api/v`{{version}}`/BusinessesDocuments/update

Headers

Content-TypeValue
Accept-Language

Headers

Content-TypeValue
Content-Typeapplication/json

Headers

Content-TypeValue
Accepttext/plain

Body (raw)

{
"documentId": `<uuid>`,
"businessId": `<uuid>`,
"type": 13,
"base64":`<string>`,
"fileName": `<string>`
}

Response: 200

{
"succeeded": `<boolean>`,
"message": `<string>`,
"errors": [
`<string>`,
`<string>`
],
"data": {
"id": `<uuid>`,
"businessId": `<uuid>`,
"type": 2,
"path": `<string>`,
"fileName": `<string>`,
"documentNumber": `<string>`,
"approved": `<boolean>`
}
}

LANGUAGE

AUTHORIZATION

Bearer

CURL REQUEST


curl --request PUT \ 
--url /api/v1/BusinessesDocuments/update \
--header 'accept: application/json' \
--header 'content-type: application/json'

RESPONSE


Click Try It! to start a request and see the response here!