LinkyFlow — agents autonomes et données métier live dans Excel ou sur le webLinkyFlow
Shopify Automatic Discount : entrées et champs
← Connexion Shopify pour LinkyFlow

Shopify Automatic Discount : entrées et champs

The store’s discounts, and the basic discount applied without a code. Narrow with method:automatic.

Lecture

List Automatic Discounts

Fetch automatic discounts from Shopify.

Route: GET /automaticDiscounts

Formule Excel: =LF.shopify.automaticDiscounts("selection", "fields")

Entrees configurables

NameTypeRequiredDescription
linkstringYes-
firstnumberNoThe first n elements from the paginated list. Default: 250
afterstringNoThe elements that come after the specified cursor.
lastnumberNoThe last n elements from the paginated list.
beforestringNoThe elements that come before the specified cursor.
reversebooleanNoReverse the order of the underlying list. Default: false
sortKeyenumNoSort the underlying list using a key. If your query is slow or returns an error, then [try specifying a sort key that matches the field used... Values: CREATED_AT, ENDS_AT, ID, RELEVANCE, STARTS_AT
query.codestringNoFilter by the discount code. Not supported for bulk discounts. Example: - code:WELCOME10
query.combines_withenumNoFilter by the Shopify Functions discount classes that the [discount type](... Values: order_discounts, product_discounts, shipping_discounts
query.combines_with.product_discounts_with_tags_on_same_cart_linestringNoFilter by a combines with tag applied to discounts on the same cart line. Supports multiple tags separated by commas (e.g., combines_with.pr...
query.contextenumNoFilter by the context type. Supports multiple values separated by commas (e.g., context:all,market). When multiple values are provided, resu... Values: all, customer, segment, market
query.created_atdateNoFilter by the date and time, in the shop's timezone, when the discount was created. Example: - created_at:>'2020-10-21T23:39:20Z' - ...
query.customer_idsstringNoFilter by specific customer IDs that are eligible for the discount. Example: - customer_ids:123456789 - customer_ids:123,456
query.defaultstringNoFilter by a case-insensitive search of multiple fields in a document. Example: - query=Bob Norman - query=title:green hoodie
query.discount_classenumNoFilter by the discount class. Supports multiple classes separated by comma... Values: order, product, shipping
query.discount_typeenumNoFilter by the discount type. Supports multiple types separated by commas (e.g.,... Values: app, bogo, fixed_amount, free_shipping, percentage
query.ends_atdateNoFilter by the date and time, in the shop's timezone, when the discount ends. Example: - ends_at:>'2020-10-21T23:39:20Z' - ends_at:<n...
query.ididNoFilter by id range. Example: - id:1234 - id:>=1234 - id:<=1234
query.market_idsstringNoFilter by specific market IDs that are eligible for the discount. Supports multiple IDs separated by commas (e.g., market_ids:123,456). Exam...
query.methodenumNoFilter by the discount method. Supports multiple methods separated by comm... Values: automatic, code
query.segment_idsstringNoFilter by specific segment IDs that are eligible for the discount. Supports multiple IDs separated by commas (e.g., segment_ids:123,456). Ex...
query.starts_atdateNoFilter by the date and time, in the shop's timezone, when the discount becomes active and is available for customer use. Example: - starts_...
query.statusenumNoFilter by the status of the discount. Supports multiple statuses separated by commas (e.g., status:active,scheduled). Example: - status:sch... Values: active, expired, scheduled
query.tagstringNoFilter by a tag applied to the discount. Supports multiple tags separated by commas (e.g., tag:loyalty,clearance). Example: - tag:loyalty<...
query.times_usednumberNoFilter by the number of times the discount has been used. For example, if a "Buy 3, Get 1 Free" t-shirt discount is automatically applied in...
query.titlestringNoFilter by the discount name that displays to merchants in the Shopify admin and to customers. Example: - title:Black Friday Sale
query.typeenumNoFilter by the discount type. Supports multiple types separated by commas (e.g.,... Values: all, all_with_app, app, bxgy, fixed_amount
query.updated_atdateNoFilter by the date and time, in the shop's timezone, when the discount was last updated. Example: - updated_at:>'2020-10-21T23:39:20Z'<br/...
savedSearchIdstringNoThe ID of a saved search. The search’s query string is used as...

Donnees retournees dans Excel

FieldTypeRelationsDescription
appliesOnOneTimePurchasedefaultboolean—-
appliesOnSubscriptiondefaultboolean—-
asyncUsageCountdefaultnumber—-
createdAtdefaultdate—-
discountClassdefaultenum—-
discountClassesdefaultstring—-
discountIddefaultstring—-
endsAtdefaultdate—-
recurringCycleLimitdefaultnumber—-
startsAtdefaultdate—-
statusdefaultenum—-
tagsdefaultstring[]—-
titledefaultstring—-
updatedAtdefaultdate—-
actiondefaultstring—-
additionalContentdefaultstring—-
additionalDatadefaultstring—-
appTitledefaultstring—-
argumentsdefaultstring—-
attributeToAppdefaultboolean—-
attributeToUserdefaultboolean—-
authordefaultstring—-
createdAtdefaultdate—-
criticalAlertdefaultboolean—-
hasAdditionalContentdefaultboolean—-
iddefaultid—-
messagedefaultstring—-
secondaryMessagedefaultstring—-
subjectIddefaultstring—-
subjectTypedefaultenum—-
iddefaultid—-
compareDigestdefaultstring—-
createdAtdefaultdate—-
descriptiondefaultstring—-
iddefaultid—-
jsonValuedefaultstring—-
keydefaultstring—-
namespacedefaultstring—-
ownerTypedefaultenum—-
sizeInBytesdefaultnumber—-
translatabledefaultboolean—-
typedefaultstring—-
updatedAtdefaultdate—-
valuedefaultstring—-
descriptiondefaultstring—-
iddefaultid→ metafieldDefinitions-
keydefaultstring—-
namedefaultstring—-
namespacedefaultstring—-
ownerTypedefaultenum—-
pinnedPositiondefaultnumber—-
useAsCollectionConditiondefaultboolean—-
validationStatusdefaultenum—-
compareDigestdefaultstring—-
createdAtdefaultdate—-
descriptiondefaultstring—-
iddefaultid→ metafields-
jsonValuedefaultstring—-
keydefaultstring—-
namespacedefaultstring—-
ownerTypedefaultenum—-
sizeInBytesdefaultnumber—-
translatabledefaultboolean—-
typedefaultstring—-
updatedAtdefaultdate—-
valuedefaultstring—-
Creation

Create Automatic Discount

Create a new automatic discount in Shopify.

Route: POST /automaticDiscounts

Entrees configurables

NameTypeRequiredDescription
automaticBasicDiscount.combinesWith.orderDiscountsbooleanNo-
automaticBasicDiscount.combinesWith.productDiscountsbooleanNo-
automaticBasicDiscount.combinesWith.productDiscountsWithTagsOnSameCartLine.addstring[]No-
automaticBasicDiscount.combinesWith.productDiscountsWithTagsOnSameCartLine.removestring[]No-
automaticBasicDiscount.combinesWith.shippingDiscountsbooleanNo-
automaticBasicDiscount.context.allenumNoValues: ALL
automaticBasicDiscount.context.customers.addstring[]No-
automaticBasicDiscount.context.customers.removestring[]No-
automaticBasicDiscount.context.customerSegments.addstring[]No-
automaticBasicDiscount.context.customerSegments.removestring[]No-
automaticBasicDiscount.context.markets.addstring[]No-
automaticBasicDiscount.context.markets.removestring[]No-
automaticBasicDiscount.customerGets.appliesOnOneTimePurchasebooleanNo-
automaticBasicDiscount.customerGets.appliesOnSubscriptionbooleanNo-
automaticBasicDiscount.customerGets.items.allbooleanNo-
automaticBasicDiscount.customerGets.items.collections.addstring[]No-
automaticBasicDiscount.customerGets.items.collections.removestring[]No-
automaticBasicDiscount.customerGets.items.products.productsToAddstring[]No-
automaticBasicDiscount.customerGets.items.products.productsToRemovestring[]No-
automaticBasicDiscount.customerGets.items.products.productVariantsToAddstring[]No-
automaticBasicDiscount.customerGets.items.products.productVariantsToRemovestring[]No-
automaticBasicDiscount.customerGets.value.discountAmount.amountnumberNo-
automaticBasicDiscount.customerGets.value.discountAmount.appliesOnEachItembooleanNo-
automaticBasicDiscount.customerGets.value.discountOnQuantity.effect.amountnumberNo-
automaticBasicDiscount.customerGets.value.discountOnQuantity.effect.percentagenumberNo-
automaticBasicDiscount.customerGets.value.discountOnQuantity.quantitystringNo-
automaticBasicDiscount.customerGets.value.percentagenumberNo-
automaticBasicDiscount.endsAtdateNo-
automaticBasicDiscount.minimumRequirement.quantity.greaterThanOrEqualToQuantitystringNo-
automaticBasicDiscount.minimumRequirement.subtotal.greaterThanOrEqualToSubtotalnumberNo-
automaticBasicDiscount.recurringCycleLimitnumberNo-
automaticBasicDiscount.startsAtdateNo-
automaticBasicDiscount.tagsstring[]No-
automaticBasicDiscount.titlestringNo-

Donnees retournees dans Excel

Cette action retourne une confirmation plutot qu une table selectionnable.

Modification

Update Automatic Discount

Update an existing automatic discount in Shopify.

Route: PATCH /automaticDiscounts/{id}

Entrees configurables

NameTypeRequiredDescription
automaticBasicDiscount.combinesWith.orderDiscountsbooleanNo-
automaticBasicDiscount.combinesWith.productDiscountsbooleanNo-
automaticBasicDiscount.combinesWith.productDiscountsWithTagsOnSameCartLine.addstring[]No-
automaticBasicDiscount.combinesWith.productDiscountsWithTagsOnSameCartLine.removestring[]No-
automaticBasicDiscount.combinesWith.shippingDiscountsbooleanNo-
automaticBasicDiscount.context.allenumNoValues: ALL
automaticBasicDiscount.context.customers.addstring[]No-
automaticBasicDiscount.context.customers.removestring[]No-
automaticBasicDiscount.context.customerSegments.addstring[]No-
automaticBasicDiscount.context.customerSegments.removestring[]No-
automaticBasicDiscount.context.markets.addstring[]No-
automaticBasicDiscount.context.markets.removestring[]No-
automaticBasicDiscount.customerGets.appliesOnOneTimePurchasebooleanNo-
automaticBasicDiscount.customerGets.appliesOnSubscriptionbooleanNo-
automaticBasicDiscount.customerGets.items.allbooleanNo-
automaticBasicDiscount.customerGets.items.collections.addstring[]No-
automaticBasicDiscount.customerGets.items.collections.removestring[]No-
automaticBasicDiscount.customerGets.items.products.productsToAddstring[]No-
automaticBasicDiscount.customerGets.items.products.productsToRemovestring[]No-
automaticBasicDiscount.customerGets.items.products.productVariantsToAddstring[]No-
automaticBasicDiscount.customerGets.items.products.productVariantsToRemovestring[]No-
automaticBasicDiscount.customerGets.value.discountAmount.amountnumberNo-
automaticBasicDiscount.customerGets.value.discountAmount.appliesOnEachItembooleanNo-
automaticBasicDiscount.customerGets.value.discountOnQuantity.effect.amountnumberNo-
automaticBasicDiscount.customerGets.value.discountOnQuantity.effect.percentagenumberNo-
automaticBasicDiscount.customerGets.value.discountOnQuantity.quantitystringNo-
automaticBasicDiscount.customerGets.value.percentagenumberNo-
automaticBasicDiscount.endsAtdateNo-
automaticBasicDiscount.minimumRequirement.quantity.greaterThanOrEqualToQuantitystringNo-
automaticBasicDiscount.minimumRequirement.subtotal.greaterThanOrEqualToSubtotalnumberNo-
automaticBasicDiscount.recurringCycleLimitnumberNo-
automaticBasicDiscount.startsAtdateNo-
automaticBasicDiscount.tagsstring[]No-
automaticBasicDiscount.titlestringNo-
idstringYes-

Donnees retournees dans Excel

Cette action retourne une confirmation plutot qu une table selectionnable.

Modification

Delete Automatic Discount

Delete an existing automatic discount in Shopify.

Route: DELETE /automaticDiscounts/{id}

Entrees configurables

NameTypeRequiredDescription
idstringYes-

Donnees retournees dans Excel

Cette action retourne une confirmation plutot qu une table selectionnable.