Skip to content
Guarantee Pay Docs

API

Authentication

Every API call is a POST with a JSON body and your brand API key in a request header.

Header

MHS-GUARANTEEPAY-API-KEY: YOUR_API_KEY
Content-Type: application/json

Header names are case-insensitive. These aliases are also accepted for older integrations: MH-GUARANTEEPAY-API-KEY, MHS-PIPRAPAY-API-KEY, MH-PIPRAPAY-API-KEY.

The key must be sent as a header. Putting it in the JSON body (for example as brand_api or api_key) does not work and returns INVALID_API_KEY.

Permissions (scopes)

Each key only works for the permissions ticked when it was created:

Permission in panelScopeEndpoints
Create Paymentcreate_payment/api/create-charge, /api/checkout/redirect, /api/checkout/popup, /api/mark-sms-used
Verify Paymentverify_payment/api/verify-payment, /api/mark-sms-used
Refund Paymentrefund_payment/api/refund-payment

Key rules