Skip to content

Device Warranty Integration Guide

Covers Mobile Screen Protection (phnn-flx1-1111, phnn-flx2-1111, phnn-flx3-1111) and Laptop Warranty (lapt-flx1-1111, lapt-flx2-1111) products.


Mobile Screen Protection

Restricted-perils cover: the only insured event is accidental screen damage — cracking, shattering, or internal display damage caused by dropping, impact, or pressure. Settlement replaces the display/touch screen (labour included), less a 10% excess on every claim. Cover applies within Nigeria only.

The product comes in three tiers by device value — pick the plan that matches the phone's value. Each tier is a flat premium (per cover period); no device value is sent in the request.

Indicative rates. Always use Step 1 (SR10) to get the current premium for the chosen plan before collecting payment from your customer.

Basic Standard Premium
Product code phnn-flx1-1111 phnn-flx2-1111 phnn-flx3-1111
Device value band up to ₦200,000 ₦200,001 – ₦500,000 ₦500,001 – ₦1,500,000
Cover period 1y 1y 1y

All three tiers share the same cover: accidental screen damage only (cracking / shattering / internal display damage from drop, impact or pressure), 10% excess, Nigeria only. Not covered: theft/robbery/loss, liquid damage, fire, power surge, cosmetic scratches, battery failure, software/virus/data loss, wear & tear, unauthorised repairs, and any damage outside Nigeria.

Laptop Warranty

Basic Comprehensive
Product code lapt-flx1-1111 lapt-flx2-1111
Annual premium ₦48,000 ₦72,000
Coverage Accidental damage, liquid spill, electrical surge Full damage + theft
Cover periods 6m, 1y 6m, 1y
Target devices Business laptops Premium laptops

Integration Flow

Both phone and laptop warranty use a standard 4-step flow.

Step 1: Get premium quote
Step 2: Register consumer
[Collect payment]
Step 3: Request policy
Step 4: Check policy status

Step 1 — Get Premium Quote

curl -X POST https://octamile-api.azurewebsites.net \
  -H "Content-Type: application/json" \
  -d '{
    "userInfo": {
      "id": "YOUR_PARTNER_ID",
      "athrzt": { "id": "YOUR_AUTH_ID", "key": "YOUR_AUTH_KEY" }
    },
    "cmmnd": {
      "cmmnd": "dump ipck_phnn-flx1-1111*PRMM",
      "seed": {
        "insrncDrtn": "1y"
      }
    }
  }'

Replace the product code with the tier matching the phone's value (phnn-flx1-1111 / phnn-flx2-1111 / phnn-flx3-1111). Mobile Screen Protection is annual only — use "insrncDrtn": "1y" (laptop warranty also supports "6m").

Response:

{
  "exctnFdbck": { "id": 75 },
  "prmm": 1000
}


Step 2 — Register Consumer

{
  "cmmnd": {
    "cmmnd": "prfl entity",
    "seed": {
      "type": "s",
      "class": "h",
      "name": { "first": "Ngozi", "last": "Eze" },
      "phoneNo": "+2347011234567",
      "eMail": "ngozi.eze@email.com"
    }
  }
}

Response: Returns id — store as consumer_id.

Date of birth and address are not required for device or laptop warranty.


Step 3 — Request Policy

Mobile Screen Protection Request

curl -X POST https://octamile-api.azurewebsites.net \
  -H "Content-Type: application/json" \
  -d '{
    "userInfo": {
      "id": "YOUR_PARTNER_ID",
      "athrzt": { "id": "YOUR_AUTH_ID", "key": "YOUR_AUTH_KEY" }
    },
    "cmmnd": {
      "cmmnd": "entt_{CONSUMER_ID}: insure",
      "seed": {
        "ctgry": "phnn",
        "type": "flx1",
        "pckg": "1111",
        "insrncDrtn": "1y",
        "id": "YOUR_32_CHAR_TX_REF",
        "addtnlFact": {
          "brand": "Samsung",
          "model": "Galaxy A54",
          "uIdnt": "354678901234567"
        }
      }
    }
  }'

Use "type": "flx2" or "type": "flx3" for the higher device-value tiers.

Laptop Warranty Request

curl -X POST https://octamile-api.azurewebsites.net \
  -H "Content-Type: application/json" \
  -d '{
    "userInfo": {
      "id": "YOUR_PARTNER_ID",
      "athrzt": { "id": "YOUR_AUTH_ID", "key": "YOUR_AUTH_KEY" }
    },
    "cmmnd": {
      "cmmnd": "entt_{CONSUMER_ID}: insure",
      "seed": {
        "ctgry": "lapt",
        "type": "flx1",
        "pckg": "1111",
        "insrncDrtn": "1y",
        "id": "YOUR_32_CHAR_TX_REF",
        "addtnlFact": {
          "brand": "Apple",
          "model": "MacBook Air M2",
          "uIdnt": "C02X123456789"
        }
      }
    }
  }'

Use "type": "flx2" for Comprehensive.

Required Fields

Field Type Description
ctgry string "phnn" for phone, "lapt" for laptop
type string "flx1" / "flx2" / "flx3" (phone — Mobile Screen Protection value tier); "flx1" / "flx2" (laptop)
pckg string Always "1111"
insrncDrtn string Phone (Mobile Screen Protection): "1y" only. Laptop: "6m" or "1y"
id string Your 32-char lowercase alphanumeric transaction reference
addtnlFact.brand string Device manufacturer (e.g., "Apple", "Dell")
addtnlFact.model string Device model (e.g., "MacBook Air M2", "Galaxy A54")
addtnlFact.uIdnt string IMEI for phones (15 digits); serial number for laptops

Response:

{
  "exctnFdbck": { "id": 75 }
}


Step 4 — Check Policy Status

curl -X POST https://octamile-api.azurewebsites.net \
  -H "Content-Type: application/json" \
  -d '{
    "userInfo": {
      "id": "YOUR_PARTNER_ID",
      "athrzt": { "id": "YOUR_AUTH_ID", "key": "YOUR_AUTH_KEY" }
    },
    "cmmnd": {
      "cmmnd": "dump entt_{CONSUMER_ID}|insr_phnn-flx1-1111-{TX_ID}*STATUS"
    }
  }'

Replace phnn-flx1-1111 with the product code used in Step 3. For laptops: lapt-flx1-1111 or lapt-flx2-1111.

Status values

status Meaning Next step
"p" Pending — policy is being processed Continue polling
"a" Approved — policy number in response Done
"d" Declined — see statusNote for the reason Do not retry; contact Octamile

Polling: In test mode, approval is instant. In live mode, poll every 5–10 seconds; device policies typically approve within 60 seconds.

Approved response (live mode):

{
  "exctnFdbck": { "id": 75, "id_v4": 200 },
  "status": "a",
  "policyNo": "ALR/24/2/240320/0001"
}

In test mode, the response also includes certUrl — a demo certificate link for integration testing. In live mode, policyNo is the underwriter's policy number; the certificate PDF is produced on the underwriter's side and is not currently returned via the API (no retrieval endpoint yet). If the underwriter cannot issue the policy, the request stays Pending (status: "p") with the reason in statusNote — it is never auto-approved.


Common Decline Reasons

Issue Likely cause Fix
Policy declined IMEI / serial already insured Each device can only have one active policy at a time
Field validation error Missing required field Ensure brand, model, and uIdnt are all provided and non-empty

See also