Get Merchants by Company Contract

Get Merchants by Company Contract

API: GetMerchantsByCompanyContract

This API is responsible for retrieving all merchants associated with a specific company contract within the Closed Loop arrangement.

The request allows pagination through the PageSize and PageIndex parameters, enabling efficient retrieval when a contract contains a large number of merchants.


Request Structure

{
  "Method": "GetMerchantsByCompanyContract",
  "BusinessUnitId": 30472,
  "PartnerId": 10409,
  "ContractIdentifier": "CON466da4fa-4d36-472a-b60f-5c042bf468c6CON",
  "PageSize": 10,
  "PageIndex": 0
}

Request Parameters

ParameterTypeDescriptionExampleMandatory
MethodstringMethod name"GetMerchantsByCompanyContract"Yes
PartnerIdbigintInformation provided by FitBank10409Yes
BusinessUnitIdbigintInformation provided by FitBank30472Yes
ContractIdentifiervarcharUnique identifier of the company contract"CON466da4fa-4d36-472a-b60f-5c042bf468c6CON"Yes
PageSizeintNumber of records returned per request10No
PageIndexintPage index for pagination (starting at 0)0No

Response Structure

{
  "Success": "true",
  "Message": "Merchants retrieved successfully",
  "TotalRecords": 2,
  "Merchants": [
    {
      "MerchantIdentifier": "MER086c63fa-ccf8-4995-b988-439c347aa9c4MER",
      "MerchantName": "Bakery",
      "LegalName": "Bakery LTDA",
      "TaxNumber": "33.762.255/0001-40",
      "BusinessUnitId": 10409,
      "DailyLimit": {
        "TotalAmount": 5000.55
      }
    },
    {
      "MerchantIdentifier": "MER1245fd90-6c1b-45f4-a45b-67e37e43c2a1MER",
      "MerchantName": "Food Express",
      "LegalName": "Food Express LTDA",
      "TaxNumber": "45.987.654/0001-12",
      "BusinessUnitId": 10409,
      "DailyLimit": {
        "TotalAmount": 4800
      }
    }
  ]
}

 

Response field

FieldTypeDescription
SuccessbooleanIndicates whether the request was successfully processed.
MessagestringResponse message describing the result of the operation.
TotalRecordsintTotal number of merchants associated with the contract.
MerchantsarrayList of merchants associated with the company contract.

Objeto Merchant

FieldTypeDescription
MerchantIdentifiervarcharUnique identifier of the merchant.
MerchantNamestringMerchant's trade name.
LegalNamestringMerchant's legal company name.
TaxNumbervarcharMerchant's fiscal identifier.
BusinessUnitIdbigintBusiness unit associated with the merchant.
DailyLimitobjectFinancial configuration of the merchant.
DailyLimit.TotalAmountdecimalMerchant's base limit configured in the system.