Transactions



Endpoint


Method Description URI
GET Get all transaction /api/v2/collections/{collectionId}/directPayPayers/{directPayersId}/transactions
GET Show Detail transaction /api/v2/collections/{collectionId}/directPayPayers/{directPayersId}/transactions/{ID}


Required Headers


Key Value
Accept application/json
Content-Type application/json
Authorization Bearer {ACCESS-TOKEN}


Get All Payers Transactions


Parameters


Method URI
GET /api/v2/collections/{collectionId}/directPayPayers/{directPayPayersId}/transactions/{ID}

{success} Success code : 200

Response


{
    "success": true,
    "data": {
        "current_page": 1,
        "data": [
            {
                "id": 1166,
                "ref_id": "CD__DO__d22Yqb58__20200519041932",
                "currency": "MYR",
                "amount": "5.00",
                "exchange_rate_id": null,
                "status": 4,
                "failed_reason": null,
                "created_at": "2020-05-19 04:19:33",
                "updated_at": "2020-05-19 04:19:47",
                "paid": true,
                "payment-method": "Credit/Debit Card"
            }
        ],
        "first_page_url": "http://malakatpay_api.test/api/v2/collections/NoADJKD1/directPayPayers/d22Yqb58/transactions?page=1",
        "from": 1,
        "last_page": 1,
        "last_page_url": "http://malakatpay_api.test/api/v2/collections/NoADJKD1/directPayPayers/d22Yqb58/transactions?page=1",
        "next_page_url": null,
        "path": "http://malakatpay_api.test/api/v2/collections/NoADJKD1/directPayPayers/d22Yqb58/transactions",
        "per_page": 15,
        "prev_page_url": null,
        "to": 1,
        "total": 1
    },
    "errors": null,
    "meta": {
        "timestamp": "2020-06-26 13:35:47 UTC",
        "timezone": "UTC"
    }
}


{danger} For Error Reference, Related guide: Errors


Show Detail Payer Transaction

Parameters


Method URI
GET /api/v2/collections/{collectionId}/directPayPayers/{directPayPayersId}/transactions/{ID}


{success} Success code : 200

Response


{
    "success": true,
    "data": {
        "id": 1166,
        "ref_id": "CD__DO__d22Yqb58__20200519041932",
        "currency": "MYR",
        "amount": "5.00",
        "exchange_rate_id": null,
        "status": 4,
        "failed_reason": null,
        "created_at": "2020-05-19 04:19:33",
        "updated_at": "2020-05-19 04:19:47",
        "paid": true,
        "payment-method": "Credit/Debit Card"
    },
    "errors": null,
    "meta": {
        "timestamp": "2020-06-26 13:37:36 UTC",
        "timezone": "UTC"
    }
}

{danger} For Error Reference, Related guide: Errors