Skip to main content
GET
/
api
/
external
/
v2
/
associate-shopify-customer-to-external-payment-gateways
Associate external payment gateway customer with Shopify customer
curl --request GET \
  --url https://subscription-admin.appstle.com/api/external/v2/associate-shopify-customer-to-external-payment-gateways
{
  "data": {
    "customerPaymentMethodRemoteUserInfoCreate": {
      "customerPaymentMethod": {
        "id": "gid://shopify/CustomerPaymentMethod/abc123",
        "instrument": {
          "__typename": "CustomerCreditCard",
          "brand": "VISA",
          "lastDigits": "4242"
        }
      },
      "userErrors": []
    }
  }
}

Documentation Index

Fetch the complete documentation index at: https://appstleinc-aeca3e0a.mintlify.app/llms.txt

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

Headers

X-API-Key
string

Query Parameters

paymentGateway
string
required

Possible values (stripe, braintree, paypal, authorize_net)

customerId
integer<int64>

Id of the customer to associate payment method with

email
string

Email of the customer to associate payment method with

customerProfileId
string

Id of customer in external payment gateway, not required for Paypal

paymentProfileId
string
required

Card Id or payment profile Id in external payment gateway

Response

Successfully associated external payment gateway customer with Shopify customer. Returns Shopify GraphQL raw response.