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

Type
Value

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:

eyJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJwYXlsb2FkIiwiZXhwIjoxNjk1MTg1NzQ0LCJ1c2VyIjp7ImJ1c2luZXNzU2VydmljZUNsaWVudElkIjoiQlJOLTAyNDEtMTY5NTAwODQwMTg5OSJ9LCJpYXQiOjE2OTUxODU0NDR9.fNpOOgQskTxZJwpuUM7STIFSua5d37LoadFoy57OlXhTWIUFSyiYbIMyUOEiPUiCnj8oOF1CdKyTGowXu2Kr1a35qVvoiCjvrzTTbmTULcPc6TRkHpCLNhgr099M8wBjgKOsAbarR6PoAyjc8XB7V8dmsDCfs1K03gmSvK1e4rf5O1bj0xwN6PFLUT8CaPmhWGeHdBw2AglkXBJGm41LpBT3QS-GgNLsg0IUOA1jZwaNar-bnhJLfuvHdfvoi9hBVf4P3H7pGETaPkx1xi-5yFh4xG8CcGm0goInZHSdQ1NBi1O9zXUEdQDEMDbPoUjGJCNLoPubtdvgwXHawHCISA

Use Generate Token API to generate bearer token

Request Body (Form Data)

Parameter
Type
Mandatory
Possible Values

category

text

Mandatory

e.g. OWNER_LIVENESS, DOCUMENT, etc. (Possible Values)

code

text

Conditional

only needed when category is DOCUMENT (Possible Values)

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 :

Possible values category
  • OWNER_LIVENESS

  • PHOTO_PROOF

  • LOGO

  • DOCUMENT

  • SERVICE_AGREEMENT

  • BANK_ACCOUNT

Possible values code
  • AKTA_PENDIRIAN_PERUSAHAAN

  • BPOM

  • COMPANY_REGISTRATION

  • IZIN_BLU

  • IZIN_BOPI

  • IZIN_DISPENDIK_KEMENDIKBUD

  • IZIN_DISTRIBUTOR_RESMI

  • IZIN_EDAR_ALAT_KESEHATAN, IZIN_KERAMAIAN

  • IZIN_KOPERASI_SIMPAN_PINJAM

  • IZIN_PENYELENGGARAAN_IBADAH_HAJI_DAN_UMRAH

  • IZIN_PMB, IZIN_PUB, IZIN_USAHA

  • IZIN_USAHA_PERSEORANGAN

  • KITAS_OR_KITAP

  • KTP

  • LICENSE_ASIC

  • LICENSE_CFTC

  • LICENSE_CYSEC

  • LICENSE_FCA

  • LICENSE_IFSC

  • LISENSI_BAPPEBTI

  • LISENSI_OJK

  • NIB

  • NIB_PERSEORANGAN

  • NPWP_BADAN

  • NPWP_ORANG_PRIBADI

  • PASPOR

  • SERTIFIKAT_HALAL_MUI

  • SERTIFIKAT_KEANGGOTAAN_ASITA

  • SK_KEMENDIKBUDRISTEK

  • SK_KEMENKUMHAM

  • SK_PENDIRIAN_YAYASAN

  • TANDA_DAFTAR_PSE

  • TANDA_DAFTAR_YAYASAN

Response

{
    "id": "CNT-0104-1676639713907",
    "link": "https://doku.com/12345566",
    "category": "OWNER_LIVENESS"
}
Parameter
Type
Mandatory
Description

id

string

Mandatory

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