Ogloba Processor and API
This reference is for operations and customer-service teams. It describes the Ogloba order lifecycle, the provider fields that prove each step, and the evidence to collect before an escalation or retry.
What Ogloba does
Ogloba is an asynchronous order processor. The application creates and confirms an order, stores the returned order number, and later calls order status until the voucher data is available. The integration does not use a webhook.
| Property | Behaviour |
|---|---|
| Processor type | SKU per denomination |
| Processing | Asynchronous order creation and confirmation, followed by status retrieval |
| Delivery | Digital voucher code and/or provider URL |
| Balance lookup | Unsupported |
| Cancellation | Unsupported |
| Catalogue | Supported through getProducts |
| Provider success state | orderStatus 042 is treated as ready when the required card fields are present |
Order lifecycle
- The sale supplies the brand, face value, currency, transaction reference, and country.
- The interaction selects the first country served by the brand and obtains the brand SKU for the requested face value. Fixed-denomination brands use denomination-specific mappings such as
ogloba-sku-10.00. orderCreationsends one item with quantity1and delivery type0(delivery through the API). The response must containorderNo.orderConfirmconfirms that order with payment type01and a payment ID derived from the order number. Its response must also containorderNo; that value becomes the processor reference.- The sale remains asynchronous until retrieval calls
orderStatuswith that processor reference. The sale is completed only after the status response passes validation and supplies voucher data.
Example API order flow
The following bodies use illustrative values. Merchant credentials, voucher codes, PINs, and live URLs are intentionally omitted.
Create order
The client sends POST orderCreation with the configured country account values and the transaction reference as clientOrderNo:
{
"merchantId": "<configured-merchant>",
"terminalId": "<configured-terminal>",
"cashierId": "<configured-cashier>",
"clientOrderNo": "<transaction-reference>",
"salesType": "MA",
"orderItems": [
{
"faceAmount": 10.0,
"quantity": 1,
"deliverType": "0",
"itemCode": "<denomination-sku>"
}
]
}
An acceptable creation response contains an order number:
{
"isSuccessful": true,
"orderNo": "<ogloba-order-number>"
}
Confirm and retrieve
The confirmation request uses the creation order number. The client sends POST orderConfirm with paymentType 01, a payment ID in the form X-<order-number>, and zero shipping, card, and return fees:
{
"merchantId": "<configured-merchant>",
"terminalId": "<configured-terminal>",
"cashierId": "<configured-cashier>",
"orderNo": "<ogloba-order-number>",
"paymentList": [
{ "paymentType": "01", "paymentId": "X-<ogloba-order-number>" }
],
"shippingFee": "0",
"cardFee": "0",
"returnFee": "0"
}
Retrieval sends POST orderStatus with the same provider order number:
{
"merchantId": "<configured-merchant>",
"terminalId": "<configured-terminal>",
"cashierId": "<configured-cashier>",
"orderNo": "<ogloba-order-number>"
}
For a ready order, the response has one card and orderStatus 042. Sensitive fields are redacted here:
{
"isSuccessful": true,
"orderNo": "<ogloba-order-number>",
"orderStatus": "042",
"listOfCards": [
{
"shortCardNumber": "[REDACTED]",
"pinCode1": "[REDACTED]",
"pinCode2": null,
"expiryDate": "<YYYY-MM-DD>",
"eGiftCardUrl": "[REDACTED OR EMPTY]"
}
]
}
Response mapping and validation
| Provider response | Application result |
|---|---|
Creation response orderNo | Used to build the confirmation request; missing orderNo raises response validation failure |
Confirmation response orderNo | Returned as processor_reference; missing orderNo prevents issuance from completing |
Status orderNo | Returned as processor_reference |
Status listOfCards[0].shortCardNumber | Mapped to code when no eGiftCardUrl is supplied |
Status listOfCards[0].pinCode1 | Mapped to pin when no eGiftCardUrl is supplied |
Status listOfCards[0].pinCode2 | Mapped to security_code; the field must be present and may be null |
Status listOfCards[0].eGiftCardUrl | Mapped to url; an empty value becomes null. It can replace the code and PIN requirements |
Status listOfCards[0].expiryDate | Must be present for status 042, may be null, and must otherwise use Y-m-d; a supplied date is returned as an ISO-8601 value |
For status 042, listOfCards must be an array containing exactly one card. The status response must contain orderNo and orderStatus. Fields such as the full card number, face amount, PDF URL, and delivery metadata are not copied into the application voucher response.
Provider states and retry behaviour
| Condition | Integration behaviour | Operational consequence |
|---|---|---|
orderStatus 041 or 043 | Raises RetryableRequestException from OrderNotReadyException | The sale is not complete; retry status retrieval rather than creating a new order |
orderStatus 042 with valid card data | Returns the voucher response | The sale can complete |
| Missing required fields or invalid expiry format | Raises ResponseValidationException | Correct the provider response or escalate; a blind retry cannot add missing fields |
Provider response isSuccessful: false | The API maps error codes 88 and 23010 to not-found, 23005 to malformed request, and other codes to an unexpected server error | Inspect the response and audit before deciding on a retry |
| HTTP client failure | Wrapped by the interaction as an external error | No separate Ogloba HTTP failure is explicitly classified as retryable in this integration |
The create and confirm operations are separate provider actions. If the outcome of either action is uncertain, do not start a second sale: use the transaction reference, provider order number, and audit sequence to establish whether the original order exists.
Audit comparison fields
Processor interaction auditing is enabled for the transaction during issue and retrieval. Compare these fields in order:
- Internal sale UUID and transaction reference against
clientOrderNoinorderCreation. - Country code against the selected country account, and face value against
faceAmountand the denomination SKU inorderItems. - Creation
orderNoagainst confirmationorderNoand the stored processor reference. - The retrieval
orderNoagainst that same processor reference and the returnedorderStatus. - For a ready response, check the presence of card data and the normalized expiry date without copying code, PIN, or a live URL into a ticket.
- Compare request and response timestamps, operation names,
isSuccessful, and anyerrorCode/errorMessagevalues.
Settings
Processor settings
config/ogloba.php reads the following environment-backed settings:
| Setting | Environment variable or value |
|---|---|
| Shared API base URI | OGLOBA_BASE_URI |
| Request timeout | OGLOBA_TIMEOUT, default 20 |
| API version header | OGLOBA_API_VERSION |
| Shared cashier ID | OGLOBA_CASHIER_ID |
| Country accounts | OGLOBA_<COUNTRY>_MERCHANT_ID, OGLOBA_<COUNTRY>_PASSPHRASE, and OGLOBA_<COUNTRY>_TERMINAL_ID |
The configured country account is used for HTTP basic authentication with the merchant ID and passphrase. The supported country keys in the configuration are AT, BE, DE, ES, FR, IT, NL, and PT.
Brand settings
The brand must have an Ogloba SKU for each requested denomination. The fixed processor type was changed to SKU per denomination in the onboarding migration, so a valid mapping for one face value does not prove that another face value is configured. The first country served by the brand selects the Ogloba country account; check that this country is intentional before changing credentials or mappings.
API operations
| Client operation | Provider operation | Method | Purpose |
|---|---|---|---|
orderCreation | orderCreation | POST | Create one order item |
orderConfirm | orderConfirm | POST | Confirm the created order |
orderStatus | orderStatus | POST | Check pending or ready fulfilment |
getProducts | getProducts | POST | Retrieve catalogue products using merchant and terminal values |
The API client sends JSON with Accept and Content-Type headers and the configured X-WSRG-API-Version header. The base URI and country-specific authentication are selected at runtime.
Customer-service investigation
For a delayed or failed sale, collect the internal sale UUID, transaction reference, requested country, currency and face value, denomination SKU, processor reference, and the complete ordered audit sequence for orderCreation, orderConfirm, and orderStatus. Check that the creation and confirmation order numbers match, then check the latest status and whether it is 041, 043, or 042.
Do not re-order while the original provider order or an uncertain create/confirm result is unresolved. If the status response is 042, check the validation fields and the presence of voucher data without placing the sensitive values in a support ticket. For a provider error, record the provider operation, errorCode, errorMessage, HTTP failure details, and timestamps.
Limitations
Balance lookup, cancellation, and webhook handling are not implemented for Ogloba. Escalations should include the internal sale UUID, transaction reference, provider order number, country, operation timestamps, response state, and redacted audit evidence.
Related code
app/Processors/Ogloba/OglobaProcessor.php— asynchronous processor wrapper.app/Processors/Interaction/Integrations/Ogloba/OglobaProcessorInteraction.php— issue, retrieval, parsing, validation, and pending-state handling.app/Http/Clients/Ogloba/OglobaApi.php— authentication, transport, provider operations, and error-code mapping.app/Http/Clients/Ogloba/Requests/OrderCreationRequestData.php— create payload.app/Http/Clients/Ogloba/Requests/OrderConfirmRequestData.php— confirmation payload.app/Http/Clients/Ogloba/Requests/OrderStatusRequestData.php— status payload.app/Http/Clients/Ogloba/Requests/ProductsRequestData.php— catalogue payload.config/ogloba.php— shared and country-specific settings.database/migrations/2025_03_31_00000_r_c_c_15879_create_ogloba_processor.php— processor capabilities and contacts.database/migrations/2025_04_24_110610_rcc-15956-add-ogloba-catalogue.php— catalogue enablement.database/migrations/2025_07_21_091748_ogloba_change_fixed_processor_to_sku_per_denom.php— denomination SKU processor type.tests/Unit/Processors/Interaction/Integrations/Ogloba/OglobaProcessorInteractionTest.php— issue, retrieval, validation, and pending-state scenarios.