---
updatedAt: 2026-08-14T17:52:03.000Z
---

# Get Retrieve Countries

Returns list of countries where MoneyGram's remittance services are available.Each country information contains a country code to be used on requests to MoneyGram, and a friendly country name for display purposes.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "version": "0.0.44",
    "title": "Reference Data API",
    "contact": {
      "name": "Developer Support",
      "url": "http://api.moneygram.com/support",
      "email": "developersupport@moneygram.com"
    },
    "license": {
      "name": "Apache 2.0",
      "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
    }
  },
  "servers": [
    {
      "url": "https://{host}/reference-data/v1",
      "variables": {
        "host": {
          "default": "extapi.moneygram.com",
          "enum": [
            "extapi.moneygram.com"
          ]
        }
      }
    }
  ],
  "paths": {
    "/countries": {
      "get": {
        "summary": "Get Retrieve Countries",
        "description": "Returns list of countries where MoneyGram's remittance services are available.Each country information contains a country code to be used on requests to MoneyGram, and a friendly country name for display purposes.",
        "operationId": "countries",
        "security": [
          {
            "OAuth2": [
              "read"
            ]
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ClientRequestId"
          },
          {
            "$ref": "#/components/parameters/TargetAudience"
          },
          {
            "in": "query",
            "name": "agentPartnerId",
            "schema": {
              "type": "string"
            },
            "description": "Unique agent or partner identifier"
          },
          {
            "$ref": "#/components/parameters/PosId"
          },
          {
            "$ref": "#/components/parameters/OperatorId"
          },
          {
            "$ref": "#/components/parameters/UserLanguage"
          }
        ],
        "responses": {
          "200": {
            "description": "Success. Returns list of countries.",
            "headers": {
              "X-MG-SessionId": {
                "required": false,
                "schema": {
                  "type": "string"
                },
                "description": "This GUID is generated by MoneyGram for correlating multiple calls within transaction session."
              },
              "X-MG-ClientRequestId": {
                "required": false,
                "schema": {
                  "type": "string"
                },
                "description": "Client Request Id that can be passed by the client application. Client request Id must be unique within a single session for unique requests. This attribute can be used for ensuring idempotent request processing for some APIs."
              },
              "X-MG-RequestId": {
                "required": false,
                "schema": {
                  "type": "string"
                },
                "description": "This GUID is generated by MoneyGram for each incoming request. It is passed to MoneyGram services. This attribute will be used to correlate logging across multiple MoneyGram services/applications."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CountryDetails"
                  }
                }
              }
            }
          },
          "204": {
            "$ref": "#/components/responses/NoContentError"
          },
          "400": {
            "$ref": "#/components/responses/BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "403": {
            "$ref": "#/components/responses/ForbiddenError"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "OAuth2": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://moneygram-sandbox.apigee.net/oauth/accesstoken?grant_type=client_credentials",
            "scopes": {
              "read": "Grants read access",
              "write": "Grants write access"
            }
          }
        }
      }
    },
    "parameters": {
      "ClientRequestId": {
        "in": "header",
        "name": "X-MG-ClientRequestId",
        "schema": {
          "type": "string"
        },
        "description": "Client Request Id that can be passed by the client application. Client request Id must be unique within a single session for unique requests. This attribute can be used for ensuring idempotent request processing for some APIs. MoneyGram recommends using a UUID for the value of this field."
      },
      "TargetAudience": {
        "in": "query",
        "name": "targetAudience",
        "schema": {
          "type": "string"
        },
        "description": "Identifies the client. Error messages and attribute metadata tailored to client [agent (store client) vs consumer (digital client)]"
      },
      "PosId": {
        "in": "query",
        "name": "posId",
        "schema": {
          "type": "string"
        },
        "description": "Unique identifier for point of sale"
      },
      "OperatorId": {
        "in": "query",
        "name": "operatorId",
        "schema": {
          "type": "string"
        },
        "description": "Unique identifier for the operator"
      },
      "UserLanguage": {
        "in": "query",
        "name": "userLanguage",
        "required": true,
        "schema": {
          "type": "string"
        },
        "description": "Language used by the user/operator"
      }
    },
    "responses": {
      "BadRequestError": {
        "description": "Bad request. Returns error details.",
        "headers": {
          "X-MG-SessionId": {
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "A GUID MoneyGram generates for correlating multiple calls within a transaction session."
          },
          "X-MG-ClientRequestId": {
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Client Request Id that can be passed by the client application. Client request Id must be unique within a single session for unique requests. This attribute can be used for ensuring idempotent request processing for some APIs."
          },
          "X-MG-RequestId": {
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "This GUID is generated by MoneyGram for each incoming request. It is passed to MoneyGram services. This attribute will be used to correlate logging across multiple MoneyGram services/applications."
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/errorResponse"
            }
          }
        }
      },
      "ForbiddenError": {
        "description": "Forbidden. Returns error details.",
        "headers": {
          "X-MG-SessionId": {
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "This GUID is generated by MoneyGram for correlating multiple calls within transaction session."
          },
          "X-MG-ClientRequestId": {
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Client Request Id that can be passed by the client application. Client request Id must be unique within a single session for unique requests. This attribute can be used for ensuring idempotent request processing for some APIs."
          },
          "X-MG-RequestId": {
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "This GUID is generated by MoneyGram for each incoming request. It is passed to MoneyGram services. This attribute will be used to correlate logging across multiple MoneyGram services/applications."
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/errorResponse"
            }
          }
        }
      },
      "UnauthorizedError": {
        "description": "Unauthorized. Returns error details.",
        "headers": {
          "X-MG-SessionId": {
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "This GUID is generated by MoneyGram for correlating multiple calls within transaction session."
          },
          "X-MG-ClientRequestId": {
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Client Request Id that can be passed by the client application. Client request Id must be unique within a single session for unique requests. This attribute can be used for ensuring idempotent request processing for some APIs."
          },
          "X-MG-RequestId": {
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "This GUID is generated by MoneyGram for each incoming request. It is passed to MoneyGram services. This attribute will be used to correlate logging across multiple MoneyGram services/applications."
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/errorResponse"
            }
          }
        }
      },
      "InternalServerError": {
        "description": "Internal server error. Returns error details.",
        "headers": {
          "X-MG-SessionId": {
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "This GUID is generated by MoneyGram for correlating multiple calls within transaction session."
          },
          "X-MG-ClientRequestId": {
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Client Request Id that can be passed by the client application. Client request Id must be unique within a single session for unique requests. This attribute can be used for ensuring idempotent request processing for some APIs."
          },
          "X-MG-RequestId": {
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "This GUID is generated by MoneyGram for each incoming request. It is passed to MoneyGram services. This attribute will be used to correlate logging across multiple MoneyGram services/applications."
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/errorResponse"
            }
          }
        }
      },
      "NoContentError": {
        "description": "No Content error.",
        "headers": {
          "X-MG-SessionId": {
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "This GUID is generated by MoneyGram for correlating multiple calls within transaction session."
          },
          "X-MG-ClientRequestId": {
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Client Request Id that can be passed by the client application. Client request Id must be unique within a single session for unique requests. This attribute can be used for ensuring idempotent request processing for some APIs."
          },
          "X-MG-RequestId": {
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "This GUID is generated by MoneyGram for each incoming request. It is passed to MoneyGram services. This attribute will be used to correlate logging across multiple MoneyGram services/applications."
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/NoContentErrorDetails"
            },
            "examples": {
              "ErrorResponse": {
                "$ref": "#/components/examples/NoContentErrorResponseExample"
              }
            }
          }
        }
      }
    },
    "schemas": {
      "ErrorDetails": {
        "type": "object",
        "required": [
          "category",
          "message"
        ],
        "properties": {
          "category": {
            "type": "string",
            "description": "Error category defined by MoneyGram",
            "pattern": "^[a-zA-Z]*-\\d{5}$"
          },
          "code": {
            "type": "string",
            "description": "Error codes defined by MoneyGram"
          },
          "message": {
            "type": "string",
            "description": "Error message associated with the error code"
          },
          "offendingFields": {
            "minItems": 0,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "field": {
                  "type": "string",
                  "description": "Offending field causing the error"
                }
              }
            }
          }
        }
      },
      "NoContentErrorDetails": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "description": "Error message without content"
          }
        }
      },
      "CountrySubdivisionDetails": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "ISO code of country subdivision/state/province",
            "example": "US-MN"
          },
          "name": {
            "type": "string",
            "description": "Name of country subdivision/state/province",
            "example": "Minnesota"
          }
        }
      },
      "CountryDetails": {
        "type": "object",
        "properties": {
          "iso3Code": {
            "type": "string",
            "description": "ISO Alpha-3 country code",
            "example": "USA"
          },
          "iso2Code": {
            "type": "string",
            "description": "ISO Alpha-2 code of country",
            "example": "USA"
          },
          "name": {
            "type": "string",
            "description": "Name of country",
            "example": "United States of America"
          },
          "baseCurrency": {
            "type": "string",
            "description": "Country's default currency (ISO Alpha-3)",
            "example": "USD"
          },
          "sendActive": {
            "type": "boolean",
            "description": "Indicates if a transaction can be sent from this country",
            "example": false
          },
          "receiveActive": {
            "type": "boolean",
            "description": "Indicates if a transaction can be received by this country",
            "example": true
          },
          "indicativeRateActive": {
            "type": "boolean",
            "description": "Indicates the country is indicative and Fx rates will be estimated",
            "example": true
          },
          "active": {
            "type": "boolean",
            "description": "Indicates the country is indicative and Fx rates will be estimated",
            "example": true
          },
          "sendCurrencies": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "Available send currencies for the country",
              "example": "USD"
            }
          },
          "receiveCurrencies": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "Available receive currencies for the country",
              "example": "USD"
            }
          },
          "phoneDialCodes": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "Country Calling Code",
              "example": "1"
            }
          },
          "subdivisions": {
            "type": "array",
            "description": "State/provinces of the country (if applicable)",
            "items": {
              "$ref": "#/components/schemas/CountrySubdivisionDetails"
            }
          }
        }
      },
      "errorResponse": {
        "type": "object",
        "properties": {
          "error": {
            "$ref": "#/components/schemas/ErrorDetails"
          }
        }
      }
    },
    "examples": {
      "NoContentErrorResponseExample": {
        "value": {
          "description": "The resource content not found."
        }
      }
    }
  }
}
```