Skip to content

eBay consent: authorization code

After your consent, eBay sends the browser back to this page and adds the authorization code to the address. With this code the eBay Connector in Business Central obtains lasting access to your seller account.

What to do next

  1. Copy the code - or the full address from the address bar; the connector finds the code in it itself.
  2. In Business Central, on the eBay account (or in the setup wizard), choose Enter Authorization Code.
  3. Paste the code or the address and confirm. The connector exchanges the code for a refresh token and stores it. From then on the account signs in to eBay by itself - you only need a new consent when you revoke it at eBay or the token expires (about 18 months).

The code is valid only briefly

An authorization code is valid for about five minutes and can be used only once. Once it has expired, eBay answers invalid_grant - simply request the consent again in Business Central.

Enter this address in the RuName

For eBay to send you back here, enter it for the RuName in the eBay Developer Portal under User Tokens → Get a Token from eBay via Your Application:

Field in the Developer Portal Value
Your auth accepted URL https://help.merchantcentral.de/ebay/consent/
Your auth declined URL https://help.merchantcentral.de/ebay/consent/
OAuth Enabled set

The address has to be exactly this, with the trailing slash: any redirect drops the code. The same address works for sandbox and production - only the RuName and the keyset differ per environment.

Privacy

This page reads the code from the address in your browser only; it neither stores it nor sends it anywhere. Like any web page, though, the web server receives the requested address, code included. On its own the code is worthless - it cannot be redeemed without the client secret of your keyset, and it expires after a few minutes.

If the code should not leave your own infrastructure at all, set up the consent page in your own Azure subscription: Set up Consent Page on the eBay account, or the guide in the download area. Then enter its address in the RuName.