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
- The payment gateway must support credit card unlinked refunds without a prior transaction.
- The Gateway Setup Wizard advanced settings must be used to connfigure the payment gateway.
- A Chargent Order must be created with the Charge Amount field set to the amount to refund to the credit card.
- 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 Order | Chargent Orders are central objects to payments lifecycle management. |
| Payment Method | Payment Methods are instruments that may be used to make or take payment. |
Workflow
| Precondition | Expected Result |
|---|---|
| Create One-Time Chargent Order | A 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 Request | URL |
|---|---|
| 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.