Patch Payment Method – Management API – MediaKind

Patch Payment Method

patch https://app.mk.io/api/v1/organization/paymentMethods/:paymentmethod_id

Partially update a payment method using JSON Patch (RFC 6902). Requires Content-Type: application/json-patch+json.

The following field can be updated via replace operations:

RBAC Capability Required: core.subscription.update

Authentication

Authorization Bearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

paymentmethod_id string Required format: uuid

Request

This endpoint expects a list of objects.

Response

200 The updated payment method.

metadata object PaymentMethodMetadata Optional

Metadata.

Show 6 properties Hide 6 properties

related object PaymentMethodRelated Optional

Related data.

Show 1 property Hide 1 property

spec object Required

Specification.

Show 3 variants Hide 3 variants

Discriminated by type. Select one variant:

azure object PaymentMethodAzureSpec

aws object PaymentMethodAWSSpec

direct object PaymentMethodDirectSpec

status object PaymentMethodStatus Optional

Status.

Show 2 properties Hide 2 properties

Errors

400 Bad Request

error object ErrorDetail Required

Pertinent information about the error

Show 3 properties Hide 3 properties

401 Unauthorized

403 Forbidden

404 Not Found

429 Too Many Requests

500 Internal Server Error

All error responses follow a similar structure as the 400 Bad Request.