Aukro WebAPI

doGetSiteJournalDeals

This method allows for loading information from the event log on events (creating purchase event, creating transaction, cancelling transaction, completing transaction) related to after-sale forms in a context of a logged-in user being the transaction's party (data are returned only for offers created by the user in a country to which he/she is logged-in to while calling the method). 100 of most recent events are returned (starting from the point set in the journalStart parameter) sorted in ascending order by the time of their appearance. In order to control the process of loading next data portions (to get to the most recent data) the journalStart parameter has to pass the dealEventId value of the last (hundredth) element returned when calling the method and you need to repeat the process until you receive a data portion containing less than 100 elements (that means the received data are up-to-date).

  1. sessionId | String | required
    User's session identifier received using the doLogin(Enc) method.
  2. journalStart | Long
    Staring point which allows to control loading next data portions of information on events related to after-sale forms (its value is returned in the dealEventId field of the siteJournalDeals structure).
  1. siteJournalDeals | SiteJournalDealsStruct[]
    Array of structures containing information on events related to sale forms.
    1. dealEventId | Long
      Event identifier.
    2. dealEventType | Integer
      Event type (1 - creating purchase event (deal), 2 - creating after-sale (transaction) form, 3 - cancelling after-sale (transaction) form, 4 - completing (making payment) transaction via PayU). Each event type (except 1 for which transaction ID is unknown) is generated separately for each deal forming the transaction.
    3. dealEventTime | Long
      Date of recording an event in the log (in the Unix time format).
    4. dealId | Long
      Identifier of a purchase event received by using the doGetDeals method.
    5. dealTransactionId | Long
      Identifier of a transaction received by using the doGetTransactionsIDs method.
    6. dealSellerId | Integer
      Seller's identifier.
    7. dealItemId | Long
      Offer identifier.
    8. dealBuyerId | Integer
      Buyer's identifier.
    9. dealQuantity | Integer
      Information on number of items bought in a selected purchase event.
  • ERR_INCORRECT_JOURNAL_START
    Incorrect value for the start point.
  • ERR_NO_SESSION / ERR_SESSION_EXPIRED
    Invalid session identifier or the session has expired.
  • ERR_WEBAPI_KEY_INACTIVE
    The session-generating WebAPI key has been deactivated (the owner did not accept the User Agreement).
  • ERR_WEBAPI_NOT_AVAIL
    Problems with Aukro WebAPI service.