> ## Documentation Index
> Fetch the complete documentation index at: https://docs.commercecash.my/llms.txt
> Use this file to discover all available pages before exploring further.

# Environment Domains

> API endpoints for Sandbox and Production environments

CommerceCash provides separate environments for **Sandbox** and **Production** to support development, testing, and live transactions.

<Info>
  Use the **Sandbox** environment for development and integration testing. Switch to the **Production** environment only after obtaining your production credentials.
</Info>

## Environment Overview

<CardGroup cols={2}>
  <Card title="Sandbox">
    Development and testing environment. No real financial transactions are processed.
  </Card>

  <Card title="Production">
    Live environment for processing actual customer transactions.
  </Card>
</CardGroup>

***

## API Domains

CommerceCash organizes APIs into dedicated services. Each service has its own base URL while sharing the same authentication and security model.

<Tabs>
  <Tab title="Sandbox">
    | Service        | Base URL                                     |
    | -------------- | -------------------------------------------- |
    | Payment API    | `https://sandbox-payment.commercecash.my`    |
    | Bill API       | `https://sandbox-bill.commercecash.my`       |
    | Parking API    | `https://sandbox-parking.commercecash.my`    |
    | Remittance API | `https://sandbox-remittance.commercecash.my` |
  </Tab>

  <Tab title="Production">
    | Service        | Base URL                             |
    | -------------- | ------------------------------------ |
    | Payment API    | `https://payment.commercecash.my`    |
    | Bill API       | `https://bill.commercecash.my`       |
    | Parking API    | `https://parking.commercecash.my`    |
    | Remittance API | `https://remittance.commercecash.my` |
  </Tab>
</Tabs>

***

# Switching to Production

***

# Best Practices

<Info>
  Only the **Base URL** changes between Sandbox and Production. All API endpoints, request payloads, response formats, and authentication methods remain identical.
</Info>

<Info>
  Store API domains and credentials in configuration files or environment variables instead of hardcoding them into your application.
</Info>

<Warning>
  Do not use Sandbox credentials against Production endpoints, or Production credentials against Sandbox endpoints.
</Warning>

***

# Related Documentation

<CardGroup cols={2}>
  <Card title="Authentication" icon="key" href="/authentication">
    Learn how to authenticate API requests.
  </Card>

  <Card title="Request Headers" icon="code">
    Understand the required HTTP headers.
  </Card>

  <Card title="Signature Generation" icon="shield-check">
    Generate request signatures using HMAC-SHA256.
  </Card>

  <Card title="Create Transaction" icon="credit-card">
    Create your first transaction using the Payment API.
  </Card>
</CardGroup>
