Upload File API
Used to upload related business documents. Partners can use this component to upload their business documents directly to the Partner API.
Endpoint
HTTP Method
POST
API endpoint (Test Mode)
https://api-uat.doku.com/adv-core-api/partner/v1.0/file
API endpoint (Production)
https://api.doku.com/adv-core-api/partner/v1.0/file
Authorization (Bearer Token)
Sample:
Use Generate Token API
to generate bearer token
Request Body (Form Data)
file
file
Conditional
.JPG, .PNG (check requirements using Check Requirements API)
--
only needed when file_url
is empty)
file_url
text
Conditional
Image URL (e.g. https://www.website.domain/assets-lna/images/logo.png)
--
only needed when file
is empty
Possible Values
Applied for all businessType
:
Response
link
string
Mandatory
Link of file
category
string
Mandatory
Same as request
File 'link' will be expired in 60 minutes, it does not delete the file data (file id).
Last updated