Languages

Languages are the top-level scope in the Reloadify API. All resources — profiles, products, orders, and more — belong to a language. If your store operates in multiple languages or regions, each one is represented as a separate language.

The language model

The language model represents a store language or region in your Reloadify account.

Properties

  • Name
    id
    Type
    string
    Description

    Unique identifier for the language.


GET/v2/languages

List all languages

This endpoint allows you to retrieve a paginated list of all languages in your account.

Optional attributes

  • Name
    page
    Type
    integer
    Description

    Page offset to fetch. Defaults to 1.

  • Name
    per_page
    Type
    integer
    Description

    Number of items per page. Defaults to 10, maximum 250.

Request

GET
/v2/languages
curl -G https://app.reloadify.com/api/v2/languages \
  -H "Authorization: Bearer {token}"

Response

{
  "data": [
    {
      "id": "en"
    },
    {
      "id": "nl"
    },
    {
      "id": "de"
    }
  ]
}

PUT/v2/languages

Create or update a language

This endpoint allows you to create or update a language configuration.

Request

PUT
/v2/languages
curl -X PUT https://app.reloadify.com/api/v2/languages \
  -H "Authorization: Bearer {token}" \
  -H "Content-Type: application/json" \
  -d '{"language": {"id": "fr"}}'

Response

{
  "id": "fr"
}

GET/v2/languages/:language_id

Retrieve a language

This endpoint allows you to retrieve a specific language by its ID.

Request

GET
/v2/languages/en
curl https://app.reloadify.com/api/v2/languages/en \
  -H "Authorization: Bearer {token}"

Response

{
  "id": "en"
}

DELETE/v2/languages/:language_id

Delete a language

This endpoint allows you to delete a language. This is a destructive action — all resources associated with this language will also be removed.

Request

DELETE
/v2/languages/fr
curl -X DELETE https://app.reloadify.com/api/v2/languages/fr \
  -H "Authorization: Bearer {token}"

Was this page helpful?