GetAccount
Use this call to retrieve a seller's invoice data for their eBay account, including the account's summary data.
Usage Details
Important! Due to EU & UK Payments regulatory requirements, an additional security verification via Digital Signatures is required for certain API calls that are made by EU/UK sellers, including GetAccount. Please refer to Digital Signatures for APIs to learn more on the impacted APIs and the process to create signature to be included in the HTTP payload.GetAccount returns account data in one of three report formats, depending on the inputs used for the call. Specify the type of report to generate with AccountHistorySelection. The types of reports you can request are LastInvoice (returns entries since last invoice sent), BetweenSpecifiedDates (returns entries posted between specific dates), or OrderId (returns entries related to a specific order)
You can sort the response by specifying a AccountEntrySortType in the request. Sort the response by AccountEntry.Date, AccountEntry.ItemID, or AccountEntry.Description, in either ascending or descending order.
You can also use Pagination values to specify how to break the result set into smaller, more manageable chunks. Pagination.EntriesPerPage controls the number of account entries returned from the call, and Pagination.PageNumber (a value between 1 and 200) specifies which page of data to retrieve in the current call.
Working with the Response
GetAccount returns individual account entries in the AccountEntries field, and summary account data in the AccountSummary field.
The AccountEntries property is an array containing a set of AccountEntry objects, each of which represents one transaction posted to the seller's account. Each AccountEntry contains information about the respective transaction, such as the transaction type, the amount of the transaction, the date the transaction was posted to the account, and the associated item ID (if an item listing is associated with the transaction, such as a charge for listing fees).
- Inspect the contents of each AccountEntries.AccountEntry container to get the values for each invoice.
- Inspect AccountSummary to obtain the account's summary data (such as the current balance and the last amount paid), and for data relating to any additional accounts associated with the requesting user.
- Store the appropriate response data as applicable for your application.
You can uniquely identify entries in the AccountEntries container by combining the following fields to form a unique key: AccountEntry.Date, AccountEntry.AccountDetailsEntryType, AccountEntry.ItemID, and AccountEntry.RefNumber.
In the output, Pagination.TotalNumberOfEntries indicates the total number of account entries that can be returned with multiple calls (given the report type and date range). Pagination.TotalNumberOfPages indicates the total number of pages of data that can be returned.
There are no limits on the number of account entries that can be returned using GetAccount. However, eBay only returns records posted within the last four months. This is due to the way eBay archives user data.
Testing GetAccount
Because of certain restrictions, GetAccount is not fully functional in the Sandbox environment. To test GetAccount in the Sandbox, use the following test users:
bssmb_us_03bssmb_us_06bssmb_us_07bssmb_us_10invoice_us_01rabc_reg_us_05vas_multy_uk_eur_gbpvas_multy_uk_usd_gbpvas_us_suspend_02
Each of these special test users has a Password value of p@ss123.
Additionally, the Sandbox supports only the following currency codes: EUR, USD, GBP.
It is recommended that you test GetAccount with several of the test users because their account information is regularly updated with test data and each user has different account information (for example, Currency values and invoice information differs between the different test users).
Related Information
See:
Account Information
Testing Applications
Input
See also Samples.
The box below lists all fields that could be included in the call request. To learn more about an individual field or its type, click its name in the box (or scroll down to find it in the table below the box).
See also the Deprecated Objects link above. Fields presented in this color are deprecated, and fields presented in this color are (or soon will be) non-operational.
The XML prototype does not include requester credentials. This is a documentation limitation only (see Standard Requester Credentials for Making Calls).
<?xml version="1.0" encoding="utf-8"?> <GetAccountRequest xmlns="urn:ebay:apis:eBLBaseComponents"> <!-- Call-specific Input Fields --> <AccountEntrySortType> AccountEntrySortTypeCodeType </AccountEntrySortType> <AccountHistorySelection> AccountHistorySelectionCodeType </AccountHistorySelection> <BeginDate> dateTime </BeginDate> <Currency> CurrencyCodeType </Currency> <EndDate> dateTime </EndDate> <ExcludeBalance> boolean </ExcludeBalance> <ExcludeSummary> boolean </ExcludeSummary> <IncludeConversionRate> boolean </IncludeConversionRate> <IncludeNettedEntries> boolean </IncludeNettedEntries> <ItemID> ItemIDType (string) </ItemID> <OrderID> string </OrderID> <Pagination> PaginationType <EntriesPerPage> int </EntriesPerPage> <PageNumber> int </PageNumber> </Pagination> <!-- Standard Input Fields --> <ErrorLanguage> string </ErrorLanguage> <MessageID> string </MessageID> <OutputSelector> string </OutputSelector> <!-- ... more OutputSelector values allowed here ... --> <Version> string </Version> <WarningLevel> WarningLevelCodeType </WarningLevel> </GetAccountRequest>
| Argument | Type | Occurrence | Meaning |
|---|
Applicable values: See AccountEntrySortType.
Default: LastInvoice.
Applicable values:
The allowed date formats are YYYY-MM-DD and YYYY-MM-DD HH:mm:ss The BeginDate value must be less than or equal to the EndDate value. The user might use the same values in both fields if that user wanted to retrieve all account entries from a specific day (if YYYY-MM-DD format used) or wanted to retrieve a specific account entry (if YYYY-MM-DD HH:mm:ss format used).
This field is only applicable if the AccountHistorySelection value is set to 'BetweenSpecifiedDates'; otherwise, this field will be ignored. fiedDates' is used, both the BeginDate and EndDate must be included.
Applicable values: See Currency.
The allowed date formats are YYYY-MM-DD and YYYY-MM-DD HH:mm:ss The EndDate value must be more than or equal to the BeginDate value. The user might use the same values in both fields if that user wanted to retrieve all account entries from a specific day (if YYYY-MM-DD format used) or wanted to retrieve a specific account entry (if YYYY-MM-DD HH:mm:ss format used).
This field is only applicable if the AccountHistorySelection value is set to 'BetweenSpecifiedDates'; otherwise, this field will be ignored. If 'BetweenSpecifiedDates' is used, both the BeginDate and EndDate must be included.
true to retrieve the total net amount of all charges/fees that have been deducted from seller payouts instead of being invoiced to the seller. The total net amount of any seller credits related to these fees is also shown. These fees and credit amounts will be shown in the AccountSummary.NettedTransactionSummary container in the response.
OrderId. A user can filter by order ID to see if there are specific account entries related to a specific eBay order. It is possible that no account entries will be found directly related to the specified order ID, and if this is the case, no AccountEntries container will be returned, and the ack value will still be
Success. Note: Note that the unique identifier of a 'non-immediate payment' order will change as it goes from an unpaid order to a paid order. Due to this scenario, all calls that accept Order ID values as request filters/parameters, including the GetAccount call, will support the identifiers for both unpaid and paid orders.
Sellers can check to see if an order has been paid by looking for a value of 'Complete' in the CheckoutStatus.Status field in the response of GetOrders call, or in the Status.CompleteStatus field in the response of GetItemTransactions or GetSellerTransactions call. Sellers should not fulfill orders until buyer has made payment.
The maximum and default values are not the same for all calls. For most Trading API calls, the maximum value is 200 and the default value is 25 entries per page.
Min: 1. Default: 1.
| ErrorLanguage | string | Optional |
Use ErrorLanguage to return error strings for the call in a different language from the language commonly associated with the site that the requesting user is registered with. Below are some examples from different countries.
|
||||||||||||||||||||||||||||||||||||||||
| MessageID | string | Optional |
Most Trading API calls support a MessageID element in the request and a CorrelationID element in the response. If you pass in a MessageID in a request, the same value will be returned in the CorrelationID field in the response. Pairing these values can help you track and confirm that a response is returned for every request and to match specific responses to specific requests. If you do not pass a MessageID value in the request, CorrelationID is not returned. Note: GetCategories is designed to retrieve very large sets of metadata that change once a day or less often. To improve performance, these calls return cached responses when you request all available data (with no filters). When this occurs, the MessageID and CorrelationID fields aren't applicable. However, if you specify an input filter to reduce the amount of data returned, the calls retrieve the latest data (not cached). When this occurs, MessageID and CorrelationID are applicable. |
||||||||||||||||||||||||||||||||||||||||
| OutputSelector | string | Optional,
repeatable: [0..*] |
You can use the OutputSelector field to restrict the data returned by a call. This field can make the call response easier to manage, especially when a large payload is returned. If you use the OutputSelector field, the output data will only include the field(s) you specified in the request, as well as all of its child fields (if a field is a container) and its parent fields (if any). Note that it is possible that a field included through an OutputSelector field may still not be returned if it is not applicable, or if it is not found based on other criteria set up in the request payload. For example, if you are using GetItem and you only want to retrieve the URL of the View Item page (emitted in ViewItemURL field) and the item's Buy It Now price (emitted in BuyItNowPrice field), you would include two separate OutputSelector fields and set the value for each one as ViewItemURL and BuyItNowPrice as in the following example: If the following output selectors are used: See OutputSelector. |
||||||||||||||||||||||||||||||||||||||||
| Version | string | Conditional |
The version number of the API code that you are programming against (e.g., 1149). The version you specify for a call has these basic effects:
For the SOAP API: If you are using the SOAP API, this field is required. Specify the version of the WSDL your application is using. For the XML API: If you are using the XML API, this field has no effect. Instead, specify the version in the X-EBAY-API-COMPATIBILITY-LEVEL HTTP header. (If you specify Version in the body of an XML API request and it is different from the value in the HTTP header, eBay returns an informational warning that the value in the HTTP header was used instead.) See:
|
||||||||||||||||||||||||||||||||||||||||
| WarningLevel | WarningLevelCodeType | Optional |
Controls whether or not to return warnings when the application passes unrecognized or deprecated elements in a request. An unrecognized element is one that is not defined in any supported version of the schema. Schema element names are case-sensitive, so using WarningLevel can also help you remove any potential hidden bugs within your application due to incorrect case or spelling in field names before you put your application into the Production environment. WarningLevel only validates elements; it doesn't validate XML attributes. It also doesn't control warnings related to user-entered strings or numbers, or warnings for logical errors. We recommend that you only use this during development and debugging. Do not use this in requests performed in the Production environment. Applicable values: High if the user wishes to receive warnings when the application passes unrecognized or deprecated elements in an API call request. Setting the WarningLevel value to High is not recommended in a production environment. Instead, it should only be used during the development/debugging stage.Low if the user does not wish to receive warnings when the application passes unrecognized or deprecated elements in an API call request. This is the default value if WarningLevel is not specified in the call request.See Warning Level. |
Output
See also Samples.
The box below lists all fields that might be returned in the response. To learn more about an individual field or its type, click its name in the box (or scroll down to find it in the table below the box).
See also the Deprecated Objects link above. Fields presented in this color are deprecated, and fields presented in this color are not returned (or soon will not be returned) or are not operational (or soon will be non-operational).
<?xml version="1.0" encoding="utf-8"?> <GetAccountResponse xmlns="urn:ebay:apis:eBLBaseComponents"> <!-- Call-specific Output Fields --> <AccountEntries> AccountEntriesType <AccountEntry> AccountEntryType <AccountDetailsEntryType> AccountDetailEntryCodeType </AccountDetailsEntryType> <Balance currencyID="CurrencyCodeType"> AmountType (double) </Balance> <ConversionRate currencyID="CurrencyCodeType"> AmountType (double) </ConversionRate> <Date> dateTime </Date> <Description> string </Description> <DiscountDetail> DiscountDetailType <Discount> DiscountType <Amount currencyID="CurrencyCodeType"> AmountType (double) </Amount> <DiscountType> string </DiscountType> </Discount> <!-- ... more Discount nodes allowed here ... --> </DiscountDetail> <GrossDetailAmount currencyID="CurrencyCodeType"> AmountType (double) </GrossDetailAmount> <ItemID> ItemIDType (string) </ItemID> <Memo> string </Memo> <NetDetailAmount currencyID="CurrencyCodeType"> AmountType (double) </NetDetailAmount> <Netted> boolean </Netted> <OrderId> string </OrderId> <OrderLineItemID> string </OrderLineItemID> <ReceivedTopRatedDiscount> boolean </ReceivedTopRatedDiscount> <RefNumber> string </RefNumber> <Title> string </Title> <TransactionID> string </TransactionID> <VATPercent> decimal </VATPercent> </AccountEntry> <!-- ... more AccountEntry nodes allowed here ... --> </AccountEntries> <AccountID> string </AccountID> <AccountSummary> AccountSummaryType <AccountState> AccountStateCodeType </AccountState> <AdditionalAccount> AdditionalAccountType <AccountCode> string </AccountCode> <Balance currencyID="CurrencyCodeType"> AmountType (double) </Balance> <Currency> CurrencyCodeType </Currency> </AdditionalAccount> <!-- ... more AdditionalAccount nodes allowed here ... --> <AmountPastDue currencyID="CurrencyCodeType"> AmountType (double) </AmountPastDue> <BankAccountInfo> string </BankAccountInfo> <BankModifyDate> dateTime </BankModifyDate> <BillingCycleDate> int </BillingCycleDate> <CreditCardExpiration> dateTime </CreditCardExpiration> <CreditCardInfo> string </CreditCardInfo> <CreditCardModifyDate> dateTime </CreditCardModifyDate> <CurrentBalance currencyID="CurrencyCodeType"> AmountType (double) </CurrentBalance> <InvoiceBalance currencyID="CurrencyCodeType"> AmountType (double) </InvoiceBalance> <InvoiceCredit currencyID="CurrencyCodeType"> AmountType (double) </InvoiceCredit> <InvoiceDate> dateTime </InvoiceDate> <InvoiceNewFee currencyID="CurrencyCodeType"> AmountType (double) </InvoiceNewFee> <InvoicePayment currencyID="CurrencyCodeType"> AmountType (double) </InvoicePayment> <LastAmountPaid currencyID="CurrencyCodeType"> AmountType (double) </LastAmountPaid> <LastPaymentDate> dateTime </LastPaymentDate> <NettedTransactionSummary> NettedTransactionSummaryType <TotalNettedChargeAmount currencyID="CurrencyCodeType"> AmountType (double) </TotalNettedChargeAmount> <TotalNettedCreditAmount currencyID="CurrencyCodeType"> AmountType (double) </TotalNettedCreditAmount> </NettedTransactionSummary> <PastDue> boolean </PastDue> <PaymentMethod> SellerPaymentMethodCodeType </PaymentMethod> </AccountSummary> <Currency> CurrencyCodeType </Currency> <EntriesPerPage> int </EntriesPerPage> <FeeNettingStatus> FeenettingStatusCodeType </FeeNettingStatus> <HasMoreEntries> boolean </HasMoreEntries> <PageNumber> int </PageNumber> <PaginationResult> PaginationResultType <TotalNumberOfEntries> int </TotalNumberOfEntries> <TotalNumberOfPages> int </TotalNumberOfPages> </PaginationResult> <!-- Standard Output Fields --> <Ack> AckCodeType </Ack> <Build> string </Build> <CorrelationID> string </CorrelationID> <Errors> ErrorType <ErrorClassification> ErrorClassificationCodeType </ErrorClassification> <ErrorCode> token </ErrorCode> <ErrorParameters ParamID="string"> ErrorParameterType <Value> string </Value> </ErrorParameters> <!-- ... more ErrorParameters nodes allowed here ... --> <LongMessage> string </LongMessage> <SeverityCode> SeverityCodeType </SeverityCode> <ShortMessage> string </ShortMessage> </Errors> <!-- ... more Errors nodes allowed here ... --> <HardExpirationWarning> string </HardExpirationWarning> <Timestamp> dateTime </Timestamp> <Version> string </Version> </GetAccountResponse>
| Return Value | Type | Occurrence | Meaning |
|---|
LastInvoice value is used), between the specified dates (if BetweenSpecifiedDates value is used), or no entries exist for an order (if OrderId value is used).
repeatable: [0..*] Container consisting of detailed information for each debit or credit transaction that occurs on an eBay user's account.
.AccountDetailsEntryType AccountDetailEntryCodeType Conditionally This enumeration value indicates the type of transaction or administrative action that occurred on the eBay user's account. Possible values are defined in the AccountDetailEntryCodeType enumerated type.
Applicable values: See AccountDetailsEntryType.
Code so that your app gracefully handles any future changes to this list.
.Balance AmountType (double) Conditionally This field is no longer returned. If the eBay user has an outstanding balance owed to eBay, the owed amount will be displayed in the AccountSummary.CurrentBalance field in the GetAccount response.
.Balance
[ attribute currencyID ] CurrencyCodeType Always This field is no longer returned. If the eBay user has an outstanding balance owed to eBay, the owed amount will be displayed in the AccountSummary.CurrentBalance field in the GetAccount response.
For a list of possible enumeration values, see CurrencyCodeType.
.ConversionRate AmountType (double) Conditionally The rate used for the currency conversion for a transaction.
.ConversionRate
[ attribute currencyID ] CurrencyCodeType Always The rate used for the currency conversion for a transaction.
For a list of possible enumeration values, see CurrencyCodeType.
.Date dateTime Conditionally Timestamp indicating the date and time that the entry was posted to the account, in GMT.
.Description string Conditionally The category of the monetary transaction or administrative action applied to an eBay account.
.DiscountDetail DiscountDetailType Conditionally This container is an array of one or more discounts applied to the corresponding accounty entry. This container will not be returned if there are no discounts applied to the corresponding accounty entry.
.DiscountDetail.Discount DiscountType Conditionally,
repeatable: [0..*] This container indicates the discount type and amount applied to an account entry.
Note: The discount type will be shown for any account entry where a discount applies, but the discount amount will only be shown if the corresponding fee was deducted from a seller payout.
.DiscountDetail.Discount
.Amount AmountType (double) Conditionally The amount of the discount in the currency indicated in the currencyID attribute.
Note: The discount amount will only be shown if the corresponding fee was deducted from a seller payout.
.DiscountDetail.Discount
.Amount
[ attribute currencyID ] CurrencyCodeType Always The amount of the discount in the currency indicated in the currencyID attribute.
Note: The discount amount will only be shown if the corresponding fee was deducted from a seller payout.
For a list of possible enumeration values, see CurrencyCodeType.
.DiscountDetail.Discount
.DiscountType string Conditionally The value in this field indicates the type of discount applied to the corresponding account entry.
.GrossDetailAmount AmountType (double) Conditionally Gross fees that are assessed by eBay (net fees plus VAT, if any). Returned even if VAT does not apply. The value is positive for debits and negative for credits.
.GrossDetailAmount
[ attribute currencyID ] CurrencyCodeType Always Gross fees that are assessed by eBay (net fees plus VAT, if any). Returned even if VAT does not apply. The value is positive for debits and negative for credits.
For a list of possible enumeration values, see CurrencyCodeType.
.ItemID ItemIDType (string) Conditionally If the account entry is associated with an eBay listing, this field shows the eBay ItemID value. If there is no correlation between the account entry and one of the user's eBay listings, '0' is returned in this field.
.Memo string Conditionally Memo line for the account entry. It can be an empty string.
.NetDetailAmount AmountType (double) Conditionally Net fees that are assessed by eBay, excluding additional surcharges and VAT (if any). Returned even if VAT does not apply. The value is positive for debits (user pays eBay) and negative for credits (eBay pays user).
.NetDetailAmount
[ attribute currencyID ] CurrencyCodeType Always Net fees that are assessed by eBay, excluding additional surcharges and VAT (if any). Returned even if VAT does not apply. The value is positive for debits (user pays eBay) and negative for credits (eBay pays user).
For a list of possible enumeration values, see CurrencyCodeType.
.Netted boolean Conditionally This boolean field is returned with each account entry if the IncludeNettedEntries field is included in the request and set to
true. The value indicates whether or not the corresponding account entry value (charge or credit) is a part of the 'Total Netted Charge Amount' or 'Total Netted Credit Amount' values returned in the AccountSummary.NettedTransactionSummary container. If this value is
true, it indicates that the corresponding fee was deducted from a seller payout. If the value is false, it indicates that the fee or credit was invoiced to the seller instead.
.OrderId string Conditionally This field is returned if the account fee or credit is associated with an entire (single or multiple line item) order, and not necessarily for a single line item within the order.
.OrderLineItemID string Conditionally OrderLineItemID is a unique identifier for an eBay order line item. This field is only returned if the account entry is associated with an order line item.
.ReceivedTopRatedDiscount boolean Conditionally This boolean field is returned as
true if the seller received a discount on the Final Value Fee for the order line item. Only Top-Rated sellers are eligible for this Final Value Fee discount. The Final Value Fee discount percentage varies by country. For more information on becoming a Top-Rated Seller in the US and the requirements for Top-Rated Plus listings, see the Becoming a Top Rated Seller help topic. This field will not be returned until eBay bills the seller for the Final Value Fee for the eligible order line item.
.RefNumber string Conditionally This value is the unique identifier for the account entry. This value is created by eBay once the transaction occurs on the user's account.
.Title string Conditionally A description or comment about the monetary transaction or administrative action applied to an eBay user account.
.TransactionID string Conditionally The unique identifier of an order line item. This field is only returned if the account entry is associated with an order line item.
The TransactionID value for auction listings is always
0 since there can be only one winning bidder/one sale for an auction listing. Note: Historically, TransactionID values have been '0' for auction listings, and some developers may have built logic around this. However, non-zero TransactionID values for auction listings started being used for some eBay marketplaces beginning in July 2024, and all eBay marketplaces are expected to start using non-zero TransactionID values for auction listings in the near future. If necessary, developers should update code to handle non-zero transaction IDs for auction transactions.
.VATPercent decimal Conditionally The applicable rate that was used to calculate the VAT (Value-Added Tax) for the transaction. When the VATPercent is specified for a listing, the item's VAT information appears on the View Item page. In addition, the seller can choose to print an invoice that includes the item's net price, VAT percent, VAT amount, and total price. Since VAT rates vary depending on the item and on the user's country of residence, a seller is responsible for entering the correct VAT rate; it is not calculated by eBay. VAT is only applicable to sellers located in a European Union (EU) country. If VAT does not apply to the account entry, this field is still returned but it's value will be '0'.
Applicable values:
Code so that your app gracefully handles any future changes to this list.
.AdditionalAccount AdditionalAccountType Conditionally,
repeatable: [0..*] This container shows the identifier and current balance for another eBay account associated with the eBay user. This container will appear under the AccountSummary container for each additional account that the eBay user owns.
.AdditionalAccount.AccountCode string Conditionally Indicates the unique identifier for the additional account (the account ID).
.AdditionalAccount.Balance AmountType (double) Conditionally Indicates the current balance of the additional account.
.AdditionalAccount.Balance
[ attribute currencyID ] CurrencyCodeType Always Indicates the current balance of the additional account.
For a list of possible enumeration values, see CurrencyCodeType.
.AdditionalAccount.Currency CurrencyCodeType Conditionally Indicates the currency in which monetary amounts for the additional account are expressed.
Applicable values: See Currency.
Code so that your app gracefully handles any future changes to this list.
0.0.
[ attribute currencyID ] CurrencyCodeType Always This value indicates the amount of money that is past due on the user's account. If no money is past due, this value will be
0.0.For a list of possible enumeration values, see CurrencyCodeType.
Max length: 4.
.BillingCycleDate int Conditionally This integer value indicates the day of the month on which eBay sends a billing invoice to the user. A value of
0 indicates that an invoice is sent on the last day of each month. A value of 1515 indicates that an invoice is sent on the 15th day of each month.
.CreditCardExpiration dateTime Conditionally This timestamp indicates the expiration date for the credit card that is currently on file and used to pay monthly invoices. This field may not be returned if the primary method is not a credit card.
.CreditCardModifyDate dateTime Conditionally This timestamp indicates the date and time when the owner of the account last changed the credit card on file as the primary payment method. This field may not be returned if the credit card on file has never been changed, or if the primary payment method is not a credit card.
0.0, a positive amount (debit), or a negative amount (credit). This field is only returned if the ExcludeBalance flag is included in the call request and set to
false.
[ attribute currencyID ] CurrencyCodeType Always This field shows the current balance for the user's account. This value can be
0.0, a positive amount (debit), or a negative amount (credit). This field is only returned if the ExcludeBalance flag is included in the call request and set to
false.For a list of possible enumeration values, see CurrencyCodeType.
LastInvoice. This field is not returned if the AccountHistorySelection input field's value was set to BetweenSpecifiedDates and a custom time period (overlapping multiple billing cycles) was specified. The value is positive for debits and negative for credits.
[ attribute currencyID ] CurrencyCodeType Always This field specifies the balance for the invoice. This field is only returned if the AccountHistorySelection input field's value was set to
LastInvoice. This field is not returned if the AccountHistorySelection input field's value was set to BetweenSpecifiedDates and a custom time period (overlapping multiple billing cycles) was specified. The value is positive for debits and negative for credits.For a list of possible enumeration values, see CurrencyCodeType.
LastInvoice. This field is not returned if the AccountHistorySelection input field's value was set to BetweenSpecifiedDates and a custom time period (overlapping multiple billing cycles) was specified. If a payment was made by the user instead, this payment amount will be shown in the InvoicePayment field.
[ attribute currencyID ] CurrencyCodeType Always This field specifies the credit amount that has been issued to the user's account by eBay for the invoice. This field is only returned if a credit has been issued towards the invoice, and if the AccountHistorySelection input field's value was set to
LastInvoice. This field is not returned if the AccountHistorySelection input field's value was set to BetweenSpecifiedDates and a custom time period (overlapping multiple billing cycles) was specified. If a payment was made by the user instead, this payment amount will be shown in the InvoicePayment field.For a list of possible enumeration values, see CurrencyCodeType.
LastInvoice. This field is not returned if the AccountHistorySelection input field's value was set to BetweenSpecifiedDates and a custom time period (overlapping multiple billing cycles) was specified.
LastInvoice. This field is not returned if the AccountHistorySelection input field's value was set to BetweenSpecifiedDates or OrderId. If there have been no fees since the last invoice was created, this value will be 0.0.
[ attribute currencyID ] CurrencyCodeType Always This field specifies the balance of any new fees that have been assessed toward the user's account since the last invoice was created. This field is only returned if the AccountHistorySelection input field's value was set to
LastInvoice. This field is not returned if the AccountHistorySelection input field's value was set to BetweenSpecifiedDates or OrderId. If there have been no fees since the last invoice was created, this value will be 0.0.For a list of possible enumeration values, see CurrencyCodeType.
LastInvoice. This field is not returned if the AccountHistorySelection input field's value was set to BetweenSpecifiedDates and a custom time period (overlapping multiple billing cycles) was specified. If a credit was issued by eBay to the user instead, this credit will be shown in the InvoiceCredit field.
[ attribute currencyID ] CurrencyCodeType Always This field specifies the payment amount that has been made by the user for the invoice. This field is only returned if a payment has been made towards the invoice, and if the AccountHistorySelection input field's value was set to
LastInvoice. This field is not returned if the AccountHistorySelection input field's value was set to BetweenSpecifiedDates and a custom time period (overlapping multiple billing cycles) was specified. If a credit was issued by eBay to the user instead, this credit will be shown in the InvoiceCredit field.For a list of possible enumeration values, see CurrencyCodeType.
[ attribute currencyID ] CurrencyCodeType Always This field shows the amount of the last payment that was made by the user.
For a list of possible enumeration values, see CurrencyCodeType.
.NettedTransactionSummary NettedTransactionSummaryType Conditionally This container shows the total amount of fees (and credits if applicable) that have already been paid through seller payout deductions. The seller must include the IncludeNettedEntries field in the request and set it to
true in order for this container to be returned.
.NettedTransactionSummary
.TotalNettedChargeAmount AmountType (double) Conditionally The amount in this field is the total amount of all charges/fees that have been deducted from seller payouts, and not invoiced to the seller. This value should equal the total sum of all the 'netted' fees in the AccountEntries array. The corresponding Netted boolean field for each fee in AccountEntries array will show as
true if the fee has already been deducted from a seller payout. This field is returned even if
0.0.
.NettedTransactionSummary
.TotalNettedChargeAmount
[ attribute currencyID ] CurrencyCodeType Always The amount in this field is the total amount of all charges/fees that have been deducted from seller payouts, and not invoiced to the seller. This value should equal the total sum of all the 'netted' fees in the AccountEntries array. The corresponding Netted boolean field for each fee in AccountEntries array will show as
true if the fee has already been deducted from a seller payout. This field is returned even if
0.0.For a list of possible enumeration values, see CurrencyCodeType.
.NettedTransactionSummary
.TotalNettedCreditAmount AmountType (double) Conditionally The amount in this field is the total amount of all credits for fees that have been deducted from seller payouts, and not invoiced to the seller. This value should equal the total sum of all the 'netted' credit in the AccountEntries array. The corresponding Netted boolean field for each credit in AccountEntries array will show as
true if the credit is for a fee that has already been deducted from a seller payout. This field is returned even if
0.0.
.NettedTransactionSummary
.TotalNettedCreditAmount
[ attribute currencyID ] CurrencyCodeType Always The amount in this field is the total amount of all credits for fees that have been deducted from seller payouts, and not invoiced to the seller. This value should equal the total sum of all the 'netted' credit in the AccountEntries array. The corresponding Netted boolean field for each credit in AccountEntries array will show as
true if the credit is for a fee that has already been deducted from a seller payout. This field is returned even if
0.0.For a list of possible enumeration values, see CurrencyCodeType.
true indicates that the account is past due, and a value of false indicates that the account is current. If the account is past due, the amount past due can be found in the AmountPastDue field.
Applicable values: See PaymentMethod.
Code so that your app gracefully handles any future changes to this list.
Applicable values: See Currency.
Code so that your app gracefully handles any future changes to this list.
Enabled value is returned, the seller may include the IncludeNettedEntries field in the request to retrieve the total net amount of all charges/fees that have been deducted from seller payouts instead of being invoiced to the seller. The total net amount of any seller credits related to these fees is also shown in the AccountSummary.NettedTransactionSummary container in the response.
Applicable values:
Code so that your app gracefully handles any future changes to this list.
.TotalNumberOfEntries int Always Indicates the total number of entries that could be returned by repeated call requests. Returned with a value of 0 if no entries are available.
.TotalNumberOfPages int Always Indicates the total number of pages of data that could be returned by repeated requests. Returned with a value of 0 if no pages are available.
Applicable values:
(Not all values in AckCodeType apply to this field.)
Code so that your app gracefully handles any future changes to this list.
Note: GetCategories is designed to retrieve very large sets of metadata that change once a day or less often. To improve performance, these calls return cached responses when you request all available data (with no filters). When this occurs, the MessageID and CorrelationID fields aren't applicable. However, if you specify an input filter to reduce the amount of data returned, the calls retrieve the latest data (not cached). When this occurs, MessageID and CorrelationID are applicable.
repeatable: [0..*] A list of application-level errors (if any) that occurred when eBay processed the request.
Applicable values:
Code so that your app gracefully handles any future changes to this list.
See Errors By Number.
repeatable: [0..*] This optional element carries a list of context-specific error variables that indicate details about the error condition. These are useful when multiple instances of ErrorType are returned.
[ attribute ParamID ] string Conditionally This optional element carries a list of context-specific error variables that indicate details about the error condition. These are useful when multiple instances of ErrorType are returned.
Applicable values:
If the source of the problem is within the application (such as a missing required element), change the application before you retry the request.
- If the problem is due to end-user input data, please alert the end-user to the problem and provide the means for them to correct the data. Once the problem in the application or data is resolved, you can attempt to re-send the request to eBay.
- If the source of the problem is on eBay's side, An application can retry the request as-is a reasonable number of times (eBay recommends twice). If the error persists, contact Developer Technical Support. Once the problem has been resolved, the request may be resent in its original form.
See the Error handling section of the Making a Trading API call guide for more information.
When a warning occurs, the error is returned in addition to the business data. In this case, you do not need to retry the request (as the original request was successful). However, depending on the cause or nature of the warning, you might need to contact either the end user or eBay to effect a long term solution to the problem to prevent it from reoccurring in the future.
Code so that your app gracefully handles any future changes to this list.
Note: GetCategories and other Trading API calls are designed to retrieve very large sets of metadata that change once a day or less often. To improve performance, these calls return cached responses when you request all available data (with no filters). When this occurs, this time value reflects the time the cached response was created. Thus, this value is not necessarily when the request was processed. However, if you specify an input filter to reduce the amount of data returned, the calls retrieve the latest data (not cached). When this occurs, this time value does reflect when the request was processed.
Detail Controls
DetailLevel
This call does not support varying Detail Levels. You do not need to pass DetailLevel in the request.
Samples
New to making API calls? Please see Making a Call.
Note: Some item IDs, user IDs, or other data in these samples might no longer be active on eBay. If necessary, you can substitute current eBay data in your requests.
Retrieves the account data for the authenticated user.
Description
This call returns a user's account data, including a summary report. The call returns all account entries since the last account invoice request. Entries are sorted by the value specified in AccountEntrySortType.
Input
XML format.
<?xml version="1.0" encoding="utf-8"?>
<GetAccountRequest xmlns="urn:ebay:apis:eBLBaseComponents">
<RequesterCredentials>
<eBayAuthToken>A*******3</eBayAuthToken>
</RequesterCredentials>
<AccountEntrySortType>AccountEntryFeeTypeAscending</AccountEntrySortType>
<AccountHistorySelection>LastInvoice</AccountHistorySelection>
</GetAccountRequest>
Output
XML format.
<GetAccountResponse xmlns="urn:ebay:apis:eBLBaseComponents">
<Timestamp>2019年11月04日T17:49:51.095Z</Timestamp>
<Ack>Success</Ack>
<Version>1131</Version>
<Build>E1131_CORE_API6_19105226_R1</Build>
<AccountID>E***********1-**D</AccountID>
<AccountSummary>
<AccountState>Active</AccountState>
<AmountPastDue currencyID="USD">0.0</AmountPastDue>
<BillingCycleDate>15</BillingCycleDate>
<InvoiceBalance currencyID="USD">11.22</InvoiceBalance>
<InvoiceDate>2019年10月15日T06:59:59.000Z</InvoiceDate>
<LastAmountPaid currencyID="USD">-7.49</LastAmountPaid>
<LastPaymentDate>2019年09月30日T21:55:43.000Z</LastPaymentDate>
<PastDue>false</PastDue>
<PaymentMethod>NothingOnFile</PaymentMethod>
</AccountSummary>
<Currency>USD</Currency>
<AccountEntries>
<AccountEntry>
<AccountDetailsEntryType>BuyItNowFee</AccountDetailsEntryType>
<Description>Buy It Now Listing Fee</Description>
<Date>2019年10月23日T15:35:11.000Z</Date>
<GrossDetailAmount currencyID="USD">0.05</GrossDetailAmount>
<ItemID>1**********3</ItemID>
<NetDetailAmount currencyID="USD">0.05</NetDetailAmount>
<RefNumber>2***********0</RefNumber>
<VATPercent>0</VATPercent>
<Title>Marilyn Monroe \x93Sultry Yet Regal\x93 Porcelain Collectors Plate Bradford Exchange</Title>
</AccountEntry>
<AccountEntry>
<AccountDetailsEntryType>FeeFinalValue</AccountDetailsEntryType>
<Description>Final Value Fee</Description>
<Date>2019年10月24日T18:33:36.000Z</Date>
<GrossDetailAmount currencyID="USD">0.96</GrossDetailAmount>
<ItemID>1**********0</ItemID>
<Memo>Final price: 12ドル.00 (Auction)</Memo>
<NetDetailAmount currencyID="USD">0.96</NetDetailAmount>
<RefNumber>2***********0</RefNumber>
<VATPercent>0</VATPercent>
<Title>Jonathon Byron Floating Swans 3-D Hand-Painted Porcelain Collector Plate</Title>
<OrderLineItemID>1**********0-0</OrderLineItemID>
<TransactionID>0</TransactionID>
</AccountEntry>
<AccountEntry>
<AccountDetailsEntryType>FeeFinalValueShipping</AccountDetailsEntryType>
<Description>Final Value Fee on Shipping</Description>
<Date>2019年10月24日T20:09:11.000Z</Date>
<GrossDetailAmount currencyID="USD">0.7</GrossDetailAmount>
<ItemID>1**********0</ItemID>
<Memo>Shipping and other costs less sales tax: 8ドル.75 (Auction)</Memo>
<NetDetailAmount currencyID="USD">0.7</NetDetailAmount>
<RefNumber>2***********0</RefNumber>
<VATPercent>0</VATPercent>
<Title>Jonathon Byron Floating Swans 3-D Hand-Painted Porcelain Collector Plate</Title>
<OrderLineItemID>1**********0-0</OrderLineItemID>
<TransactionID>0</TransactionID>
</AccountEntry>
<AccountEntry>
<AccountDetailsEntryType>PaymentIntermediationFee</AccountDetailsEntryType>
<Description>Payments processing fee</Description>
<Date>2019年10月24日T20:09:17.000Z</Date>
<GrossDetailAmount currencyID="USD">0.45</GrossDetailAmount>
<ItemID>1**********0</ItemID>
<Memo>Fee collected by eBay Inc. on behalf of eBay Commerce Inc. (+1 (800) 456-3229)</Memo>
<NetDetailAmount currencyID="USD">0.45</NetDetailAmount>
<RefNumber>2***********0</RefNumber>
<VATPercent>0</VATPercent>
<Title>Jonathon Byron Floating Swans 3-D Hand-Painted Porcelain Collector Plate</Title>
</AccountEntry>
</AccountEntries>
<PaginationResult>
<TotalNumberOfPages>1</TotalNumberOfPages>
</PaginationResult>
<EntriesPerPage>4</EntriesPerPage>
<PageNumber>1</PageNumber>
</GetAccountResponse>
Change History
| Change Date | Description |
|---|---|
| 1357 2024年04月08日 |
|
| 1331 2023年10月23日 |
|
| 1313 2023年06月02日 |
|
| 1281 2022年10月21日 |
|
| 1225 2021年09月24日 |
|
| 1209 2021年06月04日 |
|
| 1201 2021年04月09日 |
|
| 1157 2020年06月05日 |
|
| 1145 2020年03月13日 |
|
| 1131 2019年10月25日 |
|
| 1129 2019年10月11日 |
|
| 1125 2019年09月13日 |
|
| 1101 2019年03月29日 |
|
| 1077 2018年08月31日 |
|
| 0975 2016年07月01日 |
|
| 0947 2015年10月29日 |
|
| 0945 2015年10月15日 |
|
| 0893 2014年09月23日 |
|
| 0847 2013年10月22日 |
|
| 0841 2013年09月19日 |
|
| 0837 2013年08月29日 |
|
| 0803 2012年12月12日 |
|
| 0795 2012年10月10日 |
|
| 0793 2012年09月26日 |
|
| 0787 2012年08月15日 |
|
| 0785 2012年08月01日 |
|
| 0775 2012年05月23日 |
|
| 0771 2012年04月29日 |
|
| 0685 2010年08月25日 |
|
| 0681 2010年08月04日 |
|
| 0679 2010年07月21日 |
|
| 0551 2008年02月07日 |
|
| 0499 2007年02月07日 |
|
| 0453 2006年03月22日 |
|