Store extra data on a bank record
Use extra data to attach your application's references to a customer, account, loan or another supported bank record. For example, store a CRM customer ID or an onboarding reference without changing the record's banking fields.
Find the record
Authenticate as described in Make your first request. Use a numeric record id returned by the relevant lookup, not an account number or customer code. Ask the bank for identifiers of records your integration cannot look up.
GET /api/entity-additional-metadata/v1/supported-entity-types lists the supported record types:
| Value | Record |
|---|---|
account | Current or savings account |
customer | Individual customer |
corporate-customer | Corporate or group customer |
loan | Loan |
fixed-deposit | Fixed deposit |
casa-product | Current or savings product |
loan-product | Loan product |
fixed-deposit-product | Fixed-deposit product |
ledger | General ledger account |
placement | Investment placement |
Read the current value
The examples below use the COREWAVE_BASE_URL and COREWAVE_TOKEN variables from the first-request guide. Replace 123 with your account's numeric record ID.
export ACCOUNT_ID='123'
curl --fail-with-body \
"$COREWAVE_BASE_URL/api/entity-additional-metadata/v1/account/$ACCOUNT_ID" \
--header "Authorization: Bearer $COREWAVE_TOKEN" \
--header "request-reference: metadata-read-$(uuidgen)"
A response with existing data looks like this. Additional response fields may also be returned.
{
"status": true,
"data": {
"entityType": "account",
"entityId": 123,
"additionalMetadata": {
"crm": { "customerId": "CRM-10021" }
}
}
}
If no extra data is stored, additionalMetadata may be absent or null. Treat either result as an empty value. A 404 means the record was not found at your bank or the record type is unsupported.
Add or replace extra data
curl --fail-with-body --request PUT \
"$COREWAVE_BASE_URL/api/entity-additional-metadata/v1/account/$ACCOUNT_ID" \
--header "Authorization: Bearer $COREWAVE_TOKEN" \
--header "request-reference: metadata-save-$(uuidgen)" \
--header 'Content-Type: application/json' \
--data '{
"additionalMetadata": {
"crm": { "customerId": "CRM-10021", "segment": "priority" },
"tags": ["salary", "mobile"]
}
}'
PUT replaces the entire stored value. Read the current data and merge the fields you want to keep before sending an update. A successful response has status: true and returns the saved record in data.
The additionalMetadata value must be a JSON object or array, up to 65,536 bytes when serialized. A plain string, number, boolean or null is rejected. Nested objects and arrays are supported.
Clear the value
curl --fail-with-body --request DELETE \
"$COREWAVE_BASE_URL/api/entity-additional-metadata/v1/account/$ACCOUNT_ID" \
--header "Authorization: Bearer $COREWAVE_TOKEN" \
--header "request-reference: metadata-clear-$(uuidgen)"
DELETE removes the extra data without deleting the bank record. Read it again to confirm the result. Your credentials can only access records at your bank.
Include extra data during creation
| Operation | Fields |
|---|---|
POST /api/account/v1/createcustomeraccount | customerAdditionalMetadata, accountAdditionalMetadata |
POST /api/account/v1/createaccount | additionalMetadata |
POST /api/account/v1/creategroupcustomerinformation | additionalMetadata |
POST /api/loanaccount/v1/add | additionalMetadata |
POST /api/fixeddepositaccount/v1/add | additionalMetadata |
This complete request opens another account for an existing customer and saves your application's reference as extra data. Save it as account-with-metadata.json. Replace the customer ID, product code, branch ID and officer code using the bank's lookup results before sending.
{
"customerID": "CUSTOMER-001",
"accountName": "Ada Okafor Savings",
"productCode": "SAV001",
"branchCode": "1",
"accountOfficerStaffID": "AO001",
"additionalMetadata": {
"application": { "reference": "APP-10021" }
}
}
curl --fail-with-body --request POST \
"$COREWAVE_BASE_URL/api/account/v1/createaccount" \
--header "Authorization: Bearer $COREWAVE_TOKEN" \
--header "request-reference: account-$(uuidgen)" \
--header 'Content-Type: application/json' \
--data-binary @account-with-metadata.json
This request creates a bank account when processed. Check the response and save the returned account number. If creation is awaiting approval, wait for the live record ID before reading or changing extra data with PUT. An approval ID is not the created record's ID. After an uncertain response, search for the account or contact the bank before submitting again.