Creating a parcel for an SSO customer

Once the customer is signed in with INEX ID, you no longer need their personal number, name and phone to create a parcel in their name — the sub is enough.

How

POST /integrators/parcels/create

Call the usual POST /integrators/parcels/create and put only inexUserId — the id_token's sub — in the receiver object. Every other field (tracking, status, delivery, declaration) is unchanged.

Field Type Required Description
receiver.inexUserId string (UUID) Conditional The customer's permanent, unique identifier. Use it as receiver.inexUserId when creating a parcel.
receiver.personalId string No personalId is optional with inexUserId. It is written only when the account has no personal number at all; an existing number is never overwritten.

Rules

  1. 1 The receiver is given either in full (personalId, firstname, lastname, phoneNumber, email — as before) or by inexUserId. Never both.
  2. 2 With inexUserId, firstname, lastname, phoneNumber and email are forbidden — the name and phone come from the INEX account. Sending them anyway is refused with 422, so nobody believes the account was changed.
  3. 3 personalId is optional with inexUserId. It is written only when the account has no personal number at all; an existing number is never overwritten.
  4. 4 inexUserId never creates an account — it must belong to an existing, active INEX customer.
  5. 5 Repeating the request with the same tracking returns the parcel already created (idempotent), as before.

Errors

422 Unprocessable inexUserId is not a valid UUID or no such INEX customer exists; or the receiver is given in neither form; or inexUserId is sent together with other receiver fields.
400 Bad Request The customer's account is inactive or has no active customer profile.

Completing the profile

If the customer's INEX profile is not complete (e.g. Georgian name, branch or a confirmed personal number), they automatically receive a notification when the parcel is created, saying a parcel was registered in their name and asking them to complete their profile on inex.ge. Nothing is needed on your side.
Next Full field reference: Create parcel