Manage Recipients

Save the bank accounts your business pays, find them again, and keep them up to date.

A recipient is a bank account your business pays, saved once and reused. An expense names the recipient it pays by recipientId, so create the recipient first. Recipients are stored per business and per mode: one created with a test key does not exist for a live key.

Creating, updating, deactivating, and reactivating recipients needs local payments on your business's plan, or the call returns 403.

Recipient types

recipientType decides which fields a recipient needs:

TypeAlso required
individualbankCode and bankName
employeeNothing beyond the common fields
othersNothing beyond the common fields
businessemail, phoneNumber, firstName and lastName of a contact, companyName, companyDetails, and shippingAddress. Outside NGN, also bankName, and outside NGN and ZAR, foreignBank

Every recipient needs recipientType, currency, accountName, and accountNumber. The Create a recipient reference lists every field, including the optional ones.

Creating a recipient

Look up the bank's code with Fetch banks, then make a request to the Create a recipient endpoint:

curl --request POST \
  --url https://spend-api.tryduplo.com/api/v1/recipients \
  --header 'Authorization: Bearer <your-api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
    "recipientType": "individual",
    "currency": "NGN",
    "bankCode": "000013",
    "bankName": "Guaranty Trust Bank",
    "accountNumber": "0123456789",
    "accountName": "Ada Obi",
    "email": "ada.obi@example.com"
  }'

Duplo checks an NGN account with the bank before saving it, and stores the account name and bank name the bank returns rather than the ones you sent. If the bank cannot confirm the account, the call returns 422 with Account number verification failed, try again later.

The response carries the saved recipient. Keep its id: that is the recipientId you send when raising an expense. The sample below is abbreviated:

JSON
{
  "statusCode": 201,
  "message": "Recipient created successfully",
  "data": {
    "id": "98d34e0c-69dc-4683-9bbe-6e6921ed155c",
    "recipientReference": "REC_4B7K2Q9X1M3P",
    "recipientType": "individual",
    "currency": "NGN",
    "accountName": "ADA OBI",
    "accountNumber": "0123456789",
    "bankName": "Guaranty Trust Bank",
    "bankCode": "000013",
    "isActive": true,
    "createdAt": "2026-11-16T09:12:40.118Z",
    "updatedAt": "2026-11-16T09:12:40.118Z"
  }
}

A business can save each account only once per currency and mode. Creating the same account again returns 409 with Recipient already exists in this business.

Finding recipients

List recipients returns one page of your saved recipients, with the same data and meta layout as other lists. Every filter is optional:

ParameterUse
searchTermText to search for
recipientTypeOne type, such as individual
currencyOne currency, or several separated by commas, such as NGN,USD
isActivetrue for active recipients, false for deactivated ones
sortField names to order by, separated by commas. Prefix a name with - for descending order
page, limitThe page to return and its size

When you already have an id, Get a recipient returns that one record. An id from another business returns 404.

Updating a recipient

Update a recipient changes only the fields you send. Changing an NGN account's number or bank checks the new account with the bank again, the same way as on create, and moving it onto an account another recipient already has returns 409 with recipient already added in the business.

Deactivating a recipient

Deactivate a recipient keeps the record but takes it out of use: raising an expense for it returns 422 with Recipient is deactivated. Reactivate a recipient brings it back. The same scope, recipients:deactivate, covers both.

How is this guide?

Last updated on

On this page

Need help? Visit our help center