Body
Required
-
Archive reason
Values are
subscription
orother
. Default value isother
. -
Channel
-
Consumer key
-
Consumer secret
-
Customer note
Default value is
false
. -
Customer note content
-
Enabled
Default value is
true
. -
Import draft products
Default value is
true
. -
Importing products
-
Last fetched products at
-
Last fetched sales at
-
Legacy
Default value is
false
. -
Name
-
Partial shipment status
Values are
processing
orcompleted
. Default value iscompleted
. -
Shop
-
Suffix
-
Vendor field
-
Vendor mapping
Values are
attribute
orcustom
. Default value isattribute
.
POST
/woo-commerce-stores.json
curl \
--request POST 'http://api.example.com/v1/woo-commerce-stores.json' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"archiveReason":"other","channelId":42,"consumerKey":"string","consumerSecret":"string","customerNote":false,"customerNoteContent":"string","enabled":true,"importDraftProducts":true,"importingProducts":true,"lastFetchedProductsAt":"2025-05-04T09:42:00Z","lastFetchedSalesAt":"2025-05-04T09:42:00Z","legacy":false,"name":"string","partialShipmentStatus":"completed","shop":"string","suffix":"string","vendorField":"string","vendorMapping":"attribute"}'
Request examples
{
"archiveReason": "other",
"channelId": 42,
"consumerKey": "string",
"consumerSecret": "string",
"customerNote": false,
"customerNoteContent": "string",
"enabled": true,
"importDraftProducts": true,
"importingProducts": true,
"lastFetchedProductsAt": "2025-05-04T09:42:00Z",
"lastFetchedSalesAt": "2025-05-04T09:42:00Z",
"legacy": false,
"name": "string",
"partialShipmentStatus": "completed",
"shop": "string",
"suffix": "string",
"vendorField": "string",
"vendorMapping": "attribute"
}
Response examples (200)
{
"archiveReason": "other",
"channelId": 42,
"consumerKey": "string",
"consumerSecret": "string",
"createdAt": "2025-05-04T09:42:00Z",
"customerNote": false,
"customerNoteContent": "string",
"enabled": true,
"id": 42,
"importDraftProducts": true,
"importingProducts": true,
"lastFetchedProductsAt": "2025-05-04T09:42:00Z",
"lastFetchedSalesAt": "2025-05-04T09:42:00Z",
"legacy": false,
"name": "string",
"partialShipmentStatus": "completed",
"shop": "string",
"suffix": "string",
"updatedAt": "2025-05-04T09:42:00Z",
"vendorField": "string",
"vendorMapping": "attribute"
}