# Delete shipment registration

Source: https://developer.avalara.com/avatax-for-bevalc/understanding-shipping-verification/delete-shipment-registration/

# Delete shipment registration

Use the [DeleteShipmentRegistration](https://rest.avatax.com/swagger/ui/index.html?urls.primaryName=Alcohol%20Shipping%20Verification#/Shipping%20Verification/delete_api_v2_companies__companyCode__transactions__transactionCode__shipment_registration) endpoint to void a transaction that you previously registered. When running this API for Return Invoices, be sure to include`documentType=ReturnInvoice` in the request URL. You will get a "Document not found" error if you omit this because the document type defaults to`SalesInvoice`.

## Endpoint

DELETE /api/v2/companies/{companyCode}/transactions/{transactionCode}/shipment/registration

## Request

```
curl    -X DELETE    -H 'Accept: application/json'    -H 'Authorization: Basic aHR0cHdhdQNoOmY='    -H 'Content-Type: application/json'    'https://sandbox-rest.avatax.com/api/v2/companies/DEFAULT/transactions/123434390853/shipment/registration?documentType=ReturnInvoice'
```

## Response

The response returns 204 upon successful completion.

[Previous](/avatax-for-bevalc/understanding-shipping-verification/register-shipment-if-compliant)

[Next](/avatax-for-bevalc/age-verification-api)