---
updatedAt: 2026-04-30T04:07:50.000Z
agentTools:
  projectIndex: https://docs.straitsx.com/llms.txt
---

# Create a bank account

[Available in Production/Sandbox environment] Add a new bank account to the user's StraitsX account. Supports both Singapore and overseas bank accounts.

# 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": {
    "/withdrawals/bank-accounts": {
      "post": {
        "summary": "Create a bank account",
        "description": "[Available in Production/Sandbox environment] Add a new bank account to the user's StraitsX account. Supports both Singapore and overseas bank accounts.",
        "operationId": "create-a-bank-account",
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "Singapore Bank Account": {
                  "value": "{\n  \"data\": {\n    \"attributes\": {\n      \"accountNo\": \"0123456789\",\n      \"accountHolderName\": \"JOHN DOE\",\n      \"bank\": \"DBS\"\n    }\n  }\n}"
                },
                "Overseas Bank Account": {
                  "value": "{\n  \"data\": {\n    \"attributes\": {\n      \"accountNo\": \"0123456789\",\n      \"accountHolderName\": \"JOHN DOE\",\n      \"swiftBic\": \"CHASUS33\",\n      \"intermediarySwiftBic\": \"CITIUS33\",\n      \"routingCode\": \"026009593\",\n      \"bankName\": \"Chase Bank\",\n      \"billingAddress\": {\n        \"country\": \"US\",\n        \"line1\": \"123 Main Street\",\n        \"line2\": \"Apt 4B\",\n        \"city\": \"New York\",\n        \"postalCode\": \"10001\"\n      }\n    }\n  }\n}"
                }
              },
              "schema": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "attributes": {
                        "type": "object",
                        "properties": {
                          "accountNo": {
                            "type": "string",
                            "description": "Bank account number"
                          },
                          "accountHolderName": {
                            "type": "string",
                            "description": "Name of the bank account holder"
                          },
                          "bank": {
                            "type": "string",
                            "description": "Bank abbreviation"
                          },
                          "swiftBic": {
                            "type": "string",
                            "description": "Bank SWIFT/BIC code.<br>Regex: `/^[A-Z]{6}[A-Z0-9]{2}[A-Z0-9]{3}$/`<br><br><strong>Note:</strong> Must be uppercase"
                          },
                          "intermediarySwiftBic": {
                            "type": "string",
                            "description": "Intermediary SWIFT code.<br>Regex: `/^[A-Z]{6}[A-Z0-9]{2}[A-Z0-9]{3}$/`<br><br><strong>Note:</strong> Must be uppercase"
                          },
                          "routingCode": {
                            "type": "string",
                            "description": "Routing code"
                          },
                          "bankName": {
                            "type": "string",
                            "description": "Bank name"
                          },
                          "billingAddress": {
                            "type": "object",
                            "description": "Billing address",
                            "properties": {
                              "country": {
                                "type": "string",
                                "description": "Country code"
                              },
                              "line1": {
                                "type": "string",
                                "description": "Address line 1"
                              },
                              "line2": {
                                "type": "string",
                                "description": "Address line 2"
                              },
                              "line3": {
                                "type": "string",
                                "description": "Address line 3"
                              },
                              "city": {
                                "type": "string",
                                "description": "City"
                              },
                              "postalCode": {
                                "type": "string",
                                "description": "Postal code"
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "201",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"data\": {\n    \"id\": \"bank_account_6f0a69c0-1837-4968-9866-e32389c1234\",\n    \"type\": \"bankAccount\",\n    \"attributes\": {\n      \"accountHolderName\": \"JOHN DOE\",\n      \"accountNo\": \"0123456789\",\n      \"routingCode\": null,\n      \"bank\": \"DBS\",\n      \"swiftBic\": \"DBSSSGSGXXX\",\n      \"intermediarySwiftBic\": null,\n      \"status\": \"pending\",\n      \"createdAt\": \"2025-03-05T11:43:41.866+08:00\",\n      \"updatedAt\": \"2025-03-05T11:43:41.866+08:00\"\n    }\n  }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "example": "bank_account_6f0a69c0-1837-4968-9866-e32389c1234",
                          "description": "Bank account ID."
                        },
                        "type": {
                          "type": "string",
                          "example": "bankAccount",
                          "description": "Request type."
                        },
                        "attributes": {
                          "type": "object",
                          "properties": {
                            "accountHolderName": {
                              "type": "string",
                              "example": "JOHN DOE",
                              "description": "Name of the bank account holder."
                            },
                            "accountNo": {
                              "type": "string",
                              "example": "0123456789",
                              "description": "Bank account number."
                            },
                            "routingCode": {
                              "description": "Routing code."
                            },
                            "bank": {
                              "type": "string",
                              "example": "DBS",
                              "description": "Bank abbreviation."
                            },
                            "swiftBic": {
                              "type": "string",
                              "example": "DBSSSGSGXXX",
                              "description": "Bank SWIFT/BIC code."
                            },
                            "intermediarySwiftBic": {
                              "description": "Intermediary SWIFT code."
                            },
                            "status": {
                              "type": "string",
                              "example": "pending",
                              "description": "Bank account status."
                            },
                            "createdAt": {
                              "type": "string",
                              "example": "2025-03-05T11:43:41.866+08:00",
                              "description": "Timestamp when the bank account was created."
                            },
                            "updatedAt": {
                              "type": "string",
                              "example": "2025-03-05T11:43:41.866+08:00",
                              "description": "Timestamp when the bank account was last updated."
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false,
        "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"
            }
          }
        ]
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```