# Register shipment if compliant

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

# Register shipment if compliant

The [RegisterShipmentIfCompliant](https://rest.avatax.com/swagger/ui/index.html?urls.primaryName=Alcohol%20Shipping%20Verification#/Shipping%20Verification/put_api_v2_companies__companyCode__transactions__transactionCode__shipment_registerIfCompliant) endpoint is a combination of both the VerifyShipment and RegisterShipment endpoints. Run this to verify whether a transaction is compliant and then immediately commit that registration if it is compliant. You can use this method to avoid using both the VerifyShipment and RegisterShipment APIs.

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`.

**Advice:** Using this endpoint is not part of the recommended workflow. Instead, we recommend using the Verify endpoint followed by the Registration endpoint if the transaction is compliant.

## Endpoint

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

## 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/123434390845/shipment/registerIfCompliant'
```

## Response

The response returns 204 upon success.

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

[Next](/avatax-for-bevalc/understanding-shipping-verification/delete-shipment-registration)