# Retrieve currency codes

`POST /common/payments/currencies`

> This is a subset of the full specification, limited to the `POST /common/payments/currencies` operation.
>
> You can find the full specification here: /_bundle/demand/docs/open-api/3.2/demand-api.yaml

```yaml
openapi: 3.1.0
info:
  title: Booking.com Demand API
  version: '3.2'
  summary: |-
    The Booking.com Demand API enables Affiliate Partners to access Booking.com's travel inventory, including accommodations, attractions, car rentals, and flights. The version 3.2 introduces several improvements and breaking changes from version 3.1, including updates to **price structures**, inclusion of **attractions and transfers in orders/details** for post-booking reporting, and other structural enhancements.

    - The API follows REST principles and returns data in **JSON** format.
    - You can access endpoints via **HTTPS POST** requests.

    Authentication: Use your Affiliate ID and token credentials to use these endpoints.

    [Check the Try out guide!](/demand/docs/getting-started/try-out-the-api)
  description: This is a subset of the full specification, limited to the `POST /common/payments/currencies` operation.
servers:
  - url: https://demandapi.booking.com/3.2
    description: Production environment – use for live integrations.
  - url: https://demandapi-sandbox.booking.com/3.2
    description: Sandbox environment – use for testing and validation.
security:
  - BearerAuth: []
tags:
  - name: Common/payments
    x-displayName: Payments
    description: Provides generic **payment-related identifiers**, including supported currency codes, payment cards, and relevant metadata for booking flows.<br/>- Use the returned identifiers when constructing requests across all travel services API collections, including both accommodation and car rental endpoints.
x-tagGroups:
  - name: Common
    tags:
      - Common/payments
paths:
  /common/payments/currencies:
    post:
      summary: Retrieve currency codes
      description: This endpoint returns a list of currency codes and their names in the selected languages. To get the full list call the endpoint passing an empty body. <br/><br/>The currency codes returned are what is used as input and output for other endpoints.
      operationId: /common/payments/currencies
      parameters:
        - $ref: '#/components/parameters/AffiliateIdHeader'
      tags:
        - Common/payments
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/input-3'
            example:
              languages:
                - en-gb
                - zh-cn
      responses:
        '200':
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/output-7'
              example:
                request_id: 0123456789abcdef0123456789abcdef
                data:
                  - id: AED
                    name:
                      en-gb: U.A.E. dirham
                      zh-cn: 阿联酋迪拉姆
                  - ...
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: string
  parameters:
    AffiliateIdHeader:
      in: header
      name: X-Affiliate-Id
      schema:
        type: integer
      required: true
      description: Include here your Affiliate identifier number
  schemas:
    currencyId:
      description: A three-letter code that uniquely identifies a monetary currency as defined by the ISO 4217 standard. The full list can be obtained by calling <a href="/demand/docs/open-api/3.2/demand-api/commonpayments/common/payments/currencies" target="_blank">common/payments/currencies</a>.
      type:
        - string
        - 'null'
      pattern: ^[A-Z]{3}$
      example: EUR
    requestId:
      description: Uniquely identifies the request. Please provide this identifier when contacting support.
      type: string
    languageId:
      description: 'A [IETF language tag code](https://en.wikipedia.org/wiki/IETF_language_tag) that uniquely identifies a supported human language or dialect. **Note:** Demand API only accepts lowercase for the language codes. Examples: "nl" for Dutch/Nederlands or "en-us" for English (US). To retrieve the full list of supported languages, call the `/common/languages` endpoint in the same Demand API version you are using.'
      type: string
      pattern: ^[a-z]{2}(-[a-z]{2})?$
      example: en-us
    translatedString:
      title: TranslatedString
      description: A string localised in multiple languages.
      type: object
      patternProperties:
        ^[a-z]{2}(-[a-z]{2})$:
          description: The content localised in this language.
          type:
            - string
            - 'null'
    input-3:
      title: CurrenciesInput
      type: object
      properties:
        languages:
          type: array
          items:
            $ref: '#/components/schemas/languageId'
          default:
            - en-gb
    currency-2:
      title: CurrencyOutput
      description: The ISO 4217 currency code and its designation in the selected language.
      type: object
      properties:
        id:
          $ref: '#/components/schemas/currencyId'
        name:
          $ref: '#/components/schemas/translatedString'
    output-7:
      title: CurrenciesOutput
      type: object
      properties:
        request_id:
          $ref: '#/components/schemas/requestId'
        data:
          type: array
          items:
            $ref: '#/components/schemas/currency-2'
```
