Drive Offer API integration
View the live integration contract: catalog, signed order creation, order status and signed IPN delivery. Merchant access requires an enabled Webhook URL. Individual services may remain unavailable until the administrator enables them.
Base URL and authorization
https://gigora.com.bdCreate your NICT Store ID, API Key and API Secret in the merchant panel. Save and enable a public HTTPS Webhook/IPN URL before making any API request.
Accept: application/json Content-Type: application/json X-Store-ID: YOUR_STORE_ID X-API-Key: YOUR_API_KEY X-Timestamp: UNIX_SECONDS X-Nonce: UNIQUE_RANDOM_16_TO_80_CHARS X-Signature: LOWERCASE_SHA256_HMAC_HEX
METHOD is uppercase; PATH is the exact request path without host/query parameters; hash the exact UTF-8 body bytes. GET requests use SHA256 of an empty body. The timestamp must be within 300 seconds; never reuse a nonce.
bodyHash = SHA256_HEX(rawBody) canonical = timestamp + "\n" + nonce + "\n" + METHOD + "\n" + PATH + "\n" + bodyHash X-Signature = HMAC_SHA256_HEX(canonical, API_SECRET)
Endpoints
/api/services/v1/offer/catalogActive catalog (service IDs)/api/services/v1/offer/ordersList your orders/api/services/v1/offer/ordersCreate order/api/services/v1/offer/orders/{orderRef}Read final/current order statusEvery call requires the signed headers above, including catalog and status requests.
Order request JSON
GET /api/services/v1/offer/catalog returns a service ID and pricing. The merchant wallet is charged price minus commission. Set mnp=true only for a valid number ported to the selected offer operator; no separate number-check endpoint is needed.
POST /api/services/v1/offer/orders
{
"service_id": 123,
"mobile": "017XXXXXXXX",
"idempotency_key": "OFFER_20261124_000001",
"mnp": false
}
idempotency_key is 16–80 characters (letters, digits, underscores or hyphens), unique per new order. Reusing an existing key with different details will fail. The service_id is only an example; get the real ID from catalog.
Response and status
HTTP 202 Accepted
{
"success": true,
"order_ref": "EXAMPLE123",
"kind": "offer",
"status": "processing",
"amount": "100.00",
"commission": "0.00",
"fee": "0.00",
"wallet_debit": "100.00"
}
Response amounts are illustrative; actual values come from your configured service. processing is not a successful payment. Check status with the exact returned order_ref or wait for the signed IPN.
Typical errors: 401 invalid credentials/signature, 403 webhook not configured or merchant unavailable, 409 repeated nonce, 422 invalid service/amount/fields or insufficient funds.
Webhook / IPN verification
When an order reaches final settlement, your enabled HTTPS webhook receives a server-to-server POST. Return a successful 2xx response after validating the signature and processing the event idempotently.
X-NICT-Event-ID: UUID
X-NICT-Timestamp: UNIX_SECONDS
X-NICT-Signature: sha256=HEX_HMAC
expected = HMAC_SHA256_HEX(timestamp + "." + rawWebhookBody, WEBHOOK_SECRET)
{
"event_id": "UUID",
"event": "service.order.completed",
"data": {
"order_ref": "EXAMPLE123",
"kind": "offer",
"status": "success",
"transaction_id": "PROVIDER_TRX_ID"
}
}
Use the webhook secret configured in your merchant panel, not the API secret, for incoming IPN signature verification. Handle duplicate delivery attempts.