Menu dokumentacji

Shopify#

Połącz Shopify za pomocą domeny sklepu i tokenu Admin API. Źródło zapisuje 19 stałych tabel w schemacie titan.shopify.

sql
select
  id,
  email,
  created_at
from titan.shopify.customers
limit 10

Połącz Shopify#

  1. Otwórz Aplikacje, wybierz Połącz aplikację, a następnie Shopify.

  2. Podaj domenę sklepu i token Admin API.

  3. Sprawdź tabele, a następnie zapisz źródło.

  4. Obserwuj Historię synchronizacji, aż pierwsze uruchomienie się zakończy.

Dane uwierzytelniające są przechowywane jako sekrety. Nigdy nie stają się kolumnami jeziora ani nie pojawiają się w wynikach zapytań.

Sposób synchronizacji#

Dane Shopify są pobierane przez wznawialne operacje zbiorcze GraphQL. Zapisany identyfikator operacji pozwala kolejnemu uruchomieniu kontynuować pracę zamiast zaczynać od początku.

Nowe źródło synchronizuje się po połączeniu, a następnie zgodnie z harmonogramem. Domyślny interwał cykliczny wynosi 4 godziny. Przerwane uruchomienie zachowuje ukończone postępy i jest bezpiecznie ponawiane.

Każda tabela jeziora ma też kolumny systemowe _synced_at i _deleted; poniższa dokumentacja kolumn obejmuje wyłącznie kolumny źródłowe.

Dokumentacja tabel#

customers#

titan.shopify.customers ma 17 kolumn źródłowych.

shopify.customers17 kolumn
idintegerpk

Pole źródłowe id.

emailstring

Pole źródłowe email.

created_atdatetime

Pole źródłowe createdAt.

updated_atdatetime

Pole źródłowe updatedAt.

first_namestring

Pole źródłowe firstName.

last_namestring

Pole źródłowe lastName.

phonestring

Pole źródłowe phone.

number_of_ordersinteger

Pole źródłowe numberOfOrders.

multipass_identifierstring

Pole źródłowe multipassIdentifier.

notestring

Pole źródłowe note.

statestring

Pole źródłowe state.

tax_exemptboolean

Pole źródłowe taxExempt.

amount_spentjson

Pole źródłowe amountSpent.

verified_emailboolean

Pole źródłowe verifiedEmail.

currency_codestring

Pole źródłowe currencyCode.

tagsjson

Pole źródłowe tags.

mailing_addresses#

titan.shopify.mailing_addresses ma 17 kolumn źródłowych.

shopify.mailing_addresses17 kolumn
idintegerpk

Pole źródłowe id.

customer_idinteger

Pole źródłowe customerId.

first_namestring

Pole źródłowe firstName.

last_namestring

Pole źródłowe lastName.

address1string

Pole źródłowe address1.

address2string

Pole źródłowe address2.

citystring

Pole źródłowe city.

companystring

Pole źródłowe company.

coordinates_validatedboolean

Pole źródłowe coordinatesValidated.

phonestring

Pole źródłowe phone.

countrystring

Pole źródłowe country.

country_codestring

Pole źródłowe countryCode.

provincestring

Pole źródłowe province.

province_codestring

Pole źródłowe provinceCode.

zipstring

Pole źródłowe zip.

latitudefloat

Pole źródłowe latitude.

longitudefloat

Pole źródłowe longitude.

orders#

titan.shopify.orders ma 42 kolumny źródłowe.

shopify.orders42 kolumny
idintegerpk

Pole źródłowe id.

notestring

Pole źródłowe note.

emailstring

Pole źródłowe email.

taxes_includedboolean

Pole źródłowe taxesIncluded.

currency_codestring

Pole źródłowe currencyCode.

namestring

Pole źródłowe name.

created_atdatetime

Pole źródłowe createdAt.

updated_atdatetime

Pole źródłowe updatedAt.

subtotal_price_setjson

Pole źródłowe subtotalPriceSet.

total_tax_setjson

Pole źródłowe totalTaxSet.

total_price_setjson

Pole źródłowe totalPriceSet.

total_discounts_setjson

Pole źródłowe totalDiscountsSet.

total_tip_received_setjson

Pole źródłowe totalTipReceivedSet.

total_shipping_price_setjson

Pole źródłowe totalShippingPriceSet.

current_total_price_setjson

Pole źródłowe currentTotalPriceSet.

current_total_discounts_setjson

Pole źródłowe currentTotalDiscountsSet.

current_subtotal_price_setjson

Pole źródłowe currentSubtotalPriceSet.

current_total_tax_setjson

Pole źródłowe currentTotalTaxSet.

original_total_duties_setjson

Pole źródłowe originalTotalDutiesSet.

total_weightinteger

