Skip to main content
POST
/
WaasCore
/
api
/
v1
/
wallets
/
add-closed-wallet
Create Closed Wallet
curl --request POST \
  --url https://waas-staging.embedly.ng/WaasCore/api/v1/wallets/add-closed-wallet \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "firstName": "<string>",
  "lastName": "<string>",
  "mobileNumber": "<string>",
  "emailAddress": "<string>",
  "currencyId": "<string>",
  "alias": "<string>"
}
'
{
  "code": "00",
  "success": true,
	"message": "Created successfully.",
    "data": {
        "customerId": "655b19af-68f5-11f1-869b-02789e000022",
        "firstName": "Tari",
        "lastName": "Hilson",
        "accountNumber": "9710050219",
        "walletName": "Tari Hilson",
        "walletId": "655bdfed-68f5-11f1-869b-02789e000022",
        "currencyId": "fd5e474d-bb42-4db1-ab74-e8d2a01047e9"
    }
}

Request Body

firstName
string
required
Example: “John”
lastName
string
required
Example: “Doe”
mobileNumber
string
Example: “08012345678” Optional. However, when passed, must be unique
emailAddress
string
Example:john.doe@abc.comOptional. However, when passed, must be unique
currencyId
string
ID of the currency for this wallet. (Must be a UUID) Example: “3fa85f64-5717-4562-b3fc-2c963f66afa6” The value should be gotten from the get currency endpoint in the wallet utils section
alias
string
Example: “Johny Boy” This is an optional field
{
  "code": "00",
  "success": true,
	"message": "Created successfully.",
    "data": {
        "customerId": "655b19af-68f5-11f1-869b-02789e000022",
        "firstName": "Tari",
        "lastName": "Hilson",
        "accountNumber": "9710050219",
        "walletName": "Tari Hilson",
        "walletId": "655bdfed-68f5-11f1-869b-02789e000022",
        "currencyId": "fd5e474d-bb42-4db1-ab74-e8d2a01047e9"
    }
}