Setting up your API authentication

To interact with the PPRO API, you must use an API key. This key is unique to your account and is sensitive information that should never be exposed publicly or used on the client side.

Each API call must include the API key as a Bearer token in the Authorization header of the HTTP request.

Additionally, you must include your individual merchant account identifier in the Merchant-Id header of the HTTP request.

POST /v1/payment-charges HTTP/1.1
Host: api.sandbox.eu.ppro.com
Content-Type: application/json
Accept: application/json
Authorization: Bearer key_sandbox_e14fxEqGY1wIJORfA7PtA
Merchant-Id: merch_hW14dQxwNJiBA0buG4L2p

{..}

👍

Sandbox vs. Live APIs

To start handling payments with real money movement, your account must be activated, and you need to use the api.ppro.com host instead of the sandbox with your live credentials.

Live API: <https://api.eu.ppro.com>

Sandbox API: <https://api.sandbox.eu.ppro.com>

Providing invalid credentials will result in a 401 Unauthorized response status code.

{
    "message": "Unauthorized"
}