Merchants

get_merchants

Get list of merchants for the authenticated user's organization

Body

application/json
pagenumber1

Page number for pagination

limitnumber10

Number of items per page

searchstring

Search term for merchant name, code, or email

relationsArray<string>

Relations to include (e.g., ["contact", "tags"])

whereobject

Additional filters

Show child attributes
isActiveboolean
isArchivedboolean

get_merchant_count

Get merchant count in the authenticated user's organization

Body

application/json
whereobject

Additional filters

Show child attributes
isActiveboolean
isArchivedboolean

get_merchant

Get a specific merchant by ID

Parameters

idstring<uuid>required

The merchant ID

relationsArray<string>

Relations to include (e.g., ["contact", "tags"])

create_merchant

Create a new merchant in the authenticated user's organization

Body

application/json
merchant_dataobjectrequired

The data for creating the merchant

Show child attributes
namestringrequired

The name (required)

[key: string]any

update_merchant

Update an existing merchant

Parameters

idstring<uuid>required

The merchant ID

merchant_dataobjectrequired

The data for updating the merchant

delete_merchant

Delete a merchant

Parameters

idstring<uuid>required

The merchant ID

archive_merchant

Archive a merchant (soft delete)

Parameters

idstring<uuid>required

The merchant ID

restore_merchant

Restore an archived merchant

Parameters

idstring<uuid>required

The merchant ID

get_merchant_by_code

Get a merchant by its unique code

Parameters

codestringrequired

The merchant code

relationsArray<string>

Relations to include

search_merchants

Search merchants by name, code, email, or description

Parameters

querystringrequired

Search query

limitnumber20

Maximum number of results

includeArchivedbooleanfalse

Include archived merchants in search

get_merchant_statistics

Get merchant statistics for the authenticated user's organization

Parameters

startDatestring

Start date for statistics (ISO format)

endDatestring

End date for statistics (ISO format)

bulk_create_merchants

Create multiple merchants in bulk for the authenticated user's organization

Body

application/json
merchantsArray<object>required

Array of merchant data to create

Show child attributes

Merchant data

namestringrequired

The name (required)

[key: string]any

get_active_merchants

Get only active (non-archived) merchants for the authenticated user's organization

Parameters

pagenumber1

Page number for pagination

limitnumber10

Number of items per page

searchstring

Search 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

pagenumber1

Page number for pagination

limitnumber10

Number of items per page

searchstring

Search term for merchant name, code, or email

relationsArray<string>

Relations to include

Copyright © 2023-Present Ever Co. LTD.Docs by Sourcey