---
title: "Update"
method: PATCH
path: "/payments/{payment_id}/update/"
---

# Update

`PATCH /payments/{payment_id}/update/`

## Request

- Base URL: `https://restapi.ordergroove.com`
- URL: `https://restapi.ordergroove.com/payments/{payment_id}/update/`
- Auth: one of:
  - none
  - API key in header `x-api-key`

Activates or deactivates the specified payment method.

## Path parameters

- `payment_id` string, required

## Request body

- object
  - `live` boolean, required: Account status: active = True

## Response `200`

200

- object
  - `customer` string
  - `billing_address` string
  - `cc_number_ending` unknown
  - `public_id` string
  - `label` unknown
  - `token_id` string
  - `cc_holder` unknown
  - `cc_type` integer
  - `cc_exp_date` string
  - `payment_method` string
  - `live` boolean
  - `created` string
  - `last_updated` string

## Other responses

- `400`: 400
- `403`: 403
- `404`: 404

---

[API](https://skmtc.dev/ordergroove/apis/ordergroove-restrpc.md) - [All operations](https://skmtc.dev/ordergroove/apis/ordergroove-restrpc/llms.txt) - [OpenAPI document](https://skmtc.dev/ordergroove/apis/ordergroove-restrpc/revisions/ba97e740d08c?raw)
