Step 5 of 5

Go live

Work through the go-live checklist and switch from the sandbox to the production base URLs.

Before you switch

Production runs the same Invoice Tools API and the same authentication as the sandbox, so the integration you tested is the one you run. What changes is the base URLs and your credentials.

Your integration needs a production-equivalent access method: a JWT signed with your key, which you exchange for an authentication token and then an authorization token. Authentication describes it.

Checklist

Work through these items before you go live. Your ticks are saved in this browser, so you can come back to the list later.

0 of 9 done

Where each item is covered

ItemRead more
The JWT and its signatureSign a JWT
Renewing tokensRenewal guidance
Storing only the idResponse
319-2 errorsCategories
Unknown fields and enum valuesAPI modifications (opens in a new tab), in Swagger
Direct paymentsDirect payments
Checking test invoices in InsightInsight
Production base URLsBase URLs
Webhook signatures and timestampsVerify the signature

Base URLs

Production has its own addresses for the Invoice Tools API and for Vanguard:

Invoice APIhttps://api.sandbox.waya.se/v4/rest
Vanguardhttps://vanguard.sandbox.waya.se/v2.0

Vanguard has a different host in production

The production address of Vanguard is not the sandbox address without sandbox. It is auth.waya.se, under the path /vanguard/v2.0.

Each environment has its own Swagger. The developer overview lists the Swagger addresses of both.

The code samples in these docs read the base URLs from WAYA_VANGUARD_URL and WAYA_API_URL, so switching to production is a change of configuration. In the environment that runs in production, set them to:

.env
WAYA_VANGUARD_URL=https://auth.waya.se/vanguard/v2.0
WAYA_API_URL=https://api.waya.se/v4/rest

After you go live

If a request fails in production, quote the full error code to Waya, as described under Contact support.