Pole źródłowe totalWeight.

source_namestring

Pole źródłowe sourceName.

client_ipstring

Pole źródłowe clientIp.

shipping_addressjson

Pole źródłowe shippingAddress.

billing_addressjson

Pole źródłowe billingAddress.

customer_idinteger

Pole źródłowe customerId.

retail_locationjson

Pole źródłowe retailLocation.

app_idinteger

Pole źródłowe appId.

po_numberstring

Pole źródłowe poNumber.

display_financial_statusstring

Pole źródłowe displayFinancialStatus.

display_fulfillment_statusstring

Pole źródłowe displayFulfillmentStatus.

processed_atdatetime

Pole źródłowe processedAt.

customer_journey_summaryjson

Pole źródłowe customerJourneySummary.

cancel_reasonstring

Pole źródłowe cancelReason.

cancelled_atdatetime

Pole źródłowe cancelledAt.

closed_atdatetime

Pole źródłowe closedAt.

customer_accepts_marketingboolean

Pole źródłowe customerAcceptsMarketing.

confirmedboolean

Pole źródłowe confirmed.

presentment_currency_codestring

Pole źródłowe presentmentCurrencyCode.

status_page_urlstring

Pole źródłowe statusPageUrl.

tagsjson

Pole źródłowe tags.

transactionsjson

Pole źródłowe transactions.

custom_attributesjson

Pole źródłowe customAttributes.

order_line_items#

titan.shopify.order_line_items ma 23 kolumny źródłowe.

shopify.order_line_items23 kolumny
idintegerpk

Pole źródłowe id.

order_idinteger

Pole źródłowe orderId.

product_idinteger

Pole źródłowe productId.

variant_idinteger

Pole źródłowe variantId.

titlestring

Pole źródłowe title.

namestring

Pole źródłowe name.

quantityinteger

Pole źródłowe quantity.

current_quantityinteger

Pole źródłowe currentQuantity.

variantjson

Pole źródłowe variant.

tax_linesjson

Pole źródłowe taxLines.

vendorstring

Pole źródłowe vendor.

skustring

Pole źródłowe sku.

custom_attributesjson

Pole źródłowe customAttributes.

discounted_unit_price_after_all_discounts_setjson

Pole źródłowe discountedUnitPriceAfterAllDiscountsSet.

discounted_total_setjson

Pole źródłowe discountedTotalSet.

discounted_unit_price_setjson

Pole źródłowe discountedUnitPriceSet.

original_total_setjson

Pole źródłowe originalTotalSet.

original_unit_price_setjson

Pole źródłowe originalUnitPriceSet.

taxableboolean

Pole źródłowe taxable.

total_discount_setjson

Pole źródłowe totalDiscountSet.

unfulfilled_original_total_setjson

Pole źródłowe unfulfilledOriginalTotalSet.

unfulfilled_quantityinteger

Pole źródłowe unfulfilledQuantity.

variant_titlestring

Pole źródłowe variantTitle.

discount_applications#

titan.shopify.discount_applications ma 8 kolumn źródłowych.

shopify.discount_applications8 kolumn
order_idintegerpk

Pole źródłowe orderId.

indexintegerpk

Pole źródłowe index.

target_selectionstring

Pole źródłowe targetSelection.

target_typestring

Pole źródłowe targetType.

valuejson

Pole źródłowe value.

codestring

Pole źródłowe code.

typestring

Pole źródłowe type.

allocation_methodstring

Pole źródłowe allocationMethod.

refunds#

titan.shopify.refunds ma 6 kolumn źródłowych.

shopify.refunds6 kolumn
idintegerpk

Pole źródłowe id.

created_atdatetime

Pole źródłowe createdAt.

updated_atdatetime

Pole źródłowe updatedAt.

notestring

Pole źródłowe note.

restockboolean

Pole źródłowe restock.

order_idinteger

Pole źródłowe orderId.

order_adjustments#

titan.shopify.order_adjustments ma 6 kolumn źródłowych.

shopify.order_adjustments6 kolumn
idintegerpk

Pole źródłowe id.

order_idinteger

Pole źródłowe orderId.

refund_idinteger

Pole źródłowe refundId.

amount_setjson

Pole źródłowe amountSet.

tax_amount_setjson

Pole źródłowe taxAmountSet.

reasonstring

Pole źródłowe reason.

refund_line_items#

titan.shopify.refund_line_items ma 10 kolumn źródłowych.

shopify.refund_line_items10 kolumn
idintegerpk

Pole źródłowe id.

refund_idinteger

Pole źródłowe refundId.

location_idinteger

Pole źródłowe locationId.

line_item_idinteger

Pole źródłowe lineItemId.

subtotal_setjson

Pole źródłowe subtotalSet.

price_setjson

Pole źródłowe priceSet.

total_tax_setjson

Pole źródłowe totalTaxSet.

quantityinteger

Pole źródłowe quantity.

restockedboolean

Pole źródłowe restocked.

restock_typestring

Pole źródłowe restockType.

inventory_items#

titan.shopify.inventory_items ma 16 kolumn źródłowych.

shopify.inventory_items16 kolumn
idintegerpk

Pole źródłowe id.

skustring

Pole źródłowe sku.

created_atdatetime

Pole źródłowe createdAt.

updated_atdatetime

Pole źródłowe updatedAt.

requires_shippingboolean

Pole źródłowe requiresShipping.

unit_costjson

Pole źródłowe unitCost.

country_code_of_originstring

Pole źródłowe countryCodeOfOrigin.

province_code_of_originstring

Pole źródłowe provinceCodeOfOrigin.

trackedboolean

Pole źródłowe tracked.

tracked_editablejson

Pole źródłowe trackedEditable.

inventory_history_urlstring

Pole źródłowe inventoryHistoryUrl.

duplicate_sku_countinteger

Pole źródłowe duplicateSkuCount.

measurementjson

Pole źródłowe measurement.

harmonized_system_codestring

Pole źródłowe harmonizedSystemCode.

legacy_resource_idinteger

Pole źródłowe legacyResourceId.

variant_idinteger

Pole źródłowe variantId.

inventory_levels#

titan.shopify.inventory_levels ma 5 kolumn źródłowych.

shopify.inventory_levels5 kolumn
idintegerpk

Pole źródłowe id.

inventory_item_idintegerpk

Pole źródłowe inventoryItemId.

location_idintegerpk

Pole źródłowe locationId.

updated_atdatetime

Pole źródłowe updatedAt.

quantitiesjson

Pole źródłowe quantities.

locations#

titan.shopify.locations ma 6 kolumn źródłowych.

shopify.locations6 kolumn
idintegerpk

Pole źródłowe id.

addressjson

Pole źródłowe address.

created_atdatetime

Pole źródłowe createdAt.

updated_atdatetime

Pole źródłowe updatedAt.

is_activeboolean

Pole źródłowe isActive.

namestring

Pole źródłowe name.

products#

titan.shopify.products ma 14 kolumn źródłowych.

shopify.products14 kolumn
idintegerpk

Pole źródłowe id.

titlestring

Pole źródłowe title.

created_atdatetime

Pole źródłowe createdAt.

updated_atdatetime

Pole źródłowe updatedAt.

published_atdatetime

Pole źródłowe publishedAt.

handlestring

Pole źródłowe handle.

product_typestring

Pole źródłowe productType.

vendorstring

Pole źródłowe vendor.

statusstring

Pole źródłowe status.

template_suffixstring

Pole źródłowe templateSuffix.

tagsjson

Pole źródłowe tags.

descriptionstring

Pole źródłowe description.

description_htmlstring

Pole źródłowe descriptionHtml.

product_variants#

titan.shopify.product_variants ma 23 kolumny źródłowe.

shopify.product_variants23 kolumny
idintegerpk

Pole źródłowe id.

barcodestring

Pole źródłowe barcode.

compare_at_pricefloat

Pole źródłowe compareAtPrice.

created_atdatetime

Pole źródłowe createdAt.

updated_atdatetime

Pole źródłowe updatedAt.

display_namestring

Pole źródłowe displayName.

inventory_item_idinteger

Pole źródłowe inventoryItemId.

inventory_quantityinteger

Pole źródłowe inventoryQuantity.

legacy_resource_idinteger

Pole źródłowe legacyResourceId.

positioninteger

Pole źródłowe position.

pricefloat

Pole źródłowe price.

product_idinteger

Pole źródłowe productId.

requires_componentsboolean

Pole źródłowe requiresComponents.

selected_optionsjson

Pole źródłowe selectedOptions.

sellable_online_quantityinteger

Pole źródłowe sellableOnlineQuantity.

show_unit_priceboolean

Pole źródłowe showUnitPrice.

skustring

Pole źródłowe sku.

taxableboolean

Pole źródłowe taxable.

tax_codestring

Pole źródłowe taxCode.

titlestring

Pole źródłowe title.

unit_pricejson

Pole źródłowe unitPrice.

unit_price_measurementjson

Pole źródłowe unitPriceMeasurement.

imagejson

Pole źródłowe image.

tender_transactions#

titan.shopify.tender_transactions ma 7 kolumn źródłowych.

shopify.tender_transactions7 kolumn
idintegerpk

Pole źródłowe id.

order_idinteger

Pole źródłowe orderId.

amountjson

Pole źródłowe amount.

processed_atdatetime

Pole źródłowe processedAt.

payment_methodstring

Pole źródłowe paymentMethod.

remote_referencestring

Pole źródłowe remoteReference.

testboolean

Pole źródłowe test.

order_transactions#

titan.shopify.order_transactions ma 22 kolumny źródłowe.

shopify.order_transactions22 kolumny
idintegerpk

Pole źródłowe id.

order_idinteger

Pole źródłowe orderId.

created_atdatetime

Pole źródłowe createdAt.

processed_atdatetime

Pole źródłowe processedAt.

amount_rounding_setjson

Pole źródłowe amountRoundingSet.

amount_setjson

Pole źródłowe amountSet.

currency_exchange_adjustmentjson

Pole źródłowe currencyExchangeAdjustment.

error_codestring

Pole źródłowe errorCode.

formatted_gatewaystring

Pole źródłowe formattedGateway.

gatewaystring

Pole źródłowe gateway.

kindstring

Pole źródłowe kind.

location_idinteger

Pole źródłowe locationId.

parent_transaction_idinteger

Pole źródłowe parentTransactionId.

payment_idstring

Pole źródłowe paymentId.

receipt_jsonjson

Pole źródłowe receiptJson.

settlement_currencystring

Pole źródłowe settlementCurrency.

settlement_currency_ratefloat

Pole źródłowe settlementCurrencyRate.

statusstring

Pole źródłowe status.

testboolean

Pole źródłowe test.

total_unsettled_setjson

Pole źródłowe totalUnsettledSet.

user_idinteger

Pole źródłowe userId.

amountfloat

Pole źródłowe amount.

fulfillments#

titan.shopify.fulfillments ma 16 kolumn źródłowych.

shopify.fulfillments16 kolumn
idintegerpk

Pole źródłowe id.

created_atdatetime

Pole źródłowe createdAt.

updated_atdatetime

Pole źródłowe updatedAt.

delivered_atdatetime

Pole źródłowe deliveredAt.

display_statusstring

Pole źródłowe displayStatus.

estimated_delivery_atdatetime

Pole źródłowe estimatedDeliveryAt.

in_transit_atdatetime

Pole źródłowe inTransitAt.

legacy_resource_idinteger

Pole źródłowe legacyResourceId.

location_idinteger

Pole źródłowe locationId.

order_idinteger

Pole źródłowe orderId.

namestring

Pole źródłowe name.

requires_shippingboolean

Pole źródłowe requiresShipping.

servicejson

Pole źródłowe service.

statusstring

Pole źródłowe status.

total_quantityinteger

Pole źródłowe totalQuantity.

tracking_infojson

Pole źródłowe trackingInfo.

metafields#

titan.shopify.metafields ma 11 kolumn źródłowych.

shopify.metafields11 kolumn
idintegerpk

Pole źródłowe id.

created_atdatetime

Pole źródłowe createdAt.

updated_atdatetime

Pole źródłowe updatedAt.

typestring

Pole źródłowe type.

keystring

Pole źródłowe key.

valuestring

Pole źródłowe value.

json_valuejson

Pole źródłowe jsonValue.

namespacestring

Pole źródłowe namespace.

owner_idinteger

Pole źródłowe ownerId.

owner_typestring

Pole źródłowe ownerType.

legacy_resource_idinteger

Pole źródłowe legacyResourceId.

staff_members#

titan.shopify.staff_members ma 13 kolumn źródłowych.

shopify.staff_members13 kolumn
idintegerpk

Pole źródłowe id.

account_typestring

Pole źródłowe accountType.

activeboolean

Pole źródłowe active.

avatarjson

Pole źródłowe avatar.

emailstring

Pole źródłowe email.

existsboolean

Pole źródłowe exists.

first_namestring

Pole źródłowe firstName.

last_namestring

Pole źródłowe lastName.

namestring

Pole źródłowe name.

initialsjson

Pole źródłowe initials.

is_shop_ownerboolean

Pole źródłowe isShopOwner.

localestring

Pole źródłowe locale.

phonestring

Pole źródłowe phone.

product_images#

titan.shopify.product_images ma 6 kolumn źródłowych.

shopify.product_images6 kolumn
idintegerpk

Pole źródłowe id.

product_idinteger

Pole źródłowe productId.

urlstring

Pole źródłowe url.

widthinteger

Pole źródłowe width.

heightinteger

Pole źródłowe height.

alt_textstring

Pole źródłowe altText.

Usunięcia i historia#

Wiersze są scalane według klucza źródłowego. Gdy źródło może potwierdzić usunięcie wiersza, Supernova zachowuje go i ustawia _deleted, dzięki czemu zapytania mogą zdecydować, czy uwzględniać historię. Aby pobierać bieżący stan, filtruj zapytania przez where not _deleted.