---
updatedAt: 2026-03-13T17:01:00.000Z
agentTools:
  projectIndex: https://developers.masspay.io/llms.txt
---

# Gets a list of Companies and their service offerings for the given country code.

This **GET** endpoint is used to retrieve a list of all companies and their service offerings for a specific country. <br> You can use this endpoint to obtain information about available services and pricing for each respected company in the provided country. <br> To use this endpoint, you need to provide the `country_code` in the URL Path. <br> The response will include a JSON array containing details for each company, including the company name, service offerings, and pricing.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "description": "MassPay API",
    "version": "1.0.0",
    "title": "MassPay API",
    "termsOfService": "https://www.masspay.io/terms/",
    "contact": {
      "name": "MassPay",
      "email": "info@masspay.io",
      "url": "https://www.masspay.io"
    },
    "license": {
      "name": "Apache 2.0",
      "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
    }
  },
  "tags": [
    {
      "name": "Payout Catalog",
      "description": "The catalog resource describes the available payout services and countries."
    }
  ],
  "paths": {
    "/payout/country/{country_code}/detailed": {
      "get": {
        "tags": [
          "Payout Catalog"
        ],
        "summary": "Gets a list of Companies and their service offerings for the given country code.",
        "description": "This **GET** endpoint is used to retrieve a list of all companies and their service offerings for a specific country. <br> You can use this endpoint to obtain information about available services and pricing for each respected company in the provided country. <br> To use this endpoint, you need to provide the `country_code` in the URL Path. <br> The response will include a JSON array containing details for each company, including the company name, service offerings, and pricing.",
        "operationId": "getDetailedCountryServices",
        "parameters": [
          {
            "name": "country_code",
            "in": "path",
            "description": "Country code searching services for. 3 letters [ISO_3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) code\"",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "amount",
            "in": "query",
            "description": "Returns the results fee based on the given amount, defaults to $200",
            "required": false,
            "schema": {
              "type": "string",
              "default": "200"
            }
          },
          {
            "schema": {
              "type": "number",
              "pattern": "^[\\d.]+$",
              "format": "float"
            },
            "in": "query",
            "name": "limit",
            "description": "Limit amount for transaction amount + fee. If fee + amount are higher than the limit, the output will automatically adjust to maximize the possible amount sent"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "Unique key to prevent duplicate processing",
            "schema": {
              "type": "string"
            }
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "in": "query",
            "name": "wallet_token",
            "description": "Token representing the wallet used. If provided, the results would be custom-tailored to this user. Not necessary if user_token is provided"
          },
          {
            "schema": {
              "type": "boolean",
              "example": true,
              "default": false
            },
            "in": "query",
            "name": "include_payer_logos",
            "description": "Whether to include the payers logo in base64 format. "
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "query",
            "name": "user_token",
            "description": "Token representing the user for which we fetch the catalog. If provided, the results would be custom-tailored to this user. Not necessary if wallet_token is provided"
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "query",
            "name": "source_currency",
            "description": "Required if amount is provided. The currency associated with the amount"
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "query",
            "name": "payer_name",
            "description": "Filter services that match payer name. Multiple payer names can be passed using pipe (|) as a separator"
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "query",
            "name": "destination_currency",
            "description": "Filter services that support the destination currency"
          },
          {
            "schema": {
              "type": "boolean",
              "default": false
            },
            "in": "query",
            "description": "Filter out country-specific service variations and return only the generic option. For example, for bank deposits, exclude individual bank listings and include only the general bank deposit option",
            "name": "only_generic_payers"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation.",
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompaniesResp"
                },
                "examples": {
                  "List of Services": {
                    "value": {
                      "companies": [
                        {
                          "company_logo": "U3dhZ2dlciByb2Nrcw==",
                          "services": [
                            {
                              "country_code": "MEX",
                              "delivery_type": "CASH_PICKUP",
                              "payers": [
                                {
                                  "destination_token": "dest_123e4567-e89b-12d3-a456-426614174000",
                                  "payer_logo": "U3dhZ2dlciByb2Nrcw==",
                                  "payer_name": "Elektra",
                                  "exchange_rate": [
                                    {
                                      "currency_symbol": "MXN",
                                      "exchange_rate": 18.37
                                    }
                                  ],
                                  "fee": 8,
                                  "max_limit": 10000,
                                  "min_limit": 0,
                                  "source_amount": 104.3,
                                  "number_of_locations": 13007,
                                  "estimated_availability": "2020-07-21T17:32:28Z",
                                  "additional_description": "Requires drivers license to pickup funds",
                                  "is_dynamic_token": true,
                                  "is_variable_fee": true
                                }
                              ]
                            }
                          ],
                          "rating": 4.5,
                          "description": "MassPay is a top leading provider with over 10 years of industry experience",
                          "company_name": "MassPay"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request.",
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error400"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized.",
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error401"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden.",
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error403"
                }
              }
            }
          },
          "404": {
            "description": "Not found.",
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error404"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed.",
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error405"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error.",
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error500"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Time-out.",
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error504"
                }
              }
            }
          }
        },
        "security": [
          {
            "AUTHORIZER_NAME": []
          },
          {
            "api_key": []
          }
        ]
      },
      "parameters": [
        {
          "schema": {
            "type": "string"
          },
          "name": "country_code",
          "in": "path",
          "description": "Country code searching services for. 3 letters [ISO_3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) code\"",
          "required": true
        }
      ]
    }
  },
  "servers": [
    {
      "url": "https://{environment}.masspay.io/{VERSION}",
      "description": "MassPay's API server",
      "variables": {
        "VERSION": {
          "default": "v1.0.0",
          "enum": [
            "v1.0.0"
          ]
        },
        "environment": {
          "default": "api",
          "enum": [
            "api",
            "staging-api"
          ]
        }
      }
    }
  ],
  "components": {
    "schemas": {
      "CompaniesResp": {
        "type": "object",
        "x-examples": {
          "CompaniesResp": {
            "companies": [
              {
                "company_logo": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAIAAAAiOjnJAAAABGdBTUEAALGP...",
                "company_name": "MassPay",
                "description": "MassPay is a top leading provider with over 10 years of industry experience",
                "rating": 4.5,
                "services": [
                  {
                    "country_code": "MEX",
                    "delivery_type": "CASH_PICKUP",
                    "payers": [
                      {
                        "destination_token": "d2138fd0-00be-45a8-985f-4f5bde500962",
                        "payer_logo": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAIAAAAiOjnJAAAABGdBTUEAALGP...",
                        "payer_name": "Elektra",
                        "exchange_rate": [
                          {
                            "currency_symbol": "MXN",
                            "exchange_rate": 18.37
                          }
                        ],
                        "fee": 8,
                        "max_limit": 10000,
                        "min_limit": 0
                      }
                    ]
                  }
                ]
              }
            ]
          }
        },
        "properties": {
          "companies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Company"
            }
          }
        },
        "required": [
          "companies"
        ],
        "x-tags": [
          "Catalog"
        ]
      },
      "Company": {
        "type": "object",
        "x-examples": {
          "Company": {
            "company_logo": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAIAAAAiOjnJAAAABGdBTUEAALGP...",
            "company_name": "MassPay",
            "description": "MassPay is a top leading provider with over 10 years of industry experience",
            "rating": 4.5,
            "services": [
              {
                "country_code": "MEX",
                "delivery_type": "CASH_PICKUP",
                "payers": [
                  {
                    "destination_token": "d2138fd0-00be-45a8-985f-4f5bde500962",
                    "payer_logo": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAIAAAAiOjnJAAAABGdBTUEAALGP...",
                    "payer_name": "Elektra",
                    "exchange_rate": [
                      {
                        "currency_symbol": "MXN",
                        "exchange_rate": 18.37
                      }
                    ],
                    "fee": 8,
                    "max_limit": 10000,
                    "min_limit": 0
                  }
                ]
              }
            ]
          }
        },
        "properties": {
          "company_logo": {
            "type": "string",
            "description": "base64 representation of the company logo",
            "format": "byte",
            "example": "U3dhZ2dlciByb2Nrcw=="
          },
          "services": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Service"
            }
          },
          "rating": {
            "type": "number",
            "example": 4.5,
            "description": "Overall rating of provider calculated from feedback provided by users from previous trasnactions"
          },
          "description": {
            "type": "string",
            "description": "A short description of the company",
            "example": "MassPay is a top leading provider with over 10 years of industry experience"
          },
          "company_name": {
            "type": "string",
            "description": "The company name",
            "example": "MassPay"
          }
        },
        "required": [
          "company_logo",
          "services",
          "rating",
          "description",
          "company_name"
        ],
        "x-tags": [
          "Catalog"
        ]
      },
      "Service": {
        "type": "object",
        "x-examples": {
          "Service": {
            "country_code": "MEX",
            "delivery_type": "CASH_PICKUP",
            "payers": [
              {
                "destination_token": "d2138fd0-00be-45a8-985f-4f5bde500962",
                "payer_logo": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAIAAAAiOjnJAAAABGdBTUEAALGP...",
                "payer_name": "Elektra",
                "exchange_rate": [
                  {
                    "currency_symbol": "MXN",
                    "exchange_rate": 18.37
                  }
                ],
                "fee": 8,
                "max_limit": 10000,
                "min_limit": 0
              }
            ]
          }
        },
        "x-tags": [
          "Catalog"
        ],
        "required": [
          "country_code",
          "delivery_type",
          "payers"
        ],
        "properties": {
          "country_code": {
            "type": "string",
            "description": "Country code [ISO_3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3)",
            "example": "MEX",
            "minLength": 3,
            "maxLength": 3
          },
          "delivery_type": {
            "type": "string",
            "enum": [
              "CASH_PICKUP",
              "BANK_DEPOSIT",
              "HOME_DELIVERY",
              "MOBILE_WALLET",
              "MASSPAY_CARD",
              "PAPER_CHECK",
              "BILL",
              "CRYPTOCURRENCY"
            ],
            "description": "The type of service. I.e. cash pickup, home delivery, etc."
          },
          "payers": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "destination_token",
                "payer_name",
                "exchange_rate",
                "fee",
                "max_limit",
                "min_limit",
                "is_dynamic_token",
                "is_variable_fee",
                "is_generic"
              ],
              "properties": {
                "destination_token": {
                  "type": "string",
                  "description": "Token that represents the payout destination. 36 characters long",
                  "format": "uuid",
                  "example": "123e4567-e89b-12d3-a456-426614174000"
                },
                "payer_logo": {
                  "type": "string",
                  "format": "byte",
                  "description": "base64 representation of the payer logo",
                  "example": "U3dhZ2dlciByb2Nrcw=="
                },
                "payer_name": {
                  "type": "string",
                  "example": "Elektra",
                  "description": "Name of payer"
                },
                "exchange_rate": {
                  "type": "array",
                  "description": "Lists all available currencies and their estimated rates",
                  "items": {
                    "type": "object",
                    "required": [
                      "currency_symbol",
                      "exchange_rate"
                    ],
                    "properties": {
                      "currency_symbol": {
                        "type": "string",
                        "example": "MXN",
                        "description": "Using [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) format."
                      },
                      "exchange_rate": {
                        "type": "number",
                        "description": "Estimated rate",
                        "format": "double",
                        "example": 18.37
                      }
                    }
                  }
                },
                "fee": {
                  "type": "number",
                  "description": "Service fee",
                  "format": "double",
                  "example": 8
                },
                "max_limit": {
                  "type": "number",
                  "description": "The maximum amount (inclusive) the user can send with this service. 0 if no upper limit",
                  "format": "double",
                  "example": 10000
                },
                "min_limit": {
                  "type": "number",
                  "description": "The minimum amount (inclusive) the user can send with this service. 0 if no lower limit",
                  "format": "double",
                  "example": 0
                },
                "source_amount": {
                  "type": "number",
                  "description": "Optional return field. Will only show if `limit` parameter is provided",
                  "format": "double",
                  "example": 104.3
                },
                "number_of_locations": {
                  "type": "integer",
                  "default": 0,
                  "description": "Total number of locations. Mostly relevant for cash pickup services. 0 if unknown or irrelevant",
                  "format": "int32",
                  "example": 13007,
                  "minimum": 0
                },
                "estimated_availability": {
                  "type": "string",
                  "format": "date-time",
                  "example": "2020-07-21T17:32:28Z",
                  "description": "Estimated availability of funds. When funds would be available to pickup/deposited"
                },
                "additional_description": {
                  "type": "string",
                  "example": "Requires drivers license to pickup funds",
                  "description": "When available, additional description that explains the service offered or requirements for funds delivery."
                },
                "is_dynamic_token": {
                  "type": "boolean",
                  "description": "When set to true, it indicates that this destination_token will auto retry the transaction for a set time until it is successful or timesout. False value means the transaction will be processed by the payer in real-time with instant feedback on success/failure."
                },
                "is_variable_fee": {
                  "type": "boolean",
                  "description": "Indicates whether the fee is variable. When set to true, you can expect the fee to change based on the `source_amount`. Although certain crypto currencies's fee can vary due to network fee flactuation, they are not considered a variable fee as MassPay's fee is not variable based on the `source_amount`."
                },
                "is_generic": {
                  "type": "boolean",
                  "description": "Indicates whether the payer is generic. When true, institution-specific details are provided dynamically via attributes rather than being tied to a predefined institution configuration."
                }
              }
            }
          }
        }
      },
      "Error400": {
        "description": "Bad request.",
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "title": {
            "type": "string",
            "description": "Error title.",
            "enum": [
              "Bad request."
            ],
            "example": "Bad request."
          },
          "message": {
            "type": "string",
            "description": "Error description.",
            "enum": [
              "The request was invalid or malformed. Please ensure that the request body conforms to the required format and that all required parameters are included."
            ],
            "example": "The request was invalid or malformed. Please ensure that the request body conforms to the required format and that all required parameters are included."
          },
          "code": {
            "type": "integer",
            "description": "Error code.",
            "enum": [
              400
            ],
            "example": 400
          },
          "error": {
            "type": "object",
            "properties": {
              "reason": {
                "type": "string",
                "example": "Error initiating payout",
                "description": "Reason for error"
              },
              "details": {
                "type": "array",
                "description": "Specific details of the cause of the error",
                "items": {
                  "type": "string",
                  "example": "Source amount cannot be $0"
                }
              }
            }
          }
        },
        "required": [
          "message",
          "code"
        ]
      },
      "Error401": {
        "description": "Unauthorized.",
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "Error title.",
            "enum": [
              "Unauthorized."
            ],
            "example": "Unauthorized."
          },
          "message": {
            "type": "string",
            "description": "Error description.",
            "enum": [
              "Authentication failed or credentials were not provided. Please ensure that you have provided valid API credentials and that they are authorized to access the MassPay API."
            ],
            "example": "Authentication failed or credentials were not provided. Please ensure that you have provided valid API credentials and that they are authorized to access the MassPay API."
          },
          "code": {
            "type": "integer",
            "description": "Error code.",
            "enum": [
              401
            ],
            "example": 401
          }
        },
        "additionalProperties": false,
        "required": [
          "error",
          "message",
          "code"
        ]
      },
      "Error403": {
        "description": "Forbidden.",
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "Error title.",
            "enum": [
              "Forbidden."
            ],
            "example": "Forbidden."
          },
          "message": {
            "type": "string",
            "description": "Error description.",
            "enum": [
              "The requested action is not allowed or the API credentials do not have sufficient permissions. Please ensure that the API credentials used for the request have the necessary permissions to perform the requested action."
            ],
            "example": "The requested action is not allowed or the API credentials do not have sufficient permissions. Please ensure that the API credentials used for the request have the necessary permissions to perform the requested action."
          },
          "code": {
            "type": "integer",
            "description": "Error code.",
            "enum": [
              403
            ],
            "example": 403
          }
        },
        "additionalProperties": false,
        "required": [
          "error",
          "message",
          "code"
        ]
      },
      "Error404": {
        "description": "Not found.",
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "Error title.",
            "enum": [
              "Not found."
            ],
            "example": "Not found."
          },
          "message": {
            "type": "string",
            "description": "Error description.",
            "enum": [
              "The requested resource was not found. Please ensure that the URL for the request is correct and that the requested resource exists."
            ],
            "example": "The requested resource was not found. Please ensure that the URL for the request is correct and that the requested resource exists."
          },
          "code": {
            "type": "integer",
            "description": "Error code.",
            "enum": [
              404
            ],
            "example": 404
          }
        },
        "additionalProperties": false,
        "required": [
          "error",
          "message",
          "code"
        ]
      },
      "Error405": {
        "description": "Method not allowed.",
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "Error title.",
            "enum": [
              "Method not allowed."
            ],
            "example": "Method not allowed."
          },
          "message": {
            "type": "string",
            "description": "Error description.",
            "enum": [
              "The HTTP method used for the request is not supported by the MassPay API. Please ensure that you are using the correct HTTP method (e.g., POST) for the specific MassPay API endpoint."
            ],
            "example": "The HTTP method used for the request is not supported by the MassPay API. Please ensure that you are using the correct HTTP method (e.g., POST) for the specific MassPay API endpoint."
          },
          "code": {
            "type": "integer",
            "description": "Error code.",
            "enum": [
              405
            ],
            "example": 405
          }
        },
        "additionalProperties": false,
        "required": [
          "error",
          "message",
          "code"
        ]
      },
      "Error500": {
        "description": "Internal server error",
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "Error title.",
            "enum": [
              "Internal server error."
            ],
            "example": "Internal server error."
          },
          "message": {
            "type": "string",
            "description": "Error description.",
            "enum": [
              "An unexpected error occurred on the server-side while processing the request. Please try again later or contact support if the issue persists."
            ],
            "example": "An unexpected error occurred on the server-side while processing the request. Please try again later or contact support if the issue persists."
          },
          "code": {
            "type": "integer",
            "description": "Error code.",
            "enum": [
              500
            ],
            "example": 500
          }
        },
        "additionalProperties": false,
        "required": [
          "error",
          "message",
          "code"
        ]
      },
      "Error504": {
        "description": "Gateway Time-out.",
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "Error title.",
            "enum": [
              "Gateway Time-out."
            ],
            "example": "Gateway Time-out."
          },
          "message": {
            "type": "string",
            "description": "Error description.",
            "enum": [
              "The request timed out while waiting for a response from the server. Please try again later or contact support if the issue persists."
            ],
            "example": "The request timed out while waiting for a response from the server. Please try again later or contact support if the issue persists."
          },
          "code": {
            "type": "integer",
            "description": "Error code.",
            "enum": [
              500
            ],
            "example": 500
          }
        },
        "additionalProperties": false,
        "required": [
          "error",
          "message",
          "code"
        ]
      }
    },
    "securitySchemes": {
      "api_key": {
        "type": "apiKey",
        "name": "x-api-key",
        "in": "header"
      },
      "AUTHORIZER_NAME": {
        "name": "Authorization",
        "in": "header",
        "type": "apiKey"
      }
    }
  }
}
```