Get Merchant Descriptors
GET
https://{base_url}/v2/merchant/{merchantId}/descriptors
This endpoint retrieves all unique payment descriptors associated with a specific merchant. It first validates the presence of a merchant ID and performs an authorization check if JWT is enabled. Upon successful validation, it queries the database to find and return all descriptors for the given merchant. If no descriptors are found, a 404 error is returned. Otherwise, the endpoint returns a list of descriptors sorted by creation date. If any errors occur during execution, an appropriate error message is returned.
Headers
Content-Type
application/json
Authorization
Bearer <token>
Path Parameters
merchantId
Merchant Id to fetch descriptors
Retrieve all unique descriptors for a specific merchant
Merchant Id to fetch descriptors for
Successful Response
Bad Request
Unauthorized
Not Found
Internal Server Error
GET /api/v2/merchant/{merchantId}/descriptors HTTP/1.1
Host: {baseurl}
Authorization: Bearer JWT
Accept: */*
[
{
"descriptorId": "07d98bc9-cb24-42c2-b841-ed33ed4ca48f",
"title": "Bumper",
"merchantId": "XXXXXXXXX",
"merchantName": "Tesla",
"active": true,
"dateCreated": "2023-10-07T04:22:38.834Z"
}
]
Last updated