PS

Module

Pengaturan API Key

Atur akses aman dari web eksternal ke Label Generator dan Resi Matcher.

External Integration

Konfigurasi Akses

Semua perubahan disimpan ke file konfigurasi lokal.

Satu origin per baris. Gunakan * untuk izinkan semua origin.

API key aktif saat ini: ilNU4O-Y...Ekc6Zg

Endpoint API

Gunakan header X-API-Key atau Authorization: Bearer ....

Health Check

GET http://toolff.ptslu.id/api/ping

Label Generator API

POST http://toolff.ptslu.id/api/label/generate

Resi Matcher API

POST http://toolff.ptslu.id/api/resi/process
GET  http://toolff.ptslu.id/api/resi/download/<job_id>
GET  http://toolff.ptslu.id/api/resi/report/<job_id>

Contoh cURL

Gunakan contoh ini untuk integrasi backend atau web service eksternal.

curl -X POST "http://toolff.ptslu.id/api/label/generate" \
  -H "X-API-Key: ilNU4O-YD2GupQ0e3NDpVhNYJ7wRKkSGtIMtOEkc6Zg" \
  -F "sheet_url=https://docs.google.com/spreadsheets/d/xxx/edit?gid=123"

curl -X POST "http://toolff.ptslu.id/api/resi/process" \
  -H "X-API-Key: ilNU4O-YD2GupQ0e3NDpVhNYJ7wRKkSGtIMtOEkc6Zg" \
  -F "order_source=upload" \
  -F "order_file=@order.xlsx" \
  -F "col_resi=No Resi" \
  -F "col_nama=Nama" \
  -F "col_telp=Telepon" \
  -F "match_mode=Auto (Resi -> Telp -> Nama)" \
  -F "max_pages=200" \
  -F "max_produk=6" \
  -F "pdf_files=@resi1.pdf" \
  -F "pdf_files=@resi2.pdf"