{
  "info": {
    "_postman_id": "99e09dc8-eee9-45cd-a06b-b604c5e3f094",
    "name": "BitGo Stablecoins",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "item": [
    {
      "name": "Minting & Redemption Services Terms",
      "item": [
        {
          "name": "1. Review Terms",
          "request": {
            "auth": {
              "type": "noauth"
            },
            "method": "GET",
            "header": [],
            "description": "Review the [BitGo Coin Minting &amp; Redemption Services Terms](https://www.bitgo.com/legal/bitgo-coin-minting-services-terms/) in full. [Crypto-as-a-Service (CaaS)](https://developers.bitgo.com/docs/crypto-as-a-service-overview) clients should present the full terms to their end users.\n\nUse the link above to retrieve the terms verbiage, as no API endpoint currently exists to fetch them programmatically."
          },
          "response": []
        },
        {
          "name": "2. Check Terms Status",
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{ACCESS_TOKEN}}",
                  "type": "string"
                }
              ]
            },
            "method": "GET",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "http://{{BITGO_EXPRESS_HOST}}/api/v2/enterprise/{{ENTERPRISE_ID}}",
              "protocol": "http",
              "host": [
                "{{BITGO_EXPRESS_HOST}}"
              ],
              "path": [
                "api",
                "v2",
                "enterprise",
                "{{ENTERPRISE_ID}}"
              ]
            },
            "description": "Retrieve the enterprise details to check whether your enterprise has accepted the minting services terms. If `stablecoinAgreement` is absent or empty, proceed to Step 3 to accept the terms."
          },
          "response": []
        },
        {
          "name": "3. Accept the Terms",
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{ACCESS_TOKEN}}",
                  "type": "string"
                }
              ]
            },
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"version\": {{STABLECOIN_AGREEMENT_LATEST_VERSION}}\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://app.bitgo-{{BITGO_ENV}}.com/api/stablecoin/v1/enterprise/{{ENTERPRISE_ID}}/agreement",
              "protocol": "https",
              "host": [
                "app",
                "bitgo-{{BITGO_ENV}}",
                "com"
              ],
              "path": [
                "api",
                "stablecoin",
                "v1",
                "enterprise",
                "{{ENTERPRISE_ID}}",
                "agreement"
              ]
            },
            "description": "When you accept the terms on behalf of your enterprise, the `version` field must match the current version of the terms. You can retrieve the latest version from the `stablecoinAgreementLatestVersion` field in the enterprise details response in Step 2."
          },
          "response": []
        }
      ]
    },
    {
      "name": "Mint Stablecoins",
      "item": [
        {
          "name": "1. List Available Stablecoins",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "const assets = pm.response.json();",
                  "",
                  "// Find the USD backing asset (fiat)",
                  "const usdAsset = assets.find(a => a.token === 'tfiatusd');",
                  "",
                  "// Find the stablecoin (e.g. tbsc:usd1 or hteth:gousd) - adjust token name as needed",
                  "const stablecoinAsset = assets.find(a => a.backingAsset === 'tfiatusd' && a.token === 'tbsc:usd1');",
                  "",
                  "if (usdAsset) {",
                  "  pm.collectionVariables.set('USD_ASSET_ID', usdAsset.id);",
                  "  pm.collectionVariables.set('DECIMALS', usdAsset.decimals);",
                  "  console.log('USD Asset ID:', usdAsset.id);",
                  "  console.log('Decimals:', usdAsset.decimals);",
                  "} else {",
                  "  console.warn('USD asset not found - check token name in script');",
                  "}",
                  "",
                  "if (stablecoinAsset) {",
                  "  pm.collectionVariables.set('STABLECOIN_ASSET_ID', stablecoinAsset.id);",
                  "  pm.collectionVariables.set('STABLECOIN_TOKEN', stablecoinAsset.token);",
                  "  pm.collectionVariables.set('TREASURY_WALLET_ID', stablecoinAsset.treasuryAccountWalletId);",
                  "  console.log('Stablecoin Asset ID:', stablecoinAsset.id);",
                  "  console.log('Treasury Wallet ID:', stablecoinAsset.treasuryAccountWalletId);",
                  "} else {",
                  "  console.warn('Stablecoin asset not found - check token name in script');",
                  "}",
                  "",
                  "pm.test('Response is 200', () => pm.response.to.have.status(200));",
                  "pm.test('Assets returned', () => pm.expect(assets).to.be.an('array').that.is.not.empty);"
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{ACCESS_TOKEN}}"
              }
            ],
            "url": {
              "raw": "https://app.bitgo-{{BITGO_ENV}}.com/api/stablecoin/v1/assets",
              "protocol": "https",
              "host": [
                "app",
                "bitgo-{{BITGO_ENV}}",
                "com"
              ],
              "path": [
                "api",
                "stablecoin",
                "v1",
                "assets"
              ]
            },
            "description": "Lists all supported stablecoins. Saves USD asset ID, stablecoin asset ID, decimals, and treasury wallet ID for use in later steps."
          },
          "response": []
        },
        {
          "name": "2. Calculate Mint Amount (Pre-request only)",
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "exec": [
                  "// Calculate base units from full units and decimals",
                  "const amount = parseFloat(pm.collectionVariables.get('AMOUNT_IN_FULL_UNITS'));",
                  "const decimals = parseInt(pm.collectionVariables.get('DECIMALS'));",
                  "",
                  "if (isNaN(amount) || isNaN(decimals)) {",
                  "  console.error('Missing AMOUNT_IN_FULL_UNITS or DECIMALS. Run Step 1 first.');",
                  "} else {",
                  "  const baseUnits = Math.round(amount * Math.pow(10, decimals)).toString();",
                  "  pm.collectionVariables.set('AMOUNT_BASE_UNITS', baseUnits);",
                  "  console.log(`${amount} USD × 10^${decimals} = ${baseUnits} base units`);",
                  "}"
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            },
            {
              "listen": "test",
              "script": {
                "exec": [
                  "const baseUnits = pm.collectionVariables.get('AMOUNT_BASE_UNITS');",
                  "pm.test('AMOUNT_BASE_UNITS calculated', () => {",
                  "  pm.expect(baseUnits).to.not.be.empty;",
                  "  console.log('Amount in base units:', baseUnits);",
                  "});"
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "https://postman-echo.com/get?step=calculate",
              "protocol": "https",
              "host": [
                "postman-echo",
                "com"
              ],
              "path": [
                "get"
              ],
              "query": [
                {
                  "key": "step",
                  "value": "calculate"
                }
              ]
            },
            "description": "This step performs no real API call. It uses the Pre-request Script to calculate AMOUNT_BASE_UNITS from AMOUNT_IN_FULL_UNITS and DECIMALS, then stores the result as a collection variable for use in Step 3."
          },
          "response": []
        },
        {
          "name": "3. Create Mint Order",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "const res = pm.response.json();",
                  "",
                  "pm.test('Order created', () => pm.response.to.have.status(200));",
                  "pm.test('Order has ID', () => pm.expect(res.id).to.not.be.empty);",
                  "",
                  "if (res.id) {",
                  "  pm.collectionVariables.set('ORDER_ID', res.id);",
                  "  console.log('Order ID (use as sequenceId):', res.id);",
                  "  console.log('Order status:', res.status);",
                  "}"
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{ACCESS_TOKEN}}"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"sourceWalletId\": \"{{WALLET_ID}}\",\n  \"destinationWalletId\": \"{{WALLET_ID}}\",\n  \"destinationType\": \"go_account\",\n  \"fromAssetId\": \"{{USD_ASSET_ID}}\",\n  \"toAssetId\": \"{{STABLECOIN_ASSET_ID}}\",\n  \"fromAmount\": \"{{AMOUNT_BASE_UNITS}}\",\n  \"type\": \"mint\"\n}"
            },
            "url": {
              "raw": "https://app.bitgo-{{BITGO_ENV}}.com/api/stablecoin/v1/enterprise/{{ENTERPRISE_ID}}/order",
              "protocol": "https",
              "host": [
                "app",
                "bitgo-{{BITGO_ENV}}",
                "com"
              ],
              "path": [
                "api",
                "stablecoin",
                "v1",
                "enterprise",
                "{{ENTERPRISE_ID}}",
                "order"
              ]
            },
            "description": "Creates a pending mint order. The returned order ID is saved as ORDER_ID and used as the sequenceId in Step 4."
          },
          "response": []
        },
        {
          "name": "4. Transfer USD to BitGo (via BitGo Express)",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  ""
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{ACCESS_TOKEN}}"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"address\": \"{{TREASURY_WALLET_ID}}\",\n  \"amount\": \"{{AMOUNT_BASE_UNITS}}\",\n  \"walletPassphrase\": \"{{WALLET_PASSPHRASE}}\",\n  \"sequenceId\": \"{{ORDER_ID}}\"\n}"
            },
            "url": {
              "raw": "http://{{BITGO_EXPRESS_HOST}}/api/v2/{{COIN}}/wallet/{{WALLET_ID}}/sendcoins",
              "protocol": "http",
              "host": [
                "{{BITGO_EXPRESS_HOST}}"
              ],
              "path": [
                "api",
                "v2",
                "{{COIN}}",
                "wallet",
                "{{WALLET_ID}}",
                "sendcoins"
              ]
            },
            "description": "Sends USD from your wallet to BitGo's treasury wallet. Requires BitGo Express running locally. The sequenceId links this transfer to the mint order created in Step 3.\n\n⚠️ IMPORTANT: Replace 'ofctusd' in the URL with the correct coin for your asset."
          },
          "response": []
        },
        {
          "name": "5. Check Order Status",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  ""
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{ACCESS_TOKEN}}"
              }
            ],
            "url": {
              "raw": "https://app.bitgo-{{BITGO_ENV}}.com/api/stablecoin/v1/enterprise/{{ENTERPRISE_ID}}/orders/{{ORDER_ID}}",
              "protocol": "https",
              "host": [
                "app",
                "bitgo-{{BITGO_ENV}}",
                "com"
              ],
              "path": [
                "api",
                "stablecoin",
                "v1",
                "enterprise",
                "{{ENTERPRISE_ID}}",
                "orders",
                "{{ORDER_ID}}"
              ]
            },
            "description": "Polls the status of the mint order. Expected final status is 'fulfilled'. You may need to call this multiple times while the order processes."
          },
          "response": []
        }
      ]
    },
    {
      "name": "Burn Stablecoins",
      "item": [
        {
          "name": "1. List Available Stablecoins",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "const assets = pm.response.json();",
                  "",
                  "// Find the USD backing asset (fiat)",
                  "const usdAsset = assets.find(a => a.token === 'tfiatusd');",
                  "",
                  "// Find the stablecoin to burn - adjust token name to match your asset",
                  "const stablecoinAsset = assets.find(a => a.token === 'tbsc:usd1');",
                  "",
                  "if (usdAsset) {",
                  "  pm.collectionVariables.set('USD_ASSET_ID', usdAsset.id);",
                  "  console.log('USD Asset ID:', usdAsset.id);",
                  "} else {",
                  "  console.warn('USD asset not found - check token name in script');",
                  "}",
                  "",
                  "if (stablecoinAsset) {",
                  "  pm.collectionVariables.set('STABLECOIN_ASSET_ID', stablecoinAsset.id);",
                  "  pm.collectionVariables.set('STABLECOIN_TOKEN', stablecoinAsset.token);",
                  "  pm.collectionVariables.set('STABLECOIN_DECIMALS', stablecoinAsset.decimals);",
                  "  pm.collectionVariables.set('TREASURY_WALLET_ID', stablecoinAsset.treasuryAccountWalletId);",
                  "  console.log('Stablecoin Asset ID:', stablecoinAsset.id);",
                  "  console.log('Stablecoin Token:', stablecoinAsset.token);",
                  "  console.log('Stablecoin Decimals:', stablecoinAsset.decimals);",
                  "  console.log('Treasury Wallet ID:', stablecoinAsset.treasuryAccountWalletId);",
                  "} else {",
                  "  console.warn('Stablecoin asset not found - check token name in script');",
                  "}"
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{ACCESS_TOKEN}}"
              }
            ],
            "url": {
              "raw": "https://app.bitgo-{{BITGO_ENV}}.com/api/stablecoin/v1/assets",
              "protocol": "https",
              "host": [
                "app",
                "bitgo-{{BITGO_ENV}}",
                "com"
              ],
              "path": [
                "api",
                "stablecoin",
                "v1",
                "assets"
              ]
            },
            "description": "Lists all supported stablecoins. Saves the stablecoin asset ID, USD asset ID, stablecoin decimals, and treasury wallet ID.\n\n⚠️ NOTE: In the post-response script below, update the token names to match the stablecoin you want to burn (e.g. 'tbsc:usd1' or 'hteth:gousd')."
          },
          "response": []
        },
        {
          "name": "2. Get Treasury Wallet ID (Info Only)",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "const treasuryId = pm.collectionVariables.get('TREASURY_WALLET_ID');",
                  "",
                  "pm.test('Treasury Wallet ID is set', () => {",
                  "  pm.expect(treasuryId).to.not.be.empty;",
                  "  console.log('Treasury Wallet ID confirmed:', treasuryId);",
                  "});"
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{ACCESS_TOKEN}}"
              }
            ],
            "url": {
              "raw": "https://app.bitgo-{{BITGO_ENV}}.com/api/stablecoin/v1/assets",
              "protocol": "https",
              "host": [
                "app",
                "bitgo-{{BITGO_ENV}}",
                "com"
              ],
              "path": [
                "api",
                "stablecoin",
                "v1",
                "assets"
              ]
            },
            "description": "This step is informational — it confirms your TREASURY_WALLET_ID was captured correctly from Step 1. The treasuryAccountWalletId from the stablecoin asset object is the burn destination address used in Step 5.\n\nIf TREASURY_WALLET_ID is already populated from Step 1, you can skip this step."
          },
          "response": []
        },
        {
          "name": "3. Calculate Burn Amount (Pre-request only)",
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// NOTE: For burn, use STABLECOIN decimals (e.g. 6 or 18), NOT USD decimals (2)",
                  "const amount = parseFloat(pm.collectionVariables.get('AMOUNT_IN_FULL_UNITS'));",
                  "const decimals = parseInt(pm.collectionVariables.get('STABLECOIN_DECIMALS'));",
                  "",
                  "if (isNaN(amount) || isNaN(decimals)) {",
                  "  console.error('Missing AMOUNT_IN_FULL_UNITS or STABLECOIN_DECIMALS. Run Steps 1-2 first.');",
                  "} else {",
                  "  const baseUnits = Math.round(amount * Math.pow(10, decimals)).toString();",
                  "  pm.collectionVariables.set('AMOUNT_BASE_UNITS', baseUnits);",
                  "  console.log(`${amount} tokens × 10^${decimals} = ${baseUnits} base units`);",
                  "}"
                ]
              }
            },
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "const baseUnits = pm.collectionVariables.get('AMOUNT_BASE_UNITS');",
                  "pm.test('AMOUNT_BASE_UNITS calculated', () => {",
                  "  pm.expect(baseUnits).to.not.be.empty;",
                  "  console.log('Burn amount in base units:', baseUnits);",
                  "});"
                ]
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "https://postman-echo.com/get?step=calculate-burn",
              "protocol": "https",
              "host": [
                "postman-echo",
                "com"
              ],
              "path": [
                "get"
              ],
              "query": [
                {
                  "key": "step",
                  "value": "calculate-burn"
                }
              ]
            },
            "description": "No real API call. The Pre-request Script calculates AMOUNT_BASE_UNITS using the stablecoin's decimals (NOT the USD decimals — stablecoins commonly use 6 or 18 decimal places).\n\nExample: 100 tokens × 10^6 = 100,000,000 base units"
          },
          "response": []
        },
        {
          "name": "4. Create Burn Order",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "const res = pm.response.json();",
                  "",
                  "pm.test('Burn order created', () => pm.response.to.have.status(200));",
                  "pm.test('Order has ID', () => pm.expect(res.id).to.not.be.empty);",
                  "",
                  "if (res.id) {",
                  "  pm.collectionVariables.set('ORDER_ID', res.id);",
                  "  console.log('Order ID (use as sequenceId):', res.id);",
                  "  console.log('Order status:', res.status);",
                  "  console.log('From amount:', res.fromAmount);",
                  "}"
                ]
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{ACCESS_TOKEN}}"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"sourceWalletId\": \"{{WALLET_ID}}\",\n  \"destinationWalletId\": \"{{WALLET_ID}}\",\n  \"destinationType\": \"go_account\",\n  \"fromAssetId\": \"{{STABLECOIN_ASSET_ID}}\",\n  \"toAssetId\": \"{{USD_ASSET_ID}}\",\n  \"fromAmount\": \"{{AMOUNT_BASE_UNITS}}\",\n  \"type\": \"burn\"\n}"
            },
            "url": {
              "raw": "https://app.bitgo-{{BITGO_ENV}}.com/api/stablecoin/v1/enterprise/{{ENTERPRISE_ID}}/order",
              "protocol": "https",
              "host": [
                "app",
                "bitgo-{{BITGO_ENV}}",
                "com"
              ],
              "path": [
                "api",
                "stablecoin",
                "v1",
                "enterprise",
                "{{ENTERPRISE_ID}}",
                "order"
              ]
            },
            "description": "Creates a pending burn order. Key difference from mint: fromAssetId is the STABLECOIN and toAssetId is USD (reversed from mint). The returned order ID is saved as ORDER_ID and used as the sequenceId in Step 5."
          },
          "response": []
        },
        {
          "name": "5. Transfer Stablecoin to BitGo (via BitGo Express)",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  ""
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{ACCESS_TOKEN}}"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"address\": \"{{TREASURY_WALLET_ID}}\",\n  \"amount\": \"{{AMOUNT_BASE_UNITS}}\",\n  \"walletPassphrase\": \"{{WALLET_PASSPHRASE}}\",\n  \"sequenceId\": \"{{ORDER_ID}}\"\n}"
            },
            "url": {
              "raw": "http://{{BITGO_EXPRESS_HOST}}/api/v2/ofctbsc:usd1/wallet/{{WALLET_ID}}/sendcoins",
              "protocol": "http",
              "host": [
                "{{BITGO_EXPRESS_HOST}}"
              ],
              "path": [
                "api",
                "v2",
                "ofctbsc:usd1",
                "wallet",
                "{{WALLET_ID}}",
                "sendcoins"
              ]
            },
            "description": "Sends stablecoins from your wallet to BitGo's treasury wallet to be burned. Requires BitGo Express running locally.\n\n⚠️ IMPORTANT: Update the coin in the URL path ('ofctbsc:usd1') to match your stablecoin token.\n- For tbsc:usd1 → ofctbsc:usd1\n- For hteth:gousd → ofchteth:gousd"
          },
          "response": []
        },
        {
          "name": "6. Check Order Status",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  ""
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{ACCESS_TOKEN}}"
              }
            ],
            "url": {
              "raw": "https://app.bitgo-{{BITGO_ENV}}.com/api/stablecoin/v1/enterprise/{{ENTERPRISE_ID}}/orders/{{ORDER_ID}}",
              "protocol": "https",
              "host": [
                "app",
                "bitgo-{{BITGO_ENV}}",
                "com"
              ],
              "path": [
                "api",
                "stablecoin",
                "v1",
                "enterprise",
                "{{ENTERPRISE_ID}}",
                "orders",
                "{{ORDER_ID}}"
              ]
            },
            "description": "Polls the status of the burn order. Burn orders typically fulfill in under 2 hours, though high-value orders may take longer.\n\nExpected status progression:\ncreated → confirmed_token_deposit → triggering_burn → completed_burn → approved_client_disbursal → initiated_client_disbursal → fulfilled"
          },
          "response": []
        }
      ],
      "auth": {
        "type": "bearer"
      },
      "event": [
        {
          "listen": "prerequest",
          "script": {
            "type": "text/javascript",
            "packages": {},
            "requests": {},
            "exec": [
              ""
            ]
          }
        },
        {
          "listen": "test",
          "script": {
            "type": "text/javascript",
            "packages": {},
            "requests": {},
            "exec": [
              ""
            ]
          }
        }
      ]
    },
    {
      "name": "List stablecoins by enterprise",
      "request": {
        "auth": {
          "type": "bearer",
          "bearer": [
            {
              "key": "token",
              "value": "{{ACCESS_TOKEN}}",
              "type": "string"
            }
          ]
        },
        "method": "GET",
        "header": [
          {
            "key": "Accept",
            "value": "application/json",
            "type": "text"
          }
        ],
        "url": {
          "raw": "https://app.bitgo-{{BITGO_ENV}}.com/api/stablecoin/v1/enterprise/{{ENTERPRISE_ID}}/orders",
          "protocol": "https",
          "host": [
            "app",
            "bitgo-{{BITGO_ENV}}",
            "com"
          ],
          "path": [
            "api",
            "stablecoin",
            "v1",
            "enterprise",
            "{{ENTERPRISE_ID}}",
            "orders"
          ]
        },
        "description": "Retrieves a list of orders for a specific enterprise."
      },
      "response": []
    }
  ],
  "auth": {
    "type": "bearer"
  },
  "event": [
    {
      "listen": "prerequest",
      "script": {
        "type": "text/javascript",
        "packages": {},
        "requests": {},
        "exec": [
          ""
        ]
      }
    },
    {
      "listen": "test",
      "script": {
        "type": "text/javascript",
        "packages": {},
        "requests": {},
        "exec": [
          ""
        ]
      }
    }
  ],
  "variable": [
    {
      "key": "BITGO_ENV",
      "value": "test",
      "description": "Use 'test' or 'prod'"
    },
    {
      "key": "ACCESS_TOKEN",
      "value": "<YOUR_ACCESS_TOKEN>"
    },
    {
      "key": "ENTERPRISE_ID",
      "value": "<YOUR_ENTERPRISE_ID>"
    },
    {
      "key": "WALLET_ID",
      "value": "<YOUR_WALLET_ID>"
    },
    {
      "key": "WALLET_PASSPHRASE",
      "value": "<YOUR_WALLET_PASSPHRASE>"
    },
    {
      "key": "BITGO_EXPRESS_HOST",
      "value": "localhost:3080",
      "description": "Your BitGo Express local host"
    },
    {
      "key": "AMOUNT_IN_FULL_UNITS",
      "value": "100",
      "description": "e.g. 100 USD"
    },
    {
      "key": "USD_ASSET_ID",
      "value": "",
      "description": "USD asset token (testnet)"
    },
    {
      "key": "STABLECOIN_ASSET_ID",
      "value": "",
      "description": "Stablecoin to mint/burn (testnet)"
    },
    {
      "key": "OFC_USD_COIN",
      "value": "",
      "description": "OFC USD for transfers"
    },
    {
      "key": "STABLECOIN_TOKEN",
      "value": "",
      "description": "OFC stablecoin for transfers"
    },
    {
      "key": "DECIMALS",
      "value": "",
      "description": "Populated by Step 1 script"
    },
    {
      "key": "AMOUNT_BASE_UNITS",
      "value": "",
      "description": "Populated by Step 2 script"
    },
    {
      "key": "ORDER_ID",
      "value": "",
      "description": "Populated by Step 3 script"
    },
    {
      "key": "TREASURY_WALLET_ID",
      "value": ""
    },
    {
      "key": "STABLECOIN_AGREEMENT_LATEST_VERSION",
      "value": ""
    }
  ]
}