GET
/
subscriptions
/
{subscriptionId}
/
paymentmethods
/
{id}
Get payment method
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"
}

Authorizations

x-api-key
string
header
required
Authorization
string
header
required

Path Parameters

subscriptionId
string<uuid>
required

The unique identifier of the subscription

id
string<uuid>
required

The unique identifier of the payment method

Response

200
application/json

Successfully retrieved the payment method

The response is of type object.