Technical Documentation

Here you will find documentation for all Greiðslumiðlun APIs. The main API is referred to as our external API . Current version Swagger can be found here → https://api.pei.is/docs/ui/index

Quick glance list

  1. For testing create bearer token using https://authstaging.pei.is/core/connect/token

    1. grant_type=client_credentials

    2. scope=externalapi

    3. Basic auth:

      1. clientId=democlient

      2. secret=demosecret

  2. When testing using the democlient, use merchantId 4

  3. API for testing: https://externalapistaging.pei.is

  4. Testing Greiðslugátt URL: https://gattinstaging.pei.is

  5. API documentation: 
    https://api.pei.is/docs/ui/index 
    https://externalapistaging.pei.is/docs/ui/index 

The most typical workflow - Create an order

  1. Authenticate using POST https://auth.pei.is/core/connect/token, with relevant input parameters to get an bearer token.

  2. Create an order using POST https://api.pei.is/api/orders and get an orderId from the response.

  3. Redirect buyer to https://gattin.pei.is/{{orderId}} to complete the order payment.