Commerce APIs
GET Payment Methods
List current user's payment methods
GET
/
v1
/
users
/
{user_id}
/
payment-methods
Authorization
Path
curl --request GET \
--url https://api.bitski.com/v1/users/{user_id}/payment-methods \
--header 'Authorization: <authorization>'
{
"paymentMethods": [
{
"cardBrand": "visa",
"cardLast4": "1111",
"id": "pm_1NoBH4E7964oeAEGtfSbXJ5v"
}
]
}
Authorizations
Authorization
string
headerrequiredClient credentials
Path Parameters
user_id
string
requiredThe id of the current user
Response
200 - application/json
paymentMethods
object[]
requiredcurl --request GET \
--url https://api.bitski.com/v1/users/{user_id}/payment-methods \
--header 'Authorization: <authorization>'
{
"paymentMethods": [
{
"cardBrand": "visa",
"cardLast4": "1111",
"id": "pm_1NoBH4E7964oeAEGtfSbXJ5v"
}
]
}