Skip to content

List parties

GET
/api/v1/tenants/{tenant_id}/workspaces/{workspace_id}/parties

List all parties (suppliers/customers) with pagination and filtering.

page
Page
integer
default: 1 >= 1
page_size
Page Size
integer
default: 20 >= 1 <= 100
party_type
Any of:
string
search
Any of:
string

Search by name or tax ID

is_active
Any of:
boolean
is_peppol_participant
Any of:
boolean
sort_by
Any of:
string
sort_order
Any of:
string
/^(asc|desc)$/
X-Workspace-ID
Any of:
string
X-API-Key
Any of:
string
X-Tenant-ID
Any of:
string

Successful Response

Examples

Customer directory response

{
"items": [
{
"id": "8a1c7f6c-61a1-4d89-8d96-3f7e7747f0c0",
"legal_name": "Optimum Business Solution Ltd",
"trading_name": "OBS",
"party_type": "customer",
"tax_id": "TIN-12345678",
"email": "ap@obs.ng",
"phone": "+2348012345678",
"is_peppol_participant": true
}
],
"total": 1,
"page": 1,
"page_size": 50
}

Validation Error

HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examples

422 response example

{
"detail": [
{
"loc": [],
"msg": "string",
"type": "string"
}
]
}