> For the complete documentation index, see [llms.txt](https://developer.esw.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.esw.com/returns-api/grp-returns-api/api-methods/configuration-methods.md). Agents can also search and read this documentation through its [MCP server](https://developer.esw.com/~gitbook/mcp).

# Configuration Methods

## GET- Get Retailer Country Configuration <a href="#get-get-retailer-country-configuration" id="get-get-retailer-country-configuration"></a>

This endpoint is used to retrieve country-specific configuration information for the returns platform. This brand/country-level configuration is used to drive returns processing. Shopper origin (location from where the return originates) is generally used to look up the configuration.

## GET /returns/v1/{identifier}/configuration/countries/{countryIso}

> Retrieve country configuration

```json
{"openapi":"3.1.1","info":{"title":"GRP Returns API","version":"1"},"servers":[{"url":"https://api.sandbox.esw.com"}],"security":[{"Bearer":[]}],"components":{"securitySchemes":{"Bearer":{"type":"apiKey","name":"Authorization","in":"header","description":"Please insert JWT with Bearer into field"}},"schemas":{"Returns.Oms.Application.UseCases.GetCountryConfiguration.GetCountryConfigurationResponse":{"type":"object","properties":{"organisationId":{"type":"string"},"tenantCode":{"type":"string"},"brandCode":{"type":"string"},"brandName":{"type":"string"},"countryIso":{"type":"string"},"currencyIso":{"type":"string"},"returnsOmsEnabled":{"type":"boolean"},"portalSettings":{"$ref":"#/components/schemas/Returns.Oms.Application.UseCases.Common.BrandCountryPortalSettingsDto"},"locales":{"type":"array","items":{"$ref":"#/components/schemas/Returns.Oms.Application.UseCases.Common.LocaleDto"}},"brandCountryReturnsCentreSettings":{"$ref":"#/components/schemas/Returns.Oms.Application.UseCases.Common.BrandCountryReturnsCentreSettingsDto"}},"additionalProperties":false},"Returns.Oms.Application.UseCases.Common.BrandCountryPortalSettingsDto":{"type":"object","properties":{"customerReturnReasonCodes":{"type":"array","items":{"$ref":"#/components/schemas/Returns.Oms.Application.UseCases.Common.CustomerReturnReasonCodeDto"}},"returnsPortalConfigurationSettings":{"$ref":"#/components/schemas/Returns.Oms.Application.UseCases.Common.ReturnsPortalConfigurationSettingsDto"},"blockDefectiveDangerGoods":{"type":"boolean"},"returnToStoreIsEnabled":{"type":"boolean"},"ingestionEnabled":{"type":"boolean"}},"additionalProperties":false},"Returns.Oms.Application.UseCases.Common.CustomerReturnReasonCodeDto":{"type":"object","properties":{"code":{"type":"string"},"description":{"type":"string"},"isRetailerAtFault":{"type":"boolean"},"visibleOnUI":{"type":"boolean"},"descriptionRequired":{"type":"boolean"}},"additionalProperties":false},"Returns.Oms.Application.UseCases.Common.ReturnsPortalConfigurationSettingsDto":{"type":"object","properties":{"showRefund":{"type":"boolean"},"showLabel":{"type":"boolean"},"returnReasonMandatory":{"type":"boolean"},"noOfDaysAllowedForReturn":{"format":"int32","type":"integer"},"numberOfDeliveryDaysRequired":{"format":"int32","type":"integer"},"shippedPeriodDays":{"format":"int32","type":"integer"},"cancelOrderNoOfDays":{"format":"int32","type":"integer"},"isCancelOrderAllowed":{"type":"boolean"},"supportNativeExchanges":{"type":"boolean"},"displayImageThumbnails":{"type":"boolean"}},"additionalProperties":false},"Returns.Oms.Application.UseCases.Common.LocaleDto":{"type":"object","properties":{"name":{"type":"string"},"cultureInfoCode":{"type":"string"}},"additionalProperties":false},"Returns.Oms.Application.UseCases.Common.BrandCountryReturnsCentreSettingsDto":{"type":"object","properties":{"returnsCentreProcessingFee":{"$ref":"#/components/schemas/Returns.Oms.Domain.Entities.ReturnsCentreProcessingFeeModel"}},"additionalProperties":false},"Returns.Oms.Domain.Entities.ReturnsCentreProcessingFeeModel":{"type":"object","properties":{"currencyIso":{"type":"string"},"amount":{"format":"double","type":"number"},"applyForShopperAtFault":{"type":"boolean"},"includeReturnFee":{"type":"boolean"},"includeMemberAndNonMemberFee":{"type":"boolean"},"memberFee":{"format":"double","type":"number"},"nonMemberFee":{"format":"double","type":"number"}},"additionalProperties":false},"Microsoft.AspNetCore.Mvc.ProblemDetails":{"type":"object","properties":{"type":{"type":"string"},"title":{"type":"string"},"status":{"format":"int32","type":"integer"},"detail":{"type":"string"},"instance":{"type":"string"}},"additionalProperties":{}}}},"paths":{"/returns/v1/{identifier}/configuration/countries/{countryIso}":{"get":{"tags":["Configuration"],"summary":"Retrieve country configuration","parameters":[{"schema":{"type":"string"},"in":"path","name":"identifier","required":true},{"schema":{"type":"string"},"in":"path","name":"countryIso","required":true}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Returns.Oms.Application.UseCases.GetCountryConfiguration.GetCountryConfigurationResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},"500":{"description":"Server Error"}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developer.esw.com/returns-api/grp-returns-api/api-methods/configuration-methods.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
