View a markdown version of this page

Lemon Squeezy connection options - AWS Glue

Lemon Squeezy connection options

The following are connection options for Lemon Squeezy:

  • ENTITY_NAME – (Required) Used for Read. The name of the Lemon Squeezy object to read.

  • SELECTED_FIELDS – Default: empty (SELECT *). Used for Read. The columns you want to select for the object.

  • FILTER_PREDICATE – Default: empty. Used for Read. A filter predicate in Spark SQL format. AWS Glue pushes down predicates on the fields in the following filtering table to Lemon Squeezy.

Lemon Squeezy supports server-side (pushed-down) filtering on the following entities, with the operators shown, through FILTER_PREDICATE:

EntityFilterable fieldsSupported operators
checkoutsstoreId, variantIdequals only
customersstoreIdequals only
discountsstoreIdequals only
filesvariantIdequals only
license-keysstoreId, orderId, orderItemId, productId, userEmail, statusequals only
order-itemsorderId, productId, variantIdequals only
ordersstoreId, userEmailequals only
pricesvariantIdequals only
productsstoreIdequals only
subscription-invoicesstoreId, subscriptionId, statusequals only
subscription-itemssubscriptionId, priceIdequals only
subscriptionsstoreId, orderId, orderItemId, productId, variantId, userEmail, statusequals only
variantsproductIdequals only

The filterable fields are filter-only. The connector sends them to Lemon Squeezy as filters, and they are not returned as columns. To filter on other values, or to filter the stores entity, apply the filter in your ETL job after the read.

Each record contains the JSON:API fields id, type, attributes, relationships, and links. The attributes, relationships, and links fields are nested structures that hold the resource's business fields and related-resource links.