Get Merchant List
GET/merchants
Use this endpoint to view a list of the merchants.
There are no request parameters for this endpoint, Also change limit
in the URI to whatever integer value of items you want to receive.
Request
Query Parameters
Limit's the amount of items that will be returned.
Header Parameters
appToken created by /auth/token
Format: Bearer xxxxxx...
Responses
- 200
Ok
- application/json
- Schema
- Example (from schema)
- ok
Schema
Array [
]
meta
object
A key for grouping different types of API data.
The number of items in the database. It is equal to or smaller than the limit’s value.
The maximum number of results to return.
A true/false value that indicates whether “items” or “limit” allows more results.
data
object[]
A key for grouping results.
The merchant identification string in Digitzs.
attributes
object
A key for grouping identification and payment information.
The name of the individual or business associated with the account.
The account type (Personal or Business).
The date and time that the payment was created.
The transaction type. Must equal “merchants”.
{
"meta": {
"items": 0,
"limit": "string",
"more": true
},
"data": [
{
"id": "string",
"attributes": {
"accountName": "string",
"accountType": "string",
"created": "2024-07-29T15:51:28.071Z",
"type": "string"
}
}
]
}
{
"link": {
"self": "x"
},
"meta": {
"limit": 25,
"items": 25,
"more": true
},
"data": [
{
"id": "merchantId",
"attributes": {
"accountName": "Huyen Dinh",
"accountType": "business",
"created": "2019-10-10T19:27:00.680Z"
},
"type": "merchants"
}
]
}