GetAccounts
GetAccounts is an operation that returns customer's account information based on customer number, integration number or organization number.
It will return all accounts found on the customer, no matter the account status (approved, rejected, activated, closed etc.) See InvoiceStatus in the Parameter dictionary section to see possible values.
If no customer or account is found for the given request an exception will be returned.
The account can be identified either by providing the CustomerNo, the IntegrationId or RegNo in the request, but never more than one of them in one request.
This method is available in the following countries:
Input Parameters:
Field | nillable | Max | Type | Description |
Username | false | 50 | string | The username used to authorize the request. |
Password | false | 50 | string | The password used to authorize the request. |
CorrelationId | true | 50 | string | CorrelationID is sent back in the response. |
CountryCode | false | 2 | string | The country code (ISO 3166-1 alpha-2) for the country. |
CustomerNo | true | 20 | string | If the e-store wants to search for a customer by their own customer id, this field can be used to specify that number. |
IntegrationID | true | 128 | string | The partners ID for identifying a customer. |
RegNo | true | 50 | string | The organization number should be provided. |
StoreId | true | 4 | short | The StoreId used for identification of store. |
Output Parameters:
Field | nillable | Max | Type | Description |
CorrelationId | true | 50 | string | CorrelationID from the request if any. |
Accounts | true | 50 | Accounts | A list of the accounts for the customer associated with the given request. See “Accounts” under “Types” for more information. |