PUT /woo-commerce-stores/{id}.json
Path parameters
-
Numeric ID of the instance
Minimum value is
1
.
Body Required
-
Archive reason
Values are
subscription
orother
. Default value isother
. -
Channel
-
Consumer key
-
Consumer secret
-
createdAt string(date-time)
Created at
-
Customer note
Default value is
false
. -
customerNoteContent string | null
Customer note content
-
Enabled
Default value is
true
. -
id integer(int32)
Id
-
Import draft products
Default value is
true
. -
importingProducts boolean | null
Importing products
-
lastFetchedProductsAt string(date-time) | null
Last fetched products at
-
lastFetchedSalesAt string(date-time) | null
Last fetched sales at
-
Legacy
Default value is
false
. -
name string | null
Name
-
Partial shipment status
Values are
processing
orcompleted
. Default value iscompleted
. -
Shop
-
suffix string | null
Suffix
-
updatedAt string(date-time)
Updated at
-
vendorField string | null
Vendor field
-
Vendor mapping
Values are
attribute
orcustom
. Default value isattribute
.
PUT /woo-commerce-stores/{id}.json
curl \
-X PUT http://api.example.com/v1/woo-commerce-stores/{id}.json \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"archiveReason":"other","channelId":42,"consumerKey":"string","consumerSecret":"string","createdAt":"2024-05-04T09:42:00+00:00","customerNote":false,"customerNoteContent":"string","enabled":true,"id":42,"importDraftProducts":true,"importingProducts":true,"lastFetchedProductsAt":"2024-05-04T09:42:00+00:00","lastFetchedSalesAt":"2024-05-04T09:42:00+00:00","legacy":false,"name":"string","partialShipmentStatus":"completed","shop":"string","suffix":"string","updatedAt":"2024-05-04T09:42:00+00:00","vendorField":"string","vendorMapping":"attribute"}'
Request example
{
"archiveReason": "other",
"channelId": 42,
"consumerKey": "string",
"consumerSecret": "string",
"createdAt": "2024-05-04T09:42:00+00:00",
"customerNote": false,
"customerNoteContent": "string",
"enabled": true,
"id": 42,
"importDraftProducts": true,
"importingProducts": true,
"lastFetchedProductsAt": "2024-05-04T09:42:00+00:00",
"lastFetchedSalesAt": "2024-05-04T09:42:00+00:00",
"legacy": false,
"name": "string",
"partialShipmentStatus": "completed",
"shop": "string",
"suffix": "string",
"updatedAt": "2024-05-04T09:42:00+00:00",
"vendorField": "string",
"vendorMapping": "attribute"
}