Omisell Developer Portal | API Documentation & Integration Guides
    • Authentication
    • Common Errors
    • Overview
      • Introduction
      • Push Mechanism
      • Status overview
      • Accounting - API Call Flow
      • ERP Integration Flow
      • API Rate Limits
      • Guide: Direct Integration
      • MCP Server
      • Pagination
    • Changelog
      • šŸ” API Security Upgrade
      • Orders
      • Returns Order
      • Products
      • Shipments
      • Push mechanism
    • API Refference
      • Location
        • Get Country List
        • Get Province List By Country
        • Get District List By Province
        • Get SubDistrict List By District
      • Product
        • Get Product Category
        • Get Product List
        • Add Product
        • Get Product Detail
        • Update Product Detail
        • Get Product Detail by SKU
        • Update Product Detail by SKU
      • Inventory
        • Adjust Stock
        • Delisted Stock
        • Adjust Stock(Old)
      • Serial Number
        • Adjust Serial Number
      • Catalogue
        • Get Catalogue List
        • Get Catalogue Detail
      • Orders
        • Get Order List
        • Add Order
        • Update Document Order
        • Get Order Detail
        • Update Order
        • Cancel Order
        • Get Order Finance
        • Get Returns Receiving Note
        • Get Goods Receipts
      • Returns Order
        • Get Returns Order List
        • Add Order Return
        • Get Return Order Detail
      • Shipments
        • Get Shipment List
        • Add Shipment
        • Update Document Shipment
        • Update Shipment Status
        • Get Shipment Detail
      • Order Dropship
      • Pickup Address
        • Get Pickup List
        • Get WMS Pickup Map
      • Shop
        • Get Shop List
      • Finance
        • Get Order Revenue
        • Get Order Return Revenue
      • Customer
        • Get Customer Review List
      • Public
        • Get Seller by Partner
    • Webhooks
      • Order Status Push
      • Return Order Status Push
      • Shipment Status Push
      • Sale Invoice Request
    • eCommerce Platform
      • PrestaShop
      • Magento
      • Shopify
      • Woocommerce
      • Zalora

    Authentication

    Omisell API use token based as its authentication mechanism

    1.Get API Key#

    1.1 For Seller Integration#

    Before you can start using our APIs, you need an API key. It's easy. Just login to https://app.omisell.com and next step go to API Intergrated API Tool to create API key.
    image.png
    Once you've activated your key, you're ready to roll.

    1.2 For a Omisell's Partner Integration#

    To be provided with a Partner Key, you need to demonstrate that you are a service provider for multiple sellers and that you are authorized by your clients to manage their data through the platform.
    You need to contact us to be provided with a Partner Key.
    šŸ’” Please keep your API KEY in a secret and secure manner. DO NOT store them in publicly accessible places like GitHub, client-side code and so on.
    šŸ’” All API requests must be made over HTTPS. Calls made over plain HTTP will fail.

    2. Get Access Token#

    Domain API: https://api.omisell.com

    Step 1: Send HTTP Request#

    The above command returns JSON structured like this:
    {
        "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'
    Or Account key if you are using multiple business.
    Authorization : 'Account ' + account_key
    Content-Type : 'application/json'
    Or Partner key if you are partner of Omisell.
    Authorization : 'Partner ' + partner_key
    Seller-ID : 'xxxxx'
    Country : 'xxxxx'
    Content-Type : 'application/json'

    3. Refresh Token#

    Once an app is authorized by a seller account, it obtains an access token, which is essential for authenticating and making calls to Omisell's APIs.
    However, this access token needs to be refreshed every days using a refresh_token. Failure to refresh the access_token before its expiration will result in authentication failure when attempting to request data through the API.
    The access token remains valid until the refresh_expire_date, which is returned in the response.

    Send HTTP Request#

    The above command returns JSON structured like this:
    {
        "data": {
          "expired_time": 1703578845,
          "refresh_expired_time": 1704788445,
          "refresh_token": "xxxxx",
          "token": "xxxxxxxx"
      },
        "error": false,
        "error_code": 201,
        "attr_error": null,
        "messages": ""
    }
    Or Merchant token if your integration was connected through Omisell's merchant-connect flow.
     Authorization : 'Merchant ' + token
     Shop-ID : 'xxxxx'
     Content-Type : 'application/json'
    šŸ’” Which scheme you get depends on how you were onboarded. Merchant is issued by the merchant-connect flow and is the ONLY scheme accepted by POST /order/info-buyer and GET /order/by-buyer/{buyer_id}; Partner is the only scheme accepted by GET /seller-by-partner/list. Every other endpoint on this site accepts Omi, Account, Partner and Merchant.
    WARNING
    Besides the four schemes above, the backend also enables HMACAuthentication (headers Key / Signature / Timestamp, with a clock-skew check) and BasicAuthentication in the default configuration. Some system 403 messages point at an HMAC api_key, but the signing method is not described anywhere in this documentation — contact Omisell if you have been issued an HMAC key.
    The access token lives 1 day and the refresh token 15 days (refresh_expired_time in the response is the exact moment it ends). A token's lifetime is additionally capped by the expiry of the API key that issued it.
    Modified atĀ 2026-09-14 08:21:21
    Next
    Common Errors
    Built with