Skip to main content
GET
/
api
/
external
/
v2
/
subscription-contract-details
/
shopify
/
customer
/
{customerId}
/
payment-methods
Get customer payment methods from Shopify
curl --request GET \
  --url https://subscription-admin.appstle.com/api/external/v2/subscription-contract-details/shopify/customer/{customerId}/payment-methods
{
  "nodes": [
    {
      "id": "gid://shopify/CustomerPaymentMethod/abc123",
      "instrument": {
        "__typename": "CustomerCreditCard",
        "brand": "VISA",
        "lastDigits": "4242",
        "expiryMonth": 12,
        "expiryYear": 2025,
        "name": "John Doe",
        "source": "SHOPIFY"
      },
      "revokedAt": null,
      "revokedReason": null
    },
    {
      "id": "gid://shopify/CustomerPaymentMethod/def456",
      "instrument": {
        "__typename": "CustomerShopPayAgreement",
        "lastDigits": "1234",
        "name": "Shop Pay"
      },
      "revokedAt": null,
      "revokedReason": null
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://developers.appstle.com/llms.txt

Use this file to discover all available pages before exploring further.

Headers

X-API-Key
string

Path Parameters

customerId
integer<int64>
required

Customer Id

Query Parameters

allowRevokedMethod
boolean
default:false

Get revoked payment methods?

Response

Successfully retrieved customer payment methods from Shopify

get__typename
string
nodes
object[]
pageInfo
object