Factsheet

3.4 Fetch All Transactions

This service enables you to retrieve a summary of all purchases you have made so far.

The result is an array sorted in descending order of their timestamp.

Command Format

entt_bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb|insr_bbbb-bbbb-bbbb-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb*AV: dump

Request Sample

{
    "srvcVrsn":  "2",
    "userInfo":  {
        "id"  :    "us0123456789abcdefghij0123456789",
        "athrzt" : {
            "id" : "id1234567890abcdefghij1234567890",
            "key": "ky1234567890abcdefghij1234567890"
        }
    },
    "cmmnd": {
        "cmmnd": "entt_bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb|insr_bbbb-bbbb-bbbb-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb*AV: dump"
    }
}

Response Sample

{
    "exctnFdbck": {
        "id":  "75"
    },
    "trns": [
        {
            "cstm": "1234567890abcdefghij1234567890ab",
            "prdc": "gtrn-stnd-1111",
            "cixx": "1234567890abcdefghij1234567890xx",
            "tstm": "2022-11-30 14:50:15 +0000",
            "prmm": "NGN 500",
            "stts": "p"
        },
        {
            "cstm": "1234567890abcdefghij1234567890aa",
            "prdc": "hlth-stnd-1111",
            "cixx": "1234567890abcdefghij1234567890xy",
            "tstm": "2022-11-28 00:00:00 +0000",
            "prmm": "NGN 450",
            "stts": "a"
        }
    ] 
}
DataNote
trns.x.cstmThis data stands for the consumer/customer/entity/profile ID.
trns.x.prdcThis data stands for the product ID.
trns.x.cixxThis data stands for the cover ID/insurance ID/transaction reference.
trns.x.tstmThis data stands for the time Octamile received the request.
trns.x.prmmThis data stands the appropriate premium for the cover.
trns.x.sttsThis data stands for the status of the transaction.

Possible values are: p (processing), d (declined), and a (approved).