The GetTransactionStatus action returns the status of the transaction specified by the TransactionId. You could use this action if you choose not to process Instant Payment Notifications (IPNs) that you receive from Amazon Payments (for more information, see Using Instant Payment Notification).
| Parameter | Definition | Required |
|---|---|---|
|
|
The transaction's ID. Type: String Constraint: Max size = 35 characters Default: None |
Yes |
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 |
|---|---|
|
|
A value you provide that uniquely identifies the request. Type: String Size: 128 Bytes |
|
|
Shorthand code that specifies the status of the transaction. Expands on the information in the Type: String Size: 64 Bytes Valid Values: See Status Codes |
|
|
A description of the transaction status. Type: String Size: LOB |
|
|
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 |
|
|
The status of the transaction. Provides a short code on the status of the transaction, for example "PENDING". Type: TransactionStatus Size: 20 Bytes |
Responses also include elements common to all responses. For more information, see Common Response Elements.
This action can return the following values for StatusCode.
| Status Code | Message |
|---|---|
|
| The transaction was explicitly canceled by the caller. |
|
|
This reserved amount on the payment instrument was not settled within the timeout period OR The transaction could not be completed within the specified timeout. |
|
|
This transaction is awaiting a response from the backend payment processor OR (Message returned by backend payment processor) |
|
| The transaction has been flagged for manual investigation |
|
|
The requested amount was reserved successfully against the given payment instrument OR The transaction was successful and the payment instrument was charged. |
|
|
(Message returned by backend payment processor) OR The transaction was denied after investigation. |
This action can return the following synchronous errors, which occur within the status for this action.
The following sections show a sample request and response.
https://fps.sandbox.amazonaws.com? Action=GetTransactionStatus &AWSAccessKeyId=AKIAIIFXJCFIHITREP4Q &Signature=2l60qD6%2BDIfVEN7ZiHM0AcUKACZt0GYKFtIryqkCb6g%3D &SignatureMethod=HmacSHA256 &SignatureVersion=2 &Timestamp=2009-10-06T09%3A12%3A06.921Z &TransactionId=14GKE3B85HCMF1BTSH5C4PD2IHZL95RJ2LM &Version=2008-09-17
GET\n fps.sandbox.amazonaws.com\n Action=GetTransactionStatus &AWSAccessKeyId=AKIAIIFXJCFIHITREP4Q &Signature=2l60qD6%2BDIfVEN7ZiHM0AcUKACZt0GYKFtIryqkCb6g%3D &SignatureMethod=HmacSHA256 &SignatureVersion=2 &Timestamp=2009-10-06T09%3A12%3A06.921Z &TransactionId=14GKE3B85HCMF1BTSH5C4PD2IHZL95RJ2LM &Version=2008-09-17
<GetTransactionStatusResponse xmlns="http://fps.amazonaws.com/doc/2008-09-17/">
<GetTransactionStatusResult>
<TransactionId>14GKE3B85HCMF1BTSH5C4PD2IHZL95RJ2LM</TransactionId>
<TransactionStatus>Success</TransactionStatus>
<CallerReference>CallerReference07</CallerReference>
<StatusCode>Success</StatusCode>
<StatusMessage>The transaction was successful and the payment instrument was charged.</StatusMessage>
</GetTransactionStatusResult>
<ResponseMetadata>
<RequestId>13279842-6f84-41ef-ae36-c1ededaf278d:0</RequestId>
</ResponseMetadata>
</GetTransactionStatusResponse>