Onerway
POST

Open currency account

Use this endpoint to request a currency account for a user in the specified currency.

Request

apiKey
API key assigned for Embedded Finance API access.
Example:
Content-Type
Request content type.
Example:
userId
ID of the user for whom the currency account is opened.
Example:
currencyCode
Currency code of the account to open.
Example:

Request example

curl -X POST 'https://sandbox-baas.onerway.com/embedded-finance/api/v2/currency-accounts/open' \
  -H 'apiKey: replace_with_api_key' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "userId": 123456789,
  "currencyCode": "GBP"
}'

Response

respCode
Response code returned by Onerway. 20000 indicates success.
Example:
respMsg
Human-readable response message.
Example:
data
Response data; null in the success example.

Response example

{
  "respCode": "20000",
  "respMsg": "Success",
  "data": null
}
No error responses are documented for this endpoint.