---
updatedAt: 2026-08-06T06:56:11.000Z
agentTools:
  projectIndex: https://docs.straitsx.com/llms.txt
---

# Add Funds to Cards Sub-Wallet

[Available in Production/Sandbox environment] Transfer funds from the merchant's main wallet to their Cards sub-wallet. Supports same-currency transfers and fiat-to-stablecoin 1:1 conversions.

<Callout icon="📘" theme="info">
  ### Note:

  Transfers are one-way only (main wallet → sub-wallet). Reverse transfers are not supported via this endpoint.
</Callout>

Supported Transfer Pairs:

| Source (walletSource) | Destination (currency) | Type              | Rate |
| --------------------- | ---------------------- | ----------------- | ---- |
| xsgd                  | xsgd                   | Same currency     | 1:1  |
| usdc                  | usdc                   | Same currency     | 1:1  |
| xusd                  | xusd                   | Same currency     | 1:1  |
| sgd                   | xsgd                   | Fiat → Stablecoin | 1:1  |
| usd                   | xusd                   | Fiat → Stablecoin | 1:1  |

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "straitsx-sandbox-base-url",
    "version": "1.7.0"
  },
  "servers": [
    {
      "url": "https://api-sandbox.straitsx.com/v1"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "X-XFERS-APP-API-KEY"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/sub-wallets/cards-settlement/transfers": {
      "post": {
        "summary": "Add Funds to Cards Sub-Wallet",
        "description": "[Available in Production/Sandbox environment] Transfer funds from the merchant's main wallet to their Cards sub-wallet. Supports same-currency transfers and fiat-to-stablecoin 1:1 conversions.",
        "operationId": "sub-wallets-cards-settlement-transfers",
        "parameters": [
          {
            "name": "X-XFERS-APP-API-KEY",
            "in": "header",
            "description": "You can retrieve this from your Dashboard Developer Tools.<br><br><strong>Note:</strong> The `X-XFERS-APP-API-KEY` is a mandatory header for all authentication methods, including standard API key usage and HTTP Request Signing mode.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-PUBLIC-KEY-ID",
            "in": "header",
            "description": "The Key ID, can be retrieved from your StraitsX Dashboard.<br><br><strong>Note:</strong> This header attribute is required when HTTP Request Signing is enabled for your account.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-TIMESTAMP",
            "in": "header",
            "description": "Current Unix epoch time in seconds. Must be within ±300 seconds of server time.<br><br><strong>Note:</strong> This header attribute is required when HTTP Request Signing is enabled for your account.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-NONCE",
            "in": "header",
            "description": "A unique UUID string per request, used for replay protection. Must not be reused within the timestamp window.<br>Regex: `/\\A[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\\z/i`<br><br><strong>Note:</strong> This header attribute is required when HTTP Request Signing is enabled for your account.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-SIGNATURE",
            "in": "header",
            "description": "Base64-encoded digital signature of the canonical request string.<br><br><strong>Note:</strong> This header attribute is required when HTTP Request Signing is enabled for your account.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "attributes": {
                        "type": "object",
                        "required": [
                          "amount",
                          "currency",
                          "idempotencyId"
                        ],
                        "properties": {
                          "amount": {
                            "type": "string",
                            "description": "Amount to transfer."
                          },
                          "currency": {
                            "type": "string",
                            "description": "Destination sub-wallet currency.",
                            "enum": [
                              "xsgd",
                              "usdc",
                              "xusd"
                            ]
                          },
                          "walletSource": {
                            "type": "string",
                            "description": "Source wallet currency. Use `sgd` or `usd` for fiat-to-stablecoin 1:1 conversion.<br><br><strong>Note:</strong> If omitted, defaults to the same value as `currency` (same-currency transfer).",
                            "enum": [
                              "xsgd",
                              "usdc",
                              "xusd",
                              "sgd",
                              "usd"
                            ]
                          },
                          "idempotencyId": {
                            "type": "string",
                            "description": "Unique ID for deduplication."
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "201",
            "content": {
              "application/json": {
                "examples": {
                  "Add Funds Completed": {
                    "value": "{\n    \"data\": {\n        \"id\": \"contract_abc123\",\n        \"type\": \"subWalletTransaction\",\n        \"attributes\": {\n            \"idempotencyId\": \"unique-transfer-id-123\",\n            \"transactionType\": \"add_funds\",\n            \"amount\": \"1000.00\",\n            \"currency\": \"xsgd\",\n            \"status\": \"completed\",\n            \"createdAt\": \"2026-06-01T10:00:00+08:00\",\n            \"updatedAt\": \"2026-06-01T10:00:01+08:00\"\n        }\n    }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Transaction reference ID."
                        },
                        "type": {
                          "type": "string",
                          "description": "Resource type.",
                          "example": "subWalletTransaction"
                        },
                        "attributes": {
                          "type": "object",
                          "properties": {
                            "idempotencyId": {
                              "type": "string",
                              "description": "The idempotency ID provided in the request."
                            },
                            "transactionType": {
                              "type": "string",
                              "description": "Type of transaction.",
                              "example": "add_funds"
                            },
                            "amount": {
                              "type": "string",
                              "description": "Amount transferred."
                            },
                            "currency": {
                              "type": "string",
                              "description": "Currency of the transfer."
                            },
                            "status": {
                              "type": "string",
                              "description": "Transaction status.",
                              "enum": [
                                "completed",
                                "pending",
                                "failed"
                              ]
                            },
                            "createdAt": {
                              "type": "string",
                              "description": "ISO 8601 timestamp of creation."
                            },
                            "updatedAt": {
                              "type": "string",
                              "description": "ISO 8601 timestamp of last update."
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```