Skip to main content

Testing Bring APIs

Resources

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 integrasjon.norge@bring.com. Users in Sweden, Denmark and Finland can contact edi@bring.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
Use 5 as the customer number in the request. Example: "customerNumber": "5"
Parcel Sweden, Denmark, Finland & Parcel Norway cross-border
Customer: PARCELS_SWEDEN-000006
Use 6 as the customer number in the request. Example: "customerNumber": "6"
Cargo Norway domestic
Customer: CARGO-851028
Use 7 as the customer number in the request. Example: "customerNumber": "7"

Test indicator

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.

Norway
+4712345678
+4791234567
Sweden
+46012345678
+46081234567
Denmark
+4218123456
+4218234567

Tracking numbers

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.

  • TESTPACKAGEATPICKUPPOINT
  • TESTPACKAGEEDI
  • TESTPACKAGELOADEDFORDELIVERY
  • TESTPACKAGEDELIVERED

Postal codes

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.

Norway
0951 Oslo
4050 Sola
5004 Bergen
9600 Hammerfest
Norwegian postal codes
Sweden
10012 Stockholm
43954 Åsa
68301 Hagfors
83752 Åre
Denmark
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.

comments powered by Disqus