Rest API v2

Authentication

This article guides you through the authentication process to our system.

Access Tokens

/api/auth/get_tokens

Login to WeShip and get your access tokens.

POST
                                                
                                                    curl -v -i -k -H "Content-Type: text/html" https://test.weship.at/api/auth/get_tokens -X POST -d
                                                    '{"db":"WESHIP_DEMO", "username":"XXXXXXXX", "password":"XXXXXXXXXX"}'
                                                
                                            
/api/auth/refresh_token

Refresh your access token.

POST
                                                
                                                    curl -v -i -k -H "Content-Type: text/html" https://test.weship.at/api/auth/refresh_token -X POST -d 
                                                    '{"refresh_token":"XXXXXXXXXXXXXXXXX"}'
                                                
                                            
/api/auth/delete_tokens

Delete your access token from the token store.

POST
                                                
                                                    curl -v -i -k -H "Content-Type: text/html" http://test.weship.at/api/auth/delete_tokens -X POST -d
                                                    '{"refresh_token":"XXXXXXXXXXXXXXXXX"}'