FAQs
What are the possible scenarios for a response when placing an order?
- SUCCESS: Vouchers will be returned instantly.
- FAILED: The order has failed.
- PROCESSING: Hubble will provide a callback when the order reaches a terminal state. Alternatively, the client can poll the “Get Orders” API at reasonable intervals to check if the order is in terminal state.
What should be done in case of a timeout?
In the event of a timeout, the client should retrieve the order by the reference ID to verify if the order was successfully created.
How will product changes be communicated?
Clients can subscribe to the “Brand Updated Callback” to receive notifications about any product updates.
How can you ensure that an order is idempotent?
To ensure idempotency, the reference ID passed with the order acts as an idempotency key. Using this reference ID ensures that there is only one order in the system for that ID, preventing duplicate orders.