# Register shipment

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

# Register shipment

Use the [RegisterShipment](https://rest.avatax.com/swagger/ui/index.html?urls.primaryName=Alcohol%20Shipping%20Verification#/Shipping%20Verification/put_api_v2_companies__companyCode__transactions__transactionCode__shipment_registration) endpoint to tell AvaTax that a transaction has been verified and you want to commit it. Upon success, the transaction will get added to volume metrics on the AvaTax side. AvaTax will then add all of these registration transactions. In doing so, AvaTax will know that you shipped a certain amount of alcoholic beverages to a specific jurisdiction. This information is required for compliance verification.

This API can be used with both Sales Invoices and Return Invoices. And it is important to register return invoices in order to adjust volume metrics.

This API can be run multiple times against a single transaction. A best practice is to run this API for a transaction again if a previously registered transaction has been modified.

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

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

## Request

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

## Response

The response returns 204 upon success.

[Previous](/avatax-for-bevalc/understanding-shipping-verification/verify-shipment)

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