POST /woo-commerce-stores.json
Body Required
-
Archive reason
Values are
subscription
orother
. Default value isother
. -
Channel
-
Consumer key
-
Consumer secret
-
Customer note
Default value is
false
. -
customerNoteContent string | null
Customer note content
-
Enabled
Default value is
true
. -
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
-
vendorField string | null
Vendor field
-
Vendor mapping
Values are
attribute
orcustom
. Default value isattribute
.
POST /woo-commerce-stores.json
curl \
-X POST http://api.example.com/v1/woo-commerce-stores.json \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"archiveReason":"other","channelId":42,"consumerKey":"string","consumerSecret":"string","customerNote":false,"customerNoteContent":"string","enabled":true,"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","vendorField":"string","vendorMapping":"attribute"}'
Request example
{
"archiveReason": "other",
"channelId": 42,
"consumerKey": "string",
"consumerSecret": "string",
"customerNote": false,
"customerNoteContent": "string",
"enabled": true,
"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",
"vendorField": "string",
"vendorMapping": "attribute"
}
Response examples (200)
{
"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"
}