Skip to main content
Vindicia Knowledge Center

Create a refund

Create a refund

Creates a new Refund against an existing transaction.

Route (URL) Parameters

Parameter Default Description Required
transaction n/a The id or the vid of the Transaction Yes

Query Parameters

None.

Accepts

JSON A full Refund object.

Returns

JSON A full Refund object.

  • cURL
  • Java
Example Request
 curl -X POST \
 -u acaff38d462f9430d5cbcbaf:a575771fc679b9de \  
 -d '{
    "object": "Refund",
    "id": "FLX200001541REF",
    "refund_distribution_strategy": "None",
    "amount": 14.99,
    "amount_includes_tax": false,
    "currency": "USD",
    "note": "Refund REQUEST VIA WEB FLX200001541REF",
    "token_action": "None"
}' "https://api.prodtest.vindicia.com/transactions/FLX200001541/refunds"
 
The above command returns JSON structured like this:
 {
    "object": "Refund",
    "id": "FLX200001561",
    "vid": "64a6bad051bdf489c7cf90ed52fca549c0048d3d",
    "created": "2016-05-24T17:50:47-07:00",
    "transaction": {`...`},
    "refund_distribution_strategy": "None",
    "amount": 14.99,
    "amount_includes_tax": false,
    "currency": "USD",
    "metadata": {`...`},
    "note": "Refund 14.99USD",
    "token_action": "None",	
    "status": "Complete"
}
 

import com.vindicia.client.CashBox; CashBox.apiKey = "acaff38d462f9430d5cbcbafa575771fc679b9de"; Map<string,> params = new HashMap<string,>(); params.put("name", "Charlie Brown"); params.put("email", "charlie.brown@peanuts.com"); params.put("id", "refund_1234"); Refund.create(params); 
The above command returns JSON structured like this:
{
    "object": "Refund",
    "id": "FLX200001561",
    "vid": "64a6bad051bdf489c7cf90ed52fca549c0048d3d",
    "created": "2016-05-24T17:50:47-07:00",
    "transaction": {`...`},
    "refund_distribution_strategy": "None",
    "amount": 14.99,
    "amount_includes_tax": false,
    "currency": "USD",
    "metadata": {`...`},
    "note": "Refund 14.99USD",
    "token_action": "None",
    "status": "Complete"
}
          

For Users

Learn More
For Users

Cashbox Features

Learn More
Cashbox Features
Back to Top