---
title: "Create Payment Method"
method: POST
path: "/v4/accounts/{voip_id}/payment-methods"
tags: ["Payment Methods"]
---

# Create Payment Method

`POST /v4/accounts/{voip_id}/payment-methods`

## Request

- Base URL: `https://api.phone.com`
- URL: `https://api.phone.com/v4/accounts/{voip_id}/payment-methods`
- Auth: HTTP bearer

Create an individual payment method.

## Path parameters

- `voip_id` integer, required

## Request body

- PaymentMethod
  - `account_id` integer, nullable: API Account ID
  - `status` 'onfile' | 'primary' | 'hidden', nullable: Can be 'primary' = primary card used for billing, 'onfile' = card on file, 'hidden' = deleted card
  - `nickname` string, nullable: Name of Card
  - `type` 'cc', required: 'cc' for credit card
  - `cc_token` string, required: Token obtained via POST /v4/credit-cards/provider

## Response `201`

Created

- object

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `402`: Payment Required
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict
- `422`: Validation failed
- `429`: Too Many Requests
- `500`: Internal Server Error

---

[API](https://skmtc.dev/phone/apis/phoenix-api-by-phone-com.md) · [All operations](https://skmtc.dev/phone/apis/phoenix-api-by-phone-com/llms.txt) · [OpenAPI document](https://skmtc.dev/phone/apis/phoenix-api-by-phone-com/revisions/70c6c9ab8d8f?raw)
