概要
APIリファレンス
指定された定期購買IDの決済情報を取得する。
※1 定期購買アプリではクレジットカード番号全ては管理しておりません。下4桁のみの返却となります。
項目名 | 内容 |
---|---|
アクション名 | getPaymentMethod |
リクエストメソッド | POST |
項目名 | 内容 | 必須 | フォーマット | 入力例 | 備考 |
---|---|---|---|---|---|
subscriptionContractId | 定期購買ID | はい | gid://shopify/SubscriptionContract/*** | gid://shopify/SubscriptionContract/123456789 |
■正常時レスポンス
プロパティ | 型 | 説明 |
---|---|---|
type | string | null |
brand | string | null |
expiryMonth | number | null |
expiryYear | number | null |
lastDigits | string | null |
name | string | null |
maskedNumber | string | null |
inactive | boolean | null |
paypalAccountEmail | string | null |
※ 決済方法によって返却されるレスポンスが異なります。
■異常時レスポンス
| --- | --- | --- |
■参考情報(Shopifyにおける支払い方法の取り扱いについて)
https://help.shopify.com/ja/manual/products/purchase-options/subscriptions/setup
(1)Shopify Payment(クレジットカード)による支払いの場合