Authentication

Every API Request must be authenticated with a valid ‘Access Token’. The ‘Access Token’ is generated with a combination of ‘Client ID’ & ‘Client Secret’. The ‘Client ID’ & ‘Client Secret’ is available to the Group Owner of the ‘Seller’ Account under Settings > API Access.

HTTP Request
POST
https://access.way2order.com/api/v1/requestaccesstoken
Request Header
Content-Type: application/json
Request Payload
{
    client_id: {client_id}, 
    client_secret: {client_secret}
}

Replace {client_id} & {client_secret} above, with 'Client ID' & 'Client Secret' from your Way2Order Seller Account.

Request Response
{
    "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVjMjllYzI4M2RiMGQyMDgyNmJiYzc2OCIsImNsaWVudF9pZCI6Ik56ZzNNVFUzTVdNME0yTmxMV1V4WW1ZeE4yUTVMVFZpTmpNd01HSmlZVGhpTVMwME1EVTFNVGc1TkE9PSIsIncyb2FwcGNvZGUiOiI0MDU1MTg5NCIsInN1YmRvbWFpbiI6ImFwcCIsImlhdCI6MTU0NjMzNzczMSwiZXhwIjoxNTQ2MzQxMzMxfQ.Kq-OqUFM0G8Fa6phoetLXE8tgN7_milisWeTsbXiOwg",
    "token_type": "Bearer",
    "expires": 1546341331,
    "expires_in": 3600
}

The ‘Access Token’ is valid for a duration of 1 hour. All requests within that hour can be made with the same ‘Access Token’.