Helps to upload a static file like images to our static server and returns the file name.
The endpoint you need to use for this is:
/uploader
Key | Details | Example |
---|---|---|
Authorization* | {token_type} {access_token} | Bearer c3499c2729730a7f807efb8676a92dcb6f8a3f8f |
Method* | PUT | PUT |
x-accept-version | {recommended_latest_version_number} | 0.4 |
contentType* | {type_of_content} | product |
* Required header
ID | Value | Desc |
---|---|---|
1 | user | User profile picture 200x200 jpeg format. |
2 | applicaionLogo | application logo 200x200 jpeg format |
3 | applicaionImages | application screenshots 480x351 jpeg format |
4 | merchant | merchant receipt image 576x325 jpeg format |
5 | product | product display image 576x325 jpeg format |
If you are using button in your html please name it as 'file' and make a PUT call to the above api. Currently the API takes only one file at a time.
Key | Details | Data Type | Example |
---|---|---|---|
statusCode | Very important to check this for any error. 201 for success. | int | 201 |
Key | Details | Data Type |
---|---|---|
fileName | Unique filename for the resource created. | string |
path | Full public url for the file. | string |
Please check the live API calls for more details on the API messages.
ID | Status Code | Title | Details |
---|---|---|---|
908 | 401 | Expired Token | Token expired or invalid. Please renew your token |
911 | 401 | Authorization Header Invalid | The authorization header is invalid. The correct format is Authorization: {token_type} {accessToken} |
910 | 404 | Not Found | The resource you are looking for does not exist |
899 | 500 | Unknown Error | Something went wrong. Please contact the site administrator |
913 | 400 | Required parameter or object missing in request | One or more of the required parameters or object formation is missing in your request. Please refer the documentation |
916 | 415 | Unsupported Media Type | The media type is unsupported by the server. |
912 | 403 | Resource Not Allowed For Specified User | The user does not own this resource and its forbidden |
919 | 429 | Cannot handle too many request | There is a limit for every object you can send to our server and you are exceding that. |
Please check the live API calls for more info on the API messages.
ID | Status Code | Title | Details |
---|---|---|---|
206 | 201 | Resource Created | Your resource is created partially or fully. Please check further message or process log |
202 | 200 | Token is valid | Token is validated and found valid. |