Shopify Gift Card : entrées et champs
Gift cards of the store: balance, expiry, customer. Creating one issues spendable credit.
Lecture
List Gift Cards
Fetch gift cards from Shopify.
Route: GET /giftCards
Formule Excel: =LF.shopify.giftCards("selection", "fields")
Entrees configurables
| Name | Type | Required | Description |
|---|---|---|---|
link | string | Yes | - |
first | number | No | The first n elements from the paginated list. Default: 250 |
after | string | No | The elements that come after the specified cursor. |
last | number | No | The last n elements from the paginated list. |
before | string | No | The elements that come before the specified cursor. |
reverse | boolean | No | Reverse the order of the underlying list. Default: false |
sortKey | enum | No | Sort 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: AMOUNT_SPENT, BALANCE, CODE, CREATED_AT, CUSTOMER_NAME |
query.balance_status | enum | No | Example: - balance_status:full Values: full, partial, empty, full_or_partial |
query.created_at | date | No | Example: - created_at:>='2020-01-01T12:00:00Z' |
query.customer_id | id | No | - |
query.default | string | No | Filter by a case-insensitive search of multiple fields in a document, including gift card codes. Example: - query=a5bh6h64b329j4k7 -... |
query.expires_on | date | No | Example: - expires_on:>=2020-01-01 |
query.id | id | No | Filter by id range. Example: - id:1234 - id:>=1234 - id:<=1234 |
query.initial_value | string | No | Example: - initial_value:>=100 |
query.recipient_id | id | No | - |
query.source | enum | No | Example: - source:manual Values: manual, purchased, api_client |
query.status | enum | No | Example: - status:disabled OR status:expired Values: disabled, enabled, expired, expiring |
savedSearchId | string | No | The ID of a saved search. The search’s query string is used as... |
Donnees retournees dans Excel
| Field | Type | Relations | Description |
|---|---|---|---|
amountdefault | number | — | - |
currencyCodedefault | enum | — | - |
createdAtdefault | date | — | - |
crossCurrencyRedemptionStrategydefault | enum | — | - |
canDeletedefault | boolean | — | - |
createdAtdefault | date | — | - |
dataSaleOptOutdefault | boolean | — | - |
displayNamedefault | string | — | - |
emaildefault | string | — | - |
firstNamedefault | string | — | - |
hasTimelineCommentdefault | boolean | — | - |
iddefault | id | — | - |
lastNamedefault | string | — | - |
lifetimeDurationdefault | string | — | - |
localedefault | string | — | - |
multipassIdentifierdefault | string | — | - |
notedefault | string | — | - |
numberOfOrdersdefault | string | — | - |
phonedefault | string | — | - |
productSubscriberStatusdefault | enum | — | - |
statedefault | enum | — | - |
tagsdefault | string[] | — | - |
taxExemptdefault | boolean | — | - |
taxExemptionsdefault | string | — | - |
unsubscribeUrldefault | string | — | - |
updatedAtdefault | date | — | - |
validEmailAddressdefault | boolean | — | - |
verifiedEmaildefault | boolean | — | - |
deactivatedAtdefault | date | — | - |
enableddefault | boolean | — | - |
expiresOndefault | date | — | - |
iddefault | id | → giftCards | - |
amountdefault | number | — | - |
currencyCodedefault | enum | — | - |
isRedeemabledefault | boolean | — | - |
lastCharactersdefault | string | — | - |
canRestockdefault | boolean | — | - |
createdAtdefault | date | — | - |
currentQuantitydefault | number | — | - |
discountedTotaldefault | string | — | - |
discountedUnitPricedefault | string | — | - |
fulfillableQuantitydefault | number | — | - |
fulfillmentStatusdefault | string | — | - |
iddefault | id | — | - |
isGiftCarddefault | boolean | — | - |
merchantEditabledefault | boolean | — | - |
namedefault | string | — | - |
nonFulfillableQuantitydefault | number | — | - |
originalTotaldefault | string | — | - |
originalUnitPricedefault | string | — | - |
quantitydefault | number | — | - |
refundableQuantitydefault | number | — | - |
requiresShippingdefault | boolean | — | - |
restockabledefault | boolean | — | - |
skudefault | string | — | - |
taxabledefault | boolean | — | - |
titledefault | string | — | - |
totalDiscountdefault | string | — | - |
unfulfilledDiscountedTotaldefault | string | — | - |
unfulfilledOriginalTotaldefault | string | — | - |
unfulfilledQuantitydefault | number | — | - |
variantTitledefault | string | — | - |
vendordefault | string | — | - |
maskedCodedefault | string | — | - |
notedefault | string | — | - |
billingAddressMatchesShippingAddressdefault | boolean | — | - |
cancelledAtdefault | date | — | - |
cancelReasondefault | enum | — | - |
canMarkAsPaiddefault | boolean | — | - |
canNotifyCustomerdefault | boolean | — | - |
capturabledefault | boolean | — | - |
cartDiscountAmountdefault | string | — | - |
cartTokendefault | string | — | - |
checkoutTokendefault | string | — | - |
clientIpdefault | string | — | - |
closeddefault | boolean | — | - |
closedAtdefault | date | — | - |
confirmationNumberdefault | string | — | - |
confirmeddefault | boolean | — | - |
createdAtdefault | date | — | - |
currencyCodedefault | enum | — | - |
currentSubtotalLineItemsQuantitydefault | number | — | - |
currentTotalWeightdefault | string | — | - |
customerAcceptsMarketingdefault | boolean | — | - |
customerLocaledefault | string | — | - |
discountCodedefault | string | — | - |
discountCodesdefault | string[] | — | - |
displayFinancialStatusdefault | enum | — | - |
displayFulfillmentStatusdefault | enum | — | - |
displayRequestedEditStatusdefault | enum | — | - |
dutiesIncludeddefault | boolean | — | - |
editeddefault | boolean | — | - |
emaildefault | string | — | - |
estimatedTaxesdefault | boolean | — | - |
fulfillabledefault | boolean | — | - |
fullyPaiddefault | boolean | — | - |
hasTimelineCommentdefault | boolean | — | - |
iddefault | id | — | - |
landingPageDisplayTextdefault | string | — | - |
landingPageUrldefault | string | — | - |
merchantEditabledefault | boolean | — | - |
merchantEditableErrorsdefault | string[] | — | - |
namedefault | string | — | - |
netPaymentdefault | string | — | - |
notedefault | string | — | - |
numberdefault | number | — | - |
paymentGatewayNamesdefault | string[] | — | - |
phonedefault | string | — | - |
poNumberdefault | string | — | - |
presentmentCurrencyCodedefault | enum | — | - |
processedAtdefault | date | — | - |
productNetworkdefault | boolean | — | - |
referralCodedefault | string | — | - |
referrerDisplayTextdefault | string | — | - |
referrerUrldefault | string | — | - |
refundabledefault | boolean | — | - |
registeredSourceUrldefault | string | — | - |
requiresShippingdefault | boolean | — | - |
restockabledefault | boolean | — | - |
returnStatusdefault | enum | — | - |
riskLeveldefault | enum | — | - |
sourceIdentifierdefault | string | — | - |
sourceNamedefault | string | — | - |
subtotalLineItemsQuantitydefault | number | — | - |
subtotalPricedefault | string | — | - |
tagsdefault | string[] | — | - |
taxesIncludeddefault | boolean | — | - |
taxExemptdefault | boolean | — | - |
testdefault | boolean | — | - |
totalCapturabledefault | string | — | - |
totalDiscountsdefault | string | — | - |
totalPricedefault | string | — | - |
totalReceiveddefault | string | — | - |
totalRefundeddefault | string | — | - |
totalShippingPricedefault | string | — | - |
totalTaxdefault | string | — | - |
totalWeightdefault | string | — | - |
unpaiddefault | boolean | — | - |
updatedAtdefault | date | — | - |
messagedefault | string | — | - |
preferredNamedefault | string | — | - |
sendNotificationAtdefault | date | — | - |
templateSuffixdefault | string | — | - |
iddefault | id | — | - |
notedefault | string | — | - |
processedAtdefault | date | — | - |
updatedAtdefault | date | — | - |
Creation
Create Gift Card
Create a new gift card in Shopify.
Route: POST /giftCards
Entrees configurables
| Name | Type | Required | Description |
|---|---|---|---|
input.code | string | No | - |
input.crossCurrencyRedemptionStrategy | enum | No | Values: NONE, MARKET_FX, SPOT_FX |
input.customerId | string | No | - |
input.expiresOn | date | No | - |
input.initialAmount.amount | number | Yes | - |
input.initialAmount.currencyCode | enum | Yes | Values: USD, EUR, GBP, CAD, AFN |
input.note | string | No | - |
input.recipientAttributes.id | string | Yes | - |
input.recipientAttributes.message | string | No | - |
input.recipientAttributes.preferredName | string | No | - |
input.recipientAttributes.sendNotificationAt | date | No | - |
input.templateSuffix | string | No | - |
Donnees retournees dans Excel
Cette action retourne une confirmation plutot qu une table selectionnable.