Aukro WebAPI

doGetItemFields

This method allows for loading information on a logged user’s offer in a form of sale form fields. It will be possible to pass all data returned by the method in the fields structure for doNewAuctionExt input (as a result of which it will be possible to list a new offer on the basis of an ongoing one). It should be taken into account that images returned by this method will already be compressed by relevant mechanisms of offer listing and that the offer description will already be in the form verified by validators. It should also be remembered that input doNewAuctionExt and output doGetItemFields will never be identical, because doGetItemFields returns offers data in a form stored on the website and not in that sent by a user.

  1. sessionId | String | required
    User's session identifier received using the doLogin(Enc) method.
  2. itemId | Long | required
    Offer identifier for which data should be returned.
  1. itemFields | FieldsValue[]
    Array of structures containing information on an offer in the form of sale form fields.
    1. fid | Integer
      Field identifier.
    2. fvalueString | String
      Value of field for a text type.
    3. fvalueInt | Integer
      Value of field for integers.
    4. fvalueFloat | BigDecimal
      Value of field for floating-point numbers.
    5. fvalueImage | Byte[]
      Value of field for graphic files.
    6. fvalueDatetime | BigDecimal
      Value of field for dates and time (Unix time).
    7. fvalueDate | String
      Value of field for dates (dd-mm-yyyy).
    8. fvalueRangeInt | RangeIntValueStruct
      Value of field for integers of range type.
      1. fvalueRangeIntMin | Integer
        Initial value of the parameter value scope.
      2. fvalueRangeIntMax | Integer
        Final value of the parameter value scope.
    9. fvalueRangeFloat | RangeFloatValueStruct
      Value of field for integers of range type.
      1. fvalueRangeFloatMin | BigDecimal
        Initial value of the parameter value scope.
      2. fvalueRangeFloatMax | BigDecimal
        Final value of the parameter value scope.
    10. fvalueRangeDate | RangeDateValueStruct
      Value of field for dates of range type.
      1. fvalueRangeDateMin | String
        Initial value of the parameter value scope.
      2. fvalueRangeDateMax | String
        Final value of the parameter value scope.
  • ERR_BLOCKED_USER_CANT_INVOKE_METHOD
    User's account is blocked.
  • ERR_INCORRECT_ITEM_ID
    Incorrect offer identifier, the offer does not exist, was listed by a user different than the logged-in one, was moved to the archive or removed by the website administrator.
  • ERR_NO_SESSION / ERR_SESSION_EXPIRED
    Invalid session identifier or the session has expired.
  • ERR_WEBAPI_KEY_INACTIVE
    WebAPI key used to generate the session has been deactivated (the key owner has not accepted WebAPI User Agreement).