Merchants
get_ merchants
Get list of merchants for the authenticated user's organization
Body
pagenumber1Page number for pagination
limitnumber10Number of items per page
searchstringSearch term for merchant name, code, or email
relationsArray<string>Relations to include (e.g., ["contact", "tags"])
whereobjectAdditional filters
get_ merchant_ count
Get merchant count in the authenticated user's organization
Body
whereobjectAdditional filters
get_ merchant
Get a specific merchant by ID
Parameters
idstring<uuid>requiredThe merchant ID
relationsArray<string>Relations to include (e.g., ["contact", "tags"])
create_ merchant
Create a new merchant in the authenticated user's organization
Body
merchant_ dataobjectrequiredThe data for creating the merchant
update_ merchant
Update an existing merchant
Parameters
idstring<uuid>requiredThe merchant ID
merchant_ dataobjectrequiredThe data for updating the merchant
delete_ merchant
Delete a merchant
Parameters
idstring<uuid>requiredThe merchant ID
archive_ merchant
Archive a merchant (soft delete)
Parameters
idstring<uuid>requiredThe merchant ID
restore_ merchant
Restore an archived merchant
Parameters
idstring<uuid>requiredThe merchant ID
get_ merchant_ by_ code
Get a merchant by its unique code
Parameters
codestringrequiredThe merchant code
relationsArray<string>Relations to include
search_ merchants
Search merchants by name, code, email, or description
Parameters
querystringrequiredSearch query
limitnumber20Maximum number of results
includeArchivedbooleanfalseInclude archived merchants in search
get_ merchant_ statistics
Get merchant statistics for the authenticated user's organization
Parameters
startDatestringStart date for statistics (ISO format)
endDatestringEnd date for statistics (ISO format)
bulk_ create_ merchants
Create multiple merchants in bulk for the authenticated user's organization
Body
merchantsArray<object>requiredArray of merchant data to create
get_ active_ merchants
Get only active (non-archived) merchants for the authenticated user's organization
Parameters
pagenumber1Page number for pagination
limitnumber10Number of items per page
searchstringSearch term for merchant name, code, or email
relationsArray<string>Relations to include
get_ archived_ merchants
Get archived merchants for the authenticated user's organization
Parameters
pagenumber1Page number for pagination
limitnumber10Number of items per page
searchstringSearch term for merchant name, code, or email
relationsArray<string>Relations to include