# Bayarcash API > Bayarcash is a Malaysian payment gateway. This is the reference for API v3: FPX, Direct Debit, DuitNow QR, cards, e-wallets and buy now, pay later. - Interactive reference: https://api-reference.bayarcash.com/ - OpenAPI document: https://api-reference.bayarcash.com/openapi/v3.yaml (also https://api-reference.bayarcash.com/openapi/v3.json) - Production base URL: https://api.console.bayar.cash - Authentication: a Personal Access Token as a bearer token (`Authorization: Bearer `). - Help centre for merchants: https://docs.bayarcash.com/ (its own index: https://docs.bayarcash.com/llms.txt) ## Guides - [Getting Started](https://api-reference.bayarcash.com/#tag/getting-started): Each v3 request needs 3 items: a **Personal Access Token**, a **portal key** and a **payment channel**. ## 1. Personal Access Token Create a token in your accou - [Payment Channels](https://api-reference.bayarcash.com/#tag/payment-channels): Send the ID of the channel as `payment_channel`. You can use only the channels that are switched on for your portal. FPX Personal Banking (B2C) is on by default - [Checksum](https://api-reference.bayarcash.com/#tag/checksum): ## Make a request checksum For secure requests, make a checksum with your API Secret Key and add it to the request. Bayarcash uses the checksum to make sure tha - [Idempotency](https://api-reference.bayarcash.com/#tag/idempotency): ## Idempotent requests With an idempotency key, you can safely send a request again. Bayarcash does not do the same operation 2 times. Use it when a request sto - [Payer Identity Verification](https://api-reference.bayarcash.com/#tag/payer-identity-verification): ## Payer Identity Verification FPX can verify the identity of the payer. It checks that the buyer and the payer are the same person or company, and it checks th - [Card Recurring Overview](https://api-reference.bayarcash.com/#tag/card-recurring-overview): With card recurring, Bayarcash charges the card of a customer more than 1 time. There are 3 types: - **Subscription:** a fixed price at a fixed interval, from a - [SDKs & Plugins](https://api-reference.bayarcash.com/#tag/sdks-plugins): Official libraries, and integrations that need no code. Each SDK supports API v2 and v3. ## SDKs | Language | Package | Install | |---|---|---| | PHP | [`bayarc - [Changelog](https://api-reference.bayarcash.com/#tag/changelog): Changes to the Bayarcash API v3, and corrections to this reference. The newest changes are first. ## 10 Nov 2026 ### New: card recurring Charge the card of a cu ## Payments - Payment Intent: Initialize Payment (`POST /v3/payment-intents`) - Payment Intent: Get a Payment Intent (`GET /v3/payment-intents/{payment_intent_id}`) - Payment Intent: Cancel a Payment Intent (`DELETE /v3/payment-intents/{payment_intent_id}`) - DuitNow QR: Generate a DuitNow QR for a Payment Intent (`POST /v3/payment-intents/{payment_intent_id}/duitnow-qr`) - DuitNow QR: Poll DuitNow QR payment status (`GET /v3/transactions/{transaction_id}/duitnow-qr/status`) - Transaction: Get a list of all transactions (`GET /v3/transactions`) - Transaction: Get a transaction (`GET /v3/transactions/{transaction_id}`) - Banks List: Get the FPX bank list (`GET /v3/banks`) - Banks List: Get the DuitNow Online Banking/Wallets (DOBW) bank list (`GET /v3/duitnow/dobw/banks`) ## Recurring - Direct Debit: Get a list of all Direct Debit mandates (`GET /v3/mandates`) - Direct Debit: Direct Debit Enrollment (`POST /v3/mandates`) - Direct Debit: Get a Direct Debit mandate (`GET /v3/mandates/{mandate_id}`) - Direct Debit: Direct Debit Maintenance (`PUT /v3/mandates/{mandate_id}`) - Direct Debit: Direct Debit Termination (`DELETE /v3/mandates/{mandate_id}`) - Direct Debit: Activate a Direct Debit mandate (`PATCH /v3/mandates/{mandate_id}/activate`) - Direct Debit: Deactivate a Direct Debit mandate (`PATCH /v3/mandates/{mandate_id}/deactivate`) - Direct Debit: Get a list of all Direct Debit transactions (`GET /v3/mandates/transactions`) - Direct Debit: Get a Direct Debit transaction (`GET /v3/mandates/transactions/{transaction_id}`) ## Card Recurring - Customers: Get a list of customers (`GET /v3/customers`) - Customers: Create a customer (`POST /v3/customers`) - Customers: Get a customer (`GET /v3/customers/{customerId}`) - Customers: Save a card (`POST /v3/customers/{customerId}/save-card`) - Plans: Get a list of plans (`GET /v3/plans`) - Plans: Create a plan (`POST /v3/plans`) - Plans: Get a plan (`GET /v3/plans/{planId}`) - Plans: Update a plan (`PATCH /v3/plans/{planId}`) - Subscriptions: Get a list of subscriptions (`GET /v3/subscriptions`) - Subscriptions: Create a subscription (`POST /v3/subscriptions`) - Subscriptions: Get a subscription (`GET /v3/subscriptions/{subscriptionId}`) - Subscriptions: Change the status of a subscription (`PATCH /v3/subscriptions/{subscriptionId}`) - Installments: Get a list of installments (`GET /v3/installments`) - Installments: Create an installment (`POST /v3/installments`) - Installments: Get an installment (`GET /v3/installments/{installmentId}`) - Installments: Change the status of an installment (`PATCH /v3/installments/{installmentId}`) - Charges: Get a list of the charges of a customer (`GET /v3/customers/{customerId}/payments`) - Charges: Get a list of the charges of a subscription (`GET /v3/subscriptions/{subscriptionId}/payments`) - Charges: Get a list of the charges of an installment (`GET /v3/installments/{installmentId}/payments`) - Charges: Charge a saved card (`POST /v3/payments`) - Charges: Get a charge (`GET /v3/payments/{paymentId}`) ## Merchant - Merchant Portal: Get a list of merchant portals (`GET /v3/portals`) - Merchant Portal: Create a merchant portal (`POST /v3/portals`) - Merchant Portal: Get a merchant portal (`GET /v3/portals/{portal_id}`) - Merchant Portal: Update a merchant portal (`PUT /v3/portals/{portal_id}`) - Merchant Portal: Delete a merchant portal (`DELETE /v3/portals/{portal_id}`) - Merchant Settlement: Get a list of merchant settlements (`GET /v3/payouts`) - Merchant Settlement: Get a merchant settlement (`GET /v3/payouts/{payout_id}`) ## Service - Health Check: Get the API server status (`GET /v3/up`) ## Callbacks (webhooks) - transactionCallback: Transaction callback - mandateAuthorizationCallback: Direct Debit - authorization callback - mandateBankApprovalCallback: Direct Debit - bank approval callback - mandateTransactionCallback: Direct Debit - transaction callback - recurringChargeCallback: Recurring Charge Callback ## Optional - [Full text of the reference](https://api-reference.bayarcash.com/llms-full.txt): every guide and endpoint with its fields