Before you start
Before creating an order:- Create the fleet with
POST /emp/v1/fleets. - Keep the customer-provided
fleetId; you will use the same value when placing card orders. - Discover available products with
GET /emp/v1/products. - If the selected product includes
printing.schema, use that schema to understand the supported printing payload.
Flow
1. Create or identify the fleet
The order request uses thefleetId you provided when creating the fleet.
2. Discover available products
Use product discovery to see which cards can be ordered.printing.schema object. This schema describes the printing payload expected for that product.
printing field, create the order without a printing payload.
3. Create the order
Create one order for one card.quantity. One request always represents one card order.
printing is optional at the Drive API level because requirements depend on the selected product. The fulfilment system validates the submitted payload against the product configuration.
4. Track and fulfil the order
Use the EMP order list to track created orders.Error handling
Common client-facing errors:400 Bad Request: required fields are missing, the body is malformed JSON, or the printing payload does not match product requirements.404 Not Found: thefleetIddoes not exist, the fleet is not available to the calling EMP, or the decodedproductIddoes not exist.500 Internal Server Error: an unexpected server-side error occurred.