Quick start
Use the Report API to get details for their own sales units and merchants. In addition, you can order products on behalf of your merchants.
Be aware that these are running on the production server.
Postman
Prerequisites
Review Vipps quick start guides for information about getting your test environment set up.
Step 1: Get the Vipps Postman collection and environment
Save the following files to your computer:
Step 2: Import the Vipps Postman files
- In Postman, click Import in the upper-left corner.
- In the dialog that opens, with File selected, click Upload Files.
- Select the two files you have just downloaded and click Import.
Step 3: Set up Postman environment
- Click the down arrow, next to the "eye" icon in the top-right corner, and select the environment you have imported.
- Click the "eye" icon and, in the dropdown window, click
Edit
in the top-right corner. - Fill in the
Current Value
for the following fields to get started. For the first three keys, go to Vipps Portal > Utvikler -> Test Keys.client_id
- Merchant key is required for getting the access token.client_secret
- Merchant key is required for getting the access token.Ocp-Apim-Subscription-Key
- Merchant subscription key.merchantSerialNumber
- Merchant ID.baseUrl
- Set to:https://api.vipps.no
.
Make API calls
Be aware that these requests can only be run on the production server.
Send request
Get Access Token
. This provides you with access to the API. Be sure to use the address to the production server and provide keys for a production sales unit. The access token is valid for 24 hours in the production environment.Send request
Get ledgers
to get the ledgers you have access to. SeeGET:/settlement/v1/ledgers
.Send request
Get ledger transactions
for a list of payments/transactions. SeeGET:/report/v1/ledgertransactions
.