Cowdidocs

Get payees

Get a keyset-paginated list of payees for the current user, favourites-first.

GET
/v1/user/payees

Query Parameters

size?integer

Page size (max 100)

Range0 < value
Default50
after?string

Next page cursor

before?string

Previous page cursor

type?string

Filter to payees with an account of this type

favorite?boolean

Filter to favourite payees only when true

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/user/payees"
{  "data": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "label": "string",      "display_name": "string",      "is_favorite": false,      "is_blocked": false,      "block_reasons": [        "UNWANTED_PAYMENTS"      ],      "block_details": "string",      "is_cowdi_user": false,      "cowdi_user_id": "3358b8ba-768f-4336-94f0-46ebcf93566d",      "cowdi_user_tag": "@johnd123456",      "accounts": [        {          "resource_id": "string",          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",          "type": "SEND_MONEY",          "account_holder_name": "string",          "linked_user_id": "808bbbe6-53f8-43d8-b004-261579603132",          "linked_user_tag": "@johnd123456",          "mobile_number": "+254712345678",          "transaction_count": 15,          "last_used_at": "2019-08-24T14:15:22Z",          "verification_status": "VERIFIED",          "verified_at": "2019-08-24T14:15:22Z",          "verification": {            "resolved_name": "John Doe",            "account_valid": true,            "requires_confirmation": false,            "message": "string"          }        }      ],      "created_at": "2019-08-24T14:15:22Z",      "updated_at": "2019-08-24T14:15:22Z",      "resource_id": "string"    }  ],  "links": {    "next": "string",    "prev": "string"  }}
{  "code": "BAD_REQUEST",  "description": "Bad Request"}
{  "code": "UNAUTHORISED",  "description": "Unauthorised"}
{  "code": "WAITING_LIST",  "description": "User is in the waiting list"}
{  "code": "TOO_MANY_REQUESTS",  "description": "Too Many Requests"}
{  "code": "INTERNAL_SERVER_ERROR",  "description": "Internal Server Error"}