Add payment method
Adds a new payment method (card) for the current workspace.
POST
/api/billing/payment-methodsBody
card_numberstringrequiredexp_monthintegerrequiredexp_yearintegerrequiredcvcstringrequiredcardholder_namestringrequiredRequest
curl
curl -X POST https://platform.trickest.com/api/billing/payment-methods \
-H "Authorization: Bearer $TRICKEST_TOKEN" \
-H "Content-Type: application/json" \
-d '{ }'Responses
200Added payment method
idstringrequiredtypestringvault_infostringcard_ending_instringlast4stringbrandstringcardholder_namestringsubscription_amountnumberactivebooleanis_defaultboolean400Bad Request – validation error or malformed input
codestringmessagestring401Unauthorized – missing or expired token
codestringmessagestring500Internal Server Error
codestringmessagestring