---
title: "Make a saved card the one future invoices are charged"
method: POST
path: "/api/workspaces/{workspaceId}/billing/payment-methods/{paymentMethodId}/default"
tags: ["Billing"]
---

# Make a saved card the one future invoices are charged

`POST /api/workspaces/{workspaceId}/billing/payment-methods/{paymentMethodId}/default`

## Request

- Base URL: `https://hiveship.app/api`
- URL: `https://hiveship.app/api/api/workspaces/{workspaceId}/billing/payment-methods/{paymentMethodId}/default`
- Auth: API key in cookie `hiveship_access`

## Path parameters

- `workspaceId` string, required
- `paymentMethodId` string, required

## Response `200`

Default payment method updated

## Other responses

- `404`: Payment method not found for this workspace

---

[API](https://skmtc.dev/hiveship/apis/hiveship-api.md) · [All operations](https://skmtc.dev/hiveship/apis/hiveship-api/llms.txt) · [OpenAPI document](https://skmtc.dev/hiveship/apis/hiveship-api/revisions/73d3e26544e4?raw)
