Payouts

These routes belong are responsible for show user payouts.


All payouts

Show a list of all payouts within a business app.

Endpoint

Method URI Authentication
GET /business/{unique_id}/payouts true

{success} Example Success Response Code 200

Content

{
    "success": true,
    "message": "Show all payouts",
    "data": [
        {
            "id": 1,
            "marketplace_id": 5,
            "user_id": 1,
            "amount": 18,
            "stripe_token": "tr_1HUBTSD2YnIDoaEIzKkV0kIq",
            "reversed": false,
            "created_at": "2020-09-22T13:24:03.000000Z",
            "updated_at": "2020-09-22T13:24:03.000000Z"
        }
    ]
}

Single payout

Show a single payout with the job and user.

Endpoint

Method URI Authentication
GET /business/{unique_id}/payout/{id} true

{success} Example Success Response Code 200

Content

{
    "success": true,
    "message": "Show payout",
    "data": {
        "id": 1,
        "marketplace_id": 5,
        "user_id": 1,
        "amount": 18,
        "stripe_token": "tr_1HUBTSD2YnIDoaEIzKkV0kIq",
        "reversed": false,
        "created_at": "2020-09-22T13:24:03.000000Z",
        "updated_at": "2020-09-22T13:24:03.000000Z"
    }
}