# Send the current transaction date as the document date for refunds

Source: https://developer.avalara.com/avatax-dm-combined-erp/sales-tax-badge/transactions/send-current-transaction-date/

# Send the current transaction date as the document date for refunds

**Element type: Required** for Refunds

**Endpoints/models used:** [CreateTransaction](https://developer.avalara.com/api-reference/avatax/rest/v2/methods/Transactions/CreateTransaction/)[, RefundTransaction](https://developer.avalara.com/api-reference/avatax/rest/v2/methods/Transactions/RefundTransaction/)

When issuing refunds for transactions that occurred on earlier dates, you should provide a way to include the current transaction date for recording purposes.

Imagine a scenario where a customer purchases an item on October 1 and then returns the item on October 10. The date used for posting this refund should be October 10. It should not be the original transaction date of October 1.

When issuing refunds using the [CreateTransaction API](https://developer.avalara.com/api-reference/avatax/rest/v2/methods/Transactions/CreateTransaction/), sending the current transaction date is accomplished using the`date` field in the CreateTransactionModel.

When issuing refunds using the [RefundTransaction API](https://developer.avalara.com/api-reference/avatax/rest/v2/methods/Transactions/RefundTransaction/), sending the current transaction date is accomplished using the`refundDate` field in the RefundTransactionModel.

Send current transaction date using CreateTransaction

When using CreateTransaction, be sure to include the current transaction`date` in the invoice. In the example below, the date when the return is issued is November 12, 2020.

```
{  "lines": [    {      "number":"1",      "quantity":1,      "amount":-100,      "taxCode":"P0000000",      "itemCode":"Test SKU",      "description":"Test Item Description"    }  ],  "taxOverride":{    "type": "TaxDate",    "taxDate":"2020-10-29",    "reason": "Return"  },  "addresses": {    "singleLocation":{      "line1":"100 Ravine Ln NE",      "city":"Bainbridge Island",      "region":"WA",      "country":"US",      "postalCode":"98110-2687"    }  },   "type":"ReturnInvoice",  "code":"TestTransactions2",  "companyCode":"DEFAULT",  "date":"2020-11-12",  "customerCode":"Test Customer ID",  "commit":true,  "currencyCode":"USD"}
```

Send current transaction date using RefundTransaction

When using RefundTransction, use the`refundDate` field to specify the date when this refund is issued. In the example below, the refund date is November 12, 2020.

```
curl    -X POST    -H 'Accept: application/json'    -H 'Authorization: Basic ${btoa(`:`)}'    -H 'Content-Type: application/json'    --data '{        "refundTransactionCode": "TestRefundsTransactions",        "refundDate": "2020-11-12",        "refundType": "Full",        "referenceCode": "Refund for a committed transaction"    }'    'https://sandbox-rest.avatax.com/api/v2/companies/DEFAULT/transactions/TestTransactions2/refund'
```

[Previous](/avatax-dm-combined-erp/sales-tax-badge/transactions/send-original-invoice-date)

[Next](/avatax-dm-combined-erp/sales-tax-badge/transactions/support-tax-only-adjustments)