Get Started
Studio API
- Introduction
- Streaming
- CMS
- OTT
- Monetization
- Offers
- Transactions
- GETGet transaction
- GETList transactions
- GETList payment methods
- Stripe Integration
- GET
- Entitlements
- IAM
- Integration
- Analytics
Content Delivery API
Deep dive
List payment methods
BatchGetPaymentMethods
Returns a list of payment methods by payment method IDs.
curl --request GET \
--url https://api.mottostreaming.com/monetization/payment_methods/v1/batch \
--header 'Authorization: Bearer <token>'
{
"payment_methods": [
{
"id": "<string>",
"project_id": "<string>",
"user_id": "<string>",
"provider": "PROVIDER_UNSPECIFIED",
"sub_provider": "<string>",
"type": "<string>",
"last_four": "<string>",
"expiration_month": 123,
"expiration_year": 123,
"card_brand": "<string>"
}
]
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Response
The payment method ID
The project ID that is associated with the payment method.
The user ID that is associated with the payment method.
The provider of the payment method.
PROVIDER_UNSPECIFIED
, PROVIDER_STRIPE
The service of the payment method. This is mostly applicable when the provider is a payment orchestrator (like Gr4vy) that can liaise with multiple payment providers (like Stripe or Adyen)
The type of the payment method. This can be a credit card, a bank account, or a payment service like PayPal.
The last four digits of the payment method. Only applicable for credit card payments.
The expiration month of the payment method. Only applicable for credit card payments.
The expiration year of the payment method. Only applicable for credit card payments.
The card brand of the payment method. Only applicable for credit card payments.
curl --request GET \
--url https://api.mottostreaming.com/monetization/payment_methods/v1/batch \
--header 'Authorization: Bearer <token>'
{
"payment_methods": [
{
"id": "<string>",
"project_id": "<string>",
"user_id": "<string>",
"provider": "PROVIDER_UNSPECIFIED",
"sub_provider": "<string>",
"type": "<string>",
"last_four": "<string>",
"expiration_month": 123,
"expiration_year": 123,
"card_brand": "<string>"
}
]
}