---
title: "Set default payment methods"
method: POST
path: "/appMarket/v2/paymentMethods/defaults"
tags: ["Payment Methods"]
---

# Set default payment methods

`POST /appMarket/v2/paymentMethods/defaults`

## Request

- Base URL: `https://marketplace.appdirect.com/api`
- URL: `https://marketplace.appdirect.com/api/appMarket/v2/paymentMethods/defaults`
- Auth: none declared
- TypeScript: <https://skmtc.dev/appdirect/apis/companies/docs/appMarket/v2/paymentMethods/defaults/post.ts> (a function with typed inputs; its response is checked against the schema)

Sets a default payment method for the specified user

## Request body

- DefaultPaymentMethodRequest: Information required to set a default payment method
  - `ownerId` string, required: ID of the user who owns the default payment method
  - `companyId` string, required: ID of the company of which the user is a member
  - `paymentMethodId` string, required: ID of the default payment method

## Response `200`

OK

- DefaultPaymentMethod: Default payment method definition
  - `paymentMethodId` string, required: The ID of the default payment method

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `500`: Internal Server Error
- `502`: Bad Gateway
- `504`: Gateway Timeout

## Changes

- **2026-11-06** `1fc240f06971`: 9 breaking, 21 info
  - added the new required request property `companyId`
  - added the new required request property `ownerId`
  - added the new required request property `paymentMethodId`
  - the request's body type changed from no type to `object`
  - …26 more

[Operation history](https://skmtc.dev/appdirect/apis/companies/changes/appMarket/v2/paymentMethods/defaults/post.md)

---

[API](https://skmtc.dev/appdirect/apis/companies.md) - [All operations](https://skmtc.dev/appdirect/apis/companies/llms.txt) - [OpenAPI document](https://skmtc.dev/appdirect/apis/companies/revisions/1fc240f06971?raw)
