Void a payment session
Call this endpoint to void a payment session currently awaiting manual capture. This will reverse the amount authorized on the payment and return it to the customer. If voided on the same-day, the transaction will not show up on the customer's card statement(s). You can only call this endpoint when the payment session is in status Approved and its captureFlow value is Manual.
Request
- Base URLhttps://sandbox-api.ryftpay.com/v1
- URLhttps://sandbox-api.ryftpay.com/v1/payment-sessions/{paymentSessionId}/voids
- AuthAPI key in header Authorization
Path parameters
Payment Id to void
Headers
The linked accountId (use this when operating on payments related to a linked account)
Response
Void request successfully accepted (Pending / Succeeded / Failed). If the status is Pending then the transaction will be completed asynchronously. Listen to the PaymentSession.voided event on your webhook to be notified of the outcome.
Example response
{
"id": "txn_01FCTS1XMKH9FF43CAFA4CXT3P_01FCTS1XMKH9FF43CAFA4CXT3P",
"paymentSessionId": "ps_01FCTS1XMKH9FF43CAFA4CXT3P",
"amount": 250,
"currency": "GBP",
"type": "Capture",
"status": "Succeeded",
"refundedAmount": 50,
"platformFee": 50,
"platformFeeRefundedAmount": 50,
"processingFee": 7,
"reason": "Requested by the customer",
"captureType": "Final",
"paymentMethod": {
"type": "Card",
"tokenizedDetails": {
"id": "pmt_01G0EYVFR02KBBVE2YWQ8AKMGJ",
"stored": true
},
"card": {
"scheme": "Mastercard",
"last4": "4242",
"binDetails": {
"issuer": "Ryft Bank Ltd",
"issuerCountry": "GB",
"fundingType": "Debit",
"productType": "Consumer"
}
},
"wallet": {
"type": "ApplePay"
},
"billingAddress": {
"firstName": "Nathan",
"lastName": "Jones",
"lineOne": "123 Test Street",
"lineTwo": "456 Lane",
"city": "Manchester",
"country": "GB",
"postalCode": "SP4 7DE",
"region": "NY"
},
"checks": {
"avsResponseCode": "Y",
"cvvResponseCode": "M"
}
},
"splitPaymentDetail": {
"items": [
{
"id": "sp_01FCTS1XMKH9FF43CAFA4CXT3P",
"accountId": "ac_b83f2653-06d7-44a9-a548-5825e8186004",
"amount": 50,
"fee": {
"amount": 50
},
"description": "2 x The Selfish Gene",
"metadata": {
"productId": "123",
"productDescription": "The Selfish Gene"
}
}
]
},
"processingDetail": {
"issuerResponseCode": "00",
"authorizationCode": "123456",
"acquirerReferenceNumber": "12093810928309123"
},
"inPersonDetail": {
"terminalDetail": {
"id": "tml_01FCTS1XMKH9FF43CAFA4CXT3P"
}
},
"createdTimestamp": 1470989538,
"lastUpdatedTimestamp": 1470989538
}Changes
No recorded changes to this operation across all 10 revisions of this API.