Learn how to authenticate with Open Market API
To use the Open Market API, you’ll need to create an account and obtain your API keys. This guide will walk you through the process step by step.
First, create your business account at Open Market Enterprise.
Once logged in, navigate to the API section in your dashboard at API Settings.
In the API settings, you’ll need to configure three important URLs:
This is the URL where Open Market will send payment notifications. It’s crucial for:
Example: https://your-domain.com/api/webhook
The URL where customers are redirected after a successful payment:
Example: https://your-domain.com/payment/success
The URL where customers are redirected if the payment fails:
Example: https://your-domain.com/payment/failed
After configuring your URLs, you’ll have access to two essential keys:
pk_live_xxxxxxxxxxxxxxxxxxxxxxxx
sk_live_xxxxxxxxxxxxxxxxxxxxxxxx
Include your public key in all API requests using the api-key
header: