Aukro WebAPI

doGetPostBuyData

This method allows for loading full contact data of trading partners from the given offer. It returns various data - depends on whether a logged user acts as a seller (userData, userSentToData) or a buyer (userData, userBankAccounts, companySecondAddress) in an offer. In case of providing an incorrect offer identifier an empty structure is returned. The method does not return data for offers moved to the archive.

  1. sessionHandle | String | required
    User's session identifier received using the doLogin(Enc) method.
  2. itemsArray | Long[] | required
    Array of offer identifiers (max. 25).
  3. buyerFilterArray | Long[]
  1. itemsPostBuyData | ItemPostBuyDataStruct[]
    Array of structures containing information on offers and trading partners data.
    1. itemId | Long
      Offer identifier.
    2. usersPostBuyData | UserPostBuyDataStruct[]
      Array of structures containing trading partner data that allow for concluding the transaction.
      1. userData | UserDataStruct | required
        Structure containing trading partner contact data (relates to both buyers and sellers).
        1. userId | Long
          User identifier.
        2. userLogin | String | required
          Username.
        3. userRating | Integer
          User's score.
        4. userFirstName | String | required
          User's first name.
        5. userLastName | String | required
          User's surname.
        6. userMaidenName | String | required
          Maiden name of the user's mother (not displayed to both parties).
        7. userCompany | String | required
          Name of a user's company.
        8. userCountryId | Integer
          Identifier of a user's country.
        9. userStateId | Integer
          User's region (province) identifier (for unregistered users 0 is always returned).
        10. userPostcode | String | required
          User's postal code.
        11. userCity | String | required
          User's city.
        12. userAddress | String | required
          User's address.
        13. userEmail | String | required
          User's e-mail address.
        14. userPhone | String | required
          User's phone number.
        15. userPhone2 | String | required
          User's second phone number.
        16. userSsStatus | Integer
          Information on whether the user participates in the Super Seller program (1 - user is a Super Seller, 0 - user is not a Super Seller).
        17. siteCountryId | Integer
          Country (site) identifier where user registered an account.
        18. userJuniorStatus | Integer
          Information on whether the account is a Junior (1 - yes, 0 - no).
        19. userBirthDate | Long
          User's date of birth (not displayed to both parties).
        20. userHasShop | Integer
          Information on whether there is an active Allegro Shop on user's account (1 - yes, 0 - no)
        21. userCompanyIcon | Integer
          Information on whether the account is a Company (1 - yes, 0 - no; for UA/KZ 0 is always returned).
        22. userIsAllegroStandard | Integer
          ?
      2. userSentToData | UserSentToDataStruct | required
        Structure containing delivery address data (filled out structure is returned when the buyer provides the delivery address data, and the user calling this method is the seller).
        1. userId | Long
          User identifier.
        2. userFirstName | String | required
          User's first name.
        3. userLastName | String | required
          User's surname.
        4. userCompany | String | required
          Name of a user's company.
        5. userCountryId | Integer
          Identifier of a user's country.
        6. userPostcode | String | required
          User's postal code.
        7. userCity | String | required
          User's city.
        8. userAddress | String | required
          User's address.
      3. userBankAccounts | String[]
        Array containing numbers of user's accounts (filled out array is returned when the seller provides account numbers and the user calling this method is the buyer).
      4. companySecondAddress | CompanySecondAddressStruct | required
        Structure containing information on employee responsible for account and on company address (relating to users of Company accounts).
        1. companyWorkerFirstName | String | required
          First name of person responsible for account.
        2. companyWorkerLastName | String | required
          Surname of person responsible for account.
        3. companyAddress | String | required
          Company registered office.
        4. companyPostcode | String | required
          Postal code.
        5. companyCity | String | required
          City of company registered office.
        6. companyCountryId | Integer
          Identifier of country of company registered office.
        7. companyStateId | Integer
          Identifier of region (province) of company registered office.
  • ERR_NO_DATABASE
    Problems with Allegro database.
  • ERR_NO_SESSION / ERR_SESSION_EXPIRED
    Invalid session identifier or the session has expired.
  • ERR_WEBAPI_EXPIRED
    Expiry date of WebAPI key has been exceeded (not applicable PL).
  • ERR_WEBAPI_KEY
    Invalid value of WebAPI key or WebAPI key has been blocked.
  • ERR_WEBAPI_KEY_INACTIVE
    WebAPI key used to generate the session has been deactivated (the key owner has not accepted WebAPI User Agreement).
  • ERR_WEBAPI_NOT_AVAIL
    Problems with Aukro WebAPI service.