cURL
curl --request GET \ --url https://api.smokeball.com/subscriptions/{subscriptionId}/paymentmethods/{id} \ --header 'Authorization: <api-key>' \ --header 'x-api-key: <api-key>'
{ "href": "<string>", "relation": "<string>", "method": "GET", "self": { "id": "<string>", "href": "<string>", "relation": "<string>", "method": "GET" }, "id": "784b3497-bf1f-47d2-93e6-1d38b96b8d3f", "paymentSystem": "STRIPE", "type": "CreditCard", "isDefault": true, "details": { "brand": "<string>", "lastFourDigits": "1234", "expiry": "10/28", "expiryMonth": 10, "expiryYear": 2028, "accountNumber": 123456789, "bsb": 123 }, "lastPaymentState": "Succeeded", "createdDate": "2022-04-23T14:00:00Z" }
Returns a specific payment method associated with a subscription.
The unique identifier of the subscription
The unique identifier of the payment method
Successfully retrieved the payment method
The response is of type object.
object