Created with Sketch.
Created with Sketch.
Authorization API


POST /authorization/{id}/Cancel

This method allows partner to cancel payment. A call to this method should be performed after authorization. For Invoice and loans the reserved credit amount will be removed. For Cards and direct bank a refund will be preformed for the authorized amount.

Input Parameters

NameData TypeDefault ValueDescription
IDStringNone. Must be specified.AuthorizationID acquired from direct-invoice, invoice, loan or Part-payment
ReasonStringNone. Must be specified.Reason for cancelling payment.

Example request

  "Reason": "I do not want this item anymore."

Return Value

If successful, the method returns a HTTP status code 200 (OK) with no additional content.

Not successful, the method returns a HTTP status code 422 with error description in body.

    "ErrorCode": "10005",
    "ErrorMessage": "Invalid or missing external ID."

Error Messages

CancelAuthorization denied – PurchaseOrder, ReturnOrder or RefundOrder was already called
No authorization found
Operation denied – ExternalId is incorrect.
Invalid or missing external ID