Skip to main content

Disapprove Payment Transaction

URL

The endpoint and http method information to withdraw approval of a payment transaction are stated below.

POST/payment/v1/payment-transactions/disapprove

Request Parameters

The parameters expected to be sent in the requests to be made to disapprove payment transaction are listed under the table and sub-headings below.

paymentTransactionIds
number[]
required

List of payment transaction id

isTransactional
boolean

Set this parameter true if you want payment transactions to be disapproved in a single transaction otherwise system only disapproves a transaction what it can

Response Parameters

The parameters returned as a result of the payment are also subject to the rules specified in the Response Formats section of the API documentation home page. In the absence of a systematic or fictional error, the sub-parameters of the object returned in the data parameter are as follows:

size
number

Size of the payment transaction id list

items
PaymentTransactionApproval[]

Payment Transaction Withdrawal of Approval Information

Payment transaction is the object that contains information about the transaction and payment transaction in the return object while making the approval and withdrawal of the approval request.

paymentTransactionId
number

ID of the payment transaction

approvalStatus
string

Returns SUCCESS and FAILURE regarding to the status of the operation

failedReason
string

Contains error information if an error occurred when disapproval operation is failed

Sample Codes

You can review the sample codes in the open source Craftgate API clients.

Loading..