SetBillingAgreementDetails
Billing Agreementの説明とその他の販売事業者の情報などの詳細をBilling Agreementにセットします。
説明
Billing Agreementの説明とその他の販売事業者の情報などの詳細をBilling Agreementに指定するためにSetBillingAgreementDetails処理を呼び出します。
本番環境では、この処理の最大リクエストクォーターは10であり、回復レートは1秒間に1回です。SANDBOX環境では、最大リクエストクォーターは2であり、回復レートは2秒間に1回です。
リクエストパラメータ
パラメータ名 | 必須 | タイプ | 説明 |
---|---|---|---|
AmazonBillingAgreementId | 必須 | xs:string |
Billing AgreementのIDです。
この値は購入者がAmazonによって認証に成功した後にAmazonボタン、アドレス帳、お支払い方法ウィジェットから取得されます。 |
BillingAgreementAttributes | 必須 |
BillingAgreement
Attributes |
販売事業者が指定するBillingAgreementの属性です。 |
レスポンス要素
パラメータ名 | 説明 |
---|---|
BillingAgreementDetails |
Billing Agreementオブジェクトの詳細と現在の状態が含まれます。
タイプ:BillingAgreementDetails |
サンプル
呼び出しリクエストのサンプル
POST /OffAmazonPayments/2013-01-01 HTTP/1.1
Content-Type: x-www-form-urlencoded
Host: mws.amazonservices.com
User-Agent: <Your User Agent Header>
AWSAccessKeyId=AKIAJKYFSJU7PEXAMPLE
&Action=SetBillingAgreementDetails
&AmazonBillingAgreementId=C01-8824045-7416542
&BillingAgreementAttributes.PlatformId=PLATFORM_ID_HERE
&BillingAgreementAttributes.SellerNote=APPROVE%20LITE%20APPROVE%20HEAVY
&BillingAgreementAttributes.SellerBillingAgreementAttributes
.CustomInformation=Example%20Customer%20Info
&BillingAgreementAttributes.SellerBillingAgreementAttributes
.StoreName=Test%20Store%20Name
&MWSAuthToken=amzn.mws.4ea38b7b-f563-7709-4bae-87aeaEXAMPLE
&SellerId=YOUR_SELLER_ID_HERE
&SignatureMethod=HmacSHA256
&SignatureVersion=2
&Timestamp=2013-12-11T10%3A57%3A18.000Z
&Version=2013-01-01
&Signature=Z0ZVgWu0ICF4FLxt1mTjyK%2BjdYG6Kmm8JxLTfsQEXAMPLE
レスポンスのサンプル
<SetBillingAgreementDetailsResponse
xmlns="https://mws.amazonservices.com/
schema/OffAmazonPayments_Sandbox/2013-01-01">
<SetBillingAgreementDetailsResult>
<BillingAgreementDetails>
<AmazonBillingAgreementId>C01-8824045-7416542</AmazonBillingAgreementId>
<CreationTimestamp>2013-12-05T00:21:19Z</CreationTimestamp>
<Destination>
<DestinationType>Physical</DestinationType>
<PhysicalDestination>
<City>Seattle</City>
<CountryCode>US</CountryCode>
<PostalCode>98104</PostalCode>
<StateOrRegion>WA</StateOrRegion>
</PhysicalDestination>
</Destination>
<BillingAgreementConsent>true</BillingAgreementConsent>
<BillingAgreementStatus>
<State>Draft</State>
</BillingAgreementStatus>
<BillingAgreementLimits>
<AmountLimitPerTimePeriod>
<CurrencyCode>USD</CurrencyCode>
<Amount>500</Amount>
</AmountLimitPerTimePeriod>
<TimePeriodStartDate>2013-12-01T00:00:00Z</TimePeriodStartDate>
<TimePeriodEndDate>2013-12-23T23:59:59Z</TimePeriodEndDate>
<CurrentRemainingBalance>
<CurrencyCode>USD</CurrencyCode>
<Amount>94.50</Amount>
</CurrentRemainingBalance>
</BillingAgreementLimits>
<ReleaseEnvironment>Sandbox</ReleaseEnvironment>
<SellerNote>APPROVE LITE APPROVE HEAVY</SellerNote>
<SellerBillingAgreementAttributes>
<CustomInformation>Example Customer Info</CustomInformation>
<StoreName>Test Store Name</StoreName>
</SellerBillingAgreementAttributes>
</BillingAgreementDetails>
</SetBillingAgreementDetailsResult>
<ResponseMetadata>
<RequestId>bab23c81-f7c9-4d1a-b76b-fbcec07e47f5</RequestId>
</ResponseMetadata>
</SetBillingAgreementDetailsResponse>