# Payout Method

Payout Method API

> Create

POST {{host}}/marketplace/payout-methods

Headers

Authorization: Bearer {{marketplace_user_token}}

Body

{
    "name": "Bkash",
    "inputs": "Number",
    "is_published": false
}

Response 201

{
    "data": {
        "id": "2cfb44c7-a79b-46ba-a73c-315c9b59bf86",
        "name": "Bkash",
        "inputs": "Number",
        "is_published": true,
        "created_at": "2020-05-15T22:12:26.912179Z",
        "updated_at": "2020-05-15T22:12:26.912179Z"
    }
}

> Update

PUT {{host}}/marketplace/payout-methods/{{payout_method_id}}

Headers

Content-Type: application/json
Authorization: Bearer {{marketplace_user_token}}

Body

{
    "name": "Bkash",
    "inputs": "Number",
    "is_published": false
}

Response 200


> List

GET {{host}}/marketplace/payout-methods

Query params

limit [Maximum number of elements]
page  [Number of page]

Headers

Content-Type: application/json
Authorization: Bearer {{marketplace_user_token}}

Response 200

{
    "data": [
        {
            "id": "dcd58b4c-3f1c-4cd2-9a60-648f1bbf20e2",
            "name": "Bkash",
            "inputs": "Number",
            "is_published": true,
            "created_at": "2020-05-15T22:12:36.692217Z",
            "updated_at": "2020-05-15T22:12:36.692217Z"
        },
        {
            "id": "2cfb44c7-a79b-46ba-a73c-315c9b59bf86",
            "name": "Bank",
            "inputs": "Account Name, Account No",
            "is_published": true,
            "created_at": "2020-05-15T22:12:26.912179Z",
            "updated_at": "2020-05-15T22:12:26.912179Z"
        }
    ]
}

> Get

GET {{host}}/marketplace/payout-methods/{{payout_method_id}}

Headers

Content-Type: application/json
Authorization: Bearer {{marketplace_user_token}}

Response 200

{
    "data": {
        "id": "2cfb44c7-a79b-46ba-a73c-315c9b59bf86",
        "name": "Bank",
        "inputs": "Account Name, Account No",
        "is_published": true,
        "created_at": "2020-05-15T22:12:26.912179Z",
        "updated_at": "2020-05-15T22:12:26.912179Z"
    }
}

> Delete

DELETE {{host}}/marketplace/payout-methods/{{payout_method_id}}

Headers

Content-Type: application/json
Authorization: Bearer {{marketplace_user_token}}

Response 204