Environments

Last updated: 2023-06-30

Available Environments

The Westpay Online API is available in two environments: Demo and Production.

EnvironmentBase URLPurpose
Demohttps://demo-api.westpay.se/in-store/api/v1Development and testing
Productionhttps://api.westpay.se/in-store/api/v1Live transactions

Demo Environment

The demo environment is intended for integration development and testing. It mirrors the production API but does not process real payments. Use the demo environment to:

  • Test your integration end-to-end.
  • Verify request/response formats.
  • Simulate different transaction scenarios.

Demo credentials are separate from production credentials. Contact Westpay support to provision demo access.

Production Environment

The production environment processes real transactions. Before switching to production:

  • Ensure your integration has been fully tested in the demo environment.
  • Rotate your credentials — do not reuse demo keys in production.
  • Review the Error Handling guide to handle edge cases gracefully.

Swagger / OpenAPI

Interactive API documentation (Swagger UI) is available at:

You can use the Swagger UI to explore available endpoints and try out requests directly in your browser.