GET
/
subscriptions
/
{subscriptionId}
/
paymentmethods
curl --request GET \
  --url https://api.smokeball.com/subscriptions/{subscriptionId}/paymentmethods \
  --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
required

The unique identifier of the subscription

Query Parameters

Offset
integer
Required range: 0 <= x <= 2147483647
Limit
integer
Required range: 1 <= x <= 500

Response

200
application/json

Successfully retrieved the payment methods

The response is of type object[].