@@ -9,7 +9,7 @@ WooCommerce is a e-commerce plugin for WordPress that allows you to turn a stand
9
9
Categories: E-commerce
10
10
11
11
12
- Type: wooCommerce /v1
12
+ Type: woocommerce /v1
13
13
14
14
<hr />
15
15
@@ -78,7 +78,7 @@ Name: createCoupon
78
78
"minimum_amount" : " " ,
79
79
"maximum_amount" : " "
80
80
},
81
- "type" : " wooCommerce /v1/createCoupon"
81
+ "type" : " woocommerce /v1/createCoupon"
82
82
}
83
83
```
84
84
@@ -223,7 +223,7 @@ Name: createCustomer
223
223
"phone" : " "
224
224
}
225
225
},
226
- "type" : " wooCommerce /v1/createCustomer"
226
+ "type" : " woocommerce /v1/createCustomer"
227
227
}
228
228
```
229
229
@@ -324,7 +324,13 @@ Name: createOrder
324
324
| Name | Label | Type | Description | Required |
325
325
| :---------------:| :--------------:| :------------:| :-------------------:| :--------:|
326
326
| customer_id | Customer Id | STRING | ` User ID who owns the order. 0 for guests. ` | true |
327
- | line_items | Line Items | ARRAY <details > <summary > Items </summary > [ { ; STRING\( product_id), INTEGER\( quantity)} ; , STRING\( $status), STRING\( $customer_note), { ; STRING\( first_name), STRING\( last_name), STRING\( company), STRING\( address_1), STRING\( address_2), STRING\( city), STRING\( state), STRING\( postcode), STRING\( country), STRING\( email), STRING\( phone)} ; \( $billing), { ; STRING\( first_name), STRING\( last_name), STRING\( company), STRING\( address_1), STRING\( address_2), STRING\( city), STRING\( state), STRING\( postcode), STRING\( country), STRING\( phone)} ; \( $shipping), STRING\( $payment_method), BOOLEAN\( $set_paid)] </details > | ` Line items data. ` | true |
327
+ | line_items | Line Items | ARRAY <details > <summary > Items </summary > [ { ; STRING\( product_id), INTEGER\( quantity)} ; ] </details > | ` Line items data. ` | true |
328
+ | status | Status | STRING <details > <summary > Options </summary > pending, processing, on-hold, completed, cancelled, refunded, failed </details > | ` Order status. ` | false |
329
+ | customer_note | Customer Note | STRING | ` Note left by customer during checkout. ` | false |
330
+ | billing | Billing | OBJECT <details > <summary > Properties </summary > { ; STRING\( first_name), STRING\( last_name), STRING\( company), STRING\( address_1), STRING\( address_2), STRING\( city), STRING\( state), STRING\( postcode), STRING\( country), STRING\( email), STRING\( phone)} ; </details > | ` List of billing address data. ` | false |
331
+ | shipping | Shipping | OBJECT <details > <summary > Properties </summary > { ; STRING\( first_name), STRING\( last_name), STRING\( company), STRING\( address_1), STRING\( address_2), STRING\( city), STRING\( state), STRING\( postcode), STRING\( country), STRING\( phone)} ; </details > | ` List of shipping address data. ` | false |
332
+ | payment_method | Payment Method | STRING | ` Payment method ID. ` | false |
333
+ | set_paid | Set Paid | BOOLEAN <details > <summary > Options </summary > true, false </details > | ` Define if the order is paid. It will set the status to processing and reduce stock items. ` | false |
328
334
329
335
#### Example JSON Structure
330
336
``` json
@@ -336,7 +342,10 @@ Name: createOrder
336
342
"line_items" : [ {
337
343
"product_id" : " " ,
338
344
"quantity" : 1
339
- }, " " , " " , {
345
+ } ],
346
+ "status" : " " ,
347
+ "customer_note" : " " ,
348
+ "billing" : {
340
349
"first_name" : " " ,
341
350
"last_name" : " " ,
342
351
"company" : " " ,
@@ -348,7 +357,8 @@ Name: createOrder
348
357
"country" : " " ,
349
358
"email" : " " ,
350
359
"phone" : " "
351
- }, {
360
+ },
361
+ "shipping" : {
352
362
"first_name" : " " ,
353
363
"last_name" : " " ,
354
364
"company" : " " ,
@@ -359,9 +369,11 @@ Name: createOrder
359
369
"postcode" : " " ,
360
370
"country" : " " ,
361
371
"phone" : " "
362
- }, " " , false ]
372
+ },
373
+ "payment_method" : " " ,
374
+ "set_paid" : false
363
375
},
364
- "type" : " wooCommerce /v1/createOrder"
376
+ "type" : " woocommerce /v1/createOrder"
365
377
}
366
378
```
367
379
@@ -573,7 +585,9 @@ Name: createProduct
573
585
| stock_status | Stock Status | STRING <details > <summary > Options </summary > instock, outofstock, onbackorder </details > | ` Controls the stock status of the product. ` | false |
574
586
| weight | Weight | STRING | ` Product weight (kg). ` | false |
575
587
| dimensions | Dimensions | OBJECT <details > <summary > Properties </summary > { ; STRING\( length), STRING\( width), STRING\( height)} ; </details > | ` Product dimensions. ` | false |
576
- | categories | Categories | ARRAY <details > <summary > Items </summary > [ { ; INTEGER\( id)} ; , [ { ; INTEGER\( id)} ; , [ { ; STRING\( src), STRING\( name)} ; ] \( $images)] \( $tags)] </details > | ` List of categories. ` | false |
588
+ | categories | Categories | ARRAY <details > <summary > Items </summary > [ STRING] </details > | ` List of categories. ` | false |
589
+ | tags | Tags | ARRAY <details > <summary > Items </summary > [ STRING] </details > | ` List of tags. ` | false |
590
+ | images | Images | ARRAY <details > <summary > Items </summary > [ { ; STRING\( src), STRING\( name)} ; ] </details > | ` List of images. ` | false |
577
591
578
592
#### Example JSON Structure
579
593
``` json
@@ -594,16 +608,14 @@ Name: createProduct
594
608
"width" : " " ,
595
609
"height" : " "
596
610
},
597
- "categories" : [ {
598
- "id" : 1
599
- }, [ {
600
- "id" : 1
601
- }, [ {
611
+ "categories" : [ " " ],
612
+ "tags" : [ " " ],
613
+ "images" : [ {
602
614
"src" : " " ,
603
615
"name" : " "
604
- } ] ] ]
616
+ } ]
605
617
},
606
- "type" : " wooCommerce /v1/createProduct"
618
+ "type" : " woocommerce /v1/createProduct"
607
619
}
608
620
```
609
621
@@ -823,14 +835,38 @@ Type: DYNAMIC_WEBHOOK
823
835
824
836
#### Output
825
837
826
- This trigger does not produce any output.
838
+
839
+
840
+ Type: OBJECT
841
+
842
+
843
+ #### Properties
844
+
845
+ | Name | Type | Description |
846
+ | :------------:| :------------:| :-------------------:|
847
+ | id | INTEGER | Unique identifier for the resource. |
848
+ | name | STRING | A friendly name for the webhook. |
849
+ | status | STRING | Webhook status. |
850
+ | topic | STRING | Webhook topic. |
851
+ | resource | STRING | Webhook resource. |
852
+ | event | STRING | Webhook event. |
853
+ | hooks | ARRAY <details > <summary > Items </summary > [ STRING] </details > | WooCommerce action names associated with the webhook. |
854
+ | delivery_url | STRING | The URL where the webhook payload is delivered. |
855
+ | date_created | STRING | The date the webhook was created, in the site's timezone. |
856
+ | date_created_gmt | STRING | The date the webhook was created, as GMT. |
857
+ | date_modified | STRING | The date the webhook was last modified, in the site's timezone. |
858
+ | date_modified_gmt | STRING | The date the webhook was last modified, as GMT. |
859
+ | _ links | OBJECT <details > <summary > Properties </summary > { ; [ { ; STRING\( href)} ; ] \( self), [ { ; STRING\( href)} ; ] \( collection)} ; </details > | |
860
+
861
+
862
+
827
863
828
864
#### JSON Example
829
865
``` json
830
866
{
831
867
"label" : " New Order" ,
832
868
"name" : " newOrder" ,
833
- "type" : " wooCommerce /v1/newOrder"
869
+ "type" : " woocommerce /v1/newOrder"
834
870
}
835
871
```
836
872
@@ -845,14 +881,38 @@ Type: DYNAMIC_WEBHOOK
845
881
846
882
#### Output
847
883
848
- This trigger does not produce any output.
884
+
885
+
886
+ Type: OBJECT
887
+
888
+
889
+ #### Properties
890
+
891
+ | Name | Type | Description |
892
+ | :------------:| :------------:| :-------------------:|
893
+ | id | INTEGER | Unique identifier for the resource. |
894
+ | name | STRING | A friendly name for the webhook. |
895
+ | status | STRING | Webhook status. |
896
+ | topic | STRING | Webhook topic. |
897
+ | resource | STRING | Webhook resource. |
898
+ | event | STRING | Webhook event. |
899
+ | hooks | ARRAY <details > <summary > Items </summary > [ STRING] </details > | WooCommerce action names associated with the webhook. |
900
+ | delivery_url | STRING | The URL where the webhook payload is delivered. |
901
+ | date_created | STRING | The date the webhook was created, in the site's timezone. |
902
+ | date_created_gmt | STRING | The date the webhook was created, as GMT. |
903
+ | date_modified | STRING | The date the webhook was last modified, in the site's timezone. |
904
+ | date_modified_gmt | STRING | The date the webhook was last modified, as GMT. |
905
+ | _ links | OBJECT <details > <summary > Properties </summary > { ; [ { ; STRING\( href)} ; ] \( self), [ { ; STRING\( href)} ; ] \( collection)} ; </details > | |
906
+
907
+
908
+
849
909
850
910
#### JSON Example
851
911
``` json
852
912
{
853
913
"label" : " New Coupon" ,
854
914
"name" : " newCoupon" ,
855
- "type" : " wooCommerce /v1/newCoupon"
915
+ "type" : " woocommerce /v1/newCoupon"
856
916
}
857
917
```
858
918
0 commit comments