Professional Documents
Culture Documents
Introduction
Welcome to the Rakuten Marketing API Developer Portal!
The new API Developer Portal leverages an OAuth 2.0 access token to authenticate Web
Service requests. To learn more about the OAuth 2.0 protocol and find code to further help you
implement this request process automatically, please visit oauth.net/2/. Client libraries are
available for most modern programming languages.
This very simple guide will demonstrate both how to acquire an access token through the User
Interface and through Web Service requests. It assumes you have created an application in the
API Developer Portal and subscribed at least one Rakuten Marketing Web Service to it. Should
you require it, please reference the Getting Started Guide in the footer of the portal for a more
complete walkthrough that includes these steps and additional details on how to make API
requests to subscribed Rakuten Marketing Web Services.
This guide uses the popular free Chrome Browser App, Advanced REST Client but any Web
Services client that allows you to send headers with a POST request should suffice.
Step 1: Go to My Subscriptions
The Token Request Authorization header consist of the word Basic followed by a space and
the Base64-encoded Consumer Key:Consumer Secret
(e.g. echo n 3y1VPK4Wb7PgjaHacowRGy_HyZca:pCdxrsjf57nVtFXBs5fa2gzYHQwa|base64)
3. Click the button to copy the API Request Authorization header to the Clipboard:
2. Submit your request and store the access token value provided in the results (you will
prepend Bearer to create the API Request Authorization header used later):
Congratulations!
In case you didnt know
You have now acquired your access token!! You can use this access token to make API
requests for 60 minutes. After that time the access token will expire and you will need a new API
Request Authorization header to make additional API requests. This typically happens
automatically through your OAuth2.0 client library. If you want to make an API request as a
different user or get a new token prior to expiration [resetting the token expiration in the
process], take a look at Step #5 below.
Please Note: Various API Developer Portal Web Services require that legacy tokens have been
generated in the Dashboards; this is required to support both direct API and Portal API access
in parallel during the transition period. For Publishers, the legacy tokens can be generated in the
Links->Web Services section of the Publisher Dashboard for the SID being requested. The
Web Services Token is used behind the scenes but not in any API Developer Portal-facing
request. The Security Token is used as a parameter for the Advanced Reports API to provide
additional security. For Advertisers, the API Key can be found in the Reports->Create a
Custom Report section of the Advertiser Dashboard for the MID being requested.
Return to My Subscriptions
Select the appropriate application to expand its details
Select Show Keys to show the applications production keys
Click the refresh arrow button to prompt for new API user credentials:
5. Enter Username, Password, and ID (SID/MID) for the user you want to make Web
Service requests. You can provide the same account used in Step #4 or a different one
configured in the Dashboard.
Upon Submit, the access token will be updated in the appropriate API Request
Authorization header and the expiration will reset
6. You can now copy the API Request Authorization header and use it to make additional
API requests
2. Submit your request and store the access token value provided in the results (Reminder:
you will prepend Bearer to create the API Request Authorization header):
Conclusion
You made it! You know everything that you need to know about making access token requests
through the API Developer Portal, but should you be on a roll and/or ready to invest even more
time to getting the most out of the Rakuten Marketing platform, please consider reviewing the
documentation associated with each API you are interested in for more information on
request parameters, samples responses, and error messages. If after this review you should
have any additional questions or challenges, please do not hesitate to reach out to us
through your preferred Rakuten Marketing support channel.