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.
-
sessionHandle | String | required
User's session identifier received using the doLogin(Enc) method. -
itemId | Long | required
Offer identifier. -
buyerId | Integer | required
Buyer's identifier.
-
dealsList | DealsStruct[]
Array of structures containing information on purchase events.-
dealId | Long
Identifier of a purchase event. -
dealDate | Long
Date of the purchase event. -
dealQuantity | Integer
Number of items bought. -
dealAmountOriginal | BigDecimal | required
Total amount (number * unit price) for the purchase event - without the discount. -
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.
-
dealId | Long
-
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.