Introduction

Griez Payment API adalah sistem payment gateway untuk:

  • QRIS Topup
  • E-Wallet Topup
  • Wallet System
Base URL
https://payment.griezstore.id

Authentication

Gunakan API Key dari dashboard. Header:
X-API-KEY: GPAYxxxxxxxx
Contoh CURL
curl -X POST https://payment.griezstore.id/wallet/balance \ -H "X-API-KEY: GPAYxxxxxxxx"

Get Wallet Balance

POST /wallet/balance Response
{ success: true, balance: 100000, totalTopup: 150000, totalSpent: 50000 }

Wallet History

POST /wallet/history Response
{ success:true, items:[ { type:"credit", amount:50000, description:"Topup QRIS berhasil" } ] }

Create QRIS Invoice

POST /topup/create Body
{ "amount":50000 }
Response
{ success:true, sessionId:"xxxx", baseAmount:50000, uniqueCode:72, totalAmount:50072, status:"pending", qris:"https://payment.griezstore.id/qris/xxx.png" }

Check Topup Status

POST /topup/status Body
{ "sessionId":"xxxx" }
Response
{ success:true, status:"paid", totalAmount:50072 }

Cancel Topup

POST /topup/cancel Body
{ "sessionId":"xxxx" }
Response
{ success:true, status:"cancelled" }

Topup History

POST /topup/history Response
{ success:true, items:[ { sessionId:"xxxx", totalAmount:50072, status:"paid" } ] }

Get Ewallet Products

POST /products/ewallet Response
{ success:true, total:12, products:[ { code:"BBSD", name:"Dana Topup (Bebas Nominal)", providerFee:90, feePercent:0.3 } ] }

Create Ewallet Purchase

POST /purchase/ewallet Body
{ "productCode":"BBSD", "target":"08123456789", "amount":10000, "refId":"INV001" }
Response
{ success:true, purchaseId:"xxxx", status:"pending" }

Check Purchase Status

POST /purchase/status Body
{ "purchaseId":"xxxx" }
Response
{ success:true, status:"success", providerMessage:"trx sukses" }

Purchase History

POST /purchase/history Response
{ success:true, items:[ { purchaseId:"xxxx", productCode:"BBSD", target:"08123456789", amount:10000, status:"success" } ] }