POST /woo-commerce-stores.json

POST /woo-commerce-stores.json
application/json

Body Required

  • channelId integer(int32) Required

    Channel

  • consumerKey string Required

    Consumer key

  • consumerSecret string Required

    Consumer secret

  • customerNote boolean | null Required

    Jetti will automatically sync a note to the WooCommerce store as shipments are created. This note wil be visible to admins. However, you can also send the note to the customer. The email will be sent by WooCommerce, not Jetti.

    Default value is false.

  • customerNoteContent string | null

    Customer note content

  • enabled boolean | null Required

    Enabled

    Default value is true.

  • importDraftProducts boolean | null Required

    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 boolean | null Required

    Legacy

    Default value is false.

  • name string | null

    Name

  • partialShipmentStatus string | null Required

    Partial shipment status

    Values are processing or completed. Default value is completed.

  • shop string Required

    Shop

  • suffix string | null

    Suffix

  • vendorField string | null

    Vendor field

  • vendorMapping string | null Required

    Vendor mapping

    Values are attribute or custom. Default value is attribute.

Responses

  • 200

    Successful response

    Hide response attributes Show response attributes object
POST /woo-commerce-stores.json
curl \
 -X POST http://api.example.com/v1/woo-commerce-stores.json \
 -H "Content-Type: application/json" \
 -d '{"channelId":42,"consumerKey":"string","consumerSecret":"string","customerNote":false,"customerNoteContent":"string","enabled":true,"importDraftProducts":true,"importingProducts":true,"lastFetchedProductsAt":"2023-05-04T09:42:00+00:00","lastFetchedSalesAt":"2023-05-04T09:42:00+00:00","legacy":false,"name":"string","partialShipmentStatus":"completed","shop":"string","suffix":"string","vendorField":"string","vendorMapping":"attribute"}'
Request example
{
  "channelId": 42,
  "consumerKey": "string",
  "consumerSecret": "string",
  "customerNote": false,
  "customerNoteContent": "string",
  "enabled": true,
  "importDraftProducts": true,
  "importingProducts": true,
  "lastFetchedProductsAt": "2023-05-04T09:42:00+00:00",
  "lastFetchedSalesAt": "2023-05-04T09:42:00+00:00",
  "legacy": false,
  "name": "string",
  "partialShipmentStatus": "completed",
  "shop": "string",
  "suffix": "string",
  "vendorField": "string",
  "vendorMapping": "attribute"
}
Response examples (200)
{
  "channelId": 42,
  "consumerKey": "string",
  "consumerSecret": "string",
  "createdAt": "2023-05-04T09:42:00+00:00",
  "customerNote": false,
  "customerNoteContent": "string",
  "enabled": true,
  "id": 42,
  "importDraftProducts": true,
  "importingProducts": true,
  "lastFetchedProductsAt": "2023-05-04T09:42:00+00:00",
  "lastFetchedSalesAt": "2023-05-04T09:42:00+00:00",
  "legacy": false,
  "name": "string",
  "partialShipmentStatus": "completed",
  "shop": "string",
  "suffix": "string",
  "updatedAt": "2023-05-04T09:42:00+00:00",
  "vendorField": "string",
  "vendorMapping": "attribute"
}