Merchant

Get a List of Merchants

get

Retrieve a list of merchants with optional filter pagination capabilities.

Query parameters
PageSizeinteger · int32 · min: 1 · max: 2147483647Required
PageNumberinteger · int32 · min: 1 · max: 2147483647Required
Responses
200

Returns a list of merchants successfully.

application/json
get
/api/demographics/v1/Merchants
GET /api/demographics/v1/Merchants?PageSize=1&PageNumber=1 HTTP/1.1
Host: 
Accept: */*
{
  "content": [
    {
      "_links": {
        "ANY_ADDITIONAL_PROPERTY": null
      },
      "hierarchyNodeKey": "text",
      "dbaName": "text",
      "merchantNumber": "text"
    }
  ],
  "page": {
    "number": 1,
    "size": 1,
    "sort": {
      "fields": {
        "ANY_ADDITIONAL_PROPERTY": "text"
      }
    },
    "totalPages": 1,
    "numberOfElements": 1,
    "totalElements": 1,
    "first": true,
    "last": true
  }
}

Create a New Merchant

post

Creates a new merchant after validating required fields and additional checks, including: -Required fields: dbaName, hierarchyNodeKey, and userName -Compliance with business rules and configurations such as paper statement preferences -MCC (Merchant Category Code) validation Upon successful validation, the merchant is created and queued for processing.

Body
businessIDinteger · int32Optional

The unique identifier for the business.

Example: 524398752
hierarchyNodeKeystring · min: 1Required

The key representing the hierarchy node to which the business belongs.

Example: 7412523
dbaNamestring · min: 1Required

The Doing-Business-As (DBA) name of the merchant.

Example: Jane's Sandwiches
merchantNumberstring | nullableOptional

The merchant's unique identification number.

Example: 987654321
emailAddressstring | nullableOptional

The email address of the business.

Example: [email protected]
webSitestring | nullableOptional

The website of the business.

Example: https:/www.janessandwiches.com
acceptsPaperStatementsstring | nullableOptional

Indicates whether the business accepts paper statements.

Example: true
acceptsPaperTaxFormsstring | nullableOptional

Indicates whether the business accepts paper tax forms.

Example: false
companyTypeIdinteger · int32 · min: 1 · max: 2147483647Required

The identifier representing the type of the company.

Example: 2
isChainMerchantbooleanOptional

Indicates whether the business is part of a chain of merchants.

Example: false
Responses
201

Created a merchant successfully.

application/json
post
/api/demographics/v1/Merchants
POST /api/demographics/v1/Merchants HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 727

{
  "businessID": 524398752,
  "hierarchyNodeKey": "7412523",
  "dbaName": "Jane's Sandwiches",
  "merchantNumber": "987654321",
  "emailAddress": "[email protected]",
  "webSite": "https:/www.janessandwiches.com",
  "phones": [
    {
      "phoneTypeCodeID": "1",
      "areaCode": "415",
      "phoneNumber": "5551234",
      "extension": "101"
    }
  ],
  "acceptsPaperStatements": "true",
  "acceptsPaperTaxForms": "false",
  "companyTypeId": 2,
  "isChainMerchant": false,
  "seasonalSchedule": {
    "january": true,
    "february": false,
    "march": true,
    "april": true,
    "may": true,
    "june": false,
    "july": true,
    "august": true,
    "september": false,
    "october": true,
    "november": true,
    "december": false
  },
  "salesInformation": {
    "salesInformationID": 1001,
    "businessID": 2002,
    "assignedUser": 3003,
    "referralPartner": "John Doe",
    "compensationType": "2"
  }
}
{
  "_links": {
    "self": {
      "href": "/api/demographics/v1.0/merchants/987654321"
    }
  },
  "businessID": 524398752,
  "hierarchyNodeKey": "7412523",
  "dbaName": "Jane's Sandwiches",
  "merchantNumber": "987654321",
  "emailAddress": "[email protected]",
  "webSite": "https:/www.janessandwiches.com",
  "phones": [
    {
      "phoneTypeCodeID": "1",
      "areaCode": "415",
      "phoneNumber": "5551234",
      "extension": "101"
    }
  ],
  "acceptsPaperStatements": "true",
  "acceptsPaperTaxForms": "false",
  "companyTypeId": 2,
  "isChainMerchant": false,
  "seasonalSchedule": {
    "january": true,
    "february": false,
    "march": true,
    "april": true,
    "may": true,
    "june": false,
    "july": true,
    "august": true,
    "september": false,
    "october": true,
    "november": true,
    "december": false
  },
  "salesInformation": {
    "salesInformationID": 1001,
    "businessID": 2002,
    "assignedUser": 3003,
    "referralPartner": "John Doe",
    "compensationType": "2"
  }
}

Get Merchant Details

get

Retrieve details of a specific merchant using the merchantNumber.

Path parameters
merchantNumberstringRequired

The merchant's unique identification number.

Responses
200

Returns a single merchant successfully.

application/json
get
/api/demographics/v1/Merchants/{merchantNumber}
GET /api/demographics/v1/Merchants/{merchantNumber} HTTP/1.1
Host: 
Accept: */*
{
  "_links": {
    "self": {
      "href": "/api/demographics/v1.0/merchants/987654321"
    }
  },
  "businessID": 524398752,
  "hierarchyNodeKey": "7412523",
  "dbaName": "Jane's Sandwiches",
  "merchantNumber": "987654321",
  "emailAddress": "[email protected]",
  "webSite": "https:/www.janessandwiches.com",
  "phones": [
    {
      "phoneTypeCodeID": "1",
      "areaCode": "415",
      "phoneNumber": "5551234",
      "extension": "101"
    }
  ],
  "acceptsPaperStatements": "true",
  "acceptsPaperTaxForms": "false",
  "companyTypeId": 2,
  "isChainMerchant": false,
  "seasonalSchedule": {
    "january": true,
    "february": false,
    "march": true,
    "april": true,
    "may": true,
    "june": false,
    "july": true,
    "august": true,
    "september": false,
    "october": true,
    "november": true,
    "december": false
  },
  "salesInformation": {
    "salesInformationID": 1001,
    "businessID": 2002,
    "assignedUser": 3003,
    "referralPartner": "John Doe",
    "compensationType": "2"
  }
}

Update Merchant Details

put

Update the details of an existing merchant identified by the merchant number.

Note: If the merchant is locked, the update is staged instead of applied immediately. After a successful update, a merchant change event is queued.

Path parameters
merchantNumberstringRequired

The merchant's unique identification number.

Body
businessIDinteger · int32Optional

The unique identifier for the business.

Example: 524398752
hierarchyNodeKeystring · min: 1Required

The key representing the hierarchy node to which the business belongs.

Example: 7412523
dbaNamestring · min: 1Required

The Doing-Business-As (DBA) name of the merchant.

Example: Jane's Sandwiches
merchantNumberstring | nullableOptional

The merchant's unique identification number.

Example: 987654321
emailAddressstring | nullableOptional

The email address of the business.

Example: [email protected]
webSitestring | nullableOptional

The website of the business.

Example: https:/www.janessandwiches.com
acceptsPaperStatementsstring | nullableOptional

Indicates whether the business accepts paper statements.

Example: true
acceptsPaperTaxFormsstring | nullableOptional

Indicates whether the business accepts paper tax forms.

Example: false
companyTypeIdinteger · int32 · min: 1 · max: 2147483647Required

The identifier representing the type of the company.

Example: 2
isChainMerchantbooleanOptional

Indicates whether the business is part of a chain of merchants.

Example: false
Responses
200

Updates a merchant successfully.

application/json
put
/api/demographics/v1/Merchants/{merchantNumber}
PUT /api/demographics/v1/Merchants/{merchantNumber} HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 727

{
  "businessID": 524398752,
  "hierarchyNodeKey": "7412523",
  "dbaName": "Jane's Sandwiches",
  "merchantNumber": "987654321",
  "emailAddress": "[email protected]",
  "webSite": "https:/www.janessandwiches.com",
  "phones": [
    {
      "phoneTypeCodeID": "1",
      "areaCode": "415",
      "phoneNumber": "5551234",
      "extension": "101"
    }
  ],
  "acceptsPaperStatements": "true",
  "acceptsPaperTaxForms": "false",
  "companyTypeId": 2,
  "isChainMerchant": false,
  "seasonalSchedule": {
    "january": true,
    "february": false,
    "march": true,
    "april": true,
    "may": true,
    "june": false,
    "july": true,
    "august": true,
    "september": false,
    "october": true,
    "november": true,
    "december": false
  },
  "salesInformation": {
    "salesInformationID": 1001,
    "businessID": 2002,
    "assignedUser": 3003,
    "referralPartner": "John Doe",
    "compensationType": "2"
  }
}
{
  "_links": {
    "self": {
      "href": "/api/demographics/v1.0/merchants/987654321"
    }
  },
  "businessID": 524398752,
  "hierarchyNodeKey": "7412523",
  "dbaName": "Jane's Sandwiches",
  "merchantNumber": "987654321",
  "emailAddress": "[email protected]",
  "webSite": "https:/www.janessandwiches.com",
  "phones": [
    {
      "phoneTypeCodeID": "1",
      "areaCode": "415",
      "phoneNumber": "5551234",
      "extension": "101"
    }
  ],
  "acceptsPaperStatements": "true",
  "acceptsPaperTaxForms": "false",
  "companyTypeId": 2,
  "isChainMerchant": false,
  "seasonalSchedule": {
    "january": true,
    "february": false,
    "march": true,
    "april": true,
    "may": true,
    "june": false,
    "july": true,
    "august": true,
    "september": false,
    "october": true,
    "november": true,
    "december": false
  },
  "salesInformation": {
    "salesInformationID": 1001,
    "businessID": 2002,
    "assignedUser": 3003,
    "referralPartner": "John Doe",
    "compensationType": "2"
  }
}

Delete a Merchant Record

delete

Delete an existing merchant record identified by the merchant number.

The operation validates the request through multiple steps:

  • Verifies the merchant number and checks if the merchant is locked

  • Rejects the request if the merchant is locked and changes aren't allowed

  • Stages changes before processing the deletion to ensure compliance with business rules

  • Updates the merchant's lifecycle status

  • Queues changes securely

Path parameters
merchantNumberstringRequired

The merchant's unique identification number.

Responses
200

Deletes a merchant successfully.

No content

delete
/api/demographics/v1/Merchants/{merchantNumber}
DELETE /api/demographics/v1/Merchants/{merchantNumber} HTTP/1.1
Host: 
Accept: */*

No content

Get Merchant Physical Address

get

Retrieve the merchant's primary physical address.

Note: -The accuracy of the provided address is verified through secure access using the "MID" authorisation policy.

Path parameters
merchantNumberstringRequired

The merchant's unique identification number.

Responses
200

Returns a merchant's physical address successfully.

application/json
get
/api/demographics/v1/MerchantPhysicalAddresses/{merchantNumber}
GET /api/demographics/v1/MerchantPhysicalAddresses/{merchantNumber} HTTP/1.1
Host: 
Accept: */*
{
  "stateCode": "CA",
  "zip": "90001",
  "countryCode": 1,
  "line1": "123 Main Street",
  "line2": "Apt 4B",
  "line3": "text",
  "city": "Los Angeles"
}

Update Merchant Physical Address

put

Update the physical address for a merchant identified by the merchant number. Address details are provided in the request body.

Note: The accuracy of the provided address is verified through secure access using the "MID" authorisation policy.

Path parameters
merchantNumberstringRequired

The merchant's unique identification number.

Body

Represents the physical address of a business.

stateCodestring · min: 2 · max: 10Required

The state code where the business is located. The code is a two-letter abbreviation.

Example: CA
zipstring · min: 1Required

The zip code of the business's physical address.

Example: 90001
countryCodeinteger · int32 · min: 1 · max: 840Required

The country code representing the country where the business is located.

Example: 1
line1string · min: 1Required

The first line of the business's physical address. Possible value: street address.

Example: 123 Main Street
line2string | nullableOptional

The second line of the business's physical address. Possible values are optional, for apartment, suite.

Example: Apt 4B
line3string | nullableOptional

The third line of the business's physical address (optional).

citystring · min: 1Required

The city name where the business is located.

Example: Los Angeles
Responses
200

Updates a merchant's physical address successfully.

application/json
put
/api/demographics/v1/MerchantPhysicalAddresses/{merchantNumber}
PUT /api/demographics/v1/MerchantPhysicalAddresses/{merchantNumber} HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 127

{
  "stateCode": "CA",
  "zip": "90001",
  "countryCode": 1,
  "line1": "123 Main Street",
  "line2": "Apt 4B",
  "line3": "text",
  "city": "Los Angeles"
}
{
  "stateCode": "CA",
  "zip": "90001",
  "countryCode": 1,
  "line1": "123 Main Street",
  "line2": "Apt 4B",
  "line3": "text",
  "city": "Los Angeles"
}

Get Merchant Mailing Address

get

Retrieve the merchant's mailing address identified by the merchant number.

Note: The merchant number must be valid and exist in the system for the request to succeed. Access is secured using the "MID" authorisation policy and requires the "getaddress" entitlement.

Path parameters
merchantNumberstringRequired

The merchant's unique identification number.

Responses
200

Returns a merchant's mailing address successfully.

application/json
get
/api/demographics/v1/MerchantMailingAddresses/{merchantNumber}
GET /api/demographics/v1/MerchantMailingAddresses/{merchantNumber} HTTP/1.1
Host: 
Accept: */*
{
  "stateCode": "CA",
  "zip": "90001",
  "countryCode": 10,
  "line1": "123 Main St",
  "line2": "Apt 4B",
  "line3": "Building C",
  "city": "Los Angeles"
}

Update Merchant Mailing Address

put

Update the mailing address for a merchant identified by the merchant number. The mailing address is used for official correspondence and can be the same as or different from the physical address. Address details are provided in the request body.

Path parameters
merchantNumberstringRequired

The merchant's unique identification number.

Body
stateCodestring · min: 2 · max: 10Required

The state code of the mailing address (2 digits).

Example: CA
zipstring · min: 1Required

The zip code of the mailing address.

Example: 90001
countryCodeinteger · int32 · min: 1 · max: 840Required

The country code representing the country of the mailing address. (Any code between 1 and 840)

Example: 10
line1string · min: 1Required

The first line of the mailing address.

Example: 123 Main St
line2string | nullableOptional

The second line of the mailing address (optional).

Example: Apt 4B
line3string | nullableOptional

The third line of the mailing address (optional).

Example: Building C
citystring · min: 1Required

The city of the mailing address.

Example: Los Angeles
Responses
200

Updates a merchant's mailing address successfully.

application/json
put
/api/demographics/v1/MerchantMailingAddresses/{merchantNumber}
PUT /api/demographics/v1/MerchantMailingAddresses/{merchantNumber} HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 130

{
  "stateCode": "CA",
  "zip": "90001",
  "countryCode": 10,
  "line1": "123 Main St",
  "line2": "Apt 4B",
  "line3": "Building C",
  "city": "Los Angeles"
}
{
  "stateCode": "CA",
  "zip": "90001",
  "countryCode": 10,
  "line1": "123 Main St",
  "line2": "Apt 4B",
  "line3": "Building C",
  "city": "Los Angeles"
}

Was this helpful?