{"openapi":"3.0.3","info":{"title":"ExamInfo Reseller API","version":"1.0.0","description":"Sell WAEC, NECO, NABTEB and JAMB PINs from your own website."},"servers":[{"url":"https://token.examinfoo.com.ng/api/v1"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer"}},"schemas":{"Error":{"type":"object","properties":{"ok":{"type":"boolean"},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}},"Order":{"type":"object","properties":{"reference":{"type":"string"},"order_id":{"type":"string"},"product":{"type":"string"},"quantity":{"type":"integer"},"unit_price":{"type":"integer"},"amount":{"type":"integer"},"status":{"type":"string","enum":["processing","delivered","failed"]},"mode":{"type":"string","enum":["live","test"]},"pins":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"value":{"type":"string"}}}},"message":{"type":"string"}}}}},"paths":{"/balance":{"get":{"summary":"Wallet balance","responses":{"200":{"description":"OK"},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/products":{"get":{"summary":"Products and your prices","responses":{"200":{"description":"OK"},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/orders":{"get":{"summary":"Recent orders","responses":{"200":{"description":"OK"}}},"post":{"summary":"Buy PINs","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["product","reference"],"properties":{"product":{"type":"string","example":"WAEC"},"quantity":{"type":"integer","example":1},"reference":{"type":"string","example":"ORD-2026-000123"},"profile_code":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"}}}}}},"responses":{"201":{"description":"Created"},"202":{"description":"Processing"},"402":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/orders/{reference}":{"get":{"summary":"Check one order","parameters":[{"name":"reference","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}}}