openapi: 3.0.0
info:
title: eBay Account Advertising_eligibility User API
description: The Account API gives sellers the ability to configure their eBay seller accounts, including the seller's policies (eBay business policies and seller-defined custom policies), opt in and out of eBay seller programs, configure sales tax tables, and get account information.
For details on the availability of the methods in this API, see Account API requirements and restrictions.
contact:
name: eBay Inc,
license:
name: eBay API License Agreement
url: https://go.developer.ebay.com/api-license-agreement
version: v1.9.2
servers:
- url: https://api.ebay.com{basePath}
description: Production
variables:
basePath:
default: /sell/account/v1
tags:
- name: User
paths:
/user/:
get:
tags:
- User
description: 'This method retrieves the account profile information for an authenticated user, which requires a User access token. What is returned is controlled by the scopes.
For a business account you use the default scope commerce.identity.readonly, which returns all the fields in the businessAccount container. These are returned because this is all public information.
For an individual account, the fields returned in the individualAccount container are based on the scope you use. Using the default scope, only public information, such as eBay user ID, are returned. For details about what each scope returns, see the Identity API Overview.
In the Sandbox, this API returns mock data. Note: You must use the correct scope or scopes for the data you want returned.
' operationId: getUser responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/UserResponse' '404': description: Not found '500': description: Internal Server Error x-response-codes: errors: '140000': domain: API_IDENTITY category: APPLICATION description: There was a problem with an eBay internal system or process. Contact eBay developer support for assistance. security: - api_auth: - https://api.ebay.com/oauth/api_scope/commerce.identity.readonly - https://api.ebay.com/oauth/api_scope/commerce.identity.name.readonly - https://api.ebay.com/oauth/api_scope/commerce.identity.address.readonly - https://api.ebay.com/oauth/api_scope/commerce.identity.email.readonly - https://api.ebay.com/oauth/api_scope/commerce.identity.phone.readonly components: schemas: Address: type: object properties: addressLine1: type: string description: The first line of the street address. addressLine2: type: string description: The second line of the street address. This field is not always used, but can be used for 'Suite Number' or 'Apt Number'. city: type: string description: The city of the address. country: type: string description: The two-letter ISO 3166 standard of the country of the address. For implementation help, refer to eBay API documentation county: type: string description: The county of the address. postalCode: type: string description: The postal code of the address. stateOrProvince: type: string description: The state or province of the address. description: The type that defines the fields for an address. Contact: type: object properties: firstName: type: string description: The first name of the contact person. lastName: type: string description: The last name of the contact person. description: The type that defines the fields for the information of the contact person for the account. UserResponse: type: object properties: accountType: type: string description: 'Indicates the user account type. This is determined when the user registers with eBay. If they register for a business account, this value will be BUSINESS. If they register for a private account, this value will be INDIVIDUAL. This designation is required by the tax laws in the following countries:CONFIRMED, UNCONFIRMED, ACCOUNTONHOLD and UNDETERMINED. For implementation help, refer to eBay API documentation'
userId:
type: string
description: The eBay immutable user ID of the user's account and can always be used to identify the user.
username:
type: string
description: 'The user name, which was specific by the user when they created the account.