---
sourceDocument: Australia API Reference
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/de-DE/api-reference

 Release :

    - australia

ft:locale :

    - de-DE

ft:publication_title :

    - Australia API Reference

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# GlideCurrencyCode - Scoped, Global

# GlideCurrencyCode - Scoped, Global {#ariaid-title1}

* Freigeben Version: Australia
* 
* Aktualisiert 12. März 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 Minute Lesedauer

The GlideCurrencyCode API provides methods to convert between ISO 4217 alphabetic and numeric codes for a currency.

Currency code information is also available in the Currency \[fx_currency\] table, but this API has built-in caching that minimizes the queries issued to fx_currency.

Use this API to work with third-party APIs that use numeric currency codes, such as credit card network systems.

This API requires the FX Currency (com.glide.currency2) plugin, which is available by default. This API is provided within the `sn_currency` namespace.

## GlideCurrencyCode - getCurrencyCode(String numberCode) {#ariaid-title2}

Returns the corresponding alphabetic currency code for a given numeric currency code.
{#GCurrencyCode-getCurrencyCode_S__table_sx5_xfp_nfc__entry__3}

| Name | Type | Description |
|-|-|-|
| numberCode | String | ISO 4217 numeric currency code. |
[Tabelle : 1. Parameters]

{#GCurrencyCode-getCurrencyCode_S__table_sx5_xfp_nfc} {#GCurrencyCode-getCurrencyCode_S__table_tx5_xfp_nfc__entry__2}

| Type | Description |
|-|-|
| String | ISO 4217 alphabetic currency code. |
[Tabelle : 2. Returns]

{#GCurrencyCode-getCurrencyCode_S__table_tx5_xfp_nfc}  
This example returns the alphabetic currency code for the given currency.

    gs.info(sn_currency.GlideCurrencyCode.getCurrencyCode("840"));

Output:

    USD

## GlideCurrencyCode - getNumericCurrencyCode(String letterCode) {#ariaid-title3}

Returns the corresponding numeric currency code for a given alphabetic currency code.
{#GCurrencyCode-getNumCurrencyCode_S__table_hmd_h2p_nfc__entry__3}{#GCurrencyCode-getNumCurrencyCode_S__lettercode-desc}

| Name | Type | Description |
|-|-|-|
| letterCode | String | ISO 4217 alphabetic currency code. |
[Tabelle : 3. Parameters]

{#GCurrencyCode-getNumCurrencyCode_S__table_hmd_h2p_nfc} {#GCurrencyCode-getNumCurrencyCode_S__table_imd_h2p_nfc__entry__2}

| Type | Description |
|-|-|
| String | ISO 4217 numeric currency code. |
[Tabelle : 4. Returns]

{#GCurrencyCode-getNumCurrencyCode_S__table_imd_h2p_nfc}  
This example returns the numeric currency code for United States dollars (USD).

    gs.info(sn_currency.GlideCurrencyCode.getNumericCurrencyCode("USD"));

Output:

    840


