0

Is it possible to make partial refund using Authorize.Net? E.g. I have a transaction by 300$. First time I need to make a refund 100$ on this transaction. And second time to make a refund 50$.

What kind of transaction status will be after that?

first request:

...
      "refId": "123456",
        "transactionRequest": {
            "transactionType": "refundTransaction",
            "amount": "100.00",}
            "refTransId": "1234567890"
        }
...

second request:

...
      "refId": "123456",
        "transactionRequest": {
            "transactionType": "refundTransaction",
            "amount": "50.00",}
            "refTransId": "1234567890"
        }
...

1 Answer 1

0

Yes, you can make multiple refunds against one transaction as long as you do not go over the original transaction amount.

Below I made a $50 payment and then following up with a $20 and $10 refund. Both were successful.

Here is my original AUTH_CAPTURE request:

{
  "createTransactionRequest": {
    "merchantAuthentication": {
      "name": "",
      "transactionKey": ""
    },
    "refId": 38947161,
    "transactionRequest": {
      "transactionType": "authCaptureTransaction",
      "amount": 100,
      "payment": {
        "creditCard": {
          "cardNumber": "4111111111111111",
          "expirationDate": "122020",
          "cardCode": "999"
        }
      },
      "order": {
        "invoiceNumber": "1324567890",
        "description": "this is a test transaction"
      },
      "lineItems": {
        "lineItem": [
          {
            "itemId": "1",
            "name": "vase",
            "description": "Cannes logo",
            "quantity": "18",
            "unitPrice": "45.00"
          },
          {
            "itemId": "2",
            "name": "desk",
            "description": "Big Desk",
            "quantity": "10",
            "unitPrice": "85.00"
          }
        ]
      },
      "tax": {
        "amount": "4.26",
        "name": "level2 tax name",
        "description": "level2 tax"
      },
      "duty": {
        "amount": "8.55",
        "name": "duty name",
        "description": "duty description"
      },
      "shipping": {
        "amount": "4.26",
        "name": "level2 tax name",
        "description": "level2 tax"
      },
      "poNumber": "456654",
      "customer": {
        "id": "18",
        "email": "[email protected]"
      },
      "billTo": {
        "firstName": "Ellen",
        "lastName": "Johnson",
        "company": "Souveniropolis",
        "address": "14 Main Street",
        "city": "Pecan Springs",
        "state": "TX",
        "zip": "44628",
        "country": "USA"
      },
      "shipTo": {
        "firstName": "China",
        "lastName": "Bayles",
        "company": "Thyme for Tea",
        "address": "12 Main Street",
        "city": "Pecan Springs",
        "state": "TX",
        "zip": "44628",
        "country": "USA"
      },
      "customerIP": "192.168.1.1",
      "transactionSettings": {
        "setting": [
          {
            "settingName": "allowPartialAuth",
            "settingValue": "false"
          },
          {
            "settingName": "duplicateWindow",
            "settingValue": "0"
          },
          {
            "settingName": "emailCustomer",
            "settingValue": "false"
          },
          {
            "settingName": "recurringBilling",
            "settingValue": "false"
          },
          {
            "settingName": "testRequest",
            "settingValue": "false"
          }
        ]
      },
      "userFields": {
        "userField": {
          "name": "favorite_color",
          "value": "blue"
        }
      }
    }
  }
}

Here is my original AUTH_CAPTURE response:

{
  "transactionResponse": {
    "responseCode": "1",
    "authCode": "TTJ26B",
    "avsResultCode": "Y",
    "cvvResultCode": "P",
    "cavvResultCode": "2",
    "transId": "40032153203",
    "refTransID": "",
    "transHash": "",
    "testRequest": "0",
    "accountNumber": "XXXX1111",
    "accountType": "Visa",
    "messages": [
      {
        "code": "1",
        "description": "This transaction has been approved."
      }
    ],
    "userFields": [
      {
        "name": "favorite_color",
        "value": "blue"
      }
    ],
    "transHashSha2": "0C9E5A47F93CD5B770A6B4AB24FE0F0D6F3B909066C72A10C4746F48C9886527A18B654736AE8D920D9048A14F2823A0DEC5B5F775A1C48DE9CBCF41C8D28CA3",
    "SupplementalDataQualificationIndicator": 0
  },
  "refId": "38947161",
  "messages": {
    "resultCode": "Ok",
    "message": [
      {
        "code": "I00001",
        "text": "Successful."
      }
    ]
  }
}

Here is my first REFUND request (successful):

{
  "createTransactionRequest": {
    "merchantAuthentication": {
      "name": "",
      "transactionKey": ""
    },
    "refId": 30777668,
    "transactionRequest": {
      "transactionType": "refundTransaction",
      "amount": 20,
      "payment": {
        "creditCard": {
          "cardNumber": "4111111111111111",
          "expirationDate": "122020"
        }
      },
      "authCode": "40032153203"
    }
  }
}

Here is my first REFUND response (successful):

{
  "transactionResponse": {
    "responseCode": "1",
    "authCode": "",
    "avsResultCode": "P",
    "cvvResultCode": "",
    "cavvResultCode": "",
    "transId": "40032153314",
    "refTransID": "",
    "transHash": "",
    "testRequest": "0",
    "accountNumber": "XXXX1111",
    "accountType": "Visa",
    "messages": [
      {
        "code": "1",
        "description": "This transaction has been approved."
      }
    ],
    "transHashSha2": "4CE2D83B56C09494AD5609440E3337A6DEE0F4C74FBC99B218D65F6A121EFFC269F8954AC47C17B3B739E61A860C7B0818A8497D85D314D6E0CD89C9FE71A071",
    "SupplementalDataQualificationIndicator": 0
  },
  "refId": "30777668",
  "messages": {
    "resultCode": "Ok",
    "message": [
      {
        "code": "I00001",
        "text": "Successful."
      }
    ]
  }
}

Here is my second REFUND request (successful):

{
  "createTransactionRequest": {
    "merchantAuthentication": {
      "name": "",
      "transactionKey": ""
    },
    "refId": 40597686,
    "transactionRequest": {
      "transactionType": "refundTransaction",
      "amount": 10,
      "payment": {
        "creditCard": {
          "cardNumber": "4111111111111111",
          "expirationDate": "122020"
        }
      },
      "authCode": "40032153203"
    }
  }
}

Here is my second REFUND response (successful):

{
  "transactionResponse": {
    "responseCode": "1",
    "authCode": "",
    "avsResultCode": "P",
    "cvvResultCode": "",
    "cavvResultCode": "",
    "transId": "40032153319",
    "refTransID": "",
    "transHash": "",
    "testRequest": "0",
    "accountNumber": "XXXX1111",
    "accountType": "Visa",
    "messages": [
      {
        "code": "1",
        "description": "This transaction has been approved."
      }
    ],
    "transHashSha2": "FD146FC0F8F3F31068905EC6C8D252662AA735ACDFAC53B4A8D808060C244C06288700AA8872466C3E240B62130D010CFBDE0473D09B631514A6E2E2CB77804F",
    "SupplementalDataQualificationIndicator": 0
  },
  "refId": "40597686",
  "messages": {
    "resultCode": "Ok",
    "message": [
      {
        "code": "I00001",
        "text": "Successful."
      }
    ]
  }
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.