swagger: '2.0'
info:
title: Mastercard Bill Payment Validator Account Opening Merchants API
description: This service is provided on behalf of the Mastercard Remote Payment and Presentment (RPPS) Bill Payment Processing Network, which supports consumer to business "push" bill payments (i.e. those which are not funded by debit/credit card transactions) in the U.S.
version: '1.0'
x-artifactId: billpay-api
contact:
name: Bill Pay Development Support
email: Bill_Pay_Development_Support@mastercard.com
host: sandbox.api.mastercard.com
basePath: /billpayAPI/v1
schemes:
- https
consumes:
- application/json
produces:
- application/json
tags:
- name: Merchants
paths:
/supported-merchant-categories:
get:
tags:
- Merchants
summary: Provide Supported MCCs
description: Provides a list of merchant category codes supported by the application. While sending transaction data in the Transaction object, 'mcc' should be from one of the supported merchant categories. It is recommended to cache this list and use it for checking before sending transactions for footprint calculation. Generally this list doesn't change that often, but it is recommended to refresh this data every 24-hours.
operationId: GetSupportedMerchantCategories
responses:
'200':
$ref: '#/components/responses/SupportedMerchantCategories'
/merchants/participations:
post:
tags:
- Merchants
summary: Allows a registered partner to create or update merchant participation details
description: 'This endpoint enables registered partners to manage merchant participation details, indicating whether a merchant has opted into or out of Buy Now Pay Later. A unique MAID-based merchant is identified by a combination of acquirerICA, merchantLegalName, and countryCode.
It facilitates the creation of a merchant with participation and allows updates to existing participation information, such as adding more MIDs, toggling opt-in flags, modifying address fields, and updating wallet information.
Additionally, this API supports the submission of MAID-based merchant participation,Identification of existing MID based merchants relies on acquirerICA, merchantLegalName, and countryCode and MAID based merchants relies merchantLegalName, and countryCode
If a merchant already exists, the provided MIDs will be appended to the current set.Once a MAID is entered into the system, it becomes immutable. Certain fields, namely duns cannot be modified; they must either be null, empty, or match existing values, or a 400 bad request error will be thrown. This API also allows for updating MAID base participation submitted by other acquirers.
Various markets can utilize this API to submit MAID or MID participation. For further information, please contact the Product team.
Upon successful validation and acceptance of a request, the API returns the request ID in the ''request_id'' response header, and processing occurs asynchronously. Use the GET /merchants/participation endpoint to monitor request status via the request ID. When initiating participation requests, ensure that the total payload size remains under 700 KB to avoid errors.
The field `nonMerchantNegotiatedParticipation` will be deprecated. It is recommended to utilize the `optIn` flag instead. In cases where both fields are provided, the `optIn` field will take precedence over `nonMerchantNegotiatedParticipation`.
We have introduced a new field called `merchantGroup` which is optional for other market but mandatory for markets like Australia.
Please see the table below for market/operation wise field validation:
| Market | Mandatory In Add Operation | Mandatory In Update Operation |
| MID Market | merchantLegalName, countryCode, acquirerICA, dbaNames, mids, optIn(or nonMerchantNegotiatedParticipation for previously onboarded customers to API) | merchantLegalName, countryCode, acquirerICA, optIn(or nonMerchantNegotiatedParticipation for previously onboarded customers to API) |
| Australia MID Market | merchantLegalName, merchantGroup, countryCode, acquirerICA, dbaNames, mids, optIn | merchantLegalName, countryCode, acquirerICA, optIn |
| MAID Market | merchantLegalName, countryCode, acquirerICA, dbaNames, maid, maidType, optIn | merchantLegalName, countryCode, acquirerICA, maid, maidType, optIn |
'
operationId: postMerchantParticipations
requestBody:
$ref: '#/components/requestBodies/MerchantParticipations'
responses:
'202':
$ref: '#/components/responses/MerchantParticipationReference'
'400':
$ref: '#/components/responses/BadRequestError'
'401':
$ref: '#/components/responses/AccountNotRegisteredError'
'403':
$ref: '#/components/responses/ForbiddenError'
'406':
$ref: '#/components/responses/NotAcceptableHeader'
get:
tags:
- Merchants
summary: Provides status of merchant participation updates
description: 'Allows registered partners to fetch a list of merchants with participation details whose participation request is completed successfully. If query parameter ''request_id'' is supplied then the response will be limited to only those merchant objects with any status (PENDING, COMPLETED) that were part of that particular request.
For details on mandatory fields in response, please consult the description section of the POST: /merchants/participations endpoint.
In case of request failed error response contain `requestEndpoint`, `requestId`, `httpErrorStatusCode`, `errors.source`, `errors.reasonCode`, `errors.description` and `errors.recoverable` mandatory fields.
For previously onboarded customers to API both `nonMerchantNegotiatedParticipation` and `optIn` will be visible. The field `nonMerchantNegotiatedParticipation` will be deprecated.
For previously onboarded customers to API both `acceptorIds` and `maids` will be visible. The field `acceptorIds` will be deprecated.
'
operationId: getMerchantParticipations
parameters:
- $ref: '#/components/parameters/request_id'
- $ref: '#/components/parameters/offset'
- $ref: '#/components/parameters/limit'
responses:
'200':
$ref: '#/components/responses/Merchants'
'400':
$ref: '#/components/responses/InvalidRequestIdError'
'401':
$ref: '#/components/responses/AccountNotRegisteredError'
'403':
$ref: '#/components/responses/ForbiddenError'
'404':
$ref: '#/components/responses/ResourceNotFoundError'
'406':
$ref: '#/components/responses/NotAcceptableHeader'
/merchants/searches:
post:
tags:
- Merchants
summary: Allows registered partners to search merchant participation information.
description: 'Allows registered partners to search merchant objects, enabled for Acquirers and Installment Payment Providers (IPP).
Additionally, customers can search MAID merchant based on maid.
At least one parameter is required in the request.
For previously onboarded customers to API both `nonMerchantNegotiatedParticipation` and `optIn` will be visible. The field `nonMerchantNegotiatedParticipation` will be deprecated.
For previously onboarded customers to API both `acceptorIds` and `maids` will be visible. The field `acceptorIds` will be deprecated.
'
operationId: postMerchantSearches
parameters:
- $ref: '#/components/parameters/offset'
- $ref: '#/components/parameters/limit'
requestBody:
$ref: '#/components/requestBodies/MerchantSearchParameters'
responses:
'200':
$ref: '#/components/responses/MerchantSearches'
'400':
$ref: '#/components/responses/BadRequestError'
'401':
$ref: '#/components/responses/AccountNotRegisteredError'
'403':
$ref: '#/components/responses/ForbiddenError'
'406':
$ref: '#/components/responses/NotAcceptableHeader'
/merchants/mids/searches:
post:
tags:
- Merchants
summary: Allows registered partners (Acquirers only) to search only specific merchant participation information.
description: 'Allows registered partners to search mids for a given merchant. A combination of `merchantLegalName`, `countryCode`, and `acquirerICA` is required in the request.
For previously onboarded customers to API both `nonMerchantNegotiatedParticipation` and `optIn` will be visible. The field `nonMerchantNegotiatedParticipation` will be deprecated.
'
operationId: postMerchantMidSearches
parameters:
- $ref: '#/components/parameters/offset'
- $ref: '#/components/parameters/limit'
requestBody:
$ref: '#/components/requestBodies/MerchantMidSearchParameters'
responses:
'200':
$ref: '#/components/responses/MidDetailsPage'
'400':
$ref: '#/components/responses/BadRequestError'
'401':
$ref: '#/components/responses/AccountNotRegisteredError'
'403':
$ref: '#/components/responses/ForbiddenError'
'406':
$ref: '#/components/responses/NotAcceptableHeader'
/merchants/{guid}/logos:
parameters:
- $ref: '#/components/parameters/UserIdParam'
- $ref: '#/components/parameters/SubmitterFirstNameParam'
- $ref: '#/components/parameters/SubmitterLastNameParam'
- $ref: '#/components/parameters/MerchantGuidParam'
put:
tags:
- Merchants
summary: Mastercard Update a Logo for an Existing Merchant.
description: Returns status and messages (if any validation failures) related to the logo of a sub-merchant.
operationId: updateMerchantLogoByGuid
requestBody:
$ref: '#/components/requestBodies/MerchantLogoBody'
responses:
'200':
$ref: '#/components/responses/LogoSuccess'
'400':
$ref: '#/components/responses/BadRequest'
'404':
$ref: '#/components/responses/NotFound'
default:
$ref: '#/components/responses/Default'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
post:
tags:
- Merchants
summary: Mastercard Create a Logo for an Existing Merchant.
description: Returns status and messages (if any validation failures) related to the logo of a sub-merchant.
operationId: createMerchantLogo
requestBody:
$ref: '#/components/requestBodies/MerchantLogoBody'
responses:
'200':
$ref: '#/components/responses/LogoSuccess'
'400':
$ref: '#/components/responses/BadRequest'
'404':
$ref: '#/components/responses/NotFound'
default:
$ref: '#/components/responses/Default'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
delete:
tags:
- Merchants
summary: Mastercard Delete a Logo for an Existing Merchant.
description: Returns 204 status code if logo deleted successfully.
operationId: deleteLogoByMerchantGuid
responses:
'204':
$ref: '#/components/responses/SuccessWithoutBody'
'400':
$ref: '#/components/responses/BadRequest'
'404':
$ref: '#/components/responses/NotFound'
default:
$ref: '#/components/responses/Default'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
get:
tags:
- Merchants
summary: Mastercard Get the Logo for an Existing Merchant.
description: Returns base64 encoded image, status and messages (if any validation failures) related to the logo of a sub-merchant.
operationId: getLogoByMerchantGuid
responses:
'200':
$ref: '#/components/responses/LogoSuccessWithImage'
'400':
$ref: '#/components/responses/BadRequest'
'404':
$ref: '#/components/responses/NotFound'
default:
$ref: '#/components/responses/Default'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/sub-merchants:
parameters:
- $ref: '#/components/parameters/UserIdParam'
- $ref: '#/components/parameters/SubmitterFirstNameParam'
- $ref: '#/components/parameters/SubmitterLastNameParam'
post:
tags:
- Merchants
summary: Mastercard Create a Sub-merchant.
description: Returns sub-merchant object with status.
operationId: createSubMerchant
requestBody:
$ref: '#/components/requestBodies/SubMerchantBody'
responses:
'200':
$ref: '#/components/responses/SubMerchantSuccess'
'400':
$ref: '#/components/responses/BadRequest'
'404':
$ref: '#/components/responses/NotFound'
default:
$ref: '#/components/responses/Default'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/sub-merchants/{guid}:
put:
tags:
- Merchants
summary: Mastercard Update a Sub-merchant.
description: Returns sub-merchant object with status.
operationId: updateSubMerchant
parameters:
- $ref: '#/components/parameters/UserIdParam'
- $ref: '#/components/parameters/SubmitterFirstNameParam'
- $ref: '#/components/parameters/SubmitterLastNameParam'
- $ref: '#/components/parameters/IfMatch'
- $ref: '#/components/parameters/MerchantGuidParam'
requestBody:
$ref: '#/components/requestBodies/SubMerchantBody'
responses:
'200':
$ref: '#/components/responses/SubMerchantSuccess'
'400':
$ref: '#/components/responses/BadRequest'
'404':
$ref: '#/components/responses/NotFound'
'412':
$ref: '#/components/responses/PreconditionFailed'
'428':
$ref: '#/components/responses/PreconditionRequired'
default:
$ref: '#/components/responses/Default'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
get:
tags:
- Merchants
summary: Mastercard Get Sub-merchant by Guid.
description: Returns sub-merchant object with status.
operationId: getSubMerchantByGuid
parameters:
- $ref: '#/components/parameters/UserIdParam'
- $ref: '#/components/parameters/SubmitterFirstNameParam'
- $ref: '#/components/parameters/SubmitterLastNameParam'
- $ref: '#/components/parameters/MerchantGuidParam'
responses:
'200':
$ref: '#/components/responses/SubMerchantSuccess'
'400':
$ref: '#/components/responses/BadRequest'
'404':
$ref: '#/components/responses/NotFound'
default:
$ref: '#/components/responses/Default'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/sub-merchants/{guid}/states:
parameters:
- $ref: '#/components/parameters/UserIdParam'
- $ref: '#/components/parameters/SubmitterFirstNameParam'
- $ref: '#/components/parameters/SubmitterLastNameParam'
- $ref: '#/components/parameters/MerchantGuidParam'
put:
tags:
- Merchants
summary: Mastercard Activate/deactivate a Sub-merchant.
description: "Returns 204 if merchant is activated/deactivated successfully. It takes a state attribute with two possible values:\n\n - INACTIVE\n - For LIVE and LOCKED_FOR_EDIT merchants, this endpoint changes the merchant to INACTIVE status.\n - For CONFIGURATION merchants, it physically deletes the merchant, rather than deactivating it.\n\n - ACTIVE\n - Reactivates an INACTIVE merchant by placing it in CONFIGURATION status. From there, the flow follows the onboarding process where the merchant is in CONFIGURATION status and its attributes\nare available for editing."
operationId: changeSubMerchantState
requestBody:
$ref: '#/components/requestBodies/ChangeSubMerchantStateBody'
responses:
'204':
$ref: '#/components/responses/SuccessWithoutBody'
'400':
$ref: '#/components/responses/BadRequest'
'404':
$ref: '#/components/responses/NotFound'
default:
$ref: '#/components/responses/Default'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/sub-merchants/{guid}/locations:
parameters:
- $ref: '#/components/parameters/UserIdParam'
- $ref: '#/components/parameters/SubmitterFirstNameParam'
- $ref: '#/components/parameters/SubmitterLastNameParam'
- $ref: '#/components/parameters/MerchantGuidParam'
post:
tags:
- Merchants
summary: Mastercard Add a Unique Set of Sub-merchant's Locations
description: Creates locations under an existing sub-merchant
operationId: addLocations
requestBody:
$ref: '#/components/requestBodies/LocationsBulkRequestBody'
responses:
'200':
$ref: '#/components/responses/LocationsBulkSuccess'
'400':
$ref: '#/components/responses/BadRequest'
default:
$ref: '#/components/responses/Default'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
get:
parameters:
- $ref: '#/components/parameters/ClarityOffsetParam'
- $ref: '#/components/parameters/ClarityPageNumberParam'
- $ref: '#/components/parameters/ClaritySortDirectionParam'
- $ref: '#/components/parameters/ClaritySortFieldParam'
- $ref: '#/components/parameters/LocationSearchTextQueryParam'
summary: Mastercard Get Sub-merchant's Locations
description: Returns sub-merchant's locations with pagination metadata
operationId: getAllLocations
tags:
- Merchants
responses:
'200':
$ref: '#/components/responses/PageableLocationsSuccess'
'400':
$ref: '#/components/responses/BadRequest'
'404':
$ref: '#/components/responses/NotFound'
default:
$ref: '#/components/responses/Default'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/sub-merchants/{guid}/locations/{location_id}:
get:
summary: Mastercard Get Location by Id
description: Returns location object
operationId: getLocationById
parameters:
- $ref: '#/components/parameters/UserIdParam'
- $ref: '#/components/parameters/SubmitterFirstNameParam'
- $ref: '#/components/parameters/SubmitterLastNameParam'
- $ref: '#/components/parameters/MerchantGuidParam'
- $ref: '#/components/parameters/LocationIdParam'
tags:
- Merchants
responses:
'200':
$ref: '#/components/responses/LocationSuccess'
'400':
$ref: '#/components/responses/BadRequest'
'404':
$ref: '#/components/responses/NotFound'
default:
$ref: '#/components/responses/Default'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
put:
summary: Mastercard Update an Existing Location
description: Updates a location object
operationId: updateLocation
tags:
- Merchants
parameters:
- $ref: '#/components/parameters/UserIdParam'
- $ref: '#/components/parameters/SubmitterFirstNameParam'
- $ref: '#/components/parameters/SubmitterLastNameParam'
- $ref: '#/components/parameters/MerchantGuidParam'
- $ref: '#/components/parameters/LocationIdParam'
- $ref: '#/components/parameters/IfMatch'
requestBody:
$ref: '#/components/requestBodies/LocationBody'
responses:
'200':
$ref: '#/components/responses/LocationSuccess'
'400':
$ref: '#/components/responses/BadRequest'
'404':
$ref: '#/components/responses/NotFound'
default:
$ref: '#/components/responses/Default'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
delete:
summary: Mastercard Delete an Existing Location
description: Returns 204 status code if Location deleted successfully
operationId: deleteLocation
parameters:
- $ref: '#/components/parameters/UserIdParam'
- $ref: '#/components/parameters/SubmitterFirstNameParam'
- $ref: '#/components/parameters/SubmitterLastNameParam'
- $ref: '#/components/parameters/MerchantGuidParam'
- $ref: '#/components/parameters/LocationIdParam'
tags:
- Merchants
responses:
'204':
$ref: '#/components/responses/SuccessWithoutBody'
'400':
$ref: '#/components/responses/BadRequest'
'404':
$ref: '#/components/responses/NotFound'
default:
$ref: '#/components/responses/Default'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/alerts/merchants/org-profiles:
get:
tags:
- Merchants
summary: Mastercard Get Details of Organization Profiles.
description: Returns organization profile details containing member name, id and type.
operationId: getAlertsOrgProfiles
parameters:
- $ref: '#/components/parameters/UserIdParam'
- $ref: '#/components/parameters/SubmitterFirstNameParam'
- $ref: '#/components/parameters/SubmitterLastNameParam'
responses:
'200':
$ref: '#/components/responses/AlertsOrgProfilesSuccess'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/PermissionDenied'
'404':
$ref: '#/components/responses/NotFound'
default:
$ref: '#/components/responses/Default'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/alerts/merchants/{member_id}/acquirer-reference-ids:
post:
tags:
- Merchants
summary: Mastercard Create Acquirer Reference Id Config.
description: Create an acquirer reference id configuration.
operationId: createAlertsAcquirerReferenceIdConfig
parameters:
- $ref: '#/components/parameters/UserIdParam'
- $ref: '#/components/parameters/SubmitterFirstNameParam'
- $ref: '#/components/parameters/SubmitterLastNameParam'
- $ref: '#/components/parameters/MemberIdParam'
requestBody:
$ref: '#/components/requestBodies/AlertsAcquirerReferenceIdConfigRequestBody'
responses:
'200':
$ref: '#/components/responses/AlertsMerchantIdentifierSuccess'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/PermissionDenied'
'403':
$ref: '#/components/responses/ForbiddenOperation'
'404':
$ref: '#/components/responses/NotFound'
'422':
$ref: '#/components/responses/ValidationFailed'
default:
$ref: '#/components/responses/Default'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
put:
tags:
- Merchants
summary: Mastercard Update Acquirer Reference Id Config.
description: Update an acquirer reference id configuration.
operationId: updateAlertsAcquirerReferenceIdConfig
parameters:
- $ref: '#/components/parameters/UserIdParam'
- $ref: '#/components/parameters/SubmitterFirstNameParam'
- $ref: '#/components/parameters/SubmitterLastNameParam'
- $ref: '#/components/parameters/MemberIdParam'
- $ref: '#/components/parameters/MerchantIdentifierConfigIdParam'
requestBody:
$ref: '#/components/requestBodies/AlertsAcquirerReferenceIdConfigUpdateRequestBody'
responses:
'200':
$ref: '#/components/responses/AlertsMerchantIdentifierSuccess'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/PermissionDenied'
'403':
$ref: '#/components/responses/ForbiddenOperation'
'404':
$ref: '#/components/responses/NotFound'
'422':
$ref: '#/components/responses/ValidationFailed'
default:
$ref: '#/components/responses/Default'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
get:
tags:
- Merchants
summary: Mastercard Get Acquirer Reference Id Configs.
description: Get the acquirer reference id configs filtered by acquirer reference id and card scheme.
operationId: getAlertsAcquirerReferenceIdConfigs
parameters:
- $ref: '#/components/parameters/UserIdParam'
- $ref: '#/components/parameters/SubmitterFirstNameParam'
- $ref: '#/components/parameters/SubmitterLastNameParam'
- $ref: '#/components/parameters/MemberIdParam'
- $ref: '#/components/parameters/AcquirerReferenceIdParam'
- $ref: '#/components/parameters/CardSchemeParam'
- $ref: '#/components/parameters/OffsetParam'
- $ref: '#/components/parameters/PageNumberParam'
responses:
'200':
$ref: '#/components/responses/AlertsPageableAcquirerReferenceIdConfigs'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/PermissionDenied'
'403':
$ref: '#/components/responses/ForbiddenOperation'
'404':
$ref: '#/components/responses/NotFound'
default:
$ref: '#/components/responses/Default'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
delete:
tags:
- Merchants
summary: Mastercard Delete Acquirer Reference Id Config.
description: Delete an acquirer reference id configuration.
operationId: deleteAlertsAcquirerReferenceIdConfig
parameters:
- $ref: '#/components/parameters/UserIdParam'
- $ref: '#/components/parameters/SubmitterFirstNameParam'
- $ref: '#/components/parameters/SubmitterLastNameParam'
- $ref: '#/components/parameters/MemberIdParam'
- $ref: '#/components/parameters/MerchantIdentifierConfigIdParam'
responses:
'200':
$ref: '#/components/responses/SuccessWithoutBody'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/PermissionDenied'
'403':
$ref: '#/components/responses/ForbiddenOperation'
'404':
$ref: '#/components/responses/NotFound'
default:
$ref: '#/components/responses/Default'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/alerts/merchants/{member_id}/sub-merchants:
parameters:
- $ref: '#/components/parameters/UserIdParam'
- $ref: '#/components/parameters/SubmitterFirstNameParam'
- $ref: '#/components/parameters/SubmitterLastNameParam'
- $ref: '#/components/parameters/MemberIdParam'
post:
tags:
- Merchants
summary: Mastercard Create a Sub-merchant.
description: Returns created sub-merchant details.
operationId: createAlertsSubMerchant
requestBody:
$ref: '#/components/requestBodies/AlertsSubMerchantCreateRequestBody'
responses:
'200':
$ref: '#/components/responses/AlertsSubMerchantSuccess'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/PermissionDenied'
'403':
$ref: '#/components/responses/ForbiddenOperation'
'404':
$ref: '#/components/responses/NotFound'
'422':
$ref: '#/components/responses/ValidationFailed'
default:
$ref: '#/components/responses/Default'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
get:
tags:
- Merchants
summary: Mastercard Get a List of Sub-merchants.
description: Returns sub-merchants matching multiple criteria.
operationId: getAlertsSubMerchants
parameters:
- $ref: '#/components/parameters/UserIdParam'
- $ref: '#/components/parameters/SubmitterFirstNameParam'
- $ref: '#/components/parameters/SubmitterLastNameParam'
- $ref: '#/components/parameters/MemberIdParam'
- $ref: '#/components/parameters/MerchantNameParam'
- $ref: '#/components/parameters/MerchantStatusParam'
- $ref: '#/components/parameters/OffsetParam'
- $ref: '#/components/parameters/PageNumberParam'
responses:
'200':
$ref: '#/components/responses/AlertsPageableSubMerchants'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/PermissionDenied'
'403':
$ref: '#/components/responses/ForbiddenOperation'
'404':
$ref: '#/components/responses/NotFound'
default:
$ref: '#/components/responses/Default'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/alerts/merchants/{member_id}/sub-merchants/{sub_merchant_id}:
put:
tags:
- Merchants
summary: Mastercard Update a Sub-merchant.
description: Returns updated sub-merchant details.
operationId: updateAlertsSubMerchantDetails
parameters:
- $ref: '#/components/parameters/UserIdParam'
- $ref: '#/components/parameters/SubmitterFirstNameParam'
- $ref: '#/components/parameters/SubmitterLastNameParam'
- $ref: '#/components/parameters/MemberIdParam'
- $ref: '#/components/parameters/SubMerchantIdParam'
requestBody:
$ref: '#/components/requestBodies/AlertsSubMerchantDetailsUpdateRequestBody'
responses:
'200':
$ref: '#/components/responses/AlertsSubMerchantSuccess'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/PermissionDenied'
'403':
$ref: '#/components/responses/ForbiddenOperation'
'404':
$ref: '#/components/responses/NotFound'
'422':
$ref: '#/components/responses/ValidationFailed'
default:
$ref: '#/components/responses/Default'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
get:
tags:
- Merchants
summary: Mastercard Get a Sub-merchant.
description: Returns sub-merchant details with matching ID.
operationId: getAlertsSubMerchantByGuid
parameters:
- $ref: '#/components/parameters/UserIdParam'
- $ref: '#/components/parameters/SubmitterFirstNameParam'
- $ref: '#/components/parameters/SubmitterLastNameParam'
- $ref: '#/components/parameters/MemberIdParam'
- $ref: '#/components/parameters/SubMerchantIdParam'
responses:
'200':
$ref: '#/components/responses/AlertsSubMerchantSuccess'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/PermissionDenied'
'403':
$ref: '#/components/responses/ForbiddenOperation'
'404':
$ref: '#/components/responses/NotFound'
default:
$ref: '#/components/responses/Default'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/alerts/merchants/{member_id}/sub-merchants/{sub_merchant_id}/status-changes:
put:
tags:
- Merchants
summary: Mastercard Change Sub-merchant Status.
description: Returns sub-merchant details with updated status.
operationId: updateAlertsSubMerchantStatus
parameters:
- $ref: '#/components/parameters/UserIdParam'
- $ref: '#/components/parameters/SubmitterFirstNameParam'
- $ref: '#/components/parameters/SubmitterLastNameParam'
- $ref: '#/components/parameters/MemberIdParam'
- $ref: '#/components/parameters/SubMerchantIdParam'
requestBody:
$ref: '#/components/requestBodies/AlertsSubMerchantStatusUpdateRequestBody'
responses:
'200':
$ref: '#/components/responses/AlertsSubMerchantSuccess'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/PermissionDenied'
'403':
$ref: '#/components/responses/ForbiddenOperation'
'404':
$ref: '#/components/responses/NotFound'
'422':
$ref: '#/components/responses/ValidationFailed'
default:
$ref: '#/components/responses/Default'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/alerts/merchants/{member_id}/sub-merchants/{sub_merchant_id}/card-acceptor-ids:
post:
tags:
- Merchants
summary: Mastercard Create Sub-merchant Card Acceptor Id Config.
description: Returns created sub-merchant card acceptor id config details.
operationId: createAlertsCardAcceptorIdConfig
parameters:
- $ref: '#/components/parameters/UserIdParam'
- $ref: '#/components/parameters/SubmitterFirstNameParam'
- $ref: '#/components/parameters/SubmitterLastNameParam'
- $ref: '#/components/parameters/MemberIdParam'
- $ref: '#/components/parameters/SubMerchantIdParam'
requestBody:
$ref: '#/components/requestBodies/AlertsCardAcceptorIdConfigRequestBody'
responses:
'200':
$ref: '#/components/responses/AlertsMerchantIdentifierSuccess'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/PermissionDenied'
'403':
$ref: '#/components/responses/ForbiddenOperation'
'404':
$ref: '#/components/responses/NotFound'
'422':
$ref: '#/components/responses/ValidationFailed'
default:
$ref: '#/components/responses/Default'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
get:
tags:
- Merchants
summary: Mastercard Get Sub-merchant Card Acceptor Id Configs.
description: Returns sub-merchant card acceptor id config details.
operationId: getAlertsCardAcceptorIdConfigs
parameters:
- $ref: '#/components/parameters/UserIdParam'
- $ref: '#/components/parameters/SubmitterFirstNameParam'
- $ref: '#/components/parameters/SubmitterLastNameParam'
- $ref: '#/components/parameters/MemberIdParam'
- $ref: '#/components/parameters/SubMerchantIdParam'
- $ref: '#/components/parameters/AcquirerReferenceIdParam'
- $ref: '#/components/parameters/CardAcceptorIdParam'
- $ref: '#/components/parameters/OffsetParam'
- $ref: '#/components/parameters/PageNumberParam'
responses:
'200':
$ref: '#/components/responses/AlertsCardAcceptorIdConfigs'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/PermissionDenied'
'403':
$ref: '#/components/responses/ForbiddenOperation'
'404':
$ref: '#/components/responses/NotFound'
default:
$ref: '#/components/responses/Default'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
delete:
tags:
- Merchants
summary: Mastercard Delete Sub-merchant Card Acceptor Id Config.
description: Returns 200 if sub-merchant card acceptor id configs gets deleted.
operationId: deleteAlertsCardAcceptorIdConfig
parameters:
- $ref: '#/components/parameters/UserIdParam'
- $ref: '#/components/parameters/SubmitterFirstNameParam'
- $ref: '#/components/parameters/SubmitterLastNameParam'
- $ref: '#/components/parameters/MemberIdParam'
- $ref: '#/components/parameters/SubMerchantIdParam'
- $ref: '#/components/parameters/MerchantIdentifierConfigIdParam'
responses:
'200':
$ref: '#/components/responses/SuccessWithoutBody'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/PermissionDenied'
'403':
$ref: '#/components/responses/ForbiddenOperation'
'404':
$ref: '#/components/responses/NotFound'
default:
$ref: '#/components/responses/Default'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/alerts/merchants/{member_id}/sub-merchants/{sub_merchant_id}/card-acceptor-names:
post:
tags:
- Merchants
summary: Mastercard Create Sub-merchant Card Acceptor Name Config.
description: Returns created sub-merchant card acceptor name config details.
operationId: createAlertsCardAcceptorNameConfig
parameters:
- $ref: '#/components/parameters/UserIdParam'
- $ref: '#/components/parameters/SubmitterFirstNameParam'
- $ref: '#/components/parameters/SubmitterLastNameParam'
- $ref: '#/components/parameters/MemberIdParam'
- $ref: '#/components/parameters/SubMerchantIdParam'
requestBody:
$ref: '#/components/requestBodies/AlertsCardAcceptorNameConfigRequestBody'
responses:
'200':
$ref: '#/components/responses/AlertsMerchantIdentifierSuccess'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/PermissionDenied'
'403':
$ref: '#/components/responses/ForbiddenOperation'
'404':
$ref: '#/components/responses/NotFound'
'422':
$ref: '#/components/responses/ValidationFailed'
default:
$ref: '#/components/responses/Default'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
get:
tags:
- Merchants
summary: Mastercard Get Sub-merchant Card Acceptor Name Configs.
description: Returns sub-merchant card acceptor name config details.
operationId: getAlertsCardAcceptorNameConfigs
parameters:
- $ref: '#/components/parameters/UserIdParam'
- $ref: '#/components/parameters/SubmitterFirstNameParam'
- $ref: '#/components/parameters/SubmitterLastNameParam'
- $ref: '#/components/parameters/MemberIdParam'
- $ref: '#/components/parameters/SubMerchantIdParam'
- $ref: '#/components/parameters/CardAcceptorNameParam'
- $ref: '#/components/parameters/OffsetParam'
- $ref: '#/components/parameters/PageNumberParam'
responses:
'200':
$ref: '#/components/responses/AlertsCardAcceptorNameConfigs'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/PermissionDenied'
'403':
$ref: '#/components/responses/ForbiddenOperation'
'404':
$ref: '#/components/responses/NotFound'
default:
$ref: '#/components/responses/Default'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
delete:
tags:
- Merchants
summary: Mastercard Delete Sub-merchant Card Acceptor Name Config.
description: Returns 200 if sub-merchant card acceptor name configs gets deleted.
operationId: deleteAlertsCardAcceptorNameConfig
parameters:
- $ref: '#/components/parameters/UserIdParam'
- $ref: '#/components/parameters/SubmitterFirstNameParam'
- $ref: '#/components/parameters/SubmitterLastNameParam'
- $ref: '#/components/parameters/MemberIdParam'
- $ref: '#/components/parameters/SubMerchantIdParam'
- $ref: '#/components/parameters/MerchantIdentifierConfigIdParam'
responses:
'200':
$ref: '#/components/responses/SuccessWithoutBody'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/PermissionDenied'
'403':
$ref: '#/components/responses/ForbiddenOperation'
'404':
$ref: '#/components/responses/NotFound'
default:
$ref: '#/components/responses/Default'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/sub-merchants/{guid}/locations/{location_id}/card-acceptor-names:
parameters:
- $ref: '#/components/parameters/UserIdParam'
- $ref: '#/components/parameters/SubmitterFirstNameParam'
- $ref: '#/components/parameters/SubmitterLastNameParam'
- $ref: '#/components/parameters/MerchantGuidParam'
- $ref: '#/components/parameters/LocationIdParam'
post:
summary: Mastercard Add Card Acceptor Names
description: Creates card acceptor names under a location of an existing sub-merchant
operationId: addCardAcceptorNames
tags:
- Merchants
requestBody:
$ref: '#/components/requestBodies/CardAcceptorNamesBulkRequestBody'
responses:
'200':
$ref: '#/components/responses/CardAcceptorNamesBulkSuccess'
'400':
$ref: '#/components/responses/BadRequest'
default:
$ref: '#/components/responses/Default'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
get:
parameters:
- $ref: '#/components/parameters/ClarityOffsetParam'
- $ref: '#/components/parameters/ClarityPageNumberParam'
- $ref: '#/components/parameters/ClaritySortDirectionParam'
- $ref: '#/components/parameters/ClaritySortFieldParam'
- $ref: '#/components/parameters/CardAcceptorNameSearchTextParam'
summary: Mastercard Get Card Acceptor Names
description: Returns Card Acceptor Names with pagination metadata
operationId: getCardAcceptorNames
tags:
- Merchants
responses:
'200':
$ref: '#/components/responses/PageableCardAcceptorNamesSuccess'
'400':
$ref: '#/components/responses/BadRequest'
'404':
$ref: '#/components/responses/NotFound'
default:
$ref: '#/components/responses/Default'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/sub-merchants/{guid}/locations/{location_id}/card-acceptor-names/{id}:
get:
summary: Mastercard Get Card Acceptor Name by Id
description: Returns card acceptor name object
operationId: getCardAcceptorNameById
tags:
- Merchants
parameters:
- $ref: '#/components/parameters/UserIdParam'
- $ref: '#/components/parameters/SubmitterFirstNameParam'
- $ref: '#/components/parameters/SubmitterLastNameParam'
- $ref: '#/components/parameters/MerchantGuidParam'
- $ref: '#/components/parameters/LocationIdParam'
- $ref: '#/components/parameters/CardAcceptorNameIdParam'
responses:
'200':
$ref: '#/components/responses/CardAcceptorSuccess'
'400':
$ref: '#/components/responses/BadRequest'
'404':
$ref: '#/components/responses/NotFound'
default:
$ref: '#/components/responses/Default'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
put:
summary: Mastercard Update Card Acceptor Name by Id
description: Updates card acceptor name object
operationId: updateCardAcceptorNameById
tags:
- Merchants
parameters:
- $ref: '#/components/parameters/UserIdParam'
- $ref: '#/components/parameters/SubmitterFirstNameParam'
- $ref: '#/components/parameters/SubmitterLastNameParam'
- $ref: '#/components/parameters/MerchantGuidParam'
- $ref: '#/components/parameters/LocationIdParam'
- $ref: '#/components/parameters/CardAcceptorNameIdParam'
- $ref: '#/components/parameters/IfMatch'
requestBody:
$ref: '#/components/requestBodies/CardAcceptorNamesBody'
responses:
'200':
$ref: '#/components/responses/CardAcceptorSuccess'
'400':
$ref: '#/components/responses/BadRequest'
'404':
$ref: '#/components/responses/NotFound'
default:
$ref: '#/components/responses/Default'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
delete:
summary: Mastercard Delete Existing Card Acceptor Name
description: Returns 204 status code if Card Acceptor Name deleted successfully
operationId: deleteCardAcceptorById
tags:
- Merchants
parameters:
- $ref: '#/components/parameters/UserIdParam'
- $ref: '#/components/parameters/SubmitterFirstNameParam'
- $ref: '#/components/parameters/SubmitterLastNameParam'
- $ref: '#/components/parameters/MerchantGuidParam'
- $ref: '#/components/parameters/LocationIdParam'
- $ref: '#/components/parameters/CardAcceptorNameIdParam'
responses:
'204':
$ref: '#/components/responses/SuccessWithoutBody'
'400':
$ref: '#/components/responses/BadRequest'
'404':
$ref: '#/components/responses/NotFound'
default:
$ref: '#/components/responses/Default'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/sub-merchants/{guid}/locations/{location_id}/acquirer-merchant-ids:
parameters:
- $ref: '#/components/parameters/UserIdParam'
- $ref: '#/components/parameters/SubmitterFirstNameParam'
- $ref: '#/components/parameters/SubmitterLastNameParam'
- $ref: '#/components/parameters/MerchantGuidParam'
- $ref: '#/components/parameters/LocationIdParam'
post:
summary: Mastercard Add Acquirer Reference Id and Card Acceptor Id Pairs
description: Returns added pairs of Acquirer Reference ID and Card Acceptor ID. Non unique pairs are placed in the rejected list.
operationId: addAcquirerMerchantIds
tags:
- Merchants
requestBody:
$ref: '#/components/requestBodies/AcquirerMerchantIdsRequestBody'
responses:
'200':
$ref: '#/components/responses/AcquirerMerchantIdsSuccess'
'400':
$ref: '#/components/responses/BadRequest'
default:
$ref: '#/components/responses/Default'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
get:
parameters:
- $ref: '#/components/parameters/ClarityOffsetParam'
- $ref: '#/components/parameters/ClarityPageNumberParam'
- $ref: '#/components/parameters/ClaritySortDirectionParam'
- $ref: '#/components/parameters/AcquirerMerchantIdsSortFieldParam'
- $ref: '#/components/parameters/AcquirerMerchantIdsSearchTextParam'
summary: Mastercard Get Accepted Acquirer Reference Id and Card Acceptor Id Pairs
description: Returns accepted Acquirer Reference ID and CardAcceptor ID pairs with pagination metadata
operationId: getAcceptedAcquirerMerchantIds
tags:
- Merchants
responses:
'200':
$ref: '#/components/responses/PageableAcceptedAcquirerMerchantIdsSuccess'
'400':
$ref: '#/components/responses/BadRequest'
'404':
$ref: '#/components/responses/NotFound'
default:
$ref: '#/components/responses/Default'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/sub-merchants/{guid}/locations/{location_id}/acquirer-merchant-ids/{acquirer_merchant_id}:
parameters:
- $ref: '#/components/parameters/UserIdParam'
- $ref: '#/components/parameters/SubmitterFirstNameParam'
- $ref: '#/components/parameters/SubmitterLastNameParam'
- $ref: '#/components/parameters/MerchantGuidParam'
- $ref: '#/components/parameters/LocationIdParam'
- $ref: '#/components/parameters/AcquirerMerchantIdParam'
delete:
summary: Mastercard Delete Existing Acquirer Reference Id and Card Acceptor Id Pair
description: Returns 204 status code if acquirer reference ID and card acceptor ID pair deleted successfully
operationId: deleteAcceptedAcquirerMerchantId
tags:
- Merchants
responses:
'204':
$ref: '#/components/responses/SuccessWithoutBody'
'400':
$ref: '#/components/responses/BadRequest'
'404':
$ref: '#/components/responses/NotFound'
default:
$ref: '#/components/responses/Default'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
/searches:
post:
tags:
- Merchants
summary: Mastercard Get a List of Merchant Details
description: Returns detailed information on merchants based on the provided query parameters
operationId: getMerchants
parameters:
- $ref: '#/components/parameters/LimitParam'
- $ref: '#/components/parameters/OffsetParam_2'
- $ref: '#/components/parameters/DistanceParam'
- $ref: '#/components/parameters/DistanceUnitParam'
requestBody:
$ref: '#/components/requestBodies/MerchantSearch'
responses:
'200':
$ref: '#/components/responses/Merchants_2'
'400':
$ref: '#/components/responses/BadRequestError_2'
'401':
$ref: '#/components/responses/UnauthorizedError'
'403':
$ref: '#/components/responses/ForbiddenError_2'
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
components:
responses:
SupportedMerchantCategories:
description: This response code is returned when a request is accepted and successfully processed. A corresponding response will be returned for the API caller.
headers:
X-MC-Correlation-ID:
$ref: '#/components/headers/X-MC-Correlation-ID'
content:
application/json:
schema:
$ref: '#/components/schemas/SupportedMerchantCategories'
examples:
SupportedMerchantCategories:
$ref: '#/components/examples/SupportedMerchantCategories'
AccountNotRegisteredError:
description: This response code is returned when the server cannot find the account used to call this API.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorWrapper'
examples:
AccountNotRegisteredError:
$ref: '#/components/examples/AccountNotRegisteredError'
BadRequestError:
description: This response code is returned when a request is invalid, or data in the request is not valid.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorWrapper'
examples:
InvalidCardProductError:
$ref: '#/components/examples/InvalidCardProductError'
InvalidFieldFormat:
$ref: '#/components/examples/InvalidFieldFormat'
InvalidFieldLength:
$ref: '#/components/examples/InvalidFieldLength'
InvalidFieldValue:
$ref: '#/components/examples/InvalidFieldValue'
MissingRequiredField:
$ref: '#/components/examples/MissingRequiredField'
InvalidRequestIdError:
description: This response code is returned when a request is invalid, or data in the request is not valid.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorWrapper'
examples:
InvalidRequestIdError:
$ref: '#/components/examples/InvalidRequestIdError'
Merchants:
description: The response object that contains the list of merchant objects.
headers:
Count:
schema:
$ref: '#/components/schemas/count'
Offset:
schema:
$ref: '#/components/schemas/offset'
Limit:
schema:
$ref: '#/components/schemas/limit'
Total:
schema:
$ref: '#/components/schemas/total'
Request-Status:
schema:
$ref: '#/components/schemas/status'
content:
application/json:
schema:
$ref: '#/components/schemas/Merchants'
examples:
MID Merchant Participations:
$ref: '#/components/examples/Merchants'
MAID Merchant Participations:
$ref: '#/components/examples/MaidMerchants'
MID Merchant Participations For Australia:
$ref: '#/components/examples/Merchants-Australia'
RequestError:
$ref: '#/components/examples/RequestError'
NotAcceptableHeader:
description: This response code is returned when a user enters anything except application/json in the Accept header.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorWrapper'
examples:
NotAcceptableHeader:
$ref: '#/components/examples/NotAcceptableHeader'
MerchantParticipationReference:
description: Returns "Location" response header which contains the relative URL to get the status of this request.
headers:
Location:
schema:
type: string
description: Unique id generated for this request.
example: merchants/participations?request_id=7223372036854776000
MerchantSearches:
description: The response object that contains the list of merchant objects.
headers:
Count:
schema:
$ref: '#/components/schemas/count'
Offset:
schema:
$ref: '#/components/schemas/offset'
Limit:
schema:
$ref: '#/components/schemas/limit'
Total:
schema:
$ref: '#/components/schemas/total'
Request-Status:
schema:
$ref: '#/components/schemas/status'
content:
application/json:
schema:
$ref: '#/components/schemas/MerchantSearches'
examples:
MID Merchant Participations:
$ref: '#/components/examples/Merchants-Search'
MAID Merchant Participations:
$ref: '#/components/examples/MaidMerchants-Searches'
MID Merchant Participations For Australia:
$ref: '#/components/examples/Merchants-Searches-Australia'
ForbiddenError:
description: This response code is returned when API or resource access is not approved for the client.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorWrapper'
examples:
ForbiddenError:
$ref: '#/components/examples/ForbiddenError'
ResourceNotFoundError:
description: This response code is returned when the request resource is not found.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorWrapper'
examples:
ForbiddenError:
$ref: '#/components/examples/ResourceNotFoundError'
MidDetailsPage:
description: The response object that contains the mids of a merchant.
headers:
Count:
schema:
$ref: '#/components/schemas/count'
Offset:
schema:
$ref: '#/components/schemas/offset'
Limit:
schema:
$ref: '#/components/schemas/limit'
Total:
schema:
$ref: '#/components/schemas/total'
content:
application/json:
schema:
$ref: '#/components/schemas/MidDetailsPage'
examples:
Mid Details Page:
$ref: '#/components/examples/MidDetailsPage'
Mid Details for Australia:
$ref: '#/components/examples/EncryptedMidDetailsPageForAus'
UnauthorizedError:
description: Authentication information was missing or invalid.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse_2'
example:
Errors:
- Error:
Source: locations-merchants-api
ReasonCode: UNAUTHORIZED
Description: We couldn't recognize you
Recoverable: false
Details: Full authentication is required to access this resource
PageableAcceptedAcquirerMerchantIdsSuccess:
description: Pageable accepted acquirer reference ID and card acceptor ID response
content:
application/json:
schema:
$ref: '#/components/schemas/PageableAcceptedAcquirerMerchantIdsResource'
ForbiddenOperation:
description: Forbidden Operation
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
ForbiddenOperation:
$ref: '#/components/examples/ForbiddenOperation'
CardAcceptorNamesBulkSuccess:
description: Card Acceptor Names response
content:
application/json:
schema:
$ref: '#/components/schemas/CardAcceptorNamesBulkResource'
AlertsPageableSubMerchants:
description: Pageable list of sub-merchants with all details
content:
application/json:
schema:
$ref: '#/components/schemas/AlertsPageableSubMerchantResource'
examples:
AlertsPageableSubMerchants:
$ref: '#/components/examples/AlertsPageableSubMerchants'
MCSupportedMerchantCategories:
description: This response code is returned when a request is accepted and successfuly processed. A corresponding response will be returned for the API caller.
content:
application/json:
schema:
$ref: '#/components/schemas/MCSupportedMerchantCategories'
examples:
MCSupportedMerchantCategories:
$ref: '#/components/examples/MCSupportedMerchantCategories'
AlertsOrgProfilesSuccess:
description: Details of organization profiles for members such as Partners and Acquirers
content:
application/json:
schema:
$ref: '#/components/schemas/AlertsOrgProfile'
examples:
AlertsOrgProfilePartner:
$ref: '#/components/examples/AlertsOrgProfilePartner'
AlertsOrgProfileAcquirer:
$ref: '#/components/examples/AlertsOrgProfileAcquirer'
BadRequestError_2:
description: Something was wrong with the request.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse_2'
example:
Errors:
- Error:
Source: latitude
ReasonCode: INVALID_INPUT_VALUE
Description: Latitude is missing, invalid, or could not be determined from address fields.
Recoverable: false
Details: null
AlertsMerchantIdentifierSuccess:
description: Sub-merchant identifiers for either card acceptor id or card acceptor name configuration
content:
application/json:
schema:
$ref: '#/components/schemas/AlertsMerchantIdentifierConfigIdOnly'
examples:
AlertsMerchantIdentifierConfigIdOnly:
$ref: '#/components/examples/AlertsMerchantIdentifierConfigIdOnly'
Merchants_2:
description: List of Merchant details
content:
application/json:
schema:
$ref: '#/components/schemas/Merchants_2'
ValidationFailed:
description: Validation Failed
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
ValidationFailed:
$ref: '#/components/examples/ValidationFailed'
AcquirerMerchantIdsSuccess:
description: Acquirer Reference ID and CardAcceptor ID response
content:
application/json:
schema:
$ref: '#/components/schemas/AcquirerMerchantIdsResource'
LogoSuccess:
description: Successful Operation
content:
application/json:
schema:
$ref: '#/components/schemas/LogoResource'
AlertsPageableAcquirerReferenceIdConfigs:
description: Pageable list of acquirer reference id configurations
content:
application/json:
schema:
$ref: '#/components/schemas/AlertsPageableAcquirerReferenceIdConfigs'
SubMerchantSuccess:
description: Successful Operation
headers:
Etag:
required: true
schema:
$ref: '#/components/schemas/Etag'
content:
application/json:
schema:
$ref: '#/components/schemas/SubMerchantResource'
LocationSuccess:
description: Location response
headers:
Etag:
required: true
schema:
$ref: '#/components/schemas/Etag'
content:
application/json:
schema:
$ref: '#/components/schemas/LocationWithoutCardAcceptorsResource'
CardAcceptorSuccess:
description: Card Acceptor response
headers:
Etag:
required: true
schema:
$ref: '#/components/schemas/Etag'
content:
application/json:
schema:
$ref: '#/components/schemas/CardAcceptorDataResource'
LocationsBulkSuccess:
description: Locations response
content:
application/json:
schema:
$ref: '#/components/schemas/LocationsBulkResource'
SuccessWithoutBody:
description: Successful Operation
PermissionDenied:
description: Permission Denied
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
PermissionDenied:
$ref: '#/components/examples/PermissionDenied'
AlertsCardAcceptorNameConfigs:
description: Sub-merchant card acceptor name configurations
content:
application/json:
schema:
$ref: '#/components/schemas/AlertsCardAcceptorNameConfigs'
examples:
AlertsCardAcceptorNameConfigs:
$ref: '#/components/examples/AlertsCardAcceptorNameConfigs'
ForbiddenError_2:
description: Insufficient permissions for interacting with the resource.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse_2'
example:
Errors:
- Error:
Source: locations-merchants-api
ReasonCode: PERMISSION_DENIED
Description: You don't seem authorized to do that
Recoverable: false
Details: Reading merchant information requires read-only permissions
LogoSuccessWithImage:
description: Successful Operation
content:
application/json:
schema:
$ref: '#/components/schemas/LogoImageResource'
Default:
description: Unexpected error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
ServerError:
$ref: '#/components/examples/ServerError'
PageableCardAcceptorNamesSuccess:
description: Pageable card acceptor names resource with pagination metadata
content:
application/json:
schema:
$ref: '#/components/schemas/PageableCardAcceptorNamesResource'
PageableLocationsSuccess:
description: Pageable locations resource with pagination metadata
content:
application/json:
schema:
$ref: '#/components/schemas/PageableLocationsResource'
PreconditionRequired:
description: Pre Condition Failed
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
PreConditionFailed:
$ref: '#/components/examples/PreconditionRequired'
AlertsCardAcceptorIdConfigs:
description: Sub-merchant card acceptor id configurations
content:
application/json:
schema:
$ref: '#/components/schemas/AlertsCardAcceptorIdConfigs'
examples:
AlertsCardAcceptorIdConfigs:
$ref: '#/components/examples/AlertsCardAcceptorIdConfigs'
NotFound:
description: Not Found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
ResourceNotFound:
$ref: '#/components/examples/ResourceNotFound'
EntityNotFound:
$ref: '#/components/examples/EntityNotFound'
AlertsEntityNotFound:
$ref: '#/components/examples/AlertsEntityNotFound'
BadRequest:
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
InvalidData:
$ref: '#/components/examples/InvalidData'
AlertsInvalidData:
$ref: '#/components/examples/AlertsInvalidData'
InvalidParameterSet:
$ref: '#/components/examples/InvalidParameterSet'
FormatInvalid:
$ref: '#/components/examples/FormatInvalid'
AlertsFormatInvalid:
$ref: '#/components/examples/AlertsFormatInvalid'
MissingRequiredHeader:
$ref: '#/components/examples/MissingRequiredHeader'
PreconditionFailed:
description: Pre Condition Failed
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
PreConditionFailed:
$ref: '#/components/examples/PreconditionFailed'
AlertsSubMerchantSuccess:
description: Sub-merchant with all details
content:
application/json:
schema:
$ref: '#/components/schemas/AlertsSubMerchantResource'
examples:
AlertsSubMerchantActivated:
$ref: '#/components/examples/AlertsSubMerchantActivated'
AlertsSubMerchantDeactivated:
$ref: '#/components/examples/AlertsSubMerchantDeactivated'
schemas:
MerchantCategory:
title: MerchantCategory
type: object
description: Information for a supported merchant category.
required:
- mcc
- category
properties:
mcc:
type: string
maxLength: 4
minLength: 1
pattern: ^\d{1,4}
description: Merchant category code of a payment transaction that uniquely defines a merchant business.
example: '3862'
category:
$ref: '#/components/schemas/Category'
X-MC-Correlation-ID:
type: string
example: X-MC-Correlation-ID:5e4b7f904d2820f688c67ef9fc0035
SupportedMerchantCategories:
title: SupportedMerchantCategories
type: array
description: List of supported merchant categories.
minItems: 1
maxItems: 5000
items:
$ref: '#/components/schemas/MerchantCategory'
Category:
title: Category
type: object
description: User understandable information about an MCC categorization.
properties:
mainCategory:
title: mainCategory
type: string
description: Main category to which an MCC belongs.
minLength: 5
maxLength: 100
pattern: ^[\w\-\_\&\,]+[\w\-\_\&\,\ ]{5,100}
example: Shopping
subCategory:
title: subCategory
type: string
description: Sub-category of a category to which an MCC belongs.
minLength: 5
maxLength: 100
pattern: ^[\w\-\_\&\,]+[\w\-\_\&\,\ ]{5,100}
example: Department Store
sector:
title: sector
type: string
description: Sector of a category to which an MCC belongs.
minLength: 5
maxLength: 100
pattern: ^[\w\-\_\&\,]+[\w\-\_\&\,\ ]{5,100}
example: Specialty Retail & Services
sectorCode:
title: sectorCode
type: string
description: Unique code assigned to each sector.
minLength: 3
maxLength: 3
pattern: ^\d{3}
example: '302'
acceptorId:
type: string
maxLength: 20
description: Mastercard assigned ID.
example: '531567'
submitterICA:
type: string
pattern: ^(?!,)(( \| )?(?:[\d]{6}|[\d]{9}|[\d]{11})\b)*$
description: ICA(s) of partner(s) institution(s) who submitted this merchant participation.
example: '14689425761'
mids:
type: array
minItems: 1
maxItems: 5000
description: Merchant IDs assigned by the acquirer.
items:
$ref: '#/components/schemas/mid'
MerchantSearches:
type: array
minItems: 1
maxItems: 100
description: List of Merchant objects
items:
$ref: '#/components/schemas/MerchantSearch'
walletId:
type: integer
minimum: 1
maximum: 3
description: Indicates the wallet, 1 for ApplePay, 2 for GooglePay, and 3 for SamsungPay.
example: 1
total:
description: The total number of items in the collection.
type: integer
example: 5
ErrorList:
type: array
minItems: 1
items:
$ref: '#/components/schemas/Error'
duns:
type: string
minLength: 1
maxLength: 9
description: A unique identifier assigned by Dun and Bradstreet is used to identify a business.
example: '879847426'
httpErrorStatusCode:
type: integer
minimum: 400
maximum: 599
description: HTTP error code of original POST /merchants/participations API.
example: 400
MerchantMidSearchParameters:
title: MerchantMidSearchParameters
type: object
description: Parameters to search mid for a given merchant.
required:
- merchantLegalName
- countryCode
- acquirerICA
properties:
merchantLegalName:
$ref: '#/components/schemas/merchantLegalName'
countryCode:
$ref: '#/components/schemas/countryCode'
acquirerICA:
$ref: '#/components/schemas/acquirerICA'
mid:
$ref: '#/components/schemas/mid'
status:
$ref: '#/components/schemas/status'
dbaName:
type: string
minLength: 1
maxLength: 256
description: Trade name used by merchant to conduct business and is known to the consumer.
example: ACME
Merchant:
title: Merchant
type: object
description: Merchant object
properties:
merchantLegalName:
$ref: '#/components/schemas/merchantLegalName'
merchantGroup:
$ref: '#/components/schemas/merchantGroup'
countryCode:
$ref: '#/components/schemas/countryCode'
acquirerICA:
$ref: '#/components/schemas/acquirerICA'
submitterICA:
$ref: '#/components/schemas/submitterICA'
dbaNames:
$ref: '#/components/schemas/dbaNames'
maids:
$ref: '#/components/schemas/maids'
maidType:
$ref: '#/components/schemas/searchMaidType'
acceptorIds:
$ref: '#/components/schemas/acceptorIds'
nonMerchantNegotiatedParticipation:
$ref: '#/components/schemas/nonMerchantNegotiatedParticipation'
optIn:
$ref: '#/components/schemas/optIn'
status:
$ref: '#/components/schemas/status'
errorReason:
$ref: '#/components/schemas/errorReason'
duns:
$ref: '#/components/schemas/duns'
websiteUrl:
$ref: '#/components/schemas/websiteUrl'
wallets:
$ref: '#/components/schemas/wallets'
address:
$ref: '#/components/schemas/Address'
requestEndpoint:
$ref: '#/components/schemas/requestEndpoint'
requestId:
$ref: '#/components/schemas/requestId'
httpErrorStatusCode:
$ref: '#/components/schemas/httpErrorStatusCode'
errors:
$ref: '#/components/schemas/errors'
Errors:
title: Errors
type: object
description: Error object which returns the list of Error objects.
required:
- Error
properties:
Error:
$ref: '#/components/schemas/ErrorList'
merchantLegalName:
type: string
minLength: 1
maxLength: 300
description: Legally registered name of the merchant.
pattern: ^.{1,300}
example: Wallmart
optIn:
type: string
maxLength: 1
minLength: 1
pattern: ^(?:Y|N)$
description: Merchant opt-in or opt-out preference for non-merchant negotiated product codes, such as, SPP, SPS, SBJ, and SBK or GCS.
example: Y
Address:
title: Address
type: object
description: The address of the merchant.
properties:
addressLine1:
type: string
minLength: 1
maxLength: 300
description: Legally registered address of the merchant
example: 600 WEST
addressLine2:
type: string
minLength: 1
maxLength: 300
description: Second address for the merchant
example: SECTOR 5
addressLine3:
type: string
minLength: 1
maxLength: 300
description: Third address line
example: SUITE 775
city:
type: string
minLength: 1
maxLength: 30
description: Legally registered address city. The City field is mandatory when adding a merchant but not when updating a merchant.
example: St Peters
state:
type: string
minLength: 2
maxLength: 3
description: Legally registered address state or province. Refer to (https://www.iso.org/obp/ui/#search) for ISO 3166-2 code values.
example: QLD
postalCode:
type: string
minLength: 1
maxLength: 20
description: Legally registered address postal code. Provide a postal code to submit MID-based merchants via API if the country has a postal code.
example: 85001
maid:
type: string
pattern: ^[A-Za-z0-9]{1,6}
description: Mastercard Assigned ID (MAID) as specified in Customer Interface Specification for ISO data element DE48 SE32.
example: '321765'
acquirerICA:
type: string
pattern: ^(?:[0-9]{6}|[0-9]{9}|[0-9]{11})$
description: ICA of acquirer which will be part of auth transaction. Insert leading zeros to ensure that the acquirerICA is either 6, 9, or 11 characters in length.
example: 00689425761
status:
type: string
minLength: 1
maxLength: 10
pattern: ^(?:PENDING|COMPLETED|ERROR)$
description: Status of request
example: COMPLETED
wallet:
title: wallet
type: object
description: Contains merchant wallet information.
required:
- walletId
- walletAcceptance
properties:
walletId:
$ref: '#/components/schemas/walletId'
walletAcceptance:
$ref: '#/components/schemas/walletAcceptance'
walletMerchantId:
$ref: '#/components/schemas/walletMerchantId'
limit:
description: The number of items you asked the list to be limited to.
type: integer
example: 2
requestId:
type: integer
format: int64
minimum: 0
maximum: 9223372036854776000
description: The request ID is obtained by calling POST /merchants/participations API.
example: 7223372036854776000
MerchantParticipations:
title: MerchantParticipations
type: array
minItems: 1
maxItems: 30
description: List of merchant participation reference objects.
items:
$ref: '#/components/schemas/MerchantParticipation'
websiteUrl:
type: string
minLength: 1
maxLength: 100
pattern: ^(https?|ftp|file)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]
description: The URL of the merchant website.
example: https://www.acme-company.com
MidDetailsPage:
title: MidDetailsPage
type: object
description: Contains mids of a merchant.
required:
- merchantLegalName
- acquirerICA
- countryCode
- optIn
- mids
properties:
merchantLegalName:
$ref: '#/components/schemas/merchantLegalName'
merchantGroup:
$ref: '#/components/schemas/merchantGroup'
acquirerICA:
$ref: '#/components/schemas/acquirerICA'
countryCode:
$ref: '#/components/schemas/countryCode'
nonMerchantNegotiatedParticipation:
$ref: '#/components/schemas/nonMerchantNegotiatedParticipation'
optIn:
$ref: '#/components/schemas/optIn'
mids:
$ref: '#/components/schemas/MidDetails'
countryCode:
type: string
minLength: 3
maxLength: 3
pattern: ^[A-Za-z]{3}$
description: Legally registered country code of merchant. Refer to (https://www.iso.org/obp/ui/#search) for ISO 3166 alpha 3 code values.
example: USA
dbaNames:
type: array
minItems: 1
maxItems: 1000
items:
$ref: '#/components/schemas/dbaName'
mid:
type: string
pattern: ^[A-Za-z0-9]{1,15}
description: Merchant ID assigned by the acquirer.
example: '235157567121214'
searchMaidType:
title: maidType
type: string
description: Flag to identify provided MAID type. This is mandatory for participation requests with MAID.
example: EXT
maidType:
type: string
description: Flag to identify provided MAID type. This is mandatory for participation requests with MAID.
enum:
- GRP
- EXT
example: GRP
walletAcceptance:
type: string
maxLength: 1
minLength: 1
pattern: ^(?:Y|N)$
description: States whether the merchant accepts the wallet or not.
example: Y
Merchants:
type: array
minItems: 1
maxItems: 100
description: List of Merchant objects
items:
$ref: '#/components/schemas/Merchant'
MidDetails:
type: array
minItems: 1
maxItems: 1000
description: API will return a list of wallet name, wallet acceptance, and wallet merchant id.
items:
$ref: '#/components/schemas/MidDetail'
merchantGroup:
type: string
pattern: ^[A-Z0-9]{1,2}$
description: Merchant Group. An identifier used to determine the merchant category type to qualify for the right MAID (MAID is assigned internally by Mastercard). It is imperative for a country such as Australia, For others it is optional.
example: A1
MidDetail:
type: object
description: Contains mid with status.
required:
- mid
- status
properties:
mid:
$ref: '#/components/schemas/mid'
status:
$ref: '#/components/schemas/status'
errorReason:
$ref: '#/components/schemas/errorReason'
errorReason:
type: string
minLength: 1
maxLength: 30
pattern: ^(?:INVALID_ACQUIRER_ICA|UNKNOWN)$
description: Reason for error.
example: INVALID_ACQUIRER_ICA
errors:
title: errors
type: array
minItems: 1
description: Error object which contains a list of error objects.
required:
- error
items:
$ref: '#/components/schemas/Error'
MerchantSearchParameters:
title: MerchantSearchParameters
type: object
description: Parameters to search merchant objects. At least one parameter is required in the request.
properties:
merchantLegalName:
$ref: '#/components/schemas/merchantLegalName'
acquirerICA:
$ref: '#/components/schemas/acquirerICA'
merchantParticipationStatus:
$ref: '#/components/schemas/merchantParticipationStatus'
countryCode:
$ref: '#/components/schemas/countryCode'
maid:
$ref: '#/components/schemas/maid'
offset:
description: The number of items you asked for at the start of the list to be offset from.
type: integer
example: 1
MerchantSearch:
title: Merchant
type: object
description: Merchant object
properties:
merchantLegalName:
$ref: '#/components/schemas/merchantLegalName'
countryCode:
$ref: '#/components/schemas/countryCode'
acquirerICA:
$ref: '#/components/schemas/acquirerICA'
submitterICA:
$ref: '#/components/schemas/submitterICA'
dbaNames:
$ref: '#/components/schemas/dbaNames'
maids:
$ref: '#/components/schemas/maids'
maidType:
$ref: '#/components/schemas/searchMaidType'
nonMerchantNegotiatedParticipation:
$ref: '#/components/schemas/nonMerchantNegotiatedParticipation'
optIn:
$ref: '#/components/schemas/optIn'
status:
$ref: '#/components/schemas/status'
duns:
$ref: '#/components/schemas/duns'
websiteUrl:
$ref: '#/components/schemas/websiteUrl'
wallets:
$ref: '#/components/schemas/wallets'
errorReason:
$ref: '#/components/schemas/errorReason'
address:
$ref: '#/components/schemas/Address'
merchantGroup:
$ref: '#/components/schemas/merchantGroup'
acceptorIds:
type: array
minItems: 1
description: MAID IDs assigned by Mastercard.
items:
$ref: '#/components/schemas/acceptorId'
deprecated: true
maids:
type: array
minItems: 1
maxItems: 2
description: Mastercard Assigned ID (MAID). Adding a MAID based merchant object requires the mandatory provision of `maids`, while updating a merchant does not necessitate it.
items:
$ref: '#/components/schemas/maid'
ErrorWrapper:
title: ErrorWrapper
type: object
description: The error response object which gets returned in case of any error.
required:
- Errors
properties:
Errors:
$ref: '#/components/schemas/Errors'
MerchantParticipation:
title: MerchantParticipation
type: object
description: Merchant participation reference
required:
- merchantLegalName
- countryCode
- acquirerICA
properties:
merchantLegalName:
$ref: '#/components/schemas/merchantLegalName'
merchantGroup:
$ref: '#/components/schemas/merchantGroup'
countryCode:
$ref: '#/components/schemas/countryCode'
acquirerICA:
$ref: '#/components/schemas/acquirerICA'
dbaNames:
$ref: '#/components/schemas/dbaNames'
mids:
$ref: '#/components/schemas/mids'
maid:
$ref: '#/components/schemas/maid'
maidType:
$ref: '#/components/schemas/maidType'
nonMerchantNegotiatedParticipation:
$ref: '#/components/schemas/nonMerchantNegotiatedParticipation'
optIn:
$ref: '#/components/schemas/optIn'
duns:
$ref: '#/components/schemas/duns'
websiteUrl:
$ref: '#/components/schemas/websiteUrl'
wallets:
$ref: '#/components/schemas/wallets'
address:
$ref: '#/components/schemas/Address'
merchantParticipationStatus:
type: string
minLength: 1
maxLength: 10
pattern: ^(?:PENDING|COMPLETED|ERROR)$
description: Status of request
example: COMPLETED
walletMerchantId:
type: string
minLength: 1
maxLength: 300
description: One or more wallet merchant IDs separated by the pipe symbol.
example: 235346356234 | 125346356236 | 125446356237
requestEndpoint:
type: string
minLength: 25
maxLength: 25
description: original request endpoint
example: /merchants/participations
nonMerchantNegotiatedParticipation:
type: string
maxLength: 1
minLength: 1
pattern: ^(?:Y|N)$
description: Merchant opt-in or opt-out preference for non-merchant negotiated product codes, such as, SPP, SPS, SBJ, and SBK.
example: Y
deprecated: true
count:
type: integer
description: The number of items in this batch (the size of the item array).
example: 2
wallets:
title: wallets
type: array
minItems: 1
maxItems: 3
description: Merchant wallets.
items:
$ref: '#/components/schemas/wallet'
Error:
title: Error
type: object
description: Error object which contains details about the Error.
required:
- Source
- ReasonCode
- Description
- Recoverable
properties:
Source:
type: string
description: The application name that generated this error.
minLength: 1
maxLength: 100
example: Mastercard Installments APIs
ReasonCode:
type: string
description: A unique constant identifying the error case encountered during request processing.
minLength: 1
maxLength: 100
example: invalid.request.parameter
Description:
type: string
description: Short description of the ReasonCode field.
minLength: 10
maxLength: 1000
example: One of the request parameters is invalid, try again with the correct request.
Recoverable:
type: boolean
description: Indicates whether this error will always be returned for this request, or retrying could change the outcome.
example: false
Details:
type: string
description: (Optional) Where appropriate, indicates detailed information about data received and calculated during request processing, to help the user with diagnosing errors.
minLength: 0
maxLength: 5000
example: paymentCardId size must be between 36 and 36
Error_2:
description: Details of the error condition such as the source of the error, reason code for the error, if the error is recoverable, and details about the error
required:
- Description
- ReasonCode
- Recoverable
- Source
type: object
properties:
Source:
description: The application that generated this error
type: string
minLength: 0
maxLength: 150
example: latitude
ReasonCode:
description: A unique constant identifying the error case encountered during transaction processing
type: string
minLength: 0
maxLength: 150
example: INVALID_INPUT_VALUE
Description:
description: Short description of the ReasonCode field
type: string
minLength: 0
maxLength: 150
example: Latitude is missing, invalid, or could not be determined from address fields.
Recoverable:
description: Indicates whether this error will always be returned for this request, or retrying could change the outcome
type: boolean
example: 'false'
Details:
description: Description of the issue
example: Latitude is missing, invalid, or could not be determined from address fields.
type: string
minLength: 0
maxLength: 150
nullable: true
PercentOwnership:
title: Percent Ownership
minLength: 1
maxLength: 5
pattern: ^(100(\.00?)?|[1-9]\d?(\.\d{1,2})?|0\.\d{1,2})$
type: string
description: Percent Ownership.
example: '25.50'
nullable: true
User:
description: Username for the user creating or modifying a resource
type: string
minLength: 0
maxLength: 200
example: John Doe
SanctionScreening:
title: Sanction Screening
type: object
required:
- taxId
- publiclyTraded
- doBusinessWithSanctionedGeographies
properties:
taxId:
title: Tax Identification
description: Known as VAT Number in the US and GST in Canada.
example: 123456789AB1234
type: string
minLength: 1
maxLength: 30
formerLegalNames:
title: List of Former Legal Names
description: The merchant's former legal names
uniqueItems: true
type: array
nullable: true
items:
$ref: '#/components/schemas/MerchantName'
example: []
doBusinessWithSanctionedGeographies:
title: Business With Sanctioned Geographies Indicator
description: 'Indicates whether the merchant does business with sanctioned geographies.
If it is true, then sanctionedGeographies property can''t be empty.
'
type: boolean
example: false
sanctionedGeographies:
title: List of Sanctioned Geographies
description: 'List of sanctioned geographies that the merchant is doing business with. It
can''t be empty if the doBusinessWithSanctionedGeographies property is true
'
uniqueItems: true
type: array
nullable: true
items:
title: Sanctioned Geography
type: string
minLength: 1
maxLength: 60
description: Sanctioned geography
example: Iran
example: []
publiclyTraded:
title: Merchant Publicly Traded Indicator
description: Indicates whether a merchant is publicly traded.
type: boolean
example: false
tickerSymbol:
title: Merchant's Stock Symbol
description: Publicly traded merchant's stock symbol. It's mandatory if the isPubliclyTraded attribute is true.
type: string
minLength: 1
maxLength: 10
example: NFLX
nullable: true
beneficialOwners:
type: array
title: List of Beneficial Owners
description: Required only if publiclyTraded property is false and legalEntities property is empty.
uniqueItems: true
nullable: true
items:
$ref: '#/components/schemas/BeneficialOwner'
example: []
legalEntities:
type: array
title: List of Legal Entities
description: Required only if publiclyTraded property is false and beneficialOwners property is empty.
uniqueItems: true
nullable: true
items:
$ref: '#/components/schemas/LegalEntity'
example: []
AlertsCardAcceptorNameConfig:
description: Card acceptor name configuration
type: object
properties:
merchantIdentifierConfigId:
$ref: '#/components/schemas/AlertsMerchantConfigId'
cardAcceptorName:
$ref: '#/components/schemas/CardAcceptorName'
cardAcceptorCity:
$ref: '#/components/schemas/CardAcceptorCity'
cardAcceptorRegion:
$ref: '#/components/schemas/CardAcceptorRegion'
cardAcceptorCountry:
$ref: '#/components/schemas/CardAcceptorCountry'
required:
- cardAcceptorName
AcquirerMerchantIdsResource:
title: Acquirer reference ID & card acceptor ID pairs resource
description: Set of acquirer reference ID & card acceptor ID pairs resource
properties:
acceptedIds:
$ref: '#/components/schemas/AcceptedAcquirerMerchantIdsResource'
rejectedIds:
description: Rejected acquirer reference ID & card acceptor ID pairs
type: array
items:
$ref: '#/components/schemas/AcquirerMerchantId'
example: []
ShortEmail:
title: Email Address
maxLength: 100
minLength: 1
type: string
description: Email address
example: john.doe@example.com
format: email
nullable: true
ImageBase64Encoded:
title: Image Base 64 Encoded
type: string
description: Base 64 encoded image (JPG or PNG)
minLength: 0
maxLength: 999999999
example: /9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAIBAQIBAQICAgICAgICAwUDAwMDAwYEBAMFBwYHBwcGBwcICQsJCAgKCAcHCg0KCgsMDAwMBwkODw0MDgsMDAz/2wBDAQICAgMDAwYDAwYMCAcIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAz/wAARCAAQABADASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD638d/8HA2uah8em0jwP4L0W+8JxXZt459QmlW6vo1PMoKnbGCASAVY4xn0r6L+F//AAUzn8XatY3Op6HZ22h37AFoXYzWoJxkk8NjvgCvmXx1/wAG/wD4s0X4+HU/A3izw7D4RkuzPEuoiUXVjExOYtqqVkwCQDuXPGcV9JfCz/gmbf8AhTVrGz1TWbCbQ7BgWMAbzroA5IwQAue/JxnvX4TxVPjz63R/slO3Nr8HL/29fXltb8etj+puKKfhUsBR/spxvya6z59vtX0579vP7Nj/2Q==
AlertsSubMerchantResource:
description: Response containing a specific sub-merchant with details
type: object
properties:
subMerchantId:
$ref: '#/components/schemas/AlertsMerchantMemberId'
name:
$ref: '#/components/schemas/MerchantName'
merchantType:
$ref: '#/components/schemas/MerchantType'
status:
$ref: '#/components/schemas/MerchantStatus'
parentMemberId:
$ref: '#/components/schemas/AlertsMerchantMemberId'
merchantCategoryCode:
$ref: '#/components/schemas/MerchantCategoryCode'
createdBy:
$ref: '#/components/schemas/CreatedOrModifiedBy'
modifiedBy:
$ref: '#/components/schemas/CreatedOrModifiedBy'
statusUpdateTs:
$ref: '#/components/schemas/Timestamp'
AcquirerReferenceId:
title: Acquirer Reference ID (ARID)
description: The acquirer BINs that a partner currently services under their portfolio. This is represented by Mastercard DE 31 - Subfield 2 (Clearing), DE 32 (Authorization), or Visa Field 32.
type: string
minLength: 6
maxLength: 6
pattern: ^[\d]+$
example: '123456'
ResourceId:
type: string
minLength: 1
maxLength: 40
description: Unique identifier of resource
nullable: true
example: Mxyz123
CardAcceptor:
title: Merchant Card Acceptor
maxLength: 50
minLength: 1
type: string
description: Merchant Card Acceptor
example: ETHOCA NINJA GAMES
LocationWithoutCardAcceptorsResource:
type: object
allOf:
- $ref: '#/components/schemas/LocationWithoutCardAcceptors'
- properties:
id:
$ref: '#/components/schemas/ResourceId'
cardAcceptorLocationType:
title: Card Acceptor Location Type
type: string
description: Types of card acceptor location - ONLINE, PHONE, CARD_PRESENT
example: ONLINE
nullable: true
CardAcceptorDataResource:
title: Merchant Card Acceptor Names
type: object
required:
- matchType
- cardAcceptorName
- id
- status
properties:
matchType:
title: Card Acceptor Match Type
maxLength: 50
minLength: 1
type: string
description: The card acceptor match type
example: EXACT
cardAcceptorName:
$ref: '#/components/schemas/CardAcceptor'
id:
$ref: '#/components/schemas/ResourceId'
status:
title: Response Status
type: string
description: The status of Card Acceptor Name - PENDING, PASS, FAILED
example: PENDING
SearchFieldResource:
type: object
properties:
searchParameter:
title: Search Parameter
type: string
maxLength: 28
minLength: 12
description: Merchant api search parameter
example: cardAcceptorName
nullable: true
required:
title: Required
type: boolean
description: Set true if this search parameter is mandatory
example: true
nullable: true
searchFieldCards:
$ref: '#/components/schemas/CardTypesResource'
description: Merchant Api Search Field
AcquirerMerchantIdResource:
type: object
title: Acquirer reference ID & card acceptor ID resource
description: Acquirer reference ID & card acceptor ID resource
required:
- id
allOf:
- $ref: '#/components/schemas/AcquirerMerchantId'
- type: object
properties:
id:
$ref: '#/components/schemas/ResourceId'
CardAcceptorData:
title: Merchant Card Acceptor Names
type: object
required:
- matchType
- cardAcceptorName
properties:
matchType:
title: Card Acceptor Match Type
type: string
description: Types of card acceptor match type
example: EXACT
enum:
- EXACT
- STARTS_WITH
- STRICT_CONTAINS
- CONTAINS
cardAcceptorName:
$ref: '#/components/schemas/CardAcceptor'
PageableCardAcceptorNamesResource:
title: Pageable card acceptor names resource
description: Pageable card acceptor names resource with pagination metadata
properties:
data:
type: array
description: List of card acceptor resources
items:
$ref: '#/components/schemas/CardAcceptorDataResource'
example: []
metadata:
$ref: '#/components/schemas/ClarityResponseHeader'
AlertsAcquirerReferenceIdConfig:
description: Acquirer reference id configuration
type: object
properties:
merchantIdentifierConfigId:
$ref: '#/components/schemas/AlertsMerchantConfigId'
acquirerReferenceId:
$ref: '#/components/schemas/AcquirerReferenceId'
cardScheme:
$ref: '#/components/schemas/CardScheme'
binOnlyMatch:
$ref: '#/components/schemas/BinOnlyMatch'
required:
- acquirerReferenceId
- cardScheme
CardAcceptorRegion:
title: Card Acceptor's Region
description: A sub-element of the merchant descriptor indicating either the state, province, or region of the merchant as it appears on the cardholder's statement. Value is not case-sensitive and can accept 2 or 3 character ISO state and province code.
type: string
minLength: 1
maxLength: 3
example: 019
MerchantStatus:
title: Merchant's Status
type: string
description: Merchant Status must be one of - ACTIVATED, DEACTIVATED
minLength: 1
maxLength: 50
example: ACTIVATED
AlertsCardAcceptorIdConfig:
description: Map of acquirer reference id and the corresponding card acceptor id
type: object
properties:
merchantIdentifierConfigId:
$ref: '#/components/schemas/AlertsMerchantConfigId'
acquirerReferenceId:
$ref: '#/components/schemas/AcquirerReferenceId'
cardAcceptorId:
$ref: '#/components/schemas/CardAcceptorId'
required:
- acquirerReferenceId
- cardAcceptorId
LocaleResource:
allOf:
- $ref: '#/components/schemas/Locale'
- type: object
properties:
code:
title: Code
type: string
description: The locale where the merchant anticipates their business to be located; often referred to as the Accept-Language in HTTP headers.
example: EN_CA
PageableLocationsResource:
title: Pageable locations resource
description: Pageable locations resource with pagination metadata
properties:
data:
type: array
description: List of Location resources
items:
$ref: '#/components/schemas/LocationWithoutCardAcceptorsResource'
example: []
metadata:
$ref: '#/components/schemas/ClarityResponseHeader'
AcquirerMerchantId:
type: object
title: Acquirer reference ID & card acceptor ID pair
description: Acquirer reference ID & card acceptor ID pair
required:
- acquirerReferenceId
- cardAcceptorId
properties:
acquirerReferenceId:
$ref: '#/components/schemas/AcquirerReferenceId'
cardAcceptorId:
$ref: '#/components/schemas/CardAcceptorId'
firstPartyTrustEnabled:
type: boolean
description: Marks the ARID/CAID pair as relevant for the FPT engine. When false, the FPT engine won't use the ARID/CAID pair for identifying transactions.
example: true
default: false
AlertsSubMerchantCreate:
description: Request used to create sub-merchants
type: object
properties:
name:
$ref: '#/components/schemas/MerchantName'
merchantCategoryCode:
$ref: '#/components/schemas/MerchantCategoryCode'
required:
- name
- merchantCategoryCode
CardAcceptors:
title: Merchant Card Acceptors
maxItems: 1500
type: array
uniqueItems: true
description: List of merchant card acceptors
nullable: true
items:
$ref: '#/components/schemas/CardAcceptor'
LocationsBulkResource:
title: Locations resource
description: List of locations resource
type: object
properties:
locations:
type: array
items:
$ref: '#/components/schemas/BulkOperationResource'
example: []
Errors_2:
description: Only returned in the event of an error condition
required:
- Error
type: object
properties:
Error:
type: array
items:
$ref: '#/components/schemas/Error_2'
description: An error object
example:
- Error:
Source: latitude
ReasonCode: INVALID_INPUT_VALUE
Description: Latitude is missing, invalid, or could not be determined from address fields.
Recoverable: false
Details: null
example:
Errors:
- Error:
Source: latitude
ReasonCode: INVALID_INPUT_VALUE
Description: Latitude is missing, invalid, or could not be determined from address fields.
Recoverable: false
Details: null
LastName:
title: Last Name
maxLength: 30
minLength: 1
type: string
description: The individual's last name
example: Fox
nullable: true
SubMerchantState:
required:
- state
properties:
state:
type: string
description: State of the Sub-Merchant
example: ACTIVE
enum:
- ACTIVE
- INACTIVE
inactivationReason:
title: Reason for Inactivation
type: string
description: Reason for Inactivation. Required when state is INACTIVE.
example: My business is closing
minLength: 1
maxLength: 250
LogoImageResource:
allOf:
- $ref: '#/components/schemas/LogoResource'
- type: object
properties:
imageBase64Encoded:
$ref: '#/components/schemas/ImageBase64Encoded'
description: Schema for a sub-merchant logo including image binary
SearchFieldsResource:
title: Search Fields Response
type: array
description: Search Field
nullable: true
items:
$ref: '#/components/schemas/SearchFieldResource'
SecondName:
title: Second Name
maxLength: 30
minLength: 1
type: string
description: The individual's second name
example: Andrew
nullable: true
PrimaryContact:
title: Primary Contact
description: Primary contact details of the merchant
required:
- jobTitle
- firstName
- lastName
- email
properties:
jobTitle:
title: Job Title
type: string
minLength: 1
maxLength: 100
description: Job title of the primary contact
example: Manager
firstName:
title: First Name
type: string
minLength: 1
maxLength: 50
description: First name of the primary contact
example: John
lastName:
title: Last Name
type: string
minLength: 1
maxLength: 50
description: Last name of the primary contact
example: Doe
email:
$ref: '#/components/schemas/ShortEmail'
phone:
title: Phone
maxLength: 30
minLength: 3
type: string
description: Phone number for primary contact
example: 1-234-567-8901
nullable: true
ResponseTime:
type: string
description: Total response time in ms
minLength: 0
maxLength: 10
example: 300 ms
AlertsMerchantConfigId:
title: Unique identifier for merchants identifier (such as acquirer reference id, card acceptor id or name) configuration
description: Internal Universally Unique Identifier (UUID) which uniquely identifies the merchants configuration
type: string
format: uuid
example: 88ca4b15-72a6-41dd-8127-573d4b07558c
LocationResource:
deprecated: true
allOf:
- $ref: '#/components/schemas/Location'
- type: object
properties:
id:
$ref: '#/components/schemas/ResourceId'
rejectedCardAcceptorNames:
$ref: '#/components/schemas/CardAcceptors'
cardAcceptorLocationType:
title: Card Acceptor Location Type
type: string
description: Types of card acceptor location - ONLINE, PHONE, CARD_PRESENT
example: ONLINE
nullable: true
AcquirerMerchantIds:
title: Acquirer reference ID & card acceptor ID pairs
maxItems: 100
minItems: 1
type: array
uniqueItems: true
description: Set of acquirer reference ID & card acceptor ID pairs
items:
$ref: '#/components/schemas/AcquirerMerchantId'
LocationWithoutCardAcceptors:
type: object
required:
- countryCode
allOf:
- $ref: '#/components/schemas/Address_2'
- properties:
website:
title: Website
maxLength: 100
minLength: 1
type: string
description: URL for merchant's customer service focused information.
example: https://merchantwebsite.example.com/customerservice.html
nullable: true
email:
$ref: '#/components/schemas/ShortEmail'
contactWebsite:
title: Contact Website
maxLength: 100
minLength: 1
type: string
description: Merchant's contact website.
example: https://merchantwebsite.example.com/contactus.html
nullable: true
displayAddressToCardHolder:
title: Display Address To Card Holder
type: boolean
description: Set true to display this location's address to card holder
example: true
nullable: true
displayPhoneToCardHolder:
title: Display Phone To Card Holder
type: boolean
description: Set true to display this location's phone number to card holder
example: true
nullable: true
refundPolicy:
title: Refund Policy
maxLength: 1500
minLength: 1
type: string
description: Entire merchant refund policy, formatted for text display
example: Complete merchant refund policy
nullable: true
terms:
title: Terms and Conditions
maxLength: 2000
minLength: 1
type: string
description: Entire merchant Terms & Conditions, formatted for text display
example: Entire merchant Terms & Conditions
nullable: true
customerServiceInstructions:
title: Customer Service Information
maxLength: 500
minLength: 1
type: string
description: Free form text displayed to issuer that can be sent to the cardholder. Can be specific to transaction.
example: Include Transaction ID in all communications.
nullable: true
additionalInfo:
title: Additional Info
maxLength: 1500
minLength: 1
type: string
description: Additional information that a merchant would want a customer or Issuer to know in regards to a transaction.
example: Customers can contact merchants for a refund 24 hours a day.
nullable: true
termsWebsite:
title: Merchant Terms Website
maxLength: 255
minLength: 1
type: string
description: Merchant terms website URL
example: https://merchantwebsite.example.com/terms.html
nullable: true
refundPolicyWebsite:
title: Merchant Refund Policy Website
maxLength: 255
minLength: 1
type: string
description: Merchant refund policy website URL
example: https://merchantwebsite.example.com/refunds.html
nullable: true
defaultLocation:
title: Default Location
type: boolean
description: true if this is a default location of a merchant
example: true
cardAcceptorLocation:
title: Card Acceptor Location
maxLength: 150
minLength: 1
type: string
description: Card Acceptor Location
example: Pan American Airlines Canada
nullable: true
cardAcceptorLocationType:
title: Card Acceptor Location Type
type: string
description: Types of card acceptor location - ONLINE, PHONE, CARD_PRESENT
example: CARD_PRESENT
nullable: true
enum:
- ONLINE
- PHONE
- CARD_PRESENT
description: Merchant location details
AcquirerMerchant:
description: Acquirer & Merchant IDs information
title: AcquirerMerchant
required:
- acquirerMerchantIds
properties:
acquirerMerchantIds:
$ref: '#/components/schemas/AcquirerMerchantIds'
SubMerchant:
description: Schema for a sub-merchant
allOf:
- $ref: '#/components/schemas/Merchant_3'
- type: object
required:
- subMerchantIdentifier
properties:
subMerchantIdentifier:
$ref: '#/components/schemas/SubMerchantIdentifier'
searchFields:
$ref: '#/components/schemas/SearchFields'
BaseMerchant:
type: object
description: Base merchant model schema
required:
- name
- industryCode
- primaryContact
- legalAddress
properties:
name:
title: Name
maxLength: 60
minLength: 1
type: string
description: Name of the merchant that the item was purchased from.
example: Pan American Airlines
categoryCode:
title: Merchant Category Code
maxLength: 4
minLength: 4
pattern: ^[0-9]*$
type: string
description: A four-digit number listed in ISO 18245 for retail financial services. MCC is used to classify the business by the type of goods or services it provides.
example: '3002'
nullable: true
orderAvailabilityDateTime:
title: Order Availability Date
type: string
description: The earliest date an Issuer can search for orders (i.e. the date an Issuer cannot search before). Date-Time must be in [ISO 8601 format](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6)
example: '2021-10-18T13:56:47.123+00:00'
format: date-time
nullable: true
orderHistoryMonths:
title: Order History in Months
maximum: 12
minimum: 1
type: integer
description: The number of months worth of data you have made available to search on.
format: int32
example: 5
nullable: true
orderLatencyDays:
title: Order Latency in Days
maximum: 365
minimum: 0
type: integer
description: 'The numbers of days that need to elapse between an authorization for a purchase and when the purchase can be searched on. '
format: int32
example: 5
nullable: true
industryCode:
title: Industry Code
maxLength: 3
minLength: 3
type: string
description: Industry Code is used to classify the business by the type of industry.
example: ACC
primaryContact:
$ref: '#/components/schemas/PrimaryContact'
legalAddress:
$ref: '#/components/schemas/LegalAddress'
FirstPartyTrustEnrollmentType:
title: First Party Trust Enrollment Types
type: string
description: Type of First Party Trust Enrollment
example: CLARITY
enum:
- CLARITY
- ISSM
AcceptedAcquirerMerchantIdsResource:
description: Accepted acquirer reference ID & card acceptor ID pairs
type: array
items:
$ref: '#/components/schemas/AcquirerMerchantIdResource'
Crm:
title: Customer Relationship Management
type: object
description: Customer Relationship Management
nullable: true
properties:
termsConditionsConsent:
$ref: '#/components/schemas/TermsConditionsConsent'
sanctionScreening:
$ref: '#/components/schemas/SanctionScreening'
paymentConfirmation:
title: Payment Confirmation
type: boolean
description: Confirmation of payment account setup
example: true
default: false
EntityName:
title: Entity Legal/Business Name
maxLength: 100
minLength: 1
type: string
description: The entity's legal or business name.
example: Walmart
nullable: true
ErrorResponse:
required:
- Errors
type: object
properties:
Errors:
$ref: '#/components/schemas/Errors_3'
description: Error Response object
Etag:
title: Entity Tag
maxLength: 100
minLength: 1
type: string
description: Etag is a response header which is an identifier for a specific version of a resource.
example: '"842DFBC17F921E7716642B9164F3B22B"'
MerchantGuid:
title: Merchant GUID
maxLength: 16
minLength: 11
type: string
description: Consumer Clarity internal merchant's GUID
example: jK2dA5aybhQQBq6C
AlertsMerchantIdentifierConfigIdOnly:
description: Merchant identifier configuration Id (referring to card acceptor id or name configuration)
type: object
properties:
merchantIdentifierConfigId:
$ref: '#/components/schemas/AlertsMerchantConfigId'
LogoResource:
type: object
required:
- status
properties:
status:
title: Status
maxLength: 100
minLength: 1
type: string
description: Status of the logo
example: ACTIVE
messages:
title: Messages
type: array
description: List of validation messages for a logo.
nullable: true
items:
maxLength: 200
minLength: 1
type: string
example: Logo under review
example: []
description: Schema for a sub-merchant logo status
BulkOperationResource:
title: Bulk post resource
description: Resource with responseCode and details
type: object
required:
- status
properties:
id:
$ref: '#/components/schemas/ResourceId'
errors:
type: array
description: List of error objects
nullable: true
items:
$ref: '#/components/schemas/Error_3'
example: []
status:
title: Response Status
type: string
description: The status of resource - PENDING, PASS, FAILED
example: PENDING
Merchant_3:
description: Base merchant request schema
required:
- merchantType
- locales
- businessType
allOf:
- $ref: '#/components/schemas/BaseMerchant'
- type: object
properties:
merchantType:
title: Merchant Type
type: string
description: 'Type of a merchant. Allowed Values -
+ SUB_MERCHANT -
+ DIRECT -
+ GATEWAY - '
example: SUB_MERCHANT
enum:
- SUB_MERCHANT
- DIRECT
- GATEWAY
locales:
title: Merchant Locales
minItems: 1
maxItems: 10
uniqueItems: true
type: array
description: Merchant Locales
items:
$ref: '#/components/schemas/Locale'
locations:
title: Merchant Locations
minItems: 0
maxItems: 50
uniqueItems: true
type: array
description: Merchant Locations
deprecated: true
nullable: true
items:
$ref: '#/components/schemas/Location'
contentTypes:
title: Content Types
uniqueItems: true
type: array
description: An indicator as to the type of products and services you offer.
nullable: true
example:
- ADULT_LANGUAGE
items:
type: string
enum:
- ADULT_LANGUAGE
- ADULT_PRODUCTS
- ADULT_SERVICES
- GAMBLING
- ONLINE_DATING
- OTHER
crm:
$ref: '#/components/schemas/Crm'
businessType:
title: Merchant Business Type
type: string
description: Business type describes the legal structure under which the business operates
example: BUSINESS_CORPORATION
enum:
- SOLE_PROPRIETORSHIP
- BUSINESS_CORPORATION
- OTHER
firstPartyTrustEnrollments:
title: First Party Trust Enrollments
description: A list of First Party Trust Enrollments
type: array
minLength: 0
maxLength: 2
uniqueItems: true
nullable: true
items:
$ref: '#/components/schemas/FirstPartyTrustEnrollment'
Errors_3:
required:
- Error
type: object
properties:
Error:
type: array
description: List of error objects
items:
$ref: '#/components/schemas/Error_3'
example: []
description: Errors object
BeneficialOwner:
title: Beneficial Owner
description: Individual owning the merchant.
type: object
properties:
firstName:
$ref: '#/components/schemas/FirstName'
secondName:
$ref: '#/components/schemas/SecondName'
lastName:
$ref: '#/components/schemas/LastName'
address:
$ref: '#/components/schemas/ShortAddress'
birthCountry:
$ref: '#/components/schemas/CountryCode'
birthDate:
title: Beneficial Owner Birth Date
description: Beneficial owner birth date. Date must be in a [ISO 8601 format](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6)
type: string
format: date
example: '1977-05-23T00:00:00.000Z'
nullable: true
percentOwnership:
$ref: '#/components/schemas/PercentOwnership'
Address_2:
title: Address
description: Address entity associated to merchant's location and legal address.
required:
- countryCode
allOf:
- $ref: '#/components/schemas/ShortAddress'
- properties:
website:
title: Website
maxLength: 500
minLength: 1
type: string
description: URL for merchant's website
example: https://merchantwebsite.example.com
nullable: true
email:
$ref: '#/components/schemas/Email'
phone:
title: Phone
maxLength: 30
minLength: 3
type: string
description: Phone number of the merchant's office
example: 1-234-567-9999
nullable: true
LegalEntity:
title: Legal Entity
description: Legal entity owning the merchant.
type: object
properties:
name:
$ref: '#/components/schemas/EntityName'
dba:
$ref: '#/components/schemas/EntityName'
address:
$ref: '#/components/schemas/ShortAddress'
percentOwnership:
$ref: '#/components/schemas/PercentOwnership'
governmentOwned:
title: Government Owned
description: Indicates whether the legal entity is owned by a Government
type: boolean
example: false
nullable: true
CardTypes:
title: Card Types
type: array
minItems: 1
maxItems: 4
uniqueItems: true
description: A list of all of the card types that are accepted as a form of payment.
items:
type: string
description: Type of card used for a transaction
example: AMEX
enum:
- AMEX
- DISCOVER
- MC
- VISA
CardAcceptorCountry:
title: Card Acceptor's Country
description: A sub-element of the merchant descriptor indicating the country of the merchant as it appears on the cardholder's statement. Value is not case-sensitive and can accept 2 or 3 character ISO country code.
type: string
minLength: 1
maxLength: 3
example: CAN
TermsConditionsConsent:
title: Terms & conditions consent
type: object
required:
- date
- firstName
- lastName
- jobTitle
- email
- countryCode
- consentUuid
- consentVersion
properties:
date:
type: string
description: Date stamp in which the sub-merchant provided his consent on the terms and conditions. Date must be in [ISO 8601 format](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6)
format: date-time
example: '2021-10-18T13:56:47.123+00:00'
firstName:
type: string
minLength: 1
maxLength: 50
description: First name of person that gave consent
example: John
lastName:
type: string
minLength: 1
maxLength: 50
description: Last name of person that gave consent
example: Doe
jobTitle:
type: string
minLength: 1
maxLength: 100
description: Job title of person that gave consent
example: Manager
email:
$ref: '#/components/schemas/Email'
countryCode:
$ref: '#/components/schemas/CountryCode'
consentUuid:
type: string
minLength: 1
maxLength: 50
description: Universally Unique Identifier (UUID) of the consent that the user consented to
example: 3d94ab7b-fe1c-4f7d-ad4c-93c1eb6d29c3
consentVersion:
type: string
minLength: 1
maxLength: 8
description: Version of the consent that the user consented to
example: '1.0'
CreatedOrModifiedBy:
description: Timestamp and user responsible for creation or modification of the resource
type: object
properties:
timestamp:
$ref: '#/components/schemas/Timestamp'
user:
$ref: '#/components/schemas/User'
SubMerchantResource:
description: Sub-Merchant Response
allOf:
- $ref: '#/components/schemas/MerchantResource'
- type: object
properties:
subMerchantIdentifier:
$ref: '#/components/schemas/SubMerchantIdentifier'
searchFields:
$ref: '#/components/schemas/SearchFieldsResource'
locationCount:
$ref: '#/components/schemas/LocationCount'
ErrorResponse_2:
description: Only returned in the event of an error condition
required:
- Errors
type: object
properties:
Errors:
$ref: '#/components/schemas/Errors_2'
FirstPartyTrustEnrollment:
title: First Party Trust Enrollment
type: object
required:
- enrollmentType
properties:
enrollmentType:
$ref: '#/components/schemas/FirstPartyTrustEnrollmentType'
AlertsAcquirerReferenceIdConfigs:
description: Acquirer reference id configurations
type: array
items:
$ref: '#/components/schemas/AlertsAcquirerReferenceIdConfig'
MerchantLogo:
required:
- imageBase64Encoded
type: object
properties:
imageBase64Encoded:
$ref: '#/components/schemas/ImageBase64Encoded'
description: logo request schema for merchants
LocationCount:
title: Merchant Location count
type: integer
default: 0
example: 15
minimum: 0
maximum: 9999999
UserId:
title: User Id
maxLength: 300
minLength: 1
type: string
description: The user id of the submitter/technical contact.
example: princess.diana
ClarityResponseHeader:
allOf:
- $ref: '#/components/schemas/ResponseHeader'
- type: object
properties:
currentPage:
type: integer
description: Current page
minimum: 0
maximum: 999999999
example: 2
CardScheme:
description: Name of card scheme may be one of - MASTERCARD, VISA or any other supported schemes
type: string
minLength: 1
maxLength: 20
example: MASTERCARD
AlertsMerchantMemberId:
title: Unique identifier for merchants
description: Internal Universally Unique Identifier (UUID) which uniquely identifies the merchants
type: string
format: uuid
example: 99ca4b15-72a6-41dd-8127-573d4b07669c
AlertsSubMerchantStatusUpdate:
description: Request used to update sub-merchant status
type: object
properties:
status:
$ref: '#/components/schemas/MerchantStatus'
required:
- status
CardAcceptorName:
title: Card Acceptor's Name
description: A sub-element of the merchant descriptor that contains the merchant's name or doing business as name as it appears on the cardholder's billing statement.
type: string
minLength: 1
maxLength: 200
example: Acceptor 1
FirstName:
title: First Name
maxLength: 30
minLength: 1
type: string
description: The individual's first name
example: Michael
nullable: true
AlertsCardAcceptorNameConfigs:
description: Card acceptor name configurations for a merchant
type: object
properties:
responseHeader:
$ref: '#/components/schemas/ResponseHeader'
configs:
type: array
items:
$ref: '#/components/schemas/AlertsCardAcceptorNameConfig'
example: []
CardAcceptorCity:
title: Card Acceptor's City
description: A sub-element of the merchant descriptor indicating the merchant city/location as it appears on the cardholder's billing statement.
type: string
minLength: 1
maxLength: 80
example: Toronto
MCMerchantCategory:
title: MerchantCategory
type: object
description: This object represents one merchant category information.
required:
- mcc
properties:
mcc:
type: string
maxLength: 4
minLength: 1
pattern: ^\d{1,4}
description: Merchant category code of a payment transaction that uniquely defines a merchant business.
example: 3997
MCSupportedMerchantCategories:
title: SupportedMerchantCategories
type: object
description: The response object that contains a list of supported merchant categories.
required:
- merchantCategories
properties:
merchantCategories:
minItems: 1
maxItems: 5000
type: array
items:
$ref: '#/components/schemas/MCMerchantCategory'
example: []
MerchantCategoryCode:
title: Merchant Category Code
description: A four-digit number listed in ISO 18245 for retail financial services. MCC is used to classify the business by the type of goods or services it provides.
type: string
maxLength: 4
minLength: 0
pattern: ^[0-9]*$
example: '3002'
CardAcceptorNamesBulkResource:
title: Card Acceptor Names resource
description: Set of Card Acceptor Names resource
type: object
properties:
cardAcceptorNames:
type: array
uniqueItems: true
items:
$ref: '#/components/schemas/BulkOperationResource'
example: []
MerchantType:
title: Merchant's Type
description: Merchant Type must be one of - PARTNER, ACQUIRER, SUBMERCHANT
type: string
minLength: 1
maxLength: 50
example: SUBMERCHANT
SearchFields:
title: Search Fields
type: array
description: 'SearchFields is an array of SearchField objects. The following validations apply:
* If the searchFields array contains both TRANSACTION_AMOUNT and TRANSACTION_CURRENCY_CODE searchParameters, then the value of the "searchFieldCards" and "required" properties must be same for both items
* If the searchFields array contains the TRANSACTION_AMOUNT searchParameter, then it must also contain the TRANSACTION_CURRENCY_CODE searchParameter (and vice versa)'
nullable: true
items:
$ref: '#/components/schemas/SearchField'
Timestamp:
description: Timestamp of the creation or modification of the resource
type: string
minLength: 0
maxLength: 50
format: date-time
example: '2023-04-28T10:30:00.000Z'
ShortAddress:
title: Address
description: Address.
properties:
addressLine1:
title: Address Line 1
maxLength: 250
minLength: 1
type: string
description: The street detail for the address.
example: 223 Blythwood Rd
nullable: true
addressLine2:
title: Address Line 2
maxLength: 250
minLength: 1
type: string
description: The secondary street detail for the address.
example: Suite 123
nullable: true
countryCode:
$ref: '#/components/schemas/CountryCode'
regionCode:
title: Region code
maxLength: 3
minLength: 1
type: string
description: Region where merchant's legal office is located
example: 'ON'
nullable: true
city:
title: City
maxLength: 100
minLength: 1
type: string
description: City where merchant's legal office is located
example: Toronto
nullable: true
postalCode:
title: Postal Code
maxLength: 50
minLength: 1
type: string
description: The zip/postal detail for the merchant's legal address
example: M4N1A7
nullable: true
MerchantName:
title: Merchant's Name
maxLength: 200
minLength: 3
type: string
description: Merchant's partial or full name.
example: Merchant 1
Merchant_2:
title: Merchant
description: Merchant detail information
type: object
properties:
addressLine1:
type: string
description: Line 1 of the street address for the merchant location. Usually includes the street number and name.
example: 1 Oak Street
addressLine2:
type: string
description: Line 2 of the street address usually an apartment number or suite number.
example: Apt 1
cashbackMaximumAmount:
type: string
description: Maximum cashback amount permitted at the location.
example: '40'
category:
type: string
description: The Merchant Category
example: 10 - Grocery Stores & Supermarkets
countryCode:
type: string
description: Two digit alpha country code as defined in ISO
example: US
countryName:
type: string
description: Name of the country.
example: United States
countrySubdivisionCode:
type: string
description: Code of the state or province for a merchant location.
example: MO
countrySubdivisionName:
type: string
description: Name of the state or province for a merchant location.
example: Missouri
city:
type: string
description: The name of the city for a merchant location.
example: OFallon
distance:
type: number
description: This is the numerical value for the distance from the provided location to the selected merchant.
format: double
example: 1.75723000000001
distanceUnit:
type: string
description: This is the unit of measure value for the distance from the provided location to the selected merchant. Options are KM and MILE.
example: MILE
easySavingsMerchantOfferId:
type: string
description: Merchant's Easy Savings Offer Id
example: '1143109'
geocodingResult:
type: string
description: GeocodingResult for the merchant
example: S8HPNTSCZA
id:
type: integer
description: Numerical merchant identifier.
format: int32
example: 1505451132
isPayPassConcession:
type: boolean
description: Boolean value which indicates if the concession area is equipped with a PayPass card reader.
example: true
isPayPassPharmacy:
type: boolean
description: Boolean value which indicates if the pharmacy is equipped with a PayPass card reader.
example: true
isPayPassFuelPump:
type: boolean
description: Boolean value which indicates if the fuel pump is equipped with a PayPass card reader.
example: true
isPayPassTollBooth:
type: boolean
description: Boolean value which indicates if the toll booth is equipped with a PayPass card reader.
example: true
isPayPassDriveThrough:
type: boolean
description: Boolean value which indicates if the drive thru is equipped with a PayPass card reader.
example: true
isPayPassRegister:
type: boolean
description: Boolean value which indicates if the register is equipped with a PayPass card reader.
example: true
isPayPassTicketing:
type: boolean
description: Boolean value which indicates if the ticketing area is equipped with a PayPass card reader.
example: true
isPayPassVendingMachine:
type: boolean
description: Boolean value which indicates if the vending machine is equipped with a PayPass card reader.
example: true
isRepowerByCardSwipeSupported:
type: boolean
description: Boolean value which indicates if the repower card load type at this merchant supports Card Swipe.
example: true
isRepowerByMoneyPakSupported:
type: boolean
description: Boolean value which indicates if the repower card load type at this merchant supports MoneyPak.
example: true
latitude:
type: string
description: The latitude of the merchant
example: '38.670337'
locationName:
type: string
description: The name of the merchant
example: QUIK TRIP STORE 1
longitude:
type: string
description: The longitude of the merchant.
example: '-90.443727'
phoneNumber:
type: string
description: Merchant's phone number
example: '8165442210'
postalCode:
type: string
description: The postal code of the Merchant location.
example: '63366'
websiteUrl:
type: string
description: Merchant's website URL address
example: www.mcdondalds.com
SalesforceAccountNumber:
title: Sales Force Account Number
maxLength: 100
minLength: 1
type: string
description: Unique identifier for a merchant in sales force system.
example: TY12SS33ERYUIOPDDSS34XX
AlertsPageableAcquirerReferenceIdConfigs:
description: Pageable response containing acquirer reference id configurations
type: object
properties:
responseHeader:
$ref: '#/components/schemas/ResponseHeader'
configs:
$ref: '#/components/schemas/AlertsAcquirerReferenceIdConfigs'
Merchants_2:
title: Merchants
type: object
properties:
count:
type: integer
format: int32
description: The number of items in the retrieved data set
example: 10
limit:
type: integer
format: int32
description: The number of items requested to be retrieved
example: 10
offset:
type: integer
format: int32
description: The page offset used for the query
example: 1
total:
type: integer
format: int32
description: The total number of merchants available to be retrieved
example: 210
merchants:
type: array
description: The list of merchants retrieved
items:
$ref: '#/components/schemas/Merchant_2'
example: []
Locale:
required:
- merchantDescription
- code
- defaultLocale
type: object
properties:
code:
title: Code
type: string
description: The locale where the merchant anticipates their business to be located; often referred to as the Accept-Language in HTTP headers.
example: EN_CA
enum:
- EN_US
- EN_CA
- EN_GB
- ES_MX
- ES_ES
- ES_US
- FR_CA
- FR_FR
- PT_BR
- PT_PT
- HE_IL
merchantDescription:
title: Merchant Description
maxLength: 4000
minLength: 1
type: string
description: Description of the primary merchant tied to the transaction and responsible for providing the products or services (description of the business, what they do, markets, etc.). Used to help cardholder understand business responsible for the charge.
example: An airline that no longer exists.
defaultLocale:
title: Default Locale
type: boolean
description: This indicates whether or not this locale will be used as the default locale for displaying information to the customer.
example: true
description: Merchant Locale details
FirstPartyTrustEnrollmentResource:
title: First Party Trust Enrollment Resource
type: object
required:
- enrollmentType
properties:
enrollmentType:
minLength: 1
maxLength: 50
type: string
description: Type of First Party Trust Enrollment
example: CLARITY
AlertsSubOrgProfile:
description: Sub organization member details containing member name, id and type
type: object
properties:
memberId:
$ref: '#/components/schemas/AlertsMerchantMemberId'
name:
$ref: '#/components/schemas/MerchantName'
merchantType:
$ref: '#/components/schemas/MerchantType'
status:
$ref: '#/components/schemas/MerchantStatus'
LocationsBulk:
type: object
required:
- locations
properties:
locations:
minItems: 1
maxItems: 25
type: array
uniqueItems: true
description: Set of Merchant Locations
items:
$ref: '#/components/schemas/LocationWithoutCardAcceptors'
example: []
ValidationStatus:
type: object
description: Status of created Merchant
nullable: true
properties:
messages:
title: Messages
type: array
description: List of validation messages for a merchant.
nullable: true
items:
$ref: '#/components/schemas/Error_3'
example: []
contactUs:
title: Contact-us message
type: string
maxLength: 500
minLength: 1
description: Ethoca's CX team contact
example: Please reach out to Mastercard/Ethoca customer success team for any questions or concerns.
nullable: true
AlertsPageableSubMerchantResource:
description: Pageable response containing sub-merchants with their details
type: object
properties:
responseHeader:
$ref: '#/components/schemas/ResponseHeader'
subMerchants:
type: array
description: List of sub-merchants with all details
items:
$ref: '#/components/schemas/AlertsSubMerchantResource'
example: []
AlertsAcquirerReferenceIdConfigUpdate:
description: Acquirer reference id configuration for update
type: object
properties:
binOnlyMatch:
$ref: '#/components/schemas/BinOnlyMatch'
required:
- binOnlyMatch
BinOnlyMatch:
description: Indicates whether to use only acquirer reference ID (Acquirer BIN) for merchant matching
type: boolean
default: false
example: true
AlertsSubMerchantDetailsUpdate:
description: Request used to update sub-merchant details
type: object
properties:
name:
$ref: '#/components/schemas/MerchantName'
merchantCategoryCode:
$ref: '#/components/schemas/MerchantCategoryCode'
required:
- name
- merchantCategoryCode
MerchantResource:
description: Base merchant response schema
required:
- merchantType
- locales
- businessType
allOf:
- $ref: '#/components/schemas/BaseMerchant'
- type: object
properties:
merchantType:
title: Merchant Type
type: string
description: 'Type of a merchant. Allowed Values -
+ SUB_MERCHANT -
+ DIRECT -
+ GATEWAY - '
example: SUB_MERCHANT
minLength: 1
maxLength: 50
guid:
$ref: '#/components/schemas/MerchantGuid'
status:
title: Status
maxLength: 20
minLength: 4
type: string
description: '* CONFIGURATION - This status indicates that this merchant record is being modified. Any changes applied to a record with this status are NOT visible in production. There is no guarantee that the data is either valid or consistent.
* TESTING - This status indicates that the merchant is being tested. The data for a record with this status is NOT visible in production and data modifications are not permitted.
* LIVE - This status indicates that the merchant record is visible in production. The data has been validated and is used for transaction lookups. Data modifications are not permitted.
* INACTIVE - This status indicates that this merchant record is NOT visible in production. Data modifications are not permitted.
* LOCKED_FOR_EDIT - This status indicates that this merchant record is locked for modification by the customer success team. Data modifications are not permitted.'
example: LIVE
locales:
title: Merchant Locale Details
minItems: 1
maxItems: 10
uniqueItems: true
type: array
description: Merchant Locale Details
items:
$ref: '#/components/schemas/LocaleResource'
locations:
title: Merchant Location Details
minItems: 0
maxItems: 50
uniqueItems: true
type: array
description: Merchant Location details
deprecated: true
nullable: true
items:
$ref: '#/components/schemas/LocationResource'
contentTypes:
title: Content Types
uniqueItems: true
type: array
description: An indicator as to the type of products and services you offer.
example:
- ADULT_LANGUAGE
items:
type: string
nullable: true
validationStatus:
$ref: '#/components/schemas/ValidationStatus'
crm:
$ref: '#/components/schemas/CrmResource'
businessType:
title: Merchant Business Type
type: string
description: Business type describes the legal structure under which the business operates
minLength: 1
maxLength: 25
example: BUSINESS_CORPORATION
firstPartyTrustEnrollments:
title: First Party Trust Enrollments
description: A list of First Party Trust Enrollments
type: array
uniqueItems: true
minLength: 0
maxLength: 2
nullable: true
items:
$ref: '#/components/schemas/FirstPartyTrustEnrollmentResource'
CardAcceptorId:
title: Card Acceptor's ID (CAID)
description: Identifies the card acceptor ID assigned by the acquirer. This ID must represent a unique identifier for each merchant name/location within the acquirer BIN. This is represented by Mastercard DE 42 and Visa Field 42.
type: string
minLength: 1
maxLength: 15
example: card_acceptor1
CrmResource:
title: Customer Relationship Management Response
description: Customer Relationship Management Response
allOf:
- $ref: '#/components/schemas/Crm'
- type: object
properties:
sanctionScreeningStatus:
title: Sanction Screening Status
maxLength: 11
minLength: 6
type: string
description: Indicates merchant's sanction screening status
example: APPROVED
default: DENIED
billingAccountCreated:
type: boolean
description: Indicates whether a sub-merchant billing account has been set up in SalesForce
example: true
default: false
salesforceAccountNumber:
$ref: '#/components/schemas/SalesforceAccountNumber'
ResponseHeader:
type: object
properties:
totalRecords:
type: integer
format: int64
description: Total number of records found
minimum: 0
maximum: 999999999
example: 500
totalPages:
type: integer
description: Total number of pages based on limit
minimum: 0
maximum: 999999999
example: 10
currentPage:
type: integer
description: The current page number
minimum: 1
maximum: 999999999
example: 2
responseTime:
$ref: '#/components/schemas/ResponseTime'
MerchantSearch_2:
title: MerchantSearch
description: Merchant Search Request Info
type: object
properties:
addressLine1:
type: string
description: Line 1 of the street address for the merchant location. Usually includes the street number and name. This parameter is ignored if latitude and longitude are provided. If you provide this parameter you must also provide the Country parameter and either City parameter or PostalCode parameter.
example: 4033 Veterans Memorial Pkwy
addressLine2:
type: string
description: Line 2 of the street address usually an apartment number or suite number. This parameter is used rarely and is ignored if latitude and longitude are provided. If you provide this parameter you must also provide the Country parameter and either City parameter or PostalCode parameter.
example: Apt 1
city:
type: string
description: The name of the city for a merchant location. This parameter is ignored if latitude and longitude are provided. If you provide this parameter you must also provide the Country parameter.
example: SAINT PETERS
countryCode:
type: string
description: Any two digit country code for a Merchant location. Valid values are two digit alpha country code. This parameter is ignored if latitude and longitude are provided. This parameter is required if any other address information is provided including AddressLine1 AddressLine2 City PostalCode or CountrySubdivision.
example: USA
countrySubdivisionCode:
type: string
description: The state or province for a merchant location (only supported for US and Canada locations). This parameter is ignored if latitude and longitude are provided. If you provide this parameter you must also provide the Country parameter.
example: MO
latitude:
type: string
description: The latitude of a merchant location. If latitude is provided longitude must also be provided.
example: '38.795089'
longitude:
type: string
description: The longitude of a merchant location. If longitude is provided latitude must also be provided.
example: '-90.572346'
merchantCategory:
type: string
description: Category Id of the merchant location. See the Categories resource for a list of valid categories. Input may be a comma delimited list of category ids.
example: '0'
merchantType:
type: string
description: Type of merchant location. Options are 'paypass' 'repower' 'easysavings' and 'cashback'.
example: easysavings
offerMerchantId:
type: string
description: Unique identifier that represents the merchant sponsor of an offer. Any valid merchant ID.
example: '1143109'
postalCode:
type: string
description: The zip code or postal code for a Merchant location. This parameter is ignored if latitude and longitude are provided. If you provide this parameter you must also provide the Country parameter.
example: '63376'
SearchField:
type: object
required:
- searchFieldCards
properties:
searchParameter:
title: Merchant API Search parameter
type: string
description: Merchant api search parameter
example: ACQUIRER_REFERENCE_NUMBER
nullable: true
enum:
- PAYMENT_TYPE
- TRANSACTION_IDENTIFIER_VALUE
- ACQUIRER_REFERENCE_NUMBER
- TRANSACTION_DATE
- CARD_FIRST_SIX
- CARD_LAST_FOUR
- ISSUER_AUTHORIZATION_CODE
- TRANSACTION_AMOUNT
- TRANSACTION_CURRENCY_CODE
required:
title: Required
type: boolean
description: If the search field is required
example: true
nullable: true
searchFieldCards:
$ref: '#/components/schemas/CardTypes'
description: Schema for a Search Field
AlertsCardAcceptorIdConfigs:
description: Card acceptor id configurations for a merchant
type: object
properties:
responseHeader:
$ref: '#/components/schemas/ResponseHeader'
configs:
type: array
items:
$ref: '#/components/schemas/AlertsCardAcceptorIdConfig'
example: []
AlertsOrgProfile:
description: Details of organization profiles containing member name, id and type
type: object
properties:
memberId:
$ref: '#/components/schemas/AlertsMerchantMemberId'
name:
$ref: '#/components/schemas/MerchantName'
merchantType:
$ref: '#/components/schemas/MerchantType'
status:
$ref: '#/components/schemas/MerchantStatus'
subOrgProfiles:
type: array
items:
$ref: '#/components/schemas/AlertsSubOrgProfile'
example: []
SubMerchantIdentifier:
title: Sub-Merchant Identifier
maxLength: 100
minLength: 1
type: string
description: The alphanumeric ID of the sub-merchant associated with the purchase details. Required for channel partner.
example: GHF5F67DFSD468GJJXH78
Email:
title: Email Address
maxLength: 254
minLength: 1
type: string
description: Email address
example: john.doe@example.com
format: email
nullable: true
PageableAcceptedAcquirerMerchantIdsResource:
title: Pageable accepted acquirer reference ID & card acceptor ID pairs resource
description: Pageable accepted acquirer reference ID & card acceptor ID pairs resource with pagination metadata
properties:
data:
$ref: '#/components/schemas/AcceptedAcquirerMerchantIdsResource'
metadata:
$ref: '#/components/schemas/ClarityResponseHeader'
CardAcceptorNamesBulk:
title: Merchant Card Acceptor Names
type: object
required:
- cardAcceptorNames
properties:
cardAcceptorNames:
minItems: 1
maxItems: 250
type: array
description: List of merchant card acceptors
uniqueItems: true
items:
$ref: '#/components/schemas/CardAcceptorData'
example: []
CardTypesResource:
title: Card Types Response
type: array
uniqueItems: true
description: A list of all of the card types that are accepted as a form of payment.
items:
type: string
description: Type of card used for a transaction
example: AMEX
CountryCode:
title: Country Code
maxLength: 3
minLength: 3
type: string
description: The [ISO 3166-1](https://www.iso.org/obp/ui/#search) alpha-3 compliant country code.
example: CAN
nullable: true
LegalAddress:
title: Legal Address
description: Legal address of the merchant.
required:
- addressLine1
- countryCode
- city
- regionCode
- postalCode
- phone
allOf:
- $ref: '#/components/schemas/Address_2'
- type: object
properties:
phone:
title: Phone
maxLength: 30
minLength: 3
type: string
description: Phone number of the merchant's office
example: 1-234-567-9991
Location:
type: object
required:
- countryCode
- defaultLocation
allOf:
- $ref: '#/components/schemas/LocationWithoutCardAcceptors'
- properties:
cardAcceptorNames:
$ref: '#/components/schemas/CardAcceptors'
Error_3:
type: object
properties:
Source:
maxLength: 100
minLength: 0
type: string
description: Source of the error
example: Service
nullable: true
ReasonCode:
maxLength: 100
minLength: 0
type: string
description: A unique constant identifying the error
example: format.invalid
nullable: true
Description:
maxLength: 1000
minLength: 0
type: string
description: Short description of the error
example: Short description of the error
nullable: true
Recoverable:
type: boolean
description: Indicates whether this error will always be returned for this request, or retrying could change the outcome
example: false
default: false
nullable: true
Details:
maxLength: 1000
minLength: 0
type: string
description: Optional detailed description of the issue
example: Detailed description of the error
nullable: true
description: Error object
headers:
X-MC-Correlation-ID:
description: This id is unique per request and is used to co-relate a request to its response. Customers must share this id while raising any incident for this API.
schema:
$ref: '#/components/schemas/X-MC-Correlation-ID'
examples:
SupportedMerchantCategories:
value:
- mcc: 10
category:
mainCategory: Shopping
subCategory: Department Store
sector: Department Stores
sectorCode: '201'
- mcc: 11
category:
mainCategory: Shopping
subCategory: Clothes & Fashion
sector: Variety Stores
sectorCode: '305'
- mcc: 12
category:
mainCategory: Food & Beverages
subCategory: Groceries
sector: Grocery Stores & Supermarkets
sectorCode: '101'
- mcc: 3860
category:
mainCategory: Leisure & Entertainment
subCategory: Hotels & Vacation
sector: Hotels, Motels & Resorts
sectorCode: '604'
- mcc: 3861
category:
mainCategory: Leisure & Entertainment
subCategory: Hotels & Vacation
sector: Hotels, Motels & Resorts
sectorCode: '604'
- mcc: 3620
category:
mainCategory: Leisure & Entertainment
subCategory: Hotels & Vacation
sector: Hotels, Motels & Resorts
sectorCode: '604'
- mcc: 3862
category:
mainCategory: Leisure & Entertainment
subCategory: Hotels & Vacation
sector: Hotels, Motels & Resorts
sectorCode: '604'
- mcc: 3621
category:
mainCategory: Leisure & Entertainment
subCategory: Hotels & Vacation
sector: Hotels, Motels & Resorts
sectorCode: '604'
- mcc: 3863
category:
mainCategory: Leisure & Entertainment
subCategory: Hotels & Vacation
sector: Hotels, Motels & Resorts
sectorCode: '604'
- mcc: 5800
category:
mainCategory: Shopping
subCategory: Department Store
sector: Specialty Retail & Services
sectorCode: '302'
MerchantMidSearchParameters:
value:
merchantLegalName: Example Mart
countryCode: USA
acquirerICA: 00689425761
Merchants-Search:
value:
- merchantLegalName: Example Mart
countryCode: USA
acquirerICA: 00689425761
submitterICA: '12689425746'
dbaNames:
- ACME
optIn: Y
status: COMPLETED
duns: '879847426'
websiteUrl: https://www.example.com
address:
addressLine1: 600 WEST
addressLine2: SECTOR 5
addressLine3: SUITE 775
city: St Peters
state: QLD
postalCode: '85001'
wallets:
- walletId: 1
walletAcceptance: Y
walletMerchantId: 235346356234 | 125346356236 | 125446356237
- walletId: 2
walletAcceptance: Y
walletMerchantId: 235346356234 | 125346356236 | 125446356237
- walletId: 3
walletAcceptance: Y
walletMerchantId: 235346356234 | 125346356236 | 125446356237
- merchantLegalName: Example Mart 2
countryCode: USA
acquirerICA: 00689425761
submitterICA: '12689425746'
dbaNames:
- ACME
optIn: Y
status: PENDING
duns: '879847426'
websiteUrl: https://www.example.com
address:
addressLine1: 600 WEST
addressLine2: SECTOR 5
addressLine3: SUITE 775
city: St Peters
state: QLD
postalCode: '85001'
InvalidFieldFormat:
value:
Errors:
Error:
- Source: Mastercard Installments API's
ReasonCode: invalid.request.body.parameter
Description: Field format or type is invalid
Recoverable: false
Details: ''
NotAcceptableHeader:
value:
Errors:
Error:
- Source: Mastercard Installments API's
ReasonCode: not.acceptable.header
Description: Accept header value is not application/json.
Recoverable: false
Details: ''
MissingRequiredField:
value:
Errors:
Error:
- Source: Mastercard Installments API's
ReasonCode: invalid.request.body.parameter
Description: One or more of the required fields are missing
Recoverable: false
Details: ''
InvalidRequestIdError:
value:
Errors:
Error:
- Source: merchant-participation-api
ReasonCode: invalid.request.parameter
Description: One of the request parameters is invalid, try again with the correct request.
Recoverable: false
Details: request_id query param must be a positive integer less than 9223372036854775807.
Merchants-Australia:
value:
- merchantLegalName: Example Mart2
merchantGroup: 1A
countryCode: AUS
acquirerICA: 00689425761
submitterICA: '12689425746'
dbaNames:
- ACME2
optIn: Y
status: COMPLETED
duns: '239847426'
websiteUrl: https://www.acmeexample.com
address:
addressLine1: 601 WEST
addressLine2: SECTOR 6
addressLine3: SUITE 776
city: St Peters 1
state: QLD
postalCode: '85001'
wallets:
- walletId: 1
walletAcceptance: Y
walletMerchantId: 235346356234 | 125346356236 | 125446356237
- walletId: 2
walletAcceptance: Y
walletMerchantId: 235346356234 | 125346356236 | 125446356237
- walletId: 3
walletAcceptance: Y
walletMerchantId: 235346356234 | 125346356236 | 125446356237
- merchantLegalName: Example Mart
merchantGroup: 2A
countryCode: AUS
acquirerICA: 00689425761
submitterICA: '12689425746'
dbaNames:
- ACME
optIn: Y
status: COMPLETED
duns: '239847426'
websiteUrl: https://www.acmeexample.com
address:
addressLine1: 600 WEST
addressLine2: SECTOR 5
addressLine3: SUITE 775
city: St Peters
state: QLD
postalCode: '85001'
ResourceNotFoundError:
value:
Errors:
Error:
- Source: merchant-participation-api
ReasonCode: notfound
Description: request id provided in the request does not exist.
Recoverable: false
Details: ''
InvalidFieldLength:
value:
Errors:
Error:
- Source: Mastercard Installments API's
ReasonCode: invalid.request.body.parameter
Description: Field length is out of bound
Recoverable: false
Details: ''
RequestError:
value:
- requestEndpoint: /merchants/participations
requestId: 9223372036854776000
httpErrorStatusCode: 400
errors:
- source: merchant-participation-api
reasonCode: invalid.request.parameter
description: One of the request parameters is invalid, try again with the correct request.
recoverable: false
details: Merchant legal name is invalid.
MerchantParticipationsForAustralia:
value:
- merchantLegalName: Example Mart2
merchantGroup: 1A
countryCode: AUS
acquirerICA: 00689425761
dbaNames:
- ACME2
mids:
- '987123456789124'
- '123123456789124'
- '567123456789124'
optIn: Y
duns: '879847426'
websiteUrl: https://www.example.com
address:
addressLine1: 601 WEST
addressLine2: SECTOR 6
addressLine3: SUITE 776
city: St Peters 1
state: QLD
postalCode: '85002'
wallets:
- walletId: 1
walletAcceptance: Y
walletMerchantId: 235346356234 | 125346356236 | 125446356237
- walletId: 2
walletAcceptance: Y
walletMerchantId: 235346356234 | 125346356236 | 125446356237
- walletId: 3
walletAcceptance: Y
walletMerchantId: 235346356234 | 125346356236 | 125446356237
- merchantLegalName: Example Mart2
merchantGroup: 2A
countryCode: AUS
acquirerICA: 00689425762
dbaNames:
- ACME2
mids:
- '987123456789125'
- '123123456789126'
- '567123456789127'
optIn: N
duns: '879847427'
websiteUrl: https://www.examplestore.com
address:
addressLine1: 601 WEST
addressLine2: SECTOR 6
addressLine3: SUITE 776
city: St Peters 1
state: QLD
postalCode: '85002'
wallets:
- walletId: 1
walletAcceptance: Y
walletMerchantId: 235346356234 | 125346356236 | 125446356237
- walletId: 2
walletAcceptance: Y
walletMerchantId: 235346356234 | 125346356236 | 125446356237
- walletId: 3
walletAcceptance: Y
walletMerchantId: 235346356234 | 125346356236 | 125446356237
MaidMerchants:
value:
- merchantLegalName: Example Mart
countryCode: USA
acquirerICA: 00689425761
submitterICA: '12689425746'
dbaNames:
- ACME
maids:
- '123456'
maidType: EXT
optIn: Y
status: COMPLETED
duns: '879847426'
websiteUrl: https://www.example.com
wallets:
- walletId: 1
walletAcceptance: Y
walletMerchantId: 235346356234 | 125346356236 | 125446356237
- walletId: 2
walletAcceptance: Y
walletMerchantId: 235346356234 | 125346356236 | 125446356237
- walletId: 3
walletAcceptance: Y
walletMerchantId: 235346356234 | 125346356236 | 125446356237
address:
addressLine1: 600 WEST
addressLine2: SECTOR 5
addressLine3: SUITE 775
city: St Peters
state: QLD
postalCode: '85001'
- merchantLegalName: Example Mart2
countryCode: USA
acquirerICA: 00689425761
submitterICA: '12689425746'
dbaNames:
- ACME2
maids:
- '234567'
maidType: GRP
optIn: Y
status: COMPLETED
duns: '879847436'
websiteUrl: https://www.example.com
wallets:
- walletId: 1
walletAcceptance: Y
walletMerchantId: 235346356234 | 125346356236 | 125446356237
- walletId: 2
walletAcceptance: Y
walletMerchantId: 235346356234 | 125346356236 | 125446356237
- walletId: 3
walletAcceptance: Y
walletMerchantId: 235346356234 | 125346356236 | 125446356237
address:
addressLine1: 600 WEST
addressLine2: SECTOR 5
addressLine3: SUITE 775
city: St Peters
state: QLD
postalCode: '85001'
Merchants-Searches-Australia:
value:
- merchantLegalName: Example Mart
merchantGroup: 1A
countryCode: AUS
acquirerICA: 00689425761
submitterICA: '12689425746'
dbaNames:
- ACME
optIn: Y
status: COMPLETED
duns: '239847426'
websiteUrl: https://www.acmeexample.com
address:
addressLine1: 600 WEST
addressLine2: SECTOR 5
addressLine3: SUITE 775
city: St Peters
state: QLD
postalCode: '85001'
wallets:
- walletId: 1
walletAcceptance: Y
walletMerchantId: 235346356234 | 125346356236 | 125446356237
- walletId: 2
walletAcceptance: Y
walletMerchantId: 235346356234 | 125346356236 | 125446356237
- walletId: 3
walletAcceptance: Y
walletMerchantId: 235346356234 | 125346356236 | 125446356237
- merchantLegalName: Example Mart 2
countryCode: AUS
acquirerICA: 00689425761
submitterICA: '12689425746'
dbaNames:
- ACME
optIn: Y
status: COMPLETED
duns: '239847426'
websiteUrl: https://www.acmeexample.com
address:
addressLine1: 600 WEST
addressLine2: SECTOR 5
addressLine3: SUITE 775
city: St Peters
state: QLD
postalCode: '85001'
MaidMerchants-Searches:
value:
- merchantLegalName: Example Mart
countryCode: USA
acquirerICA: 00689425761
submitterICA: '12689425746'
dbaNames:
- ACME
maids:
- '123456'
maidType: EXT
optIn: Y
status: COMPLETED
duns: '879847426'
websiteUrl: https://www.example.com
wallets:
- walletId: 1
walletAcceptance: Y
walletMerchantId: 235346356234 | 125346356236 | 125446356237
- walletId: 2
walletAcceptance: Y
walletMerchantId: 235346356234 | 125346356236 | 125446356237
- walletId: 3
walletAcceptance: Y
walletMerchantId: 235346356234 | 125346356236 | 125446356237
address:
addressLine1: 600 WEST
addressLine2: SECTOR 5
addressLine3: SUITE 775
city: St Peters
state: QLD
postalCode: '85001'
EncryptedMidDetailsPageForAus:
value:
merchantLegalName: Example Mart
acquirerICA: 00689425761
merchantGroup: 1A
countryCode: AUS
optIn: Y
mids:
- mid: '987123456789124'
status: COMPLETED
- mid: '123123456789124'
status: COMPLETED
- mid: '567123456789124'
status: COMPLETED
MerchantParticipations:
value:
- merchantLegalName: Example Mart
countryCode: USA
acquirerICA: 00689425761
dbaNames:
- ACME
mids:
- '987123456789124'
- '123123456789124'
- '567123456789124'
optIn: Y
duns: '879847426'
websiteUrl: https://www.example.com
wallets:
- walletId: 1
walletAcceptance: Y
walletMerchantId: 235346356234 | 125346356236 | 125446356237
- walletId: 2
walletAcceptance: Y
walletMerchantId: 235346356234 | 125346356236 | 125446356237
- walletId: 3
walletAcceptance: Y
walletMerchantId: 235346356234 | 125346356236 | 125446356237
address:
addressLine1: 600 WEST
addressLine2: SECTOR 5
addressLine3: SUITE 775
city: St Peters
state: QLD
postalCode: '85001'
- merchantLegalName: Example Mart 1
countryCode: USA
acquirerICA: 00689425762
dbaNames:
- ACME
mids:
- '387123456789124'
- '223123456789124'
- '167123456789124'
optIn: Y
duns: '879847421'
websiteUrl: https://www.example2.com
wallets:
- walletId: 1
walletAcceptance: Y
walletMerchantId: 235346356234 | 125346356236 | 125446356237
- walletId: 2
walletAcceptance: Y
walletMerchantId: 235346356234 | 125346356236 | 125446356237
- walletId: 3
walletAcceptance: Y
walletMerchantId: 235346356234 | 125346356236 | 125446356237
address:
addressLine1: 600 WEST
addressLine2: SECTOR 5
addressLine3: SUITE 775
city: St Peters
state: QLD
postalCode: '85001'
MerchantParticipationsMAID:
value:
- merchantLegalName: Example Mart
countryCode: USA
acquirerICA: 00689425761
dbaNames:
- ACME
maid: '321765'
maidType: EXT
optIn: Y
duns: '879847426'
websiteUrl: https://www.example.com
wallets:
- walletId: 1
walletAcceptance: Y
walletMerchantId: 235346356234 | 125346356236 | 125446356237
- walletId: 2
walletAcceptance: Y
walletMerchantId: 235346356234 | 125346356236 | 125446356237
- walletId: 3
walletAcceptance: Y
walletMerchantId: 235346356234 | 125346356236 | 125446356237
address:
addressLine1: 600 WEST
addressLine2: SECTOR 5
addressLine3: SUITE 775
city: St Peters
state: QLD
postalCode: '85001'
- merchantLegalName: Example Store
countryCode: USA
acquirerICA: 00689425762
dbaNames:
- ES
maid: '321755'
maidType: GRP
optIn: N
duns: '879847427'
websiteUrl: https://www.examplestore.com
wallets:
- walletId: 1
walletAcceptance: Y
walletMerchantId: 235346356234 | 125346356236 | 125446356237
- walletId: 2
walletAcceptance: Y
walletMerchantId: 235346356234 | 125346356236 | 125446356237
- walletId: 3
walletAcceptance: Y
walletMerchantId: 235346356234 | 125346356236 | 125446356237
address:
addressLine1: 605 WEST
addressLine2: SECTOR 15
addressLine3: SUITE 779
city: St Peters
state: QLD
postalCode: '85001'
AccountNotRegisteredError:
value:
Errors:
Error:
- Source: Mastercard Installments API's
ReasonCode: account.not.registered
Description: We cannot find the account that you are using to access this service. Kindly register your account or contact your Mastercard associate if you have already registered with us earlier.
Recoverable: false
Details: ''
MidDetailsPage:
value:
merchantLegalName: Example Mart
acquirerICA: 00689425761
countryCode: USA
optIn: Y
mids:
- mid: '987123456789124'
status: COMPLETED
- mid: '123123456789124'
status: COMPLETED
- mid: '567123456789124'
status: COMPLETED
Merchants:
value:
- merchantLegalName: Example Mart
countryCode: USA
acquirerICA: 00689425761
submitterICA: '12689425746'
dbaNames:
- ACME
optIn: Y
status: COMPLETED
duns: '879847426'
websiteUrl: https://www.example.com
wallets:
- walletId: 1
walletAcceptance: Y
walletMerchantId: 235346356234 | 125346356236 | 125446356237
- walletId: 2
walletAcceptance: Y
walletMerchantId: 235346356234 | 125346356236 | 125446356237
- walletId: 3
walletAcceptance: Y
walletMerchantId: 235346356234 | 125346356236 | 125446356237
address:
addressLine1: 600 WEST
addressLine2: SECTOR 5
addressLine3: SUITE 775
city: St Peters
state: QLD
postalCode: '85001'
- merchantLegalName: Example Mart2
countryCode: USA
acquirerICA: 00689425761
submitterICA: '12689425746'
dbaNames:
- ACME2
optIn: Y
status: COMPLETED
duns: '879847436'
websiteUrl: https://www.example.com
wallets:
- walletId: 1
walletAcceptance: Y
walletMerchantId: 235346356234 | 125346356236 | 125446356237
- walletId: 2
walletAcceptance: Y
walletMerchantId: 235346356234 | 125346356236 | 125446356237
- walletId: 3
walletAcceptance: Y
walletMerchantId: 235346356234 | 125346356236 | 125446356237
address:
addressLine1: 600 WEST
addressLine2: SECTOR 5
addressLine3: SUITE 775
city: St Peters
state: QLD
postalCode: '85001'
InvalidCardProductError:
value:
Errors:
Error:
- Source: Mastercard Installments API's
ReasonCode: invalid.request.parameter
Description: Product SPP is not available for the IND country
Recoverable: false
Details: ''
ForbiddenError:
value:
Errors:
Error:
- Source: Mastercard Installments API's
ReasonCode: forbidden
Description: Your account is not approved to access the API or resource, kindly contact your Mastercard associate to get approval.
Recoverable: false
Details: ''
InvalidFieldValue:
value:
Errors:
Error:
- Source: Mastercard Installments API's
ReasonCode: invalid.request.body.parameter
Description: Value doesn't exist / doesn't meet specified range
Recoverable: false
Details: ''
MerchantSearchParameters:
value:
merchantLegalName: Example Mart
acquirerICA: 00689425761
merchantParticipationStatus: COMPLETED
countryCode: USA
maid: '123456'
MissingRequiredHeader:
summary: Missing Required Header Error Response
description: If a required request header is missing or null, then MissingRequiredHeader error response is returned to the caller with HTTP Status code 400.
value:
Errors:
Error:
- Source: service
ReasonCode: missing required header
Description: Submitter-First-Name
Recoverable: false
Details: ''
AlertsPageableSubMerchants:
summary: Pageable list of Sub-Merchants
value:
responseHeader:
totalRecords: 500
totalPages: 10
currentPage: 2
responseTime: 300 ms
subMerchants:
- subMerchantId: 99ca4b15-72a6-41dd-8127-573d4b07669c
name: Merchant 1
merchantType: SUBMERCHANT
status: ACTIVATED
parentMemberId: 99ca4b15-72a6-41dd-8127-573d4b07669c
merchantCategoryCode: '3002'
createdBy:
timestamp: '2023-04-28T10:30:00.000Z'
user: John Doe
modifiedBy:
timestamp: '2023-04-28T10:30:00.000Z'
user: John Doe
statusUpdateTs: '2023-04-28T10:30:00.000Z'
- subMerchantId: 22ca4b15-72a6-41dd-8127-573d4b07662c
name: Merchant 2
merchantType: SUBMERCHANT
status: ACTIVATED
parentMemberId: 99ca4b15-72a6-41dd-8127-573d4b07669c
merchantCategoryCode: '3003'
createdBy:
timestamp: '2023-02-02T10:30:00.000Z'
user: John Doe
modifiedBy:
timestamp: '2023-02-02T10:30:00.000Z'
user: John Doe
statusUpdateTs: '2023-02-02T10:30:00.000Z'
AlertsAcquirerReferenceIdConfigUpdate:
summary: Alerts Acquirer Reference Id Configuration for Update
value:
binOnlyMatch: true
FormatInvalid:
summary: Format Invalid Error Response For Consumer Clarity
description: If a field is not correctly formatted (e.g. a String value is sent in an Integer type field), then FormatInvalid response is returned to the caller with HTTP Status code 400.
value:
Errors:
Error:
- Source: service
ReasonCode: format.invalid
Description: orderHistoryMonths
Recoverable: false
Details: ''
AlertsCardAcceptorIdConfigs:
summary: Alerts Card Acceptor ID Configurations
value:
responseHeader:
totalRecords: 500
totalPages: 10
currentPage: 2
responseTime: 300 ms
configs:
- merchantIdentifierConfigId: 11ca4b15-72a6-41dd-8127-573d4b07511c
acquirerReferenceId: '123456'
cardAcceptorId: card_acceptorA
- merchantIdentifierConfigId: 22ca4b15-72a6-41dd-8127-573d4b07522c
acquirerReferenceId: '876543'
cardAcceptorId: card_acceptorB
EntityNotFound:
summary: Entity Not Found Error Response For Consumer Clarity
description: If a requested entity(e.g. Merchant or Logo) doesn't exist in the system, then EntityNotFound error response is returned to the caller with HTTP Status code 404.
value:
Errors:
Error:
- Source: service
ReasonCode: 'invalid data: GUID'
Description: Merchant 1E37M8VSX1D28QYX not found
Recoverable: false
Details: ''
AlertsSubMerchantActivated:
summary: Alerts Merchant - Activated
value:
subMerchantId: 99ca4b15-72a6-41dd-8127-573d4b07669c
name: Merchant 1
merchantType: SUBMERCHANT
status: ACTIVATED
parentMemberId: 99ca4b15-72a6-41dd-8127-573d4b07669c
merchantCategoryCode: '3002'
createdBy:
timestamp: '2023-04-28T10:30:00.000Z'
user: princess.diana
modifiedBy:
timestamp: '2023-04-28T10:30:00.000Z'
user: princess.diana
statusUpdateTs: '2023-04-28T10:30:00.000Z'
AlertsInvalidData:
summary: Invalid Data Field Error Response For Alerts
description: If a field or set of fields fails a validation (eg. NotNull, Length, Pattern etc.), then InvalidData response will be returned to the caller for each invalid field with HTTP Status code 400.
value:
Errors:
Error:
- Source: service
ReasonCode: 'invalid data: name'
Description: size must be between 3 and 200
Recoverable: false
Details: ''
PreconditionRequired:
summary: Precondition Required for the request
description: If the request doesn't contain the If-Match header, a PreconditionRequired error response is returned to the caller with HTTP Status code 428.
value:
Errors:
Error:
- Source: service
ReasonCode: missing required header
Description: If-Match,
Recoverable: false
Details: ''
AlertsCardAcceptorIdConfig:
summary: Alerts Card Acceptor ID Configuration
value:
acquirerReferenceId: '123456'
cardAcceptorId: card_acceptorA
AlertsAcquirerReferenceIdConfig:
summary: Alerts Acquirer Reference Id Configuration
value:
cardScheme: MASTERCARD
acquirerReferenceId: '123456'
binOnlyMatch: true
AlertsEntityNotFound:
summary: Entity Not Found Error Response For Alerts
description: If a requested entity(e.g. Sub-Merchant or Card Acceptor ID or Card Acceptor Name) doesn't exist in the system, then EntityNotFound error response is returned to the caller with HTTP Status code 404.
value:
Errors:
Error:
- Source: service
ReasonCode: 'invalid data: subMerchantId'
Description: Sub-Merchant 99ca4b15-72a6-41dd-8127-573d4b07669c not found
Recoverable: false
Details: ''
ResourceNotFound:
summary: Resource Not Found Error Response
description: If request URI doesn't match with any available endpoints, then ResourceNotFound error response is returned the caller with HTTP Status code 404.
value:
Errors:
Error:
- Source: service
ReasonCode: resource.not.found
Description: Not Found
Recoverable: false
Details: /merchant-self-services/sub-merchantTs/
PreconditionFailed:
summary: Precondition Failed for the request
description: If the Etag value sent in the If-Match header doesn't match with the hash of the merchant saved in the system, a PreconditionFailed error response is returned to the caller with HTTP Status code 412.
value:
Errors:
Error:
- Source: service
ReasonCode: 'invalid data: If-Match'
Description: Merchant has been modified by another user. Please refresh the merchant data and try again
Recoverable: false
Details: ''
AlertsCardAcceptorNameConfig:
summary: Alerts Card Acceptor Name Configuration
value:
cardAcceptorName: card_acceptor1
cardAcceptorCity: Toronto
cardAcceptorRegion: 019
cardAcceptorCountry: CAN
AlertsOrgProfilePartner:
summary: Alerts Organization Profile for Partners
value:
memberId: 99ca4b15-72a6-41dd-8127-573d4b07669c
name: Partner Merchant 1
merchantType: PARTNER
status: ACTIVATED
subOrgProfiles:
- memberId: 11ab4b15-72a6-41dd-8127-573d4b07669c
name: Acquirer Merchant 1
merchantType: ACQUIRER
status: ACTIVATED
- memberId: 22de5c10-72a6-41dd-8127-573d4b07660c
name: Acquirer Merchant 2
merchantType: ACQUIRER
status: DEACTIVATED
ServerError:
summary: Server Error Response
description: If an unexpected internal server error occurs, then ServerError response is returned to the caller with HTTP Status code 500.
value:
Errors:
Error:
- Source: service
ReasonCode: server.error
Description: Internal Server Error
Recoverable: false
Details: ''
PermissionDenied:
summary: Permission Denied Error Response
description: If the client id in the request doesn't correspond to any member in the system, then PermissionDenied error response is returned to the caller with HTTP Status code 401.
value:
Errors:
Error:
- Source: service
ReasonCode: permission.denied
Description: Member does not have permission to perform any operation
Recoverable: false
Details: ''
AlertsOrgProfileAcquirer:
summary: Alerts Organization Profile for Acquirers
value:
memberId: 11ab4b15-72a6-41dd-8127-573d4b07669c
name: Acquirer Merchant 1
merchantType: ACQUIRER
status: ACTIVATED
subOrgProfiles: []
ForbiddenOperation:
summary: Member does not have permission to add/update/delete a resource
description: If the merchant tries operate on a resource that is not related to them or if they are not allowed perform a specific operation on their resource, then ForbiddenOperation error response is returned to the caller with HTTP Status code 403.
value:
Errors:
Error:
- Source: service
ReasonCode: operation.not.allowed
Description: Member is not allowed to perform a specific operation on a particular resource
Recoverable: false
Details: ''
AlertsSubMerchantDeactivated:
summary: Alerts Merchant - Deactivated
value:
subMerchantId: 99ca4b15-72a6-41dd-8127-573d4b07669c
name: Merchant 1
merchantType: SUBMERCHANT
status: DEACTIVATED
parentMemberId: 99ca4b15-72a6-41dd-8127-573d4b07669c
merchantCategoryCode: '3002'
createdBy:
timestamp: '2023-04-28T10:30:00.000Z'
user: princess.diana
modifiedBy:
timestamp: '2023-04-30T10:30:00.000Z'
user: princess.diana
statusUpdateTs: '2023-04-30T10:30:00.000Z'
ValidationFailed:
summary: Validation of the request failed
description: If the fields in the request did not pass the validation, a ValidationFailed error response is returned to the caller with HTTP Status code 422.
value:
Errors:
Error:
- Source: service
ReasonCode: validation.failed
Description: Validation of the request fields failed
Recoverable: false
Details: ''
AlertsMerchantIdentifierConfigIdOnly:
summary: Alerts Merchant Identifier Configuration ID
value:
merchantIdentifierConfigId: 88ca4b15-72a6-41dd-8127-573d4b07875c
MCSupportedMerchantCategories:
value:
merchantCategories:
- mcc: 3860
- mcc: 3861
- mcc: 3620
- mcc: 3862
- mcc: 3621
- mcc: 3863
- mcc: 5800
AlertsSubMerchantStatusUpdate:
summary: Alert Merchant Status Update
value:
status: DEACTIVATED
AlertsCardAcceptorNameConfigs:
summary: Alerts Card Acceptor Name Configurations
value:
responseHeader:
totalRecords: 500
totalPages: 10
currentPage: 2
responseTime: 300 ms
configs:
- merchantIdentifierConfigId: 33ca4b15-72a6-41dd-8127-573d4b07533c
cardAcceptorName: card_acceptor1
cardAcceptorCity: Toronto
cardAcceptorRegion: 019
cardAcceptorCountry: CAN
- merchantIdentifierConfigId: 44ca4b15-72a6-41dd-8127-573d4b07544c
cardAcceptorName: card_acceptor2
cardAcceptorCity: Ottawa
cardAcceptorRegion: 019
cardAcceptorCountry: CAN
AlertsFormatInvalid:
summary: Format Invalid Error Response For Alerts
description: If a field is not correctly formatted (e.g. a String value is sent in an Integer type field), then FormatInvalid response is returned to the caller with HTTP Status code 400.
value:
Errors:
Error:
- Source: service
ReasonCode: 'invalid data: merchantCategoryCode'
Description: must match \"^[0-9]*$\"
Recoverable: false
Details: ''
InvalidParameterSet:
summary: Invalid Parameter Set Error Response
description: If request body is malformed or missing, then InvalidParameterSet error response is returned to the caller with HTTP Status code 400.
value:
Errors:
Error:
- Source: service
ReasonCode: invalid.parameter.set
Description: request body is malformed
Recoverable: false
Details: ''
InvalidData:
summary: Invalid Data Error Response For Consumer Clarity
description: If a field or set of fields fails a validation (eg. NotNull, Length, Pattern etc.), then InvalidData response will be returned to the caller for each invalid field with HTTP Status code 400.
value:
Errors:
Error:
- Source: service
ReasonCode: 'invalid data: merchantType'
Description: must not be blank
Recoverable: false
Details: ''
requestBodies:
MerchantSearchParameters:
description: The request object that contains parameters to search merchant objects
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/MerchantSearchParameters'
examples:
Merchant Search Parameters:
$ref: '#/components/examples/MerchantSearchParameters'
MerchantMidSearchParameters:
description: The request object that contains parameters to search mids for a given merchant.
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/MerchantMidSearchParameters'
examples:
Merchant Mid Search Parameters:
$ref: '#/components/examples/MerchantMidSearchParameters'
MerchantParticipations:
description: The request object that contains a list of merchant participation reference objects.
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/MerchantParticipations'
examples:
MID Merchant Participations:
$ref: '#/components/examples/MerchantParticipations'
MAID Merchant Participations:
$ref: '#/components/examples/MerchantParticipationsMAID'
MID Merchant Participations For Australia:
$ref: '#/components/examples/MerchantParticipationsForAustralia'
AlertsAcquirerReferenceIdConfigUpdateRequestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/AlertsAcquirerReferenceIdConfigUpdate'
examples:
AlertsAcquirerReferenceIdConfigUpdate:
$ref: '#/components/examples/AlertsAcquirerReferenceIdConfigUpdate'
AlertsCardAcceptorNameConfigRequestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/AlertsCardAcceptorNameConfig'
examples:
AlertsCardAcceptorNameConfig:
$ref: '#/components/examples/AlertsCardAcceptorNameConfig'
AlertsCardAcceptorIdConfigRequestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/AlertsCardAcceptorIdConfig'
examples:
AlertsCardAcceptorIdConfig:
$ref: '#/components/examples/AlertsCardAcceptorIdConfig'
AlertsSubMerchantStatusUpdateRequestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/AlertsSubMerchantStatusUpdate'
examples:
AlertsSubMerchantStatusUpdateRequestBody:
$ref: '#/components/examples/AlertsSubMerchantStatusUpdate'
CardAcceptorNamesBulkRequestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CardAcceptorNamesBulk'
AlertsSubMerchantCreateRequestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/AlertsSubMerchantCreate'
MerchantLogoBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/MerchantLogo'
AcquirerMerchantIdsRequestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/AcquirerMerchant'
AlertsSubMerchantDetailsUpdateRequestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/AlertsSubMerchantDetailsUpdate'
CardAcceptorNamesBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CardAcceptorData'
LocationsBulkRequestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/LocationsBulk'
ChangeSubMerchantStateBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/SubMerchantState'
examples:
inactivation:
value:
state: INACTIVE
inactivationReason: My business is closing
activation:
value:
state: ACTIVE
AlertsAcquirerReferenceIdConfigRequestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/AlertsAcquirerReferenceIdConfig'
examples:
AlertsAcquirerReferenceIdConfig:
$ref: '#/components/examples/AlertsAcquirerReferenceIdConfig'
MerchantSearch:
description: A JSON object containing item data
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/MerchantSearch_2'
LocationBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/LocationWithoutCardAcceptors'
SubMerchantBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/SubMerchant'
parameters:
request_id:
in: query
name: request_id
description: The request ID is obtained by calling POST /merchants/participations API.
required: false
schema:
type: integer
format: int64
minimum: 0
maximum: 9223372036854776000
example: 7223372036854776000
limit:
in: query
name: limit
description: Controls the maximum number of items in the list.
required: false
schema:
type: integer
default: 500
minimum: 1
maximum: 500
example: 100
offset:
in: query
name: offset
description: Determines the number of items needed in the start of the list, to retrieve the list starting from the offset.
required: false
schema:
type: integer
default: 0
minimum: 0
example: 100
OffsetParam:
name: offset
in: query
required: false
description: Number of items per page
schema:
type: integer
default: 25
maximum: 25
example: 25
OffsetParam_2:
name: offset
in: query
description: The page offset used for the query
required: false
schema:
type: integer
example: 1
CardAcceptorNameSearchTextParam:
name: search_text
in: query
required: false
description: "Input field used as wild search against Card Acceptor. \nThe service searches for substring, following the %search_text% pattern.\n"
schema:
type: string
maxLength: 100
example: Test
MemberIdParam:
name: member_id
in: path
required: true
description: Merchant member ID (parent of the sub-merchant)
example: 99ca4b15-72a6-41dd-8127-573d4b07669c
schema:
$ref: '#/components/schemas/AlertsMerchantMemberId'
ClarityPageNumberParam:
name: page_number
in: query
required: false
description: current page number
schema:
type: integer
default: 0
minimum: 0
example: 2
UserIdParam:
name: User-Id
in: header
required: true
example: princess.diana
description: The user id of the submitter/technical contact.
schema:
$ref: '#/components/schemas/UserId'
IfMatch:
name: If-Match
in: header
required: true
example: '"842DFBC17F921E7716642B9164F3B22B"'
description: If-Match is a request header which makes the request conditional. Client must send the corresponding value from the latest Etag response header received for this merchant.
schema:
$ref: '#/components/schemas/Etag'
CardAcceptorIdParam:
name: card_acceptor_id
in: query
required: false
description: Identifies the card acceptor ID assigned by the acquirer. This ID must represent a unique identifier for each merchant name/location within the acquirer BIN.
schema:
$ref: '#/components/schemas/CardAcceptorId'
example: card_acceptor1
LocationIdParam:
name: location_id
in: path
required: true
example: Mxyz123
description: Unique identifier of location
schema:
$ref: '#/components/schemas/ResourceId'
DistanceUnitParam:
name: distance_unit
in: query
description: Unit of measurement for calculating the radius search. Optional. Measurement of distance unit in miles or kilometers. Value string (MILE or KM)
required: false
schema:
type: string
enum:
- MILE
- KM
example: MILE
MerchantIdentifierConfigIdParam:
name: merchant_identifier_config_id
in: query
required: true
description: The Configuration ID for acquirer reference ID or card acceptor ID or card acceptor name configurations.
schema:
$ref: '#/components/schemas/AlertsMerchantConfigId'
example: 88ca4b15-72a6-41dd-8127-573d4b07875c
MerchantNameParam:
name: name
in: query
required: true
description: The name of the merchant
example: Merchant 1
schema:
$ref: '#/components/schemas/MerchantName'
SubmitterFirstNameParam:
name: Submitter-First-Name
in: header
required: true
example: Diana
description: The first name of the submitter/technical contact.
schema:
$ref: '#/components/schemas/FirstName'
CardSchemeParam:
name: card_scheme
description: Name of card scheme may be one of - MASTERCARD, VISA or any other supported schemes
in: query
schema:
$ref: '#/components/schemas/CardScheme'
example: MASTERCARD
MerchantGuidParam:
name: guid
in: path
required: true
description: Consumer Clarity internal merchant's GUID
example: jK2dA5aybhQQBq6C
schema:
$ref: '#/components/schemas/MerchantGuid'
SubmitterLastNameParam:
name: Submitter-Last-Name
in: header
required: true
example: Princess
description: The last name of the submitter/technical contact.
schema:
$ref: '#/components/schemas/LastName'
SubMerchantIdParam:
name: sub_merchant_id
in: path
required: true
description: Sub-merchant member ID
example: cc2cac41-d127-4c06-9646-c0f2ad76c444
schema:
$ref: '#/components/schemas/AlertsMerchantMemberId'
ClaritySortDirectionParam:
name: sort_direction
in: query
required: false
description: Direction to sort the data using sort_field in response
schema:
type: string
default: DESC
enum:
- ASC
- DESC
example: ASC
MerchantStatusParam:
name: status
in: query
required: false
description: The status of the merchant
example: ACTIVATED
schema:
$ref: '#/components/schemas/MerchantStatus'
AcquirerMerchantIdParam:
name: acquirer_merchant_id
in: path
required: true
example: Mxyz123
description: Unique identifier of Acquirer Reference Id and Card Acceptor Id Pair
schema:
$ref: '#/components/schemas/ResourceId'
AcquirerMerchantIdsSearchTextParam:
name: search_text
in: query
required: false
description: 'Input field used as wild search against Acquirer Reference ID and Card Acceptor
ID. The service searches for substring, following the %search_text% pattern.
'
schema:
type: string
maxLength: 30
example: Test
LimitParam:
name: limit
in: query
description: The number of items to be retrieved
required: false
schema:
type: integer
example: 25
LocationSearchTextQueryParam:
name: search_text
in: query
required: false
description: Input field used as wild search in region/city/country like regex %search_text%
schema:
type: string
maxLength: 100
example: Toronto
CardAcceptorNameParam:
name: card_acceptor_name
in: query
required: false
description: A sub-element of the merchant descriptor that contains the merchant's name or doing business as name as it appears on the cardholder's billing statement.
schema:
$ref: '#/components/schemas/CardAcceptorName'
example: Acceptor 1
AcquirerMerchantIdsSortFieldParam:
name: sort_field
in: query
required: false
description: Field to Sort data in response
schema:
type: string
default: acquirerReferenceId
maxLength: 30
example: acquirerReferenceId
ClaritySortFieldParam:
name: sort_field
in: query
required: false
description: Field to Sort data in response
schema:
type: string
default: modifiedDateTime
maxLength: 100
example: modifiedDateTime
ClarityOffsetParam:
name: offset
in: query
required: false
description: The number of items to skip before starting to collect the result set
schema:
type: integer
default: 50
minimum: 0
example: 0
AcquirerReferenceIdParam:
name: acquirer_reference_id
in: query
required: false
description: BIN that a partner currently services under their portfolio.
schema:
$ref: '#/components/schemas/AcquirerReferenceId'
example: '123456'
DistanceParam:
name: distance
in: query
description: Distance measurement for calculating the radius search. Optional The length of distance from the centroid point. Value string(<25). The default will be 5 units
required: false
schema:
type: integer
example: 5
PageNumberParam:
name: page_number
in: query
required: false
description: Current page number
schema:
type: integer
default: 1
minimum: 1
example: 1
CardAcceptorNameIdParam:
name: id
in: path
required: true
example: Mxyz123
description: Unique identifier of the card acceptor name.
schema:
$ref: '#/components/schemas/ResourceId'