POST /accounts/v4/authtokens

Allows a consumer application to obtain a token to request user authorization. Note: Usage of this call is limited and only on request by email to developercenter@bol.com.

Request URL structure:

https://api.bol.com/accounts/v4/authtokens

Make sure that the parameter values are urlencoded.

Request HTTP method:

POST

Request requires session:

No

Request parameters:

Attribute Min Max Data type Description

successUrl

Form

Text

No

URL to redirect to after user has successfully accepted the login request, initiated by calling the URL as returned by this operation.

If no URL was provided, the bol.com Apps account page URL will be used at that point.

errorUrl

Form

Text

No

URL to redirect to after user has not accepted or if an error has occured, initiated by calling the URL as returned by this operation.

If no URL was provided, the bol.com Apps account page URL will be used at that point.

format

Query

Text

No

json (default): the response is returned in JSON. xml: the response is returned in XML

Note that the above request parameters can also be included as query parameters

Response:

Element Min Max Description

privateToken

1

1

Token to hold as an identification of the Bol.com user, and to use to login the user with operation POST /auth/v4/login

token

1

1

Token to be used by the user to authenticate the request on the Bol.com website account App page, as an alternative for using privateToken in conjunction with operation POST /auth/v4/login

url

1

1

URL containing the token to be used by the user to authenticate the request on the Bol.com website (direct link). Redirect end user to this URL

Request / Response example

https://api.bol.com/accounts/v4/authtokens

Response HTTP status code: 200

Response: JSON / XML

volg developers.bol.com via TwitterMeld je aan voor de Partnerprogramma groep op Linkedin