API Payment ServiceGetting Started

Authentication

Authentication ๐Ÿ”

All requests to the Komerce Payment API must be authenticated using an API key.

This key uniquely identifies your merchant account and ensures that your requests are authorized.

Your Komerce Payment API key is the same key used in the Komerce Shipping (RajaOngkir) service.

You do not need to create a new key to use the Payment API.

๐Ÿ”‘ Getting Your API Key

  1. Login to your Collaborator Dashboard
  2. Navigate to the sidebar menu Developer โ†’ Settings
  3. Click on Api Key
  4. You'll find Payment API
    • Do not use API keys intended for other services (e.g. Shipping Delivery, etc.)

Info

โš ๏ธ Important: Treat your APIKEY like a password. Never share it or expose it publicly (e.g., in GitHub repos or front-end code).

๐Ÿงพ Authentication Method

Komerce Payment uses header-based authentication.

Each request must include the following header:

x-api-key : YOUR_API_KEY
Content-Type: application/json
    curl --location 'https://api-sandbox.collaborator.komerce.id/user/api/v1/user/methods' \
--header 'x-api-key: YOUR_API_KEY'

โš™๏ธ Sandbox vs Production Keys

EnvironmentBase URLKey PrefixDescription
Sandbox
https://api-sandbox.collaborator.komerce.id/user
sandbox
Used for testing transactions. Payments are simulated and not processed by banks.
Production
https://api.collaborator.komerce.id/user
live
Used for live payments in real transactions.

๐Ÿ”’ Tip: Always use separate keys for sandbox and production environments to avoid mixing real and test data.

More Information

chat

Need Help?

For questions about integration or the API, hit the live chat. Our team's on standby.

bg-pin-robg-box-ro

On this page