> 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`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt ## Resource: Errors ## Article: Errors ## Article Link: https://dev.wix.com/docs/api-reference/account-level/resellers/packages-and-product-instances/errors.md ## Article Content: # Resellers API: Errors This article outlines error messages that might be issued when calling endpoints of the Resellers API. ## Create Package Errors The [Create Package](https://dev.wix.com/docs/rest/account-level/resellers/packages-and-product-instances/create-package-v2.md) endpoint might issue the following error messages: |
HTTP status
|
Error code
|
Error message
|
Troubleshooting
| | ------------------------------------------ | ----------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `NOT_FOUND (404)` | `PRODUCT_NOT_FOUND` | Product id not found in catalog. | Make sure that the product ID is correct. You can contact the [Wix B2B sales](mailto:bizdev@wix.com) for a list of product IDs. | | `NOT_FOUND (404)` | `ACCOUNT_NOT_FOUND` | Account with id `` was not found. | Make sure that the account ID is correct. | | `FAILED_PRECONDITION (428)` | `PRODUCT_LIMIT_EXCEEDED` | Limit for product `` exceeded, number of current subscriptions ``. | Each product instance can only be assigned in a limited number of subscriptions. You can contact the [Wix B2B sales](mailto:bizdev@wix.com) for more information. | | `FAILED_PRECONDITION (428)` | `PRODUCT_SETTINGS_NOT_FOUND` | Product doesn't have any settings ``. | Each product must have settings defining how it can be canceled and when customers are notified. A product can't be assigned to a package if these settings are missing. Currently, only Wix can define these settings. Contact the [Wix B2B sales](mailto:bizdev@wix.com) to make sure that the product has been defined properly. | | `FAILED_PRECONDITION (428)` | `MISSING_BILLING_CYCLE` | Product `` must receive a cycle upon creating. | Missing information about which billing cycle to use for the product. Make sure to specify a billing cycle in the request if the product has more than a single supported cycle. | | `FAILED_PRECONDITION (428)` | `INCOMPATIBLE_BILLING_CYCLE` | Product `` cannot be used with cycle: ``, it is not one of ``. | The specified billing cycle isn't supported for the product. Make sure to provide a supported billing cycle for each product. Contact the [Wix B2B sales](mailto:bizdev@wix.com) for more information. | | `FAILED_PRECONDITION (428)` | `INVALID_BILLING_CYCLE` | Product `` is allowed for those cycles: `` and the request had this contract details: ``. | The specified billing cycle isn't supported for any product. Make sure to provide a supported billing cycle. Contact the [Wix B2B sales](mailto:bizdev@wix.com) for more information about the supported billing cycles. | | `FAILED_PRECONDITION (428)` | `INVALID_PRODUCTS` | Invalid products: ``. | Some of the specified product IDs aren't supported. Contact the [Wix B2B sales](mailto:bizdev@wix.com) for more information about available products. | | `FAILED_PRECONDITION (428)` | `MULTIPLE_PRODUCT_ASSIGNMENTS` | Trying to assign products: `` that cannot be assigned simultaneously to the same site ``. | You can't assign a product more than once per request. Make sure to assign each product only once. | | `FAILED_PRECONDITION (428)` | `PRODUCT_TYPE_ALREADY_ASSIGNED` | Product type: `` is allowed only as one instance per site and site `` already has one product of that type. | Make sure that you don't assign a product to a site that already has another product of the same type. Contact the [Wix B2B sales](mailto:bizdev@wix.com) for more information about product types and the products they include. | | `FAILED_PRECONDITION (428)` | `PRODUCT_NOT_SUPPORTED_ON_SITE` | Site `` is not compatible with product ``. | Some products can't be assigned to the specified site. Check that each site has the required Premium plan, when trying to assign a product to it. Contact the [Wix B2B sales](mailto:bizdev@wix.com) for more information about with plans are required for each products. | | `NOT_FOUND (404)` | `SITE_NOT_FOUND` | Site `` is not owned by ``, but by ``. | Check that the site exists and that it belongs to the source account. | | `NOT_FOUND (404)` | `INVALID_REFERENCE_PRODUCT_INSTANCE_ID` | Reference product instance ID is invalid or has already been used. | Check that the `referenceProductInstanceId` is correct. You can use each product instance only a single time as reference product. | ## Adjust Product Instance Specifications Errors The [Adjust Product Instance Specifications](https://dev.wix.com/docs/rest/account-level/resellers/packages-and-product-instances/adjust-product-instance-specifications.md) endpoint might issue the following error messages: |
HTTP status
|
Error code
|
Error message
|
Troubleshooting
| | ------------------------------------------ | ----------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `NOT_FOUND (404)` | `PRODUCT_NOT_FOUND` | Product id not found in catalog. | Make sure that the product ID is correct. You can contact the [Wix B2B sales](mailto:bizdev@wix.com) for a list of product IDs. | | `NOT_FOUND (404)` | `ACCOUNT_NOT_FOUND` | Account with id `` was not found. | Make sure that the account ID is correct. | | `FAILED_PRECONDITION (428)` | `PRODUCT_LIMIT_EXCEEDED` | Limit for product `` exceeded, number of current subscriptions ``. | Each product instance can only be assigned in a limited number of subscriptions. You can contact the [Wix B2B sales](mailto:bizdev@wix.com) for more information. | | `FAILED_PRECONDITION (428)` | `PRODUCT_SETTINGS_NOT_FOUND` | Product doesn't have any settings ``. | Each product must have settings defining how it can be canceled and when customers are notified. A product can't be assigned to a package if these settings are missing. Currently, only Wix can define these settings. Contact the [Wix B2B sales](mailto:bizdev@wix.com) to make sure that the product has been defined properly. | | `FAILED_PRECONDITION (428)` | `MISSING_BILLING_CYCLE` | Product `` must receive a cycle upon creating. | Missing information about which billing cycle to use for the product. Make sure to specify a billing cycle in the request if the product has more than a single supported cycle. | | `FAILED_PRECONDITION (428)` | `INCOMPATIBLE_BILLING_CYCLE` | Product `` cannot be used with cycle: ``, it is not one of ``. | The specified billing cycle isn't supported for the product. Make sure to provide a supported billing cycle for each product. Contact the [Wix B2B sales](mailto:bizdev@wix.com) for more information. | | `FAILED_PRECONDITION (428)` | `INVALID_BILLING_CYCLE` | Product `` is allowed for those cycles: `` and the request had this contract details: ``. | The specified billing cycle isn't supported for any product. Make sure to provide a supported billing cycle. Contact the [Wix B2B sales](mailto:bizdev@wix.com) for more information about the supported billing cycles. | | `FAILED_PRECONDITION (428)` | `INVALID_PRODUCTS` | Invalid products: ``. | Some of the specified product IDs aren't supported. Contact the [Wix B2B sales](mailto:bizdev@wix.com) for more information about available products. | | `FAILED_PRECONDITION (428)` | `MULTIPLE_PRODUCT_ASSIGNMENTS` | Trying to assign products: `` that cannot be assigned simultaneously to the same site ``. | You can't assign a product more than once per request. Make sure to assign each product only once. | | `FAILED_PRECONDITION (428)` | `PRODUCT_TYPE_ALREADY_ASSIGNED` | Product type: `` is allowed only as one instance per site and site `` already has one product of that type. | Make sure that you don't assign a product to a site that already has another product of the same type. Contact the [Wix B2B sales](mailto:bizdev@wix.com) for more information about product types and the products they include. | | `FAILED_PRECONDITION (428)` | `PRODUCT_NOT_SUPPORTED_ON_SITE` | Site `` is not compatible with product ``. | Some products can't be assigned to the specified site. Check that each site has the required Premium plan, when trying to assign a product to it. Contact the [Wix B2B sales](mailto:bizdev@wix.com) for more information about with plans are required for each products. | | `FAILED_PRECONDITION (428)` | `PRODUCT_INSTANCE_NOT_FOUND` | Product instance with id `` was not found. | Make sure that the product instance ID is correct. | | `FAILED_PRECONDITION (428)` | `INCOMPATIBLE_PRODUCT_INSTANCE_STATUS` | Product instance with id `` is with incompatible status ``. | The product instance can't be updated, because its current status doesn't allow the update. Contact the [Wix B2B sales](mailto:bizdev@wix.com) for more information. | | `NOT_FOUND (404)` | `SITE_NOT_FOUND` | Site `` is not owned by ``, but by ``. | Check that the site exists and that it belongs to the source account. | | `FAILED_PRECONDITION (428)` | `INCOMPATIBLE_PRODUCT` | Cannot change asset from product of type `` with id `` to product with id: ``. | You can only replace a product instance with a product belonging to the same type. Contact the [Wix B2B sales](mailto:bizdev@wix.com) for more information about product types and the products they include. | | `FAILED_PRECONDITION (428)` | `MISSING_PRODUCT_DETAILS` | You haven't provided `cycleDuration`. The field is required for`RECURRING` billing types. | You can only adjust product instances with `RECURRING` billing cycles when you specify the new `cycleDuration`. | | `FAILED_PRECONDITION (428)` | `MISSING_PRODUCT_DETAILS` | You haven't provided `catalogProductId`. | You can only replace a product instance with a different product when you specify the new `catalogProductId`. Contact the [Wix B2B sales](mailto:bizdev@wix.com) for more information about available products. | | `FAILED_PRECONDITION (428)` | `MISSING_PRODUCT_DETAILS` | You haven't provided `billingInfo`. | You can only adjust a product instance's billing cycle when you specify the new `billingInfo`. | | `FAILED_PRECONDITION (428)` | `OPERATION_NOT_SUPPORTED_FOR_PRODUCT` | This action isn't supported for product ``. | Not all products can be adjusted. Contact the [Wix B2B sales](mailto:bizdev@wix.com) for more information. | | `FAILED_PRECONDITION (428)` | `INCOMPATIBLE_PRODUCT_INSTANCE_STATUS` | Product instance has status `` and can't be modified. | You can only modify certain products when the have a specific status. Contact the [Wix B2B sales](mailto:bizdev@wix.com) for more information. | ## Unassign Product Instance From Site Errors The [Unassign Product Instance From Site](https://dev.wix.com/docs/rest/account-level/resellers/packages-and-product-instances/unassign-product-instance-from-site.md) endpoint might issue the following error messages: |
HTTP status
|
Error code
|
Error message
|
Troubleshooting
| | ------------------------------------------ | ----------------------------------------- | ----------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------ | | `NOT_FOUND (404)` | `ACCOUNT_NOT_FOUND` | Account with id `` wasn't found. | Make sure that the account ID is correct. | | `FAILED_PRECONDITION (428)` | `MISSING_SITE_ID` | You must provide a siteId to unassign product instance `` from a site. | Make sure to specify the relevant site ID when unassigning a product instance. | | `FAILED_PRECONDITION (428)` | `PRODUCT_INSTANCE_NOT_FOUND` | Product instance with id `` wasn't found. | Make sure that the product instance ID is correct. |