Skip to content

Reference

Suites and package ids

Four identifiers appear throughout the API. Two of them are built so that partner business can be told apart at a glance, by your systems and by Wasil's warehouse staff.

Your partner code

Every partner has a code of two capital letters, chosen with Wasil when the account is opened (in these docs: EX). It is in GET /v1/me, on your portal account page, and inside the two identifiers below.

Suites

A suite identifies a Wasil customer. It is what the customer writes in the shipping address when they buy, and it is the account everywhere in the API.

WhoShapeExample
A customer you createdUM1 + your code + three digitsUM1EX042
Any other Wasil customer (including accounts Wasil linked to you)UM1 + one letter + four digitsUM1K4821
  • Both shapes are eight characters. A letter in the fifth position means the customer was created by a partner, and the two letters say which one.
  • A suite never changes. The one in the answer to POST /v1/customers is final and can be shown to the customer at once.
  • A linked account keeps the suite it always had; what marks it as yours is the link, not the shape.
  • One code has room for 999 customers. Before you get near that, Wasil gives your account a second code.

Package ids

The id of a package is its Wasil id, printed on the label at the warehouse.

Starts withMeaningExample
WPLogged for an account that belonged to a partner at that moment.WPger10005254CS3
WSAn ordinary package, or one logged before the account became yours.WSger10005254CS2

After the two letters come the origin code, the customer's member number, CS and a running number. Treat the id as an opaque text: store it and send it back as it is. A package keeps its id for life, so older packages of a linked account keep WS; they are still yours and still appear in GET /v1/packages.

Tracking numbers

tracking_number is the carrier's number (UPS, DHL, Amazon, …) on the parcel that reached the warehouse. It is what you send when you announce a package, and you can look a package up by it. It is compared without regard to upper and lower case, spaces and dashes.

Your own reference

partner_reference is yours: an order number, a cart id, anything up to 64 characters. You set it when you announce a package; Wasil copies it onto the package when it arrives and sends it back in every answer and event, so you can tie a Wasil package to your order without keeping a lookup table.

Which one to use

  • To find a customer: the suite.
  • To find a package: the Wasil id, or the carrier's tracking number.
  • To find your order from a Wasil package: your reference.