๐ Debug API bukaOlshop
๐ Konfigurasi:
Array
(
[db_host] => localhost
[db_name] => rcpulsam_investasiqurcp
[db_user] => rcpulsam_investasikurcp1
[db_pass] => Man9sulethea32
[api_key] => WWxuT2xlZHNGVzJhdG9ScUNJWVdSK2UxL2tDcTMrdG5ZWFlieXlSTlU5Z0RNYmRNajhDNFZQY296UmR6eTNuU25KMWdpUWx0SVhCTkNOQ2dOZXZPcVd1bzNIanNnN2FkWmw0TVRGYW45L2tDRnVZbDk3bGgvWU9LWU1QaGZCb1FDbjhDeVdpNURvbm1zUElyZHYvOFh3WFhiRmcxdWhKNGh5OVIwYjdkYmFpa2ZkT3FaVlhXcWp4Z2ppdmJ1azRC
[app_name] => InvestasiQu
[open_api_token] => eyJhcHAiOiIxNjA4MDIiLCJhdXRoIjoiMjAyNDA3MjUiLCJzaWduIjoibTc3ZWNVdGNOT3ZXOEpUMWswMUgzZz09In0==
)
๐งช Test Ubah Saldo dengan ID User: OAqN
๐ด Test KURANG saldo (seperti investasi)
Request ke API:
URL: https://bukaolshop.net/api/v1/member/saldo
Method: POST
Headers: Authorization: Bearer WWxuT2xlZHNGVzJhdG9S...
Body: {
"id_user": "OAqN",
"tipe": "kurang",
"jumlah": 1000,
"catatan_saldo": "Test dari debug API",
"notifikasi": true,
"judul_notifikasi": "\ud83d\udcb0 Test Investasi",
"pesan_notifikasi": "Test investasi Rp 1.000"
}Response:
HTTP Code: 400
Response Body: {"code":400,"status":"gagal - 400 Bad Request"}Verbose Log:
* Host bukaolshop.net:443 was resolved.
* IPv6: (none)
* IPv4: 147.139.174.214
* Trying 147.139.174.214:443...
* ALPN: curl offers h2,http/1.1
* SSL Trust: peer verification disabled
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256 / [blank] / UNDEF
* ALPN: server accepted http/1.1
* Server certificate:
* subject: CN=bukaolshop.net
* start date: Mar 16 04:59:43 2026 GMT
* expire date: Jun 14 04:59:42 2026 GMT
* issuer: C=US; O=Let's Encrypt; CN=R12
* Certificate level 0: Public key type ? (2048/112 Bits/secBits), signed using sha256WithRSAEncryption
* Certificate level 1: Public key type ? (2048/112 Bits/secBits), signed using sha256WithRSAEncryption
* OpenSSL verify result: 14
* SSL certificate verification failed, continuing anyway!
* Established connection to bukaolshop.net (147.139.174.214 port 443) from 195.88.211.70 port 40626
* using HTTP/1.x
> POST /api/v1/member/saldo HTTP/1.1
Host: bukaolshop.net
Accept: */*
Authorization: Bearer WWxuT2xlZHNGVzJhdG9ScUNJWVdSK2UxL2tDcTMrdG5ZWFlieXlSTlU5Z0RNYmRNajhDNFZQY296UmR6eTNuU25KMWdpUWx0SVhCTkNOQ2dOZXZPcVd1bzNIanNnN2FkWmw0TVRGYW45L2tDRnVZbDk3bGgvWU9LWU1QaGZCb1FDbjhDeVdpNURvbm1zUElyZHYvOFh3WFhiRmcxdWhKNGh5OVIwYjdkYmFpa2ZkT3FaVlhXcWp4Z2ppdmJ1azRC
Content-Type: application/json
Content-Length: 198
* upload completely sent off: 198 bytes
< HTTP/1.1 400 Bad Request
< Date: Tue, 12 May 2026 18:31:45 GMT
< Server: Apache
< X-Powered-By: PHP/7.4.33
< X-Powered-By: PleskLin
< Connection: close
< Transfer-Encoding: chunked
< Content-Type: application/json
<
* shutting down connection #0
๐ข Test TAMBAH saldo (seperti penarikan)
Request ke API:
URL: https://bukaolshop.net/api/v1/member/saldo
Method: POST
Headers: Authorization: Bearer WWxuT2xlZHNGVzJhdG9S...
Body: {
"id_user": "OAqN",
"tipe": "tambah",
"jumlah": 1000,
"catatan_saldo": "Test dari debug API",
"notifikasi": true
}Response:
HTTP Code: 400
Response Body: {"code":400,"status":"gagal - 400 Bad Request"}Verbose Log:
* Host bukaolshop.net:443 was resolved.
* IPv6: (none)
* IPv4: 147.139.174.214
* Trying 147.139.174.214:443...
* ALPN: curl offers h2,http/1.1
* SSL Trust: peer verification disabled
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256 / [blank] / UNDEF
* ALPN: server accepted http/1.1
* Server certificate:
* subject: CN=bukaolshop.net
* start date: Mar 16 04:59:43 2026 GMT
* expire date: Jun 14 04:59:42 2026 GMT
* issuer: C=US; O=Let's Encrypt; CN=R12
* Certificate level 0: Public key type ? (2048/112 Bits/secBits), signed using sha256WithRSAEncryption
* Certificate level 1: Public key type ? (2048/112 Bits/secBits), signed using sha256WithRSAEncryption
* OpenSSL verify result: 14
* SSL certificate verification failed, continuing anyway!
* Established connection to bukaolshop.net (147.139.174.214 port 443) from 195.88.211.70 port 40650
* using HTTP/1.x
> POST /api/v1/member/saldo HTTP/1.1
Host: bukaolshop.net
Accept: */*
Authorization: Bearer WWxuT2xlZHNGVzJhdG9ScUNJWVdSK2UxL2tDcTMrdG5ZWFlieXlSTlU5Z0RNYmRNajhDNFZQY296UmR6eTNuU25KMWdpUWx0SVhCTkNOQ2dOZXZPcVd1bzNIanNnN2FkWmw0TVRGYW45L2tDRnVZbDk3bGgvWU9LWU1QaGZCb1FDbjhDeVdpNURvbm1zUElyZHYvOFh3WFhiRmcxdWhKNGh5OVIwYjdkYmFpa2ZkT3FaVlhXcWp4Z2ppdmJ1azRC
Content-Type: application/json
Content-Length: 104
* upload completely sent off: 104 bytes
< HTTP/1.1 400 Bad Request
< Date: Tue, 12 May 2026 18:31:45 GMT
< Server: Apache
< X-Powered-By: PHP/7.4.33
< X-Powered-By: PleskLin
< Connection: close
< Transfer-Encoding: chunked
< Content-Type: application/json
<
* shutting down connection #0
๐ค Cek Informasi User via Open API
URL: https://openapi.bukaolshop.net/v1/user/info?token=eyJhcHAiOiIxNjA4MDIiLCJhdXRoIjoiMjAyNDA3MjUiLCJzaWduIjoibTc3ZWNVdGNOT3ZXOEpUMWswMUgzZz09In0==&token_user={{token_user}}&id_user=OAqN
HTTP Code: 200
Response: {"code":200,"status":"nodata"}