Merchant Carrier
General
You can attach and detach a carrier from a merchant.
Admin API
Attach a Carrier to a Merchant
This method is used to attach an existing carrier to a merchant.
await adminApi.apis.Merchants.attachMerchantCarrier({merchantIdentifier: 1, carrierIdentifier: 1, countryCode: "DE"});
Attaching the same carrier to the merchant twice will result in 400 response code with MERCHANT_CARRIER_ALREADY_EXISTS
error key.
Detach a Carrier from a Merchant
This method is used to detach a carrier from a merchant.
await adminApi.apis.Merchants.detachMerchantCarrier({merchantIdentifier: 1, carrierIdentifier: 1, countryCode: "DE"});