Skip to content

Commit

Permalink
Update webhook documentation for mpn of product and variation
Browse files Browse the repository at this point in the history
  • Loading branch information
papantonis committed Oct 27, 2023
1 parent eadf9a2 commit f0e9037
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions source/localizable/smart_cart/_order_object.html.md.erb
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ Name | Type | Description
`line_items[_].commission_rate` | Double | Commission rate as percentage, e.g. `8.34`
`line_items[_].island_vat_discount_applied` | Boolean | VAT discount applied (could be `true` for [invoice](#invoice-details) orders, billed to customers in [5 specific Greek islands](http://elib.aade.gr/elib/view?d=/gr/ap/2021/A_1150/))
`line_items[_].ean` | String | EAN code of product (optional)
`line_items[_].mpn` | String | MPN code of product (optional)
`line_items[_].extra_info` | String | Additional information for item, eg. color preference or prescription details for contact lenses (optional) [webhook example](../webhook/#example-9-with-extrainfo-in-lineitems)
`line_items[_].rejection_reason` | String | Rejection reason (possible values: `limited_stock`, `no_stock`, `discontinuation`, `wrong_price`)
`line_items[_].return_reason` | String | User return reason (possible values: `faulty`, `wrong_product`, `withdrawal`, `wrong_size`)
Expand All @@ -131,6 +132,7 @@ Name | Type | Value | Description
`line_items[_].size.shop_value` | String | |Item original size as provided by the shop
`line_items[_].size.shop_variation_uid` | String | | Variation ID in shop for an item
`line_items[_].size.ean` | String | | EAN code of variation
`line_items[_].size.mpn` | String | | MPN code of variation

#### Accept options

Expand Down
12 changes: 11 additions & 1 deletion source/localizable/smart_cart/webhook.html.md.erb
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ Would send a Webhook request payload just like if the order was cancelled by the
"commission_rate": 8.34,
"island_vat_discount_applied": false,
"ean": "1234567890123",
"mpn": "JA-1059",
"serial_numbers": null
},
{
Expand Down Expand Up @@ -356,7 +357,8 @@ Would send a Webhook request payload just like if the order was cancelled by the
"value": "14 χρονών",
"shop_value": "12-14",
"shop_variation_uid": "40575312-14",
"ean": "1234567890321"
"ean": "1234567890321",
"mpn": "JA-1059"
},
"unit_price": 17.99,
"total_price": 35.98,
Expand All @@ -365,6 +367,7 @@ Would send a Webhook request payload just like if the order was cancelled by the
"commission_rate": 8.34,
"island_vat_discount_applied": false,
"ean": "1234567890123",
"mpn": "JA-1059",
"serial_numbers": null
},
{
Expand Down Expand Up @@ -496,6 +499,7 @@ Would send a Webhook request payload just like if the order was cancelled by the
"commission_rate": 8.34,
"island_vat_discount_applied": false,
"ean": "1234567890123",
"mpn": "JA-1059",
"serial_numbers": null
},
{
Expand Down Expand Up @@ -577,6 +581,7 @@ Would send a Webhook request payload just like if the order was cancelled by the
"commission_rate": 8.34,
"island_vat_discount_applied": false,
"ean": "1234567890123",
"mpn": "JA-1059",
"serial_numbers": null
},
{
Expand Down Expand Up @@ -718,6 +723,7 @@ Would send a Webhook request payload just like if the order was cancelled by the
"commission_rate": 8.34,
"island_vat_discount_applied": false,
"ean": "1234567890123",
"mpn": "JA-1059",
"serial_numbers": null
},
{
Expand Down Expand Up @@ -820,6 +826,7 @@ Would send a Webhook request payload just like if the order was cancelled by the
"commission_rate": 8.34,
"island_vat_discount_applied": false,
"ean": "1234567890123",
"mpn": "JA-1059",
"serial_numbers": null
},
{
Expand Down Expand Up @@ -973,6 +980,7 @@ Would send a Webhook request payload just like if the order was cancelled by the
"commission_rate": 8.34,
"island_vat_discount_applied": false,
"ean": "1234567890123",
"mpn": "JA-1059",
"serial_numbers": null
},
{
Expand Down Expand Up @@ -1118,6 +1126,7 @@ Would send a Webhook request payload just like if the order was cancelled by the
"commission_rate": 8.34,
"island_vat_discount_applied": true,
"ean": "1234567890123",
"mpn": "JA-1059",
"serial_numbers": null
},
{
Expand Down Expand Up @@ -1498,6 +1507,7 @@ Would send a Webhook request payload just like if the order was cancelled by the
"commission_rate": 8.34,
"island_vat_discount_applied": false,
"ean": "1234567890123",
"mpn": "JA-1059",
"serial_numbers": null
},
{
Expand Down

0 comments on commit f0e9037

Please sign in to comment.