Partner API
Automate merchant account management from your own platform.
Use Partner API when merchant account management needs to be integrated into your own platform instead of performed manually in the Partner Portal.
The API lets you create merchant accounts when a customer signs up, retrieve the merchants associated with your partner profile, activate an account, and request merchant access tokens. The API reference contains the request and response schemas for each operation.
Merchant account management
API referencePOSTCreate merchant Account/public/api/v1/partner/accountsUse this endpoint to create a new merchant account associated with your partner profile.
API referenceGETList merchant Accounts/public/api/v1/partner/accountsOpen the full API reference for request details, examples, and response schema.
API referenceGETShow merchant Account/public/api/v1/partner/accounts/{accountId}Fetches merchant account details for the request id.
API referencePATCHActivate merchant Live Account/public/api/v1/partner/accounts/{accountId}/activateTo enable a merchant to go live, and begin billing, use this endpoint.
API referenceDELETEClose merchant Account/public/api/v1/partner/accounts/{accountId}Marks a merchant account for closing.
Closing an account marks it for closing. It is closed by ePay during the next billing period.
Access a merchant through the API
API referencePOSTRequest Merchant Access Token/public/api/v1/partner/accounts/{accountId}/access-tokenTo access the ePay API on behalf of a merchant under your partner profile, partners must create a access token for the merchant before sending requests.
Request an access token when your integration needs to access the ePay API on behalf of a merchant under your partner profile. The API reference documents the supported environment and token behaviour.
Notification authentication
Use your partner notification secret to authenticate notification webhooks for finalized transactions and pre-authorization callbacks across all your merchants, in both test and live environments.
Which secret applies?
The credential used to initiate a transaction determines its notification secret:
| Transaction initiated using | Notification secret |
|---|---|
| A merchant access token generated through the Partner API | The shared partner notification secret |
| A merchant API key directly | The merchant-specific Point of Sale secret |
| The backoffice | The merchant-specific Point of Sale secret |
Request a partner-generated merchant access token using this endpoint:
API referencePOSTRequest Merchant Access Token/public/api/v1/partner/accounts/{accountId}/access-tokenTo access the ePay API on behalf of a merchant under your partner profile, partners must create a access token for the merchant before sending requests.
Use the returned token with the merchant API. For transactions initiated using these tokens, the partner notification secret replaces the merchant-specific Point of Sale secret.
Validate incoming notifications and pre-authorization callbacks
- Open Notification secret in the Partner Portal and copy the key.
- Store the complete value securely in your integration's server-side configuration.
- Compare each incoming notification or pre-authorization callback's
Authorizationheader with the configured value before processing its payload. Reject requests with a missing or mismatched value.
The secret is the complete Authorization header value, including its scheme. For example, if the copied value is Bearer <your-notification-secret>, compare against that full value, including Bearer .
You can edit the secret in the Partner Portal. Changes take effect immediately for both test and live transactions, so prepare your notification handler to accept the new value before saving it.
API key and notification secret
| Credential | Used for |
|---|---|
| Partner API key | Calling the Partner API to manage merchants and request merchant access tokens |
| Merchant access token | Calling the merchant API on behalf of a merchant, including initiating payments |
| Partner notification secret | Authenticating incoming notification webhooks and pre-authorization callbacks for those transactions |
Prefer manual administration?
Use the Partner Portal to manage merchants and partner users through the UI.