Comment on page
💡
Headers
Untuk suksesnya komunikasi dengan API CEISA 4.0, Anda harus mencantumkan Headers pada setiap permintaan API.
Nama | Tipe | Deskripsi |
Authorization | Alphanumeric | OAuth2.0 Token Format value: Bearer {AccessToken} |
Content-Type | Alphanumeric | Content of your request body e.g. application/json |
id_platform | Alphanumeric | Merupakan id pengenal untuk platform yang terdaftar di portal NLE, untuk tipe user host to host dapat diabaikan |
Origin | url | Origin domain e.g. yourdomain.com |
nle-api-key | Alphanumeric | Your API Key generated by CEISA 4.0 |
Berikut contoh permintaan dengan Headers yang lengkap:
GET /openapi/status HTTP/1.1
Host: apisdev-gw.beacukai.go.id
Authorization: Bearer a0daAPsGwPDHGMv6MpWzoIPgZvN9YvrSi7xdVI7Jb98638ilM7ila7
Content-Type: application/json
Origin: yourdomain.com
id_platform: PL0099
Beacukai-Api-Key: 41138489-1057-4e7e-ab93-9bc97b511cf6
Last modified 2mo ago