POST
Open currency account
Use this endpoint to request a currency account for a user in the specified currency.
Request
apiKeyAPI key assigned for Embedded Finance API access.
Example:
replace_with_api_keyContent-TypeRequest content type.
Example:
application/jsonuserIdID of the user for whom the currency account is opened.
Example:
123456789currencyCodeCurrency code of the account to open.
Example:
GBPcurl -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
respCodeResponse code returned by Onerway.
20000 indicates success.Example:
20000respMsgHuman-readable response message.
Example:
SuccessdataResponse data; null in the success example.
{
"respCode": "20000",
"respMsg": "Success",
"data": null
}No error responses are documented for this endpoint.