Create a credit card refund
Changed onCreates a credit card refund linked to one or more existing credit transactions, such as credit memos or overpayments. You must supply at least one entry in refundAppliedToTransactions, and the refund amount cannot exceed the available balance on the linked credits.
Request
- Base URLhttps://api.conductor.is/v1
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
The ID of the End-User to receive this request.
Request body
Example request
{
"customerId": "80000001-1234567890",
"refundFromAccountId": "80000001-1234567890",
"receivablesAccountId": "80000001-1234567890",
"transactionDate": "2024-10-01",
"refNumber": "REFUND-1234",
"address": {
"line1": "Conductor Labs Inc.",
"line2": "540 Market St.",
"line3": "Suite 100",
"city": "San Francisco",
"state": "CA",
"postalCode": "94110",
"country": "United States",
"note": "Conductor HQ"
},
"paymentMethodId": "80000001-1234567890",
"memo": "Refund to customer for duplicate credit card charge",
"creditCardTransaction": {
"request": {
"number": "xxxxxxxxxxxx1234",
"expirationMonth": 12,
"expirationYear": 2024,
"name": "John Doe",
"address": "1234 Main St, Anytown, USA, 12345",
"postalCode": "12345",
"commercialCardCode": "corporate",
"transactionMode": "card_not_present",
"transactionType": "charge"
},
"response": {
"statusMessage": "Success",
"creditCardTransactionId": "1234567890",
"merchantAccountNumber": "1234567890",
"authorizationCode": "1234567890",
"avsStreetStatus": "pass",
"avsZipStatus": "pass",
"cardSecurityCodeMatch": "pass",
"reconBatchId": "1234567890",
"paymentGroupingCode": 2,
"paymentStatus": "completed",
"transactionAuthorizedAt": "2024-01-01T12:34:56Z",
"transactionAuthorizationStamp": 2,
"clientTransactionId": "1234567890"
}
},
"exchangeRate": 1.2345,
"externalId": "12345678-abcd-1234-abcd-1234567890ab",
"refundAppliedToTransactions": [
{
"transactionId": "123ABC-1234567890",
"refundAmount": "15.00"
}
]
}Response
Returns the newly created credit card refund.
Example response
{
"id": "123ABC-1234567890",
"objectType": "qbd_credit_card_refund",
"createdAt": "2025-01-01T12:34:56+00:00",
"updatedAt": "2025-02-01T12:34:56+00:00",
"revisionNumber": "1721172183",
"customer": {
"id": "80000001-1234567890",
"fullName": "Acme Corporation"
},
"refundFromAccount": {
"id": "80000001-1234567890",
"fullName": "Undeposited Funds"
},
"receivablesAccount": {
"id": "80000001-1234567890",
"fullName": "Accounts-Receivable"
},
"transactionDate": "2024-10-01",
"refNumber": "REFUND-1234",
"totalAmount": "1000.00",
"currency": {
"id": "80000001-1234567890",
"fullName": "USD"
},
"exchangeRate": 1.2345,
"totalAmountInHomeCurrency": "1234.56",
"address": {
"line1": "Conductor Labs Inc.",
"line2": "540 Market St.",
"line3": "Suite 100",
"city": "San Francisco",
"state": "CA",
"postalCode": "94110",
"country": "United States",
"note": "Conductor HQ"
},
"paymentMethod": {
"id": "80000001-1234567890",
"fullName": "Credit Card"
},
"memo": "Refund to customer for duplicate credit card charge",
"creditCardTransaction": {
"request": {
"number": "xxxxxxxxxxxx1234",
"expirationMonth": 12,
"expirationYear": 2024,
"name": "John Doe",
"address": "1234 Main St, Anytown, USA, 12345",
"postalCode": "12345",
"commercialCardCode": "corporate",
"transactionMode": "card_not_present",
"transactionType": "charge"
},
"response": {
"statusMessage": "Success",
"creditCardTransactionId": "1234567890",
"merchantAccountNumber": "1234567890",
"authorizationCode": "1234567890",
"avsStreetStatus": "pass",
"avsZipStatus": "pass",
"cardSecurityCodeMatch": "pass",
"reconBatchId": "1234567890",
"paymentGroupingCode": 2,
"paymentStatus": "completed",
"transactionAuthorizedAt": "2024-01-01T12:34:56Z",
"transactionAuthorizationStamp": 2,
"clientTransactionId": "1234567890"
}
},
"externalId": "12345678-abcd-1234-abcd-1234567890ab",
"refundAppliedToTransactions": [
{
"transactionId": "123ABC-1234567890",
"transactionType": "invoice",
"transactionDate": "2024-10-01",
"refNumber": "CREDIT-1234",
"creditRemaining": "25.11",
"refundAmount": "15.00",
"creditRemainingInHomeCurrency": "25.11",
"refundAmountInHomeCurrency": "15.00"
}
],
"customFields": [
{
"ownerId": "0",
"name": "Customer Rating",
"type": "string_1024_type",
"value": "Premium"
}
]
}Changes
- warning
the
/request property's maxLength was set to31 - warning
the
/request property's maxLength was set to41 - warning
the
//request property's maxLength was set to41 - warning
the
//request property's maxLength was set to24 - warning
the
//request property's maxLength was set to41 - warning
the
//request property's maxLength was set to25 - warning
the
//request property's maxLength was set to18 - warning
the
//request property's maxLength was set to12 - warning
the
//request property's maxLength was set to16 - warning
the
//request property's maxLength was set to24 - warning
the
//request property's maxLength was set to32 - warning
the
//request property's maxLength was set to84 - warning
the
//request property's maxLength was set to60 - warning
the
request property's maxLength was set to4095
- warning
- warning
added the new
transfer_inventoryenum value to the//response property for the response status
- warning