---
title: "Upsert an expense wallet mapping"
method: PUT
path: "/v1/expense_wallet_mappings"
tags: ["Expense Wallet Mappings"]
---

# Upsert an expense wallet mapping

`PUT /v1/expense_wallet_mappings`

## Request

- Base URL: `https://api.paymongo.com`
- URL: `https://api.paymongo.com/v1/expense_wallet_mappings`
- Auth: HTTP basic

Creates or updates the employee wallet destination for an organization.

## Request body

- UpsertExpenseWalletMappingRequest
  - `destination_account_name` string, required
  - `destination_account_number` string, required
  - `employee_email` string, required
  - `wallet_id` string, required

## Response `200`

Wallet mapping saved

- object: Standard response containing data and its metadata if any
  - `approved_count` integer
  - `approved_total_amount` integer
  - `data` ExpenseWalletMappingResource
    - `created_at` string
    - `destination_account_name` string
    - `destination_account_number` string
    - `employee_email` string
    - `id` string
    - `is_active` boolean
    - `org_id` string
    - `type` string
    - `updated_at` string
    - `wallet_id` string
  - `has_more` boolean
  - `pending_count` integer
  - `rejected_count` integer
  - `total_amount` integer

## Other responses

- `400`: Invalid wallet mapping data
- `401`: Missing or invalid secret key
- `500`: Internal server error

---

[API](https://skmtc.dev/paymongo/apis/expense-api.md) - [All operations](https://skmtc.dev/paymongo/apis/expense-api/llms.txt) - [OpenAPI document](https://skmtc.dev/paymongo/apis/expense-api/revisions/521ade5edadd?raw)
