Get Account Transactions
Retrieves the transactions of the account associated with the invoice number or payment reference given in request. If no account is found for the given request an exception will be returned. The account can be identified either by providing the InvoiceNo or the PaymentReference in the request, but not both.
Request Parameters​
Field | Occurs | nullable | Max | Type | Description |
---|---|---|---|---|---|
Password | 1 | false | 50 | string | The password used to authorize the request. |
Username | 1 | false | 50 | string | The username used to authorize the request. |
CorrelationId | 1 | true | 50 | string | CorrelationID is sent back in the response. |
CountryCode | 1 | false | 2 | string | The country code (ISO 3166-1 alpha-2) for the country. |
InvoiceNo | 1 | true | 50 | int | The invoice number. Either InvoiceNo or PaymentReference must be set, but not both. |
PaymentReference | 1 | true | 50 | string | The payment reference. Either PaymentReference or InvoiceNo must be set, but not both. |
StoreId | 1 | true | - | int | The StoreId used for identification of store. |
Response Parameters​
Field | Occurs | nullable | Max | Type | Description |
---|---|---|---|---|---|
CorrelationId | 1 | true | 50 | string | CorrelationID from the request if any. |
Transactions | 1 | true | 50 | Transactions[] | A list of transactions for the invoice associated with the given request. See below for details. |
Transactions​
Field | nullable | Type | Description |
---|---|---|---|
ArticleId | false | string | The ArticleId of the product. |
Currency | false | string | The Currency of the transaction |
Description | false | string | The description of the product. |
MovedFromAccount | true | string | The AccountNo the transaction has been moved from, if moved. |
MovedToAccount | true | string | The AccountNo the transaction has been moved to, if moved. |
OriginalCurrencyInformation | true | string | The original currency if not the same as specified in Currency. |
Quantity | false | int | The quantity of the product. |
TransactionDate | false | date | The date of the transaction. |
TransactionType | false | string | The type of the transaction, e.g. purchase, return etc. |
UnitPrice | false | decimal | Price per unit incl. VAT. |
VatRate | false | decimal | VAT in per cent. |
Example Requests​
 | Value |
---|---|
Environment: | UAT |
Service: | InformationService |
URL: | https://ecommercetest.collector.se/v3.0/InformationServiceV2.svc?wsdl |
Function: | GetAccountTransactions |
Description: | The operation returns a list of accounts transactions for a specic invoice. |
Notes: | N/A |
- Request
- Response
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:inf="http://schemas.ecommerce.collector.se/v30/InformationService">
<soapenv:Header>
<inf:Username>USERNAME</inf:Username>
<inf:Password>PASSWORD</inf:Password>
</soapenv:Header>
<soapenv:Body>
<inf:GetInvoiceTransactionsRequest>
<inf:CorrelationId xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
<inf:CountryCode>SE</inf:CountryCode>
<inf:InvoiceNo>63049067</inf:InvoiceNo>
<inf:PaymentReference xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
<inf:StoreId>1234</inf:StoreId>
</inf:GetInvoiceTransactionsRequest>
</soapenv:Body>
</soapenv:Envelope>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<GetAccountTransactionsResponseV2 xmlns="http://schemas.ecommerce.collector.se/v30/InformationService">
<CorrelationId i:nil="true" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"/>
<Transactions xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<TransactionV2>
<ArticleId>456789</ArticleId>
<Currency>SEK</Currency>
<Description>Description</Description>
<MovedFromAccount i:nil="true"/>
<MovedToAccount i:nil="true"/>
<OriginalCurrencyInformation i:nil="true"/>
<Quantity>1</Quantity>
<TransactionDate>2020-07-04T01:00:16.787</TransactionDate>
<TransactionType>Purchase</TransactionType>
<UnitPrice>15.00</UnitPrice>
<VatRate>25.00</VatRate>
</TransactionV2>
<TransactionV2>
<ArticleId>123456</ArticleId>
<Currency>SEK</Currency>
<Description>Description</Description>
<MovedFromAccount i:nil="true"/>
<MovedToAccount i:nil="true"/>
<OriginalCurrencyInformation i:nil="true"/>
<Quantity>1</Quantity>
<TransactionDate>2020-07-04T01:00:16.787</TransactionDate>
<TransactionType>Purchase</TransactionType>
<UnitPrice>15.00</UnitPrice>
<VatRate>25.00</VatRate>
</TransactionV2>
</Transactions>
</GetAccountTransactionsResponseV2>
</s:Body>
</s:Envelope>
Error Codes​
Fault Code | Description |
---|---|
AUTHORIZATION_FAILED | Could not authorize the request, check your login credentials. Please contact Collector for more help. |
ACCOUNT_NOT_FOUND | No account found for Invoice Number. |
If the error code you are looking for is not in the list above Please see separate page Error Codes