List Payment Methods – Management API – MediaKind

List Payment Methods

get https://app.mk.io/api/v1/organization/paymentMethods

Listing, Sorting and Filtering Payment Methods

This endpoint returns the list of payment methods.

Sorting

The results from this endpoint can be ordered using the $orderby query parameter. Specify a list of field names, separated by commas where each one can optionally specify asc or desc.

Sorting is valid on the following fields: aws/awsAccountId, azure/azureSaasSubscriptionId, azure/azureSaasSubscriptionName, created, createdBy, displayName, id, type

Filtering

The $filter query parameter allows for payment methods to be filtered on the basis of fields in the schema using OData query syntax. See this document for more details on the syntax used.

Filters are valid on the following fields: aws/awsAccountId, azure/azureSaasSubscriptionId, azure/azureSaasSubscriptionName, created, createdBy, createdByEmail, createdByName, displayName, id, type

Examples:

?$top=10 - Returns only the first 10 payment methods from the list.

?$orderby=created desc - Sorts payment methods by creation date in descending order.

?$filter=created ge 2021-01-01T00:00:00Z - Returns payment methods created after January 1, 2021.

RBAC Capability Required: core.subscription.get

Authentication

Authorization Bearer

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

Query parameters

it will be present only if there's more than one page of entities.

Response

200 A list of all payment methods

Errors