Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

response error #143

Closed
liminggui98 opened this issue Aug 13, 2018 · 3 comments
Closed

response error #143

liminggui98 opened this issue Aug 13, 2018 · 3 comments

Comments

@liminggui98
Copy link

Useing the "Get Transaction List" api, get a error xml:

<?xml version="1.0" encoding="utf-8"?> <ErrorResponse xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <messages> <resultCode>Error</resultCode> <message> <code>E00003</code> <text>The 'AnetApi/xml/v1/schema/AnetApiSchema.xsd:transId' element is invalid - The value &amp;#39;&amp;#39; is invalid according to its datatype 'AnetApi/xml/v1/schema/AnetApiSchema.xsd:numericString' - The Pattern constraint failed.</text> </message> </messages> </ErrorResponse>

@ashtru
Copy link
Contributor

ashtru commented Aug 13, 2018

Hi @liminggui98

Please share the code you are trying to run (masking login id and transaction key).

GetTransactionList expects batchId as input, and returns transactions in that batch. For getting the batchId, you can get it by providing the start and end date as inputs to GetSettledBatchList API for settled transactions. For unsettled transactions, you can use the GetUnsettledTransactionList API.

You can check the documentation Request tab for GetTransactionList in the API reference , for any constraints on inputs.

You can also check out the sample codes for:

@gnongsie
Copy link
Contributor

If you want to get the details for a single particular transaction, kindly refer to Get Transaction Details.

As @ashtru has said, GetTransactionList does not expect a transaction ID.

@chsriniv9
Copy link

@liminggui98 closing this issue considering the steps provided by @ashtru and @gnongsie had this. Please feel free to re-open if further support needed on this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

4 participants