Authentication
1.Get API Key
1.1 For Seller Integration
and sign in with your account. Next step go to API Intergrated API Tool to create API key.
1.2 For a Omisell's Partner Integration
💡 All API requests must be made over HTTPS. Calls made over plain HTTP will fail.
2. Get Access Token
Step 1: Send HTTP Request
{
"data": {
"expired_time": 1703578845,
"refresh_expired_time": 1704788445,
"refresh_token": "xxxxx",
"token": "xxxxxxxx"
},
"error": false,
"error_code": 201,
"attr_error": null,
"messages": ""
}
Step2: Add data to header
Authorization : 'Omi ' + token
Content-Type : 'application/json'
Authorization : 'Account ' + accọunt_key
Content-Type : 'application/json'
Authorization : 'Partner ' + partner_key
Seller-ID : 'xxxxx'
Country : 'xxxxx'
Content-Type : 'application/json'
3. Refresh Token
Send HTTP Request
{
"data": {
"expired_time": 1703578845,
"refresh_expired_time": 1704788445,
"refresh_token": "xxxxx",
"token": "xxxxxxxx"
},
"error": false,
"error_code": 201,
"attr_error": null,
"messages": ""
}
Modified at 2024-09-13 03:24:47