Gateways

Manage all payment gateways on your application

Get all gateways

GET https://wemx.app/api/v1/gateways

Returns all gateways made on your application

{
    "status": true,
    "current_page": 1,
    "data": [
        {
            "id": 1,
            "name": "Balance",
            "type": "once",
            "driver": "Balance",
            "class": "App\\Models\\Gateways\\BalanceGateway",
            "endpoint": "balance",
            "refund_support": 1,
            "blade_edit_path": null,
            "status": 1,
            "created_at": "2023-09-05T21:29:34.000000Z",
            "updated_at": "2023-09-05T21:29:34.000000Z",
            "default": 0
        }
        // more results
    ],
    "first_page_url": "http://wemx.app/api/v1/gateways?page=1",
    "from": 1,
    "last_page": 1,
    "last_page_url": "http://wemx.app/api/v1/gateways?page=1",
    "links": [
        {
            "url": null,
            "label": "Previous",
            "active": false
        },
        {
            "url": "http://wemx.app/api/v1/gateways?page=1",
            "label": "1",
            "active": true
        },
        {
            "url": null,
            "label": "Next",
            "active": false
        }
    ],
    "next_page_url": null,
    "path": "http://wemx.app/api/v1/gateways",
    "per_page": 15,
    "prev_page_url": null,
    "to": 2,
    "total": 2
}

Filters (optional)

https://wemx.app/api/v1/gateways?filter[type]=once&filter[status]=1

Available Filters:

id, name, type, driver, endpoint, status, endpoint, refund_support

Sorting (optional)

https://wemx.app/api/v1/gateways?sort[created_at]=asc

Available Sorting Parameters:

id, name, type, driver, endpoint, status, endpoint, refund_support

Sorting operators

asc, desc, random

Dates (optional)

https://wemx.app/api/v1/gateways?date=30days
OperatorDescription

today

Get gateways created today

yesterday

Get gateways created yesterday

3days, 7days, 14days, 30days, 90days

Get gateways created last x days

YYYY-MM-DD,YYY-MM-DD

Get gateways created between a range of dates

Last updated