Sequential ID Service Tutorials

The Sequential ID Service serves for generating subsequential unique IDs for such objects as orders, invoices, quotes, pick-packs, or similar. Define a pattern how such IDs should look like in a schema for specific objects, use placeholders for computing certain values dynamically, and the Sequential ID Service takes care of following the defined sequence.

To add your custom sequence ID schema, make sure you provide the correct schemaType. The schemaType field has to correspond to the schema used in the Emporix system for a particular entity:
EntityschemaType
OrderorderNoSequence
InvoiceinvoiceNoSequence
QuotequoteNoSequence
Pick-PackorderHoldingAreaNoSequence

How to create a sequential ID schema

This tutorial demonstrates creating and using sequential IDs for order numbers.

Create a sequence schema

To create a schema for sequential IDs creation, send the request to the Creating a schema endpoint.
Loading...
info

The values of the placeholder properties are resolved dynamically from the defined site settings:

  • All the placeholder values connected to date and time are based on the site.homeBase.timezone property. If no timezone is defined, the default GMT (UTC-0) timezone is used.
  • The __country__ placeholder comes from the site.homeBase.address.country property. The default system value is DE for Germany.

Retrieve the created schema

To get the created schema details, make a call to the Retrieving a schema endpoint.
Loading...

Copy the schema ID.

Activate the schema

Activate the schema to apply it in the system so that the order numbers follow the new pattern. Send the request to the Activating a schema endpoint.
Loading...
Provide the sequenceSchemaID in the request.

Generate a sequence ID based on the schema

Now, you can generate the order IDs that follow the new schema. To create a sequence ID, make a call to the Creating a nextId for schema type endpoint.
Loading...
In the query parameter, pass the siteCode of a site where you want to use the schema to ensure the placeholder values are replaced in a fly.

This endpoint creates and returns the nextId value. When you send an empty body in the request, the nextId is generated following the pattern defined in the schema and the placeholders are replaced with the values from the site settings.

In this case, the subsequent order ID looks like this:

Copy
Copied
ORDER-2025-03-27-14-03-22-DE0002-N