iiERP API Doc
    iiERP API Doc
    • Access Guide
    • Authentication
      • Get Signtoken
        GET
      • Get AccessToken
        POST
    • CRM
      • Get Customer List
        GET
      • Get Customer Detail
        GET
      • Update Customer
        POST
      • Archive Customer
        POST
    • Event
      • Get Event List
        GET
      • Get Event Detail
        GET
      • Update Event
        POST
      • Archive Event
        POST
    • Function
      • Get Function List
        GET
      • Get Function Detail
        GET
      • Update Function
        POST
      • Archive Function
        POST
    • Service Order
      • Get Order List
        GET
      • Get Order Detail
        GET
      • Update Order
        POST
      • Archive Order
        POST
    • Work Order
      • Get Work Order List
        POST
      • Get Work OrderDetail
        GET
      • Update Work Order
        POST
      • Cancel Work Order
        POST
    • Appendix
      • Return Code Description

    Access Guide

    Common Request Headers#

    GET/POST request to the filled-in server address URL. The GET/POST request must carries common header parameters as shown in the following table:
    ParametertypeDescription
    timestampstringTimestamp
    noncestringRandom number
    appKeystringApp key, Provided by the system provider
    signaturestringThe signature combines the signToken parameters filled in by the developer with the timestamp,appKey and nonce parameters in the request.

    Common Response Message#

    ParametertypeDescription
    StatusCodestringStatus Code , Ref: Return Code Description
    InfostringInformation message
    DatastringResponse object data / object data list
    TotalintTotal count of the object data list

    Signature#

    Developers validate requests by verifying the signature (verification methods are provided below).
    Step-by-Step Guide:
    1
    Get signToken by appKey parameter
    Get by API : Get Signtoken
    2
    Get GET/POST string data
    Converts the GET/POST to string.
    3
    Concatenate parameters
    Concatenates all the input parameters into a single string: timestamp,nonce, appKey, signToken and get/post string data.
    4
    Sort the Concatenated String
    Sorts the characters in the concatenated string in ascending order.
    5
    Compute the MD5 Hash
    Converts the sorted string into a byte array using UTF-8 encoding.
    6
    Convert the Hash to a Hexadecimal String
    Converts each byte in the hash to a two-character hexadecimal string and appends it to a StringBuilder.
    7
    Get the Signature in Uppercase
    Obtain the encrypted string in Uppercase as the signature parameter.

    Example code (C#)#

    Get timestamp#

    Get nonce#

    Convert GET/POST data#

    Obtain GET/POST string data for signature verification

    Obtain signature#

    Detail in Github
    Next
    Get Signtoken
    Built with