Last Transaction API

This API allows you to retrieve the last transaction associated with a specific subscription plan (Subscription ID). By sending a GET request to the specified URL with the appropriate Bearer Token in the request header and replacing {{SUBSCRIPTION_ID}} with the relevant Plan ID, you can access information about the last transaction related to that subscription plan. This can be valuable for tracking and reviewing transaction history for specific subscriptions.

Last Transaction API Request:


Method: GET

Source: Merchant's server

Recipient: Accept's server

Authentication: Bearer Token {auth token}

Example response:

    "id": 148529925,
    "pending": false,
    "amount_cents": 200,
    "success": false,
    "is_auth": false,
    "is_capture": false,
    "is_standalone_payment": true,
    "is_voided": false,
    "is_refunded": false,
    "is_3d_secure": false,
    "integration_id": 3381753,
    "terminal_id": null,
    "terminal_branch_id": "-",
    "has_parent_transaction": false,
    "created_at": "2023-12-05T00:00:09.269724",
    "paid_at": null,
    "currency": "EGP",
    "source_data": {
        "pan": "2346",
        "type": "card",
        "tenure": null,
        "sub_type": "MasterCard"
    "api_source": "SUBSCRIPTION",
    "is_void": false,
    "is_refund": false,
    "is_cashout": false,
    "data": {
        "klass": "MigsPayment",
        "amount": 200.0,
        "acs_eci": "",
        "message": "Invalid card number",
        "batch_no": 20231204,
        "card_num": "512345xxxxxx2346",
        "currency": "EGP",
        "merchant": "CIB701597",
        "card_type": "MASTERCARD",
        "created_at": "2023-12-04T22:00:10.626515",
        "migs_order": {
            "id": "168999422",
            "amount": 2.0,
            "status": "FAILED",
            "currency": "EGP",
            "chargeback": {
                "amount": 0,
                "currency": "EGP"
            "creationTime": "2023-12-04T22:00:10.083Z",
            "merchantAmount": 2.0,
            "lastUpdatedTime": "2023-12-04T22:00:10.460Z",
            "merchantCurrency": "EGP",
            "acceptPartialAmount": false,
            "totalCapturedAmount": 0.0,
            "totalRefundedAmount": 0.0,
            "authenticationStatus": "AUTHENTICATION_NOT_IN_EFFECT",
            "merchantCategoryCode": "6300",
            "totalAuthorizedAmount": 0.0
        "order_info": "168999422",
        "receipt_no": "333822241818",
        "migs_result": "FAILURE",
        "secure_hash": "",
        "authorize_id": null,
        "transaction_no": "",
        "avs_result_code": "",
        "captured_amount": 0.0,
        "refunded_amount": 0.0,
        "merchant_txn_ref": "148529925",
        "migs_transaction": {
            "id": "148529925",
            "stan": "241818",
            "type": "PAYMENT",
            "amount": 2.0,
            "source": "MERCHANT",
            "receipt": "333822241818",
            "acquirer": {
                "id": "CIB_S2I",
                "date": "1204",
                "batch": 20231204,
                "timeZone": "+0200",
                "merchantId": "701597",
                "settlementDate": "2023-12-04"
            "currency": "EGP",
            "terminal": "CIBS2I02",
            "authenticationStatus": "AUTHENTICATION_NOT_IN_EFFECT"
        "acq_response_code": "14",
        "authorised_amount": 0.0,
        "txn_response_code": "DECLINED",
        "avs_acq_response_code": "14",
        "gateway_integration_pk": 3381753
    "is_hidden": false,
    "error_occured": false,
    "is_live": true,
    "other_endpoint_reference": null,
    "refunded_amount_cents": 0,
    "source_id": 3,
    "is_captured": false,
    "captured_amount": 0,
    "merchant_staff_tag": null,
    "updated_at": "2023-12-05T00:00:10.641732",
    "is_settled": false,
    "bill_balanced": false,
    "is_bill": false,
    "owner": 38210,
    "order": 168999422,
    "parent_transaction": null