Skip to main content
Published: February 11 2010, 1:55:00 PMUpdated: November 28 2020, 8:12:35 PM

Why is ReviseCheckoutStatus not setting the correct SalesTax amount?

- It sets the SalesTaxPercent incorrectly, and it doesn't set the SalesTax amount at all.

Take the following scenario:

 

1)  Execute the following request:
<?xml version="1.0" encoding="utf-8"?>
<ReviseCheckoutStatusRequest xmlns="urn:ebay:apis:eBLBaseComponents">
  <AmountPaid currencyID="USD">5.99</AmountPaid>
  <CheckoutStatus>Complete</CheckoutStatus>
  <ItemID>1700XXXXXXX</ItemID>
  <TransactionID>0</TransactionID>
  <PaymentMethodUsed>Discover</PaymentMethodUsed>
  <RequesterCredentials>
    <eBayAuthToken>YourAuthTokenHere</eBayAuthToken>
  </RequesterCredentials>
  <ShippingCost>2.99</ShippingCost>
  <SalesTax>1</SalesTax>
  <ShippingService>UPSGround</ShippingService>
  <PaymentStatus>Paid</PaymentStatus>
  <ExternalTransaction>
    <ExternalTransactionID>1</ExternalTransactionID>
    <ExternalTransactionTime>2010-01-20T22:33:27.142Z</ExternalTransactionTime>
    <PaymentOrRefundAmount>5.99</PaymentOrRefundAmount>
  </ExternalTransaction>
</ReviseCheckoutStatusRequest>

2) You will see a success

Execute a GetItemTransactions call:
<?xml version="1.0" encoding="utf-8"?>
<GetItemTransactionsRequest xmlns="urn:ebay:apis:eBLBaseComponents">
  <ItemID>1700XXXXXXX</ItemID>
  <DetailLevel>ReturnAll</DetailLevel>
  <RequesterCredentials> 
    <eBayAuthToken>YourAuthTokenHere</eBayAuthToken>
  </RequesterCredentials>
</GetItemTransactionsRequest>

3)  You will see the following in the sales tax container:
<SalesTax>
  <SalesTaxPercent>100.0</SalesTaxPercent>
  <ShippingIncludedInTax>false</ShippingIncludedInTax>
  </SalesTax>

 

- It sets the SalesTaxPercent incorrectly, and it doesn't set the SalesTax amount at all.

 

Answer:

In the following RCS request, the salesTax Percent was getting updated properly.
Hence the sales tax percent retrieved in the getTemsTransactions Api is correct.
The sales Tax amount tag is emmited conditionally(Please refer to the  eBay API documents).

<?xml version="1.0" encoding="utf-8"?>
<ReviseCheckoutStatusRequest xmlns="urn:ebay:apis:eBLBaseComponents">
  <AmountPaid >5.99</AmountPaid>
  <Currency>1</Currency>
  <CheckoutStatus>2</CheckoutStatus>
  <ItemId>1700XXXXXXX</ItemId>
  <TransactionId>0</TransactionId>
  <PaymentMethodUsed>17</PaymentMethodUsed>
  <ShippingCost>2.99</ShippingCost>
  <SalesTax>1</SalesTax>
  <PaymentStatus>2</PaymentStatus>
  <ExternalTransaction>
    <ExternalTransactionId>XYXXXXXXXXXX</ExternalTransactionId>
    <ExternalTransactionDate>2010-02-04  23:25:28</ExternalTransactionDate>
    <PaymentType>1</PaymentType>
    <PaymentOrRefundAmount>5.99</PaymentOrRefundAmount>
  </ExternalTransaction>
<EncryptedId>DQYX5MGUNUN6C</EncryptedId>
<PaymentSenderAccountID>DQYX5MGUNUN6C</PaymentSenderAccountID>
  <RequesterCredentials> 
    <eBayAuthToken>YourAuthTokenHere</eBayAuthToken>
  </RequesterCredentials>
</ReviseCheckoutStatusRequest>

How well did this answer your question?
Answers others found helpful