Skip to content

Introduction to Gerbang Pay โ€‹

What is Gerbang Pay? โ€‹

Gerbang Pay is a Payment Orchestration API that allows Indonesian businesses to accept payments from various methods and providers through a single integration. Instead of integrating Winpay and Midtrans separately, you only need to connect to Gerbang Pay โ€” and our system manages the routing, signatures, retries, and webhook forwarding to your application.

The platform is designed for multi-tenancy: every business (tenant) has its own isolated provider configurations, routing rules, and webhook URLs.


Platform Architecture โ€‹

Client Application
      โ”‚
      โ”‚  POST /v1/payments/create
      โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚    Gerbang Pay API  โ”‚  โ† Authentication, Validation, Idempotency
โ”‚   (Orchestrator)    โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
          โ”‚  Routing based on tenant configuration
    โ”Œโ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”
    โ–ผ            โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”   โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚Winpay โ”‚   โ”‚ Midtrans โ”‚   โ† External Providers
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
    โ”‚            โ”‚
    โ””โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”˜
          โ”‚  Callback (POST /v1/callbacks/{provider}/{tenant_id})
          โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚    Gerbang Pay API  โ”‚  โ† Signature verification, status update
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
          โ”‚  Webhook (HMAC-signed)
          โ–ผ
   Client Webhook URL

Brief flow:

  1. Client creates a payment โ†’ Gerbang Pay forwards it to the configured provider.
  2. Provider processes and sends a callback to Gerbang Pay.
  3. Gerbang Pay verifies the callback, updates the status, then sends a webhook to the client's URL.

Supported Providers โ€‹

Winpay โ€‹

A payment provider based on the Bank Indonesia standard SNAP API.

Payment MethodSupported Channels
Virtual AccountBCA, BRI, BNI, Mandiri, BSI, CIMB, Permata, Muamalat, Sinarmas, BNC, Maybank
QRISMPM Dynamic
E-WalletDANA, OVO, ShopeePay, AstraPay, SpeedCash
Over The CounterAlfamart, Indomaret, Fastpay

Midtrans โ€‹

A leading payment provider with extensive coverage.

Payment MethodSupported Channels
Virtual AccountBCA, BNI, BRI, Mandiri, Permata, CIMB, Danamon
QRISMPM Dynamic
E-WalletGoPay
Cardless CreditAkulaku, Kredivo
Over The CounterAlfamart, Indomaret

Base URL โ€‹

https://gerbang-pay-api.gai.co.id

All endpoints are under the /v1 prefix.

Example full URL:

https://gerbang-pay-api.gai.co.id/v1/payments/create

Response Format โ€‹

All responses from Gerbang Pay use a consistent JSON envelope.

Success Response โ€‹

json
{
  "success": true,
  "data": { ... }
}

For endpoints with pagination, the response includes total_count:

json
{
  "success": true,
  "total_count": 42,
  "data": [ ... ]
}

Error Response โ€‹

json
{
  "success": false,
  "error": {
    "code": "ERROR_CODE",
    "message": "Human-readable error message"
  }
}

See the Error Codes page for a complete list of all error codes.


API Version โ€‹

The API is currently at version v1. All breaking changes will be rolled out as a new version with a deprecation period.


๐Ÿ’ก Next steps: Proceed to the Quickstart to create your first payment in 5 steps, or learn about authentication first.

Gerbang Pay API Documentation