Cowdidocs
API ReferenceFinancing

List financing invoices for a merchant

GET
/v1/financing/merchants/{merchantId}/invoices

Authorization

Cowdi_Sales_KYC_financingBearerAuth
AuthorizationBearer <token>

User JWT for the invoice-financing surface, verified against a configured trusted issuer. Organization-scoped permissions come from the token; merchant-scoped permissions are checked with the resource-access provider selected from that verified issuer.

In: header

Path Parameters

merchantId*string

Backend merchant id.

Length1 <= length <= 255

Query Parameters

size?string

Page size from 1 to 100. Defaults to 20.

Match^\d+$
after?string

Opaque cursor for the next page. Mutually exclusive with before.

before?string

Opaque cursor for the previous page. Mutually exclusive with after.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/financing/merchants/string/invoices"
{  "data": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",      "amount_minor_units": 0,      "currency": "KES",      "details": {        "property1": null,        "property2": null      },      "due_date": "2019-08-24",      "issued_date": "2019-08-24",      "status": "PENDING",      "created_at": "2019-08-24T14:15:22Z"    }  ],  "links": {    "next": "string",    "prev": "string"  }}
{  "code": "INVALID_PARAMS",  "description": "user_id must be a UUID",  "identifier": "string",  "invalid_params": [    {      "path": "user_id",      "reason": "must be a UUID",      "sub_code": "string"    }  ]}
{  "code": "INVALID_PARAMS",  "description": "user_id must be a UUID",  "identifier": "string",  "invalid_params": [    {      "path": "user_id",      "reason": "must be a UUID",      "sub_code": "string"    }  ]}
{  "code": "INVALID_PARAMS",  "description": "user_id must be a UUID",  "identifier": "string",  "invalid_params": [    {      "path": "user_id",      "reason": "must be a UUID",      "sub_code": "string"    }  ]}
{  "code": "INVALID_PARAMS",  "description": "user_id must be a UUID",  "identifier": "string",  "invalid_params": [    {      "path": "user_id",      "reason": "must be a UUID",      "sub_code": "string"    }  ]}
{  "code": "INVALID_PARAMS",  "description": "user_id must be a UUID",  "identifier": "string",  "invalid_params": [    {      "path": "user_id",      "reason": "must be a UUID",      "sub_code": "string"    }  ]}
{  "code": "INVALID_PARAMS",  "description": "user_id must be a UUID",  "identifier": "string",  "invalid_params": [    {      "path": "user_id",      "reason": "must be a UUID",      "sub_code": "string"    }  ]}