Testing Bring APIs
Test customer numbers
While all our APIs require user authentication, even for testing, only some require a customer number. If you’re currently not a Bring customer or your customer number doesn’t hold data to give sufficient test responses, you can use test numbers. These will only return dummy data and not create any actual bookings.
In order to get access to test customer numbers, users in Norway can contact firstname.lastname@example.org. Users in Sweden, Denmark and Finland can contact email@example.com. State which test customer number you want access to, and that you need financial rights as well. Financial rights are required to get pricing information when using Shipping Guide API. The services covered by each test customer number can be found in the Service portfolio.
- Parcel Norway domestic
- Customer: PARCELS_NORWAY-00000000005
5as the customer number in the request. Example:
- Parcel Sweden, Denmark, Finland & Parcel Norway cross-border
- Customer: PARCELS_SWEDEN-000006
6as the customer number in the request. Example:
- Cargo Norway domestic
- Customer: CARGO-851028
7as the customer number in the request. Example:
To test transactional APIs using an actual customer number but without
creating actual bookings or getting invoiced, you must set the
testIndicator flag to true.
Phone numbers and email addresses
Make sure the phone numbers and email addresses you use in your testing are
dummies. Actual phone numbers and email addresses can still trigger alerts
and confirmation emails even when used with test customer numbers or
testIndicator. For phone numbers, you can use the numbers below
or find one of the many fake number sites online.
Use these as test tracking numbers to get different responses in the
Tracking API or to make
WebhookIds in Event Cast API. An
authorised request with a tracking number belonging to an actual shipment
will return more detailed results.
Whenever postal codes are required, use something valid and test more than the first that comes to mind. You can use the Postal Code API to look up more codes and cities.
- 0951 Oslo
- 4050 Sola
- 5004 Bergen
- 9600 Hammerfest
- Norwegian postal codes
- 10012 Stockholm
- 43954 Åsa
- 68301 Hagfors
- 83752 Åre
- 0900 København C
- 2990 Nivå
- 5883 Oure
- 8799 Tunø
Shipping Guide Demo
It’s possible to test the Shipping Guide API using our Shipping Guide Demo site. It doesn’t require authentication in itself, but some services need a customer number in order to return a response. If you have a Mybring user with a customer number, you can log in to get responses dependent on that.
Checkout Request Builder
Our Checkout Request Builder helps you generate requests for selected Posten and Bring services in e-commerce checkouts. It gives you the opportunity to choose what information you want to present to your customers. Based on your selections, it also presents guides on how to interact with the corresponding responses from Shipping Guide API and Pickup Point API. No authentication is needed to use the Checkout Request Builder.