A short technical summary for developers and system administrators.
- ideasoft API
- Approved orders are read from the /admin-api/orders endpoint with a status filter; when every code is assigned, the order status is written back as delivered with a PUT request to the same endpoint. The product list comes live from /admin-api/products.
- Assignment
- Each order line gets as many codes as its quantity, and every code is stored with the order, the order line and its sequence number. On each run the app counts codes already assigned and reserves new ones only for missing units, so no unit gets two codes.
- Uniqueness
- The code column has a unique index in the database, so the same code cannot enter the system twice. Codes are either unused or used, and a used code cannot be edited.
- Email
- Mail goes out through the store’s own SMTP settings (server, port, TLS/SSL, sender name, reply-to). The template uses Blade syntax. Codes that fail to send are retried automatically up to 6 times.
- SMS
- Sent through the NetGSM XML API, with sender names read from your NetGSM account. The number is taken from the mobile phone on the order’s shipping address and normalised. The SMS is sent before the email.
- Data cleanup
- Used codes and resolved missing code records can be deleted after 90 days with command-line tasks, so customer data is not kept longer than needed and the database stays small.
- Hosting
- A Laravel web app that runs outside the store, on our server or yours, and processes orders at regular intervals through a scheduled task. No files, theme code or scripts are added to your store.