| « PreviousNext » | |
![]() ![]() | Did this page help you? Yes | No | Tell us about it... |
The SettleDebt action settles the accumulated debt on a postpaid credit
instrument using a credit card, bank account, or Amazon Payments account balance. The action
decrements the debt balance on the postpaid credit instrument by the settlement amount, and moves
money from the sender's payment instrument specified in the postpaid payment token to the
recipient’s account balance. The transaction fee is deducted from the settlement amount and the
remaining amount is deposited into the recipient's account balance. For example, If the
debt balance is $100, settlement amount is $90, and the Amazon FPS fee is $2.50, then the
SettleDebt action transfers $87.50 into the recipient's account
balance and decrements the debt balance by $90. The debt balance is now $10.
The SettleDebt action can't be used for amounts greater than the actual
debt balance. For example, if the debt balance is $100, you can't use
SettleDebt action for $110.
Settlement tokens can be used multiple times to settle debt (up to its credit limit) and you are charged a fee each time. You specify the credit limit of the token in the Co-Branded service request.
Note
The Refund action does not support SettleDebt.
Note
The value you provide for the SenderTokenId is the
settlementTokenID value you received in the Postpaid Token API
response, not the value of the creditSenderTokenID parameter.
| Parameter | Description | Required |
|---|---|---|
|
|
Description of this transaction for the caller. Type: String Default: None Constraint: Max size = 160 characters |
No |
|
|
A value you provide that uniquely identifies the request. For more information, see Important Values to Store in Your Database. Type: String Default: None Constraint: Max size = 128 characters |
Yes |
|
|
Specifies the credit instrument to settle. Use the value of the
Type: String Default: None Max Size: 128 Bytes |
Yes |
|
|
Specifies the entity whose name and contact details would be displayed in the sender's credit card or bank account statement. For more information, see Soft Descriptor Customization. Type: DescriptorPolicy Default: None |
No |
|
|
Specifies the URL to receive the Instant Payment Notification (IPN) for the request. The IPN URL set with this parameter takes precedence over the IPN URL set in your account. Type: String Default: None |
No |
SenderDescription
|
Description of this transaction for the sender. Type: String Default: None Constraint: Max size = 128 bytes |
No |
|
|
The value of the Type: String Default: None |
Yes |
|
|
Specifies the amount of the settlement. Type: Amount Default: None Valid Values: Equal to or less than the debt balance |
Yes |
|
|
Specifies the number of minutes before the request times out. Use this parameter to specify a timeout value that is acceptable for your business. If Amazon FPS cannot complete the transaction in the time allotted, the transaction is marked as failed and you receive an IPN notification (if you are using IPN). Type: Integer (number of minutes) Default: 10080 | No |
For REST requests, you must also include parameters that are common to all requests. These parameters are included by default in SOAP requests. For more information, see Common Request Parameters.
| Element | Description |
|---|---|
|
|
Unique ID generated by Amazon FPS for this transaction. This element is returned if the transaction was accepted by Amazon FPS. Type: String Size: 35 Bytes |
|
|
Provides the status of the transaction. Type: TransactionStatus |
Responses also include elements common to all responses. For more information, see Common Response Elements.
This action can return the following errors:
|
|
|
https://fps.sandbox.amazonaws.com? Action=SettleDebt &AWSAccessKeyId=AKIAIOSFODNN7EXAMPLE &CallerDescription=MyWish &CallerReference=CallerReference13 &CreditInstrumentId=553IBMFCG7Z8J4D1H7BB3HMNPFQQUPVUNT8RHCT1AXDJNXE6LJZ4KSKU2PI1TTIG &SenderTokenId=543IJMECGZZ3J4K1F7BJ3TMNXFBQU9VXNT7RRCTNAJDJ8X36L1ZRKSUUPPIBTTIK &SettlementAmount.CurrencyCode=USD &SettlementAmount.Value=1 &Signature=pwHqzj8Y1aQ1TFcer9aXCFkawg8PmIRcmOelQWvsvaQ%3D &SignatureMethod=HmacSHA256 &SignatureVersion=2 &Timestamp=2009-10-07T11%3A44%3A48.203Z &Version=2008-09-17
<SOAP-ENV:Body wsu:Id="body" xmlns:wsu=
"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<ns2:SettleDebt xmlns:ns2="http://fps.amazonaws.com/doc/2008-09-17/">
<ns2:SenderTokenId>
J4D62EZ3K8IMB3MR18R15RMKNR7VJVMA3I49EFTQ4Q1PN4XE4BBZ5RRQ7NMKSFV6
</ns2:SenderTokenId>
<ns2:CreditInstrumentId>
J3D6VEG3KHILB3PR58R65ZMKIRQVJHMB3I996FT84P1PP4QE4BBX5RTQCNMGSUVA
</ns2:CreditInstrumentId>
<ns2:SettlementAmount>
<ns2:CurrencyCode>USD</ns2:CurrencyCode>
<ns2:Value>50</ns2:Value>
</ns2:SettlementAmount>
<ns2:CallerReference>
ReferenceString????gsBq12290565996541
</ns2:CallerReference>
<ns2:CallerDescription>
DescriptionString-????d5ik12290565996541
</ns2:CallerDescription>
</ns2:SettleDebt>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope><SettleDebtResponse xmlns="http://fps.amazonaws.com/doc/2008-09-17/">
<SettleDebtResult>
<TransactionId>14GND25ZN3B7O49QVHNASTT98UOBN83NC92</TransactionId>
<TransactionStatus>Pending</TransactionStatus>
</SettleDebtResult>
<ResponseMetadata>
<RequestId>9ddfbffc-f909-4628-b247-36a5ef3fc7f3:0</RequestId>
</ResponseMetadata>
</SettleDebtResponse>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header>
<wsa:RelatesTo xmlns:wsa="http://www.w3.org/2005/08/addressing">
MESSAGE123
</wsa:RelatesTo>
<wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">
http://www.w3.org/2005/08/addressing/anonymous
</wsa:To>
<wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">
SettleDebt:Response
</wsa:Action>
<wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">
urn:uuid:5787db56-61b7-4636-9fd1-7179523ca194
</wsa:MessageID>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<SettleDebtResponse xmlns="http://fps.amazonaws.com/doc/2008-09-17/">
<SettleDebtResult>
<TransactionId>13OKNMPO244IU5G38V98NFTP7LPAKPGR73T</TransactionId>
<TransactionStatus>Pending</TransactionStatus>
</SettleDebtResult>
<ResponseMetadata>
<RequestId>5787db56-61b7-4636-9fd1-7179523ca194:0</RequestId>
</ResponseMetadata>
</SettleDebtResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>-------------------------- transactionId: 14GND25ZN3B7O49QVHNASTT98UOBN83NC92 statusMessage: The transaction is awaiting a response from the backend payment processor. transactionDate: 1254915904 signatureVersion: 2 signatureMethod: RSA-SHA1 buyerEmail: new_premium@amazon.com notificationType: TransactionStatus callerReference: CallerReference13 transactionAmount: USD 1.00 transactionStatus: PENDING operation: SETTLE_DEBT recipientEmail: test-caller@amazon.com buyerName: Test Business signature: gxuJJK/McM6xnFJ6L1QtyNymnDnxk+hIOBIedsnhJcokWsSWYABM/R9JEMtvXFv8n7wI5rE6wXhX GIAheElEbirJr/uho40tEmuio9DOwb7CPCVZj+L29feaqhQ74BEZjWoy8+28swMhJ1zaKNjoYJhk QXuDKyaHv/lQ/A0Oc/3oVwVsgnovn1VVpRO38gX6fNjgEdKpk7dATuURANtKJUoxCHhkX1aBI4uz XsB/Oym34YPXcsNb0IuIb0tJH+dSwz2WQjx8Sqj+1dBElpPkIHL1ka+R8y+uIL1nZSv1scunUaDN QjcKgTA4kNnoNdhiZ1B/bYiIONngbvDwbtXp/Q== recipientName: Test Business paymentMethod: CC certificateUrl: https://fps.sandbox.amazonaws.com/certs/090909/PKICert.pem paymentReason: MyWish statusCode: PendingNetworkResponse --------------------------
-------------------------- transactionId: 14GND25ZN3B7O49QVHNASTT98UOBN83NC92 statusMessage: The transaction was successful and the payment instrument was charged. transactionDate: 1254915904 signatureVersion: 2 signatureMethod: RSA-SHA1 buyerEmail: new_premium@amazon.com notificationType: TransactionStatus callerReference: CallerReference13 transactionAmount: USD 1.00 transactionStatus: SUCCESS operation: SETTLE_DEBT recipientEmail: test-caller@amazon.com buyerName: Test Business signature: IE5CpU+NcpC57JQCUvuw2tnN+3F5ggyekqjrQa1uDUxY71KgJBv7GZHnHvGrFdh9TEc7BP89nltv v5xyDxX5l29yLihG8JOk3tOLGmP5UZyyTX64sfRek2PcscImuaCg+h3joSjN17ZDPBr6tBjGozQA UoimBJXgPODIHbJ53VWPPkh88rrnukYzPkpg9bcfTnSBxHkbNG5Q3mxoH9hRiTKmPNi0fvbpddVK f8GEwqbU9WUuxHNvky0VfVvByZvlYkkMGUSCpeHQjQiye2uqqJRnmI9o1xJFWeF8FSSz4cdCGLUi Cz2Mw9+HbucjqNiVjOlaquGbNmso/67aUX4zCQ== recipientName: Test Business paymentMethod: CC certificateUrl: https://fps.sandbox.amazonaws.com/certs/090909/PKICert.pem paymentReason: MyWish statusCode: Success --------------------------