Aukro WebAPI

doGetDeals

This method allows for loading single purchase events concluded by a given buyer in an indicated offer (in which a logged-in user acts as the seller). That method returns only purchase events which is not paid yet while calling the method. The exception is a situation when a purchase had been paid for but the payment has been cancelled - that purchase is treated as unpaid and information about it will be returned. In case of providing an incorrect user identifier an empty structure is returned.

  1. sessionHandle | String | required
    User's session identifier received using the doLogin(Enc) method.
  2. itemId | Long | required
    Offer identifier.
  3. buyerId | Integer | required
    Buyer's identifier.
  1. dealsList | DealsStruct[]
    Array of structures containing information on purchase events.
    1. dealId | Long
      Identifier of a purchase event.
    2. dealDate | Long
      Date of the purchase event.
    3. dealQuantity | Integer
      Number of items bought.
    4. dealAmountOriginal | BigDecimal | required
      Total amount (number * unit price) for the purchase event - without the discount.
    5. dealAmountDiscounted | BigDecimal | required
      Total amount (number * unit price) for the purchase event - with granted discount. If the discount has not been granted - the amount equals the amount without discount.
  • ERR_INCORRECT_BUYER_ID
    No buyer's identifier or incorrect value (<= 0) .
  • ERR_INCORRECT_ITEM_ID
    No, incorrect value (<=0) of the offer identifier or such offer does not exist.
  • ERR_NEW_PAYMENT_INTERNAL_ERROR
    Internal system error due to loading PayU transactions.
  • 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_YOU_NOT_SOLD_THIS_ITEM
    logged-in user is not the seller in the indicated offer.