---
title: "PUT /users/{userId}/default-payment-method"
method: PUT
path: "/users/{userId}/default-payment-method"
---

# PUT /users/{userId}/default-payment-method

`PUT /users/{userId}/default-payment-method`

## Path parameters

- `userId` integer, required

## Request body

- object
  - `source` StripeSource — Represents a String value that can be used as a Stripe payment source. This can be a token or a card ID.
    - `value` string, required

## Response `200`

setDefaultPaymentMethod 200 response

- Card — To prevent sensitive information from being leaked, @JsonIgnoreProperties is used to exclude paymentMethodId from all JSON output, so it will not be returned by API GET requests.
  - `name` string, required
  - `brand` string, required
  - `last4` string, required
  - `expMonth` integer, required
  - `expYear` integer, required
  - `paymentMethodId` string, nullable, required

---

[API](https://skmtc.dev/mamaearth/apis/mama-earth-api.md) · [All operations](https://skmtc.dev/mamaearth/apis/mama-earth-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/mamaearth/mama-earth-api/revisions/42b90383d711/schema)
