This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Updates a package's external ID field.
ID of the package to update.
External ID that will be assigned to the package.
Updated package.
curl -X patch \
'https://www.wixapis.com/resellers/v1/packages/update/<PACKAGE_ID>/<EXTERNAL_ID>' \
-H 'wix-account-id: <ACCOUNT_ID>' \
-H 'Content-Type: application/json' \
-H 'Authorization: <AUTH>' \
{
"updated_package": {
"id": "ea1b8a6c-c57a-48e8-8db8-655269ad13c2",
"accountId": "<ACCOUNT_ID>",
"externalId": "some-external-id",
"productInstances": [
{
"instanceId": "b83e5be9-763e-4e1f-bd30-763ca0f7f3e5",
"siteId": "918aa943-ab4f-40bc-88c3-8dfd02fae7cd",
"catalogProductId": "00ba7923-2655-402a-852d-2b2100568bcf",
"status": "ENABLED",
"paymentInfo": {
"type": "RECURRING",
"cycleDuration": {
"unit": "YEAR",
"count": 1
}
},
"createdDate": "2021-12-02T09:16:32.890Z",
"updatedDate": "2021-12-02T09:16:32.890Z"
},
{
"instanceId": "db59c0b3-81a0-469f-8f17-9c2a8b6ed3ad",
"siteId": "918aa943-ab4f-40bc-88c3-8dfd02fae7cd",
"catalogProductId": "040639ae-277e-4a73-a4d2-1b6801b92f45",
"status": "CANCELED",
"paymentInfo": {
"type": "RECURRING",
"cycleDuration": {
"unit": "YEAR",
"count": 1
}
},
"createdDate": "2021-12-02T09:16:32.890Z",
"updatedDate": "2021-12-02T09:16:32.890Z"
},
{
"instanceId": "0080aebd-117b-47e9-93e1-1b1c0b461ed2",
"catalogProductId": "53cfc9f8-197a-4e12-b570-ad9ed0cb4e2c",
"status": "FAILED",
"failure": {
"code": "DELIVERY_TIMEOUT",
"message": "delivery of product has reached it's deadline"
},
"paymentInfo": {
"type": "RECURRING",
"cycleDuration": {
"unit": "MONTH",
"count": 1
}
},
"createdDate": "2021-12-02T09:16:32.893Z",
"updatedDate": "2021-12-02T09:16:32.893Z"
}
],
"createdDate": "2021-12-02T09:16:33.142Z",
"updatedDate": "2021-12-02T10:28:00.767Z"
}
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.