Hitpay Platform APIs are an extension of the above Payment Request APIs are used by e-commerce platforms or aggregators who host other merchants. Platforms will have the ability to create payment requests on behalf of the merchants that are on their platform.Platforms will also have the ability to set a commission for the transactions that happen through their platform.
Hitpay uses API keys to allow access to the API. Once your account is converted to “Platform Account” you can you can access your “Platform API Key” (Settings > Payment Gateway > Platform). This Platform API Key along with Merchant API key is expected to be included in all API requests to the server in a header that looks like the following:X-BUSINESS-API-KEY: meowmeowmeowX-PLATFORM-KEY: bowbowbow
You must replace meowmeowmeow with your Merchant API key & bowbowbow with your Platform API key
To authorize, use this code:
Copy
Ask AI
# With shell, you can just pass the correct header with each requestcurl "api_endpoint_here" -H "X-BUSINESS-API-KEY: meowmeowmeow" -H "X-PLATFORM-KEY: bowbowbow" -H "X-Requested-With: XMLHttpRequest"