Manufacturing
Manufacturing has the physical cards produced by the personalisers (manufacturers that make and engrave
the cards): it decides who makes which card, prepares and secures the batches, sends them, then follows each
card until delivery and activation. “File” and “API” personalisers go through the same logic. Module
ubo-personalization.
The model
Section titled “The model”| Object | Content |
|---|---|
| Personaliser | Code, mode (file or API), accepted formats, expected encryption and public key, transport, countries and card types served, capacity per day, opening hours, status, “test” flag |
| Profile | Per product: format and version, security (encryption, signature, fingerprint), transport, planning (calendar, batch size, retries and delays) |
| Routing rule | Priority, condition (product, cardholder’s country, organisation, form, reason: first issue, renewal, replacement, new design), personalisers and their weights, fallback; versioned per bank |
| Order | One per plastic to make: card, plastic, reason, personaliser and profile chosen with the deciding rule, batch or call, reference at the personaliser, retries, last error |
| Batch | One sent file (or a wave of calls): personaliser, profile, produced file, fingerprints, encryption |
Routing
Section titled “Routing”- Rules are read by priority; the first whose condition is true applies.
- Split between several personalisers: the one chosen is whose day share is furthest behind its weight; with 50/50, two orders out of four go to each, exactly.
- Constraints: a personaliser not serving the country or card type, suspended, outside opening hours or at the end of its day’s capacity is set aside; the next is tried, then the fallback. With no candidate, the order stays “to route”, with the reason, and is retried automatically.
- Each order keeps the trace of its decision (rule, candidates set aside and why); a tester shows, for a card, which personaliser would be chosen.
Batches and their security
Section titled “Batches and their security”- The batch is a file in the profile’s format (fixed length with totals, or delimited): references, number, expiry, service code, normalised name to engrave (upper case, no accents, allowed characters, truncation flagged), design, delivery address, reason. Never a CVV nor a PIN: the personaliser computes the CVV with its own keys, the PIN follows a separate circuit.
- It is encrypted for the personaliser (OpenPGP, its public key) and signed with the bank’s key; an expired key blocks the sending and alerts. “No encryption” is only allowed for a test personaliser.
- The file in clear is never stored: only the encrypted file sent is, with its fingerprints.
Transport, returns, recovery
Section titled “Transport, returns, recovery”- Transports: SFTP drop (hosted or remote) or API (one call per order, then tracking). Both produce the same order transitions.
- Returns: an acknowledgement file (accepted, refused with a reason, made, shipped with a parcel number) or the API’s statuses. A refusal sends the order back to fix; fixed, it leaves in a new batch (a sent batch never changes).
- Planning: a job routes the new orders, generates the batches per each profile’s calendar, sends, and retries failed sendings (for instance 5 min, 15 min, 1 h); after the last retry, the batch fails and alerts.
An order’s lifecycle
Section titled “An order’s lifecycle”created → routed → in a batch (file generated, encrypted) → sent → acknowledged → in manufacturing → shipped → delivered → card activatedto route (no personaliser) · refused → to fix → routed (new batch)Declared (spec/personalization/lifecycle.yaml) and replayed by the tests. A shipped card becomes “to
activate”; its plastic is tracked until delivery. Events personalization.*.

