Aukro WebAPI

doSendEmailToUser

This method allows for sending a particular type of message to a selected user.

  1. sessionHandle | String | required
    User's session identifier received using the doLogin(Enc) method.
  2. mailToUserItemId | Long | required (non-required if mailToUserReceiverId and mailToUserSubjectId have been provided)
    User identifier (for query: Send an e-mail to a user).
  3. mailToUserReceiverId | Long | required (non-required if mailToUserItemId has been provided)
    User identifier (for query: Send an e-mail to a user).
  4. mailToUserSubjectId | Integer | non-required (required if mailToUserReceiverId has been provided)
    Option for a message subject (1 - Message to Allegro user, 2 - Item query, 3 - Message about delivery, 4 - Message about payment, 5 - Acknowledgment for transaction).
  5. mailToUserOption | Integer
    Option allowing to indicate whether a copy of the message is to be sent to a logged-in user (1 - yes, 0 - no). Default value is 0.
  6. mailToUserMessage | String | required
    Content of a message.
  1. mailToUserReceiverId | Long
    Identifier of a message recipient.
  2. mailToUserResult | String | required
    Message informing about the operation result.
  • ERR_BLOCKED_USER_CANT_INVOKE_METHOD
    User whose account has been blocked cannot use this method.
  • ERR_EMAIL_TO_USER_CONTRACT_TERMINATED
    It is impossible to send a message to this user - his account has been closed.
  • ERR_EMAIL_TO_USER_INCORRECT_SUBJECT_ID
    Incorrect option for a message subject.
  • ERR_EMAIL_TO_USER_MESSAGE_NOT_FOUND
    No message content.
  • ERR_EMAIL_TO_USER_RECEIVER_BLOCKED
    It is impossible to send a message to this user - his account has been blocked.
  • ERR_EMAIL_TO_USER_TOO_MANY_EMAILS_SENT
    The limit for the number of messages sent from one account has been exceeded (a non-activated user may send 3 messages a day, while a "standard" user - 50 messages a day and a company account - 500 messages a day).
  • ERR_INCORRECT_CC_OPTION
    Invalid option (not being 0 or 1) allowing to indicate whether a copy of the message is to be sent to a logged-in user.
  • ERR_INVALID_BUYER_OR_SELLER_ARCH
    User identifier does not match seller's identifier in this offer.
  • ERR_INVALID_ITEM_ID
    Invalid offer identifier.
  • ERR_NO_DATABASE
    Problems with Allegro database.
  • 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).
  • ERR_WEBAPI_NOT_AVAIL
    Problems with Aukro WebAPI service.