Skip to main content

Chargent Order Unlinked Refund

Overview​

An unlinked refund transaction may be used to apply a refund to a credit card without a prior transaction.

Prequisites​

Conditions​

  1. The payment gateway must support credit card unlinked refunds without a prior transaction.
  2. The Gateway Setup Wizard advanced settings must be used to connfigure the payment gateway.
  3. A Chargent Order must be created with the Charge Amount field set to the amount to refund to the credit card.
  4. A Payment Method with credit card type must be related to the Chargent Order.

Resources​

There are multiple prerequisite resources that must be created before requesting an unlinked refund.

           Object           Definition
Chargent OrderChargent Orders are central objects to payments lifecycle management.
Payment MethodPayment Methods are instruments that may be used to make or take payment.

Workflow​

PreconditionExpected Result
Create One-Time Chargent OrderA Chargent Order is created for a one-time payment.
Create Payment Method Tokenization A Payment Method Tokenization is created with a credit card type.
Assign Payment Method to Chargent Order A Payment Method with a credit card type is assigned to a Chargent Order.

Create Chargent Order Unlinked Refund​

Resource URL​

HTTP RequestURL
POST/services/apexrest/ChargentBase/orders/chargent-orders/{{orderId}}/unlinked-refunds

Request​

JSON Example
{}

Response​

JSON Example
{
"logs": [
{
"interactionStatus": "APPROVED",
"id": "{{logId}}",
"gatewayResultCode": "200",
"gatewayId": "{{gatewayId}}",
"createdDate": "2023-10-19T01:13:31.000Z"
}
],
"gatewayResponse": {
"gatewayToken": "{{token}}",
"gatewayResultCodeDescription": "",
"gatewayResultCode": "200",
"gatewayMessage": "[refund-received]",
"gatewayDate": "2023-10-19T01:13:31.839Z",
"gatewayAuthorizationCode": "{{authCode}}"
},
"refund": {
"status": "Approved",
"requestDate": "2023-10-19T01:13:31.839Z",
"id": "{{transactionId}}",
"effectiveDate": "2023-10-19T01:13:31.839Z",
"amount": 32
}
}

Learn More​

Learn more about Unlinked Refunds.