Allegro WebAPI

Programming interface of the Allegro platform

doCancelRefundWarning

Last change: ---
Availability:
This method is for cancelling warnings. When the warning related to a given transaction is cancelled, it is impossible to request for the commission refund once again. Warning cancellation results in charging the success fee once again.

  1. sessionId | string | required
    User's session identifier received using the doLogin(Enc) method.
  2. refundId | int | requierd
    Commission refund form ID.



Sample structure of method call

$docancelrefundwarning_request = array(
   'sessionId' => '22eb99326c6be29aa16d07d622bcfbcbee94ad54846f2f4e03_1',
   'refundId' => 84263
);


  1. cancellationResult | int
    Confirming warning cancellation (1).



Sample structure of server reply

$docancelrefundwarning_response = array(
   'cancellationResult' => 1
);


  • ERR_ALERT_NOT_REVOKED
    Warning has not been cancelled due to an unexpected error.
  • ERR_CANT_REVOKE_ALERT_FOR_THIS_REFUND
    It is impossible to cancel a warning for this form (commission refund has not been granted or has not generated any warning).
  • ERR_INCORRECT_REFUND_ID
    Given refund id is incorrect.
  • ERR_METHOD_UNAVAILABLE_IN_FOREIGN_COUNTRY
    This method is available only in the user’s country.
  • ERR_NO_ALERT_GIVEN
    No warning has been given for this form.
  • ERR_NO_SESSION / ERR_SESSION_EXPIRED
    Invalid session identifier or the session has expired.

Allegro is not to be held liable for consequences of using examples of the published code. It does not guarantee its correct operation either. The code you see serves as an example only and may contain errors.