Get assigned payment method – Management API – MediaKind

Get assigned payment method

get https://app.mk.io/api/v1/projects/:project_name/paymentMethod

Returns the currently assigned payment method for this project.

RBAC Capability Required: core.subscription.get

Authentication

Authorization Bearer

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

Path parameters

project_name string Required

Response

200 OK

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

Errors

400 Bad Request

error object ErrorDetail Required

Pertinent information about the error

Show 3 properties
Hide 3 properties

Show value schema
Hide value schema

[any key] any

401 Unauthorized

error object ErrorDetail Required

Pertinent information about the error

Show 3 properties
Hide 3 properties

Show value schema
Hide value schema

[any key] any

403 Forbidden

error object ErrorDetail Required

Pertinent information about the error

Show 3 properties
Hide 3 properties

Show value schema
Hide value schema

[any key] any

404 Not Found

error object ErrorDetail Required

Pertinent information about the error

Show 3 properties
Hide 3 properties

Show value schema
Hide value schema

[any key] any

429 Too Many Requests

error object ErrorDetail Required

Pertinent information about the error

Show 3 properties
Hide 3 properties

Show value schema
Hide value schema

[any key] any

500 Internal Server Error

error object ErrorDetail Required

Pertinent information about the error

Show 3 properties
Hide 3 properties

Show value schema
Hide value schema

[any key] any