API Reference
DOKU DocsChangelogDOKU Github
  • Getting Started with DOKU API
    • User Registration
    • Idempotency Request
    • Notification
      • Setup Notification URL
      • HTTP Notification Sample for SNAP
      • HTTP Notification Sample - Non SNAP
      • Best Practice
      • Retry Notification
      • Override Notification URL
    • Signature Component
      • Non-SNAP
        • Signature Component from Request Header
        • Signature Componen from Response Header
        • Signature from API Get Method
        • Sample Code
      • SNAP
        • Symmetric Signature
        • Asymmetric Signature
    • Response Code
      • HTTP Status and Case Code
    • Check Status API
      • Non-SNAP
      • SNAP
    • Retrieve Payment Credential
  • Accept Payment
    • DOKU Checkout
      • Integration Guide
        • Backend Integration
        • Frontend Integration
        • Simulate payment and Notification
      • Supported Payment Methods
      • Status Order
      • Additional Feature
        • Tokenization
        • Promo on DOKU Checkout Page
        • Track Campaign Source on Google Analytics
      • Checkout Settings
    • Direct API
      • Non-SNAP
        • Cards
          • Payment Page Integration Guide
          • Host-To-Host Integration Guide
          • Mastercard Automatic Billing Updater (ABU) Integration Guide
            • Backend Integration
        • e-Wallet
          • Overview
          • DOKU e-Wallet
          • OVO Push Payment
          • ShopeePay
          • LinkAja
        • Paylater
          • Akulaku
          • Kredivo
          • Indodana
        • Digital Banking
          • Jenius Pay
        • Convenience Store
          • Alfa Group
          • Indomaret
      • SNAP
        • Integration Guide
          • Get Token API
            • B2B
            • B2B2C
          • Virtual Account
            • CIMB Virtual Account
            • BSI Virtual Account
            • BCA Virtual Account
            • BNC Virtual Account
            • BNI Virtual Account
            • Mandiri Virtual Account
            • BRI Virtual Account
            • BTN Virtual Account
            • Permata Virtual Account
            • Danamon Virtual Account
            • BSS Virtual Account
          • E-Wallet
            • DOKU Wallet
            • DANA
            • OVO
            • ShopeePay
          • Direct Debit
            • Allo Bank Direct Debit
            • BRI Direct Debit
            • CIMB Direct Debit
            • Mandiri Direct Debit
          • Kartu Kredit Indonesia Cepat Secure(KKI CPTS)
            • Host to Host Integration
          • QRIS
    • Finance and Settlement
      • Split Settlement
      • Custom Settlement Report
      • Hold and Release Settlement
      • Bulk Registration Bank
    • Test on DOKU Demo Site
    • DOKU Payment Simulator
  • Developer Kit
    • Postman Collection
    • Libraries and SDK
  • Wallet As A Service
    • Sub Account
  • Partnership
    • Partner API
      • Check Requirements API
      • Generate Token API
      • Upload File API
      • Business Registration API
      • Create Business Lite API
      • Get Business Data API
  • Payout
    • Kirim DOKU
  • FLEXIBILL
    • Account Billing
      • Batch Upload
    • DOKU Biller
      • Response Code
      • Samples
  • PAYCHAT API
    • Send WhatsApp Message
  • Archive
    • Non-SNAP
      • Tokenization V1
      • e-Wallet
        • OVO Recurring
        • OVO Open API
    • SNAP
      • Virtual Account
        • BCA v1.0
        • BRI v1.0
        • BNI v1.0
        • BNC v1.0
        • Mandiri v1.0
        • BTN v1.0
        • Permata v1.0
        • Danamon Virtual Account
      • e-Wallet
        • OVO Open API
        • DANA
        • ShopeePay
      • Direct Debit
        • CIMB Direct Debit
        • BRI Direct Debit
        • Allobank
Powered by GitBook

DOKU API

  • Legacy Documentation
On this page
  • Endpoint
  • Authorization (Bearer Token)
  • Request Body (Form Data)
  • Possible Values
  • Response

Was this helpful?

  1. Partnership
  2. Partner API

Upload File API

PreviousGenerate Token APINextBusiness Registration API

Last updated 10 months ago

Was this helpful?

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 to generate bearer token

Request Body (Form Data)

Parameter
Type
Mandatory
Possible Values

category

text

Mandatory

code

text

Conditional

file

file

Conditional

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).

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

only needed when category is DOCUMENT ()

.JPG, .PNG (check requirements using ) -- only needed when file_url is empty)

Used for

Generate Token API
Check Requirements API
Create Business API
Possible Values
Possible Values