> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# SetDeliveryCarrierActiveStatus

# Package: shippingDelivery

# Namespace: DeliveryProfiles

# Method link: https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/set-delivery-carrier-active-status.md

## Permission Scopes:
Manage eCommerce - all permissions: SCOPE.DC-ECOM-MEGA.MANAGE-ECOM

## Introduction

Sets a delivery carrier's active status.

Activates or deactivates one configuration of a delivery carrier, such as a single pickup location. Specify the carrier's app ID in `carrierAppId`, the configuration's row key in `rowId`, and the new status in `active`. To get the row key, call [List Delivery Carriers](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/list-delivery-carriers.md) and read `deliveryCarrierRegionalSettings.dashboardTables.rows.key`.

This method works only for a carrier whose `deliveryCarrierDetails.toggleUpdateCarrierActiveStatusEnabled` is `true` in the List Delivery Carriers response.

---

## REST API

### Schema

```
 Method: setDeliveryCarrierActiveStatus
 Description: Sets a delivery carrier's active status.  Activates or deactivates one configuration of a delivery carrier, such as a single pickup location. Specify the carrier's app GUID in `carrierAppId`, the configuration's row key in `rowId`, and the new status in `active`. To get the row key, call [List Delivery Carriers](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/list-delivery-carriers.md) and read `deliveryCarrierRegionalSettings.dashboardTables.rows.key`.  This method works only for a carrier whose `deliveryCarrierDetails.toggleUpdateCarrierActiveStatusEnabled` is `true` in the List Delivery Carriers response.
 URL: https://www.wixapis.com/ecom/v1/delivery-profiles/delivery-carriers/set-active-status
 Method: POST
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  carrierAppId, rowId, active
 Method parameters: 
   param name: active | type: active | description: Whether the configuration defined in the row is active. | required: true 
   param name: carrierAppId | type: carrierAppId | description: Carrier app GUID. | required: true | validation: format GUID
   param name: rowId | type: rowId | description: Row identifier in the carrier's dashboard settings table that identifies the specific shipping configuration to update.  Pass the `row.key` field from the response of [List Delivery Carriers](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/list-delivery-carriers.md). | required: true | validation: format GUID
 Return type: SetDeliveryCarrierActiveStatusResponse
  EMPTY-OBJECT {}

 Possible Errors:
   HTTP Code: 404 | Status Code: NOT_FOUND | Application Code: DELIVERY_CARRIER_NOT_FOUND | Description: none


```

### Examples

### Set delivery carrier active status
Sets the active status of a delivery carrier within a delivery profile

```curl
curl -X POST \
  'https://www.wixapis.com/ecom/v1/delivery-profiles/delivery-carriers/set-active-status' \
  -H 'Authorization: <AUTH>' \
  -H 'Content-Type: application/json' \
  -d '{
    "carrierAppId": "50d8c12f-715e-41ad-be25-d0f61375dbee",
    "rowId": "71f34b5a-470a-48ba-9e9f-15d35ff1125b",
    "active": false
  }'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.ecom.deliveryProfile.setDeliveryCarrierActiveStatus(carrierAppId, options)
 Description: Sets a delivery carrier's active status.  Activates or deactivates one configuration of a delivery carrier, such as a single pickup location. Specify the carrier's app GUID in `carrierAppId`, the configuration's row key in `rowId`, and the new status in `active`. To get the row key, call [List Delivery Carriers](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/list-delivery-carriers.md) and read `deliveryCarrierRegionalSettings.dashboardTables.rows.key`.  This method works only for a carrier whose `deliveryCarrierDetails.toggleUpdateCarrierActiveStatusEnabled` is `true` in the List Delivery Carriers response.
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  carrierAppId, options.rowId, options.active, options
 Method parameters: 
   param name: carrierAppId | type: string | description: Carrier app GUID. | required: true | validation: format GUID
   param name: options | type: SetDeliveryCarrierActiveStatusOptions  none | required: true 
        - name: rowId | type: string | description: Row identifier in the carrier's dashboard settings table that identifies the specific shipping configuration to update.  Pass the `row.key` field from the response of [List Delivery Carriers](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/shipping-delivery/delivery-profiles/list-delivery-carriers.md). | required: true | validation: format GUID
        - name: active | type: boolean | description: Whether the configuration defined in the row is active. | required: true 
 Return type: PROMISE<SetDeliveryCarrierActiveStatusResponse>
  EMPTY-OBJECT {}

 Possible Errors:
   HTTP Code: 404 | Status Code: NOT_FOUND | Application Code: DELIVERY_CARRIER_NOT_FOUND | Description: none


```

### Examples

### setDeliveryCarrierActiveStatus
```javascript
import { deliveryProfile } from '@wix/ecom';

async function setDeliveryCarrierActiveStatus(carrierAppId,options) {
  const response = await deliveryProfile.setDeliveryCarrierActiveStatus(carrierAppId,options);
};
```

### setDeliveryCarrierActiveStatus (with elevated permissions)
```javascript
import { deliveryProfile } from '@wix/ecom';
import { auth } from '@wix/essentials';

async function mySetDeliveryCarrierActiveStatusMethod(carrierAppId,options) {
  const elevatedSetDeliveryCarrierActiveStatus = auth.elevate(deliveryProfile.setDeliveryCarrierActiveStatus);
  const response = await elevatedSetDeliveryCarrierActiveStatus(carrierAppId,options);
}
```

### setDeliveryCarrierActiveStatus (self-managed)
Self-managed SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md).

```javascript
import { createClient } from '@wix/sdk';
import { deliveryProfile } from '@wix/ecom';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

const myWixClient = createClient ({
  modules: { deliveryProfile },
  // Include the auth strategy and host as relevant
});


async function setDeliveryCarrierActiveStatus(carrierAppId,options) {
  const response = await myWixClient.deliveryProfile.setDeliveryCarrierActiveStatus(carrierAppId,options);
};
```

---