Skio

App · 25 actions

Manage Skio subscriptions on your Shopify store: pause, skip, reschedule, cancel or change products, and read customers and orders.

Actions

ActionWhat it does
Add a product to a subscriptionAdd a product variant to a subscription, every order or once with the next order.
Apply a discount codeApply a Shopify discount code to a subscription's future orders.
Cancel a subscriptionCancel a subscription in Skio and Shopify.
Change billing frequencyChange how often a subscription bills and ships, and set its next billing date.
Change the next billing dateChange when a subscription next bills.
Create a subscriptionCreate a subscription for an existing customer.
Generate a customer portal login linkMake a one-click login link to a customer's Skio portal.
Get a customer's loyalty creditGet a customer's loyalty credit balance, in credits and as money in the store's and the customer's currency.
Get a subscriptionGet one subscription with its status, next billing date, billing frequency, customer and current products.
Get an orderGet one order with its total and line items.
List a customer's addressesList the saved addresses of a customer, for creating a subscription or changing where one ships.
List a subscription's productsList the products (lines) on a subscription, with quantity and price.
List customersList customers, newest first.
List ordersList orders, newest first: checkout orders, recurring orders and prepaid deliveries.
List product variantsList product variants with their Skio ID, which adding a product to a subscription needs.
List productsList the store's products, newest first.
List subscriptionsList subscriptions, newest first, with their customer and current products.
Pause a subscriptionPause an active subscription.
Reactivate a subscriptionReactivate a cancelled subscription and set when it next bills.
Resume a subscriptionResume a paused subscription.
Skip the next orderMove the next billing date forward, by one billing period unless you say how far.
Swap a product on a subscriptionReplace one product variant on a subscription with another, keeping the price unless you choose otherwise.
Update a subscription's noteReplace a subscription's note in Skio and Shopify.
Update a subscription's productChange the quantity, price or title of a product on a subscription.
Update the shipping addressChange where a subscription ships.

Add a product to a subscription

Add a product variant to a subscription, every order or once with the next order. A line with the same variant and price gets its quantity raised instead.

Inputs

Subscriptionsubscription_idtextRequired
The subscription to change.
Product variantvariant_idtextRequired
The product variant to add.
Quantityquantitynumber
How many to add. Leave empty for 1.At least 1.
Pricepricenumber
Price per unit. Leave empty for the variant's subscription price.At least 0.
Next order onlyone_timetrue/false
Add it to the next order only, as a one-time add-on. Prepaid subscriptions take only one-time add-ons.

Outputs

dataobject
The response from Skio.
Example output
{
  "data": {
    "ok": true
  }
}

Apply a discount code

Apply a Shopify discount code to a subscription's future orders. Your store's stacking rules apply.

Inputs

Subscriptionsubscription_idtextRequired
The subscription to change.
CodecodetextRequired
The Shopify discount code.

Outputs

dataobject
The response from Skio.
Example output
{
  "data": {
    "message": "example",
    "ok": true
  }
}

Cancel a subscription

Cancel a subscription in Skio and Shopify. A prepaid subscription that has completed a cycle finishes the deliveries already paid for.

Inputs

Subscriptionsubscription_idtextRequired
The subscription to change.
Notify the customersend_notificationtrue/false
Send the customer your cancellation email and tell your integrations, such as Klaviyo. On unless you turn it off.
Cancel permanentlypermanentlytrue/false
Cancel for good, so the subscription can never be reactivated.

Outputs

dataobject
The response from Skio.
Example output
{
  "data": {
    "ok": true
  }
}

Change billing frequency

Change how often a subscription bills and ships, and set its next billing date. This also ends a timed pause. Prepaid subscriptions can't change frequency.

Inputs

Subscriptionsubscription_idtextRequired
The subscription to change.
EveryintervaltextRequired
The period between orders.One of: DAY (Days), WEEK (Weeks), MONTH (Months), YEAR (Years).
Number of periodsinterval_countnumberRequired
How many of those periods between orders: 4 with Weeks is every 4 weeks.At least 1.
Next billing datenext_billing_datedateRequired
The date of the next order.

Outputs

dataobject
The response from Skio.
Example output
{
  "data": {
    "subscriptionId": "example"
  }
}

Change the next billing date

Change when a subscription next bills. The customer gets your next-order-date email. Cancelled subscriptions can't be changed.

Inputs

Subscriptionsubscription_idtextRequired
The subscription to change.
Next billing datedatedateRequired
The new next billing date.

Outputs

dataobject
The response from Skio.
Example output
{
  "data": {
    "message": "example",
    "ok": true
  }
}

Create a subscription

Create a subscription for an existing customer. Skio picks the closest selling plan; the customer isn't charged and no order is placed now.

Inputs

Customercustomer_idtextRequired
The customer the subscription is for.
Shipping addressaddress_idtextRequired
One of the customer's saved addresses, to ship to.
Product variantvariant_idtextRequired
The product variant to subscribe to. It must be in Skio's subscription selling plan group.
QuantityquantitynumberRequired
How many of the product each order.At least 1.
Pricepricenumber
Price per unit. Leave empty for the variant's subscription price.At least 0.
Bill everyintervaltextRequired
How often the customer is charged.One of: DAY (Days), WEEK (Weeks), MONTH (Months), YEAR (Years).
Number of periodsinterval_countnumberRequired
How many of those periods between charges: 2 with Weeks bills every 2 weeks.At least 1.
First billing datenext_billing_datedate
The date of the first charge, up to 5 years ahead. Leave empty for one billing period from now.
Payment method IDpayment_method_idtext
The Skio ID of one of the customer's payment methods. Without one, the subscription can't bill.
Discount codediscount_codetext
A Shopify discount code to apply after the subscription is created.

Outputs

dataobject
The response from Skio.
Example output
{
  "data": {
    "id": "example",
    "platformId": "example"
  }
}

Make a one-click login link to a customer's Skio portal. It expires after 10 minutes.

Inputs

Customer emailemailtextRequired
The customer's email address, exactly as Skio has it.
Open pagereturn_to_pathtext
The portal page to open after login, such as /subscriptions. It starts with /.

Outputs

dataobject
The response from Skio.
Example output
{
  "data": {
    "error": "example",
    "expiresAt": "example",
    "magicLinkUrl": "example",
    "ok": true
  }
}

Get a customer's loyalty credit

Get a customer's loyalty credit balance, in credits and as money in the store's and the customer's currency.

Inputs

Customer emailemailtextRequired
The customer's email address.

Outputs

dataobject
The response from Skio.
Example output
{
  "data": {
    "credits": 1,
    "currencyCode": "example",
    "currencyStringValue": "example",
    "currencyValue": 1,
    "siteCurrencyCode": "example",
    "siteCurrencyStringValue": "example",
    "siteCurrencyValue": 1,
    "storefrontUserId": "example"
  }
}

Get a subscription

Get one subscription with its status, next billing date, billing frequency, customer and current products.

Inputs

Subscriptionsubscription_idtextRequired
The subscription to read.

Outputs

dataobject
The response from Skio.
Example output
{
  "data": {
    "BillingPolicy": {
      "interval": "DAY",
      "intervalCount": 1
    },
    "StorefrontUser": {
      "email": "example",
      "firstName": "example",
      "id": "example",
      "lastName": "example"
    },
    "SubscriptionLines": [
      {
        "ProductVariant": {
          "id": "example",
          "sku": "example",
          "title": "example"
        },
        "id": "example",
        "priceWithoutDiscount": 1,
        "productVariantId": "example",
        "quantity": 1
      }
    ],
    "billingPolicyId": "example",
    "cancelledAt": "example",
    "churnScore": 1,
    "createdAt": "example",
    "currencyCode": "example",
    "cyclesCompleted": 1,
    "deliveryPolicyId": "example",
    "deliveryPrice": 1,
    "id": "example",
    "isPickup": true,
    "lastBillingAttemptAt": "example",
    "nextBillingDate": "example",
    "nextRenewalDate": "example",
    "note": "example",
    "platformId": "example",
    "shippingAddressId": "example",
    "status": "ACTIVE",
    "statusContext": "example",
    "storefrontUserId": "example",
    "updatedAt": "example"
  }
}

Get an order

Get one order with its total and line items.

Inputs

Order IDorder_idtextRequired
The order's Skio ID.

Outputs

dataobject
The response from Skio.
Example output
{
  "data": {
    "OrderLineItems": [
      {
        "id": "example",
        "priceWithoutDiscount": 1,
        "productVariantId": "example",
        "quantity": 1,
        "subscriptionLineId": "example"
      }
    ],
    "cancelledAt": "example",
    "createdAt": "example",
    "currencyCode": "example",
    "deliveredAt": "example",
    "fulfillAt": "example",
    "id": "example",
    "name": "example",
    "note": "example",
    "platformId": "example",
    "platformNumber": "example",
    "prepaidSubscriptionId": "example",
    "processedAt": "example",
    "storefrontUserId": "example",
    "totalPrice": 1,
    "totalPricePresentmentAmount": 1,
    "updatedAt": "example"
  }
}

List a customer's addresses

List the saved addresses of a customer, for creating a subscription or changing where one ships.

Inputs

Customercustomer_idtextRequired
The customer whose addresses to list.
Limitlimitnumber
How many addresses to return, up to 100.From 1 to 100. Default: 25.
Offsetoffsetnumber
How many addresses to skip, to read the next page.At least 0.

Outputs

datalist
The response from Skio.
Example output
{
  "data": [
    {
      "address1": "example",
      "address2": "example",
      "city": "example",
      "company": "example",
      "country": "example",
      "createdAt": "example",
      "firstName": "example",
      "id": "example",
      "lastName": "example",
      "phoneNumber": "example",
      "platformId": "example",
      "province": "example",
      "storefrontUserId": "example",
      "updatedAt": "example",
      "zip": "example"
    }
  ]
}

List a subscription's products

List the products (lines) on a subscription, with quantity and price. Removed lines are left out unless you ask for them.

Inputs

Subscriptionsubscription_idtextRequired
The subscription whose products to list.
Include removed productsinclude_removedtrue/false
Also list products that were removed from the subscription.
Limitlimitnumber
How many lines to return, up to 100.From 1 to 100. Default: 25.
Offsetoffsetnumber
How many lines to skip, to read the next page.At least 0.

Outputs

datalist
The response from Skio.
Example output
{
  "data": [
    {
      "ProductVariant": {
        "id": "example",
        "price": 1,
        "productId": "example",
        "sku": "example",
        "title": "example"
      },
      "createdAt": "example",
      "id": "example",
      "isPrepaid": true,
      "ordersRemaining": 1,
      "priceWithoutDiscount": 1,
      "productVariantId": "example",
      "quantity": 1,
      "removedAt": "example",
      "subscriptionId": "example",
      "titleOverride": "example",
      "updatedAt": "example"
    }
  ]
}

List customers

List customers, newest first. Look one up by email address.

Inputs

Emailemailtext
Only the customer with exactly this email address.
Updated sinceupdated_sincedate and time
Only customers changed at or after this time.
Limitlimitnumber
How many customers to return, up to 100.From 1 to 100. Default: 25.
Offsetoffsetnumber
How many customers to skip, to read the next page.At least 0.

Outputs

datalist
The response from Skio.
Example output
{
  "data": [
    {
      "createdAt": "example",
      "email": "example",
      "firstName": "example",
      "id": "example",
      "lastName": "example",
      "phoneNumber": "example",
      "platformId": "example",
      "removedAt": "example",
      "smsTransactionalOptIn": true,
      "updatedAt": "example"
    }
  ]
}

List orders

List orders, newest first: checkout orders, recurring orders and prepaid deliveries. Filter by customer, subscription or date.

Inputs

Customercustomer_idtext
Only this customer's orders.
Subscriptionsubscription_idtext
Only orders made by this subscription.
Created sincecreated_sincedate and time
Only orders created at or after this time.
Limitlimitnumber
How many orders to return, up to 100.From 1 to 100. Default: 25.
Offsetoffsetnumber
How many orders to skip, to read the next page.At least 0.

Outputs

datalist
The response from Skio.
Example output
{
  "data": [
    {
      "cancelledAt": "example",
      "createdAt": "example",
      "currencyCode": "example",
      "deliveredAt": "example",
      "fulfillAt": "example",
      "id": "example",
      "name": "example",
      "note": "example",
      "platformId": "example",
      "platformNumber": "example",
      "prepaidSubscriptionId": "example",
      "processedAt": "example",
      "storefrontUserId": "example",
      "totalPrice": 1,
      "totalPricePresentmentAmount": 1,
      "updatedAt": "example"
    }
  ]
}

List product variants

List product variants with their Skio ID, which adding a product to a subscription needs. Find one by SKU.

Inputs

Productproduct_idtext
Only variants of this product.
SKUskutext
Only the variant with exactly this SKU.
Include deleted variantsinclude_deletedtrue/false
Also list variants deleted in Shopify.
Limitlimitnumber
How many variants to return, up to 100.From 1 to 100. Default: 25.
Offsetoffsetnumber
How many variants to skip, to read the next page.At least 0.

Outputs

datalist
The response from Skio.
Example output
{
  "data": [
    {
      "Product": {
        "id": "example",
        "title": "example"
      },
      "compareAtPrice": 1,
      "createdAt": "example",
      "deletedAt": "example",
      "id": "example",
      "outOfStockAt": "example",
      "platformId": "example",
      "price": 1,
      "productId": "example",
      "requiresShipping": true,
      "sku": "example",
      "title": "example",
      "updatedAt": "example"
    }
  ]
}

List products

List the store's products, newest first. Deleted products are left out unless you ask for them.

Inputs

Title containstitletext
Only products whose title contains this text.
Include deleted productsinclude_deletedtrue/false
Also list products deleted in Shopify.
Limitlimitnumber
How many products to return, up to 100.From 1 to 100. Default: 25.
Offsetoffsetnumber
How many products to skip, to read the next page.At least 0.

Outputs

datalist
The response from Skio.
Example output
{
  "data": [
    {
      "createdAt": "example",
      "deletedAt": "example",
      "description": "example",
      "id": "example",
      "imageSrc": "example",
      "platformId": "example",
      "slug": "example",
      "status": "example",
      "title": "example",
      "updatedAt": "example"
    }
  ]
}

List subscriptions

List subscriptions, newest first, with their customer and current products. Filter by status, customer email or when they changed.

Inputs

Statusstatustext
Only subscriptions with this status.One of: ACTIVE, PAUSED, CANCELLED, FAILED (Payment failed), UNDER_REVIEW (Under fraud review).
Customer emailcustomer_emailtext
Only the subscriptions of the customer with this email address.
Updated sinceupdated_sincedate and time
Only subscriptions changed at or after this time.
Next billing on or beforenext_billing_beforedate
Only subscriptions that next bill on or before this date, such as the coming week's renewals.
Limitlimitnumber
How many subscriptions to return, up to 100.From 1 to 100. Default: 25.
Offsetoffsetnumber
How many subscriptions to skip, to read the next page.At least 0.

Outputs

datalist
The response from Skio.
Example output
{
  "data": [
    {
      "BillingPolicy": {
        "interval": "DAY",
        "intervalCount": 1
      },
      "StorefrontUser": {
        "email": "example",
        "firstName": "example",
        "id": "example",
        "lastName": "example"
      },
      "SubscriptionLines": [
        {
          "ProductVariant": {
            "id": "example",
            "sku": "example",
            "title": "example"
          },
          "id": "example",
          "priceWithoutDiscount": 1,
          "productVariantId": "example",
          "quantity": 1
        }
      ],
      "billingPolicyId": "example",
      "cancelledAt": "example",
      "churnScore": 1,
      "createdAt": "example",
      "currencyCode": "example",
      "cyclesCompleted": 1,
      "deliveryPolicyId": "example",
      "deliveryPrice": 1,
      "id": "example",
      "isPickup": true,
      "lastBillingAttemptAt": "example",
      "nextBillingDate": "example",
      "nextRenewalDate": "example",
      "note": "example",
      "platformId": "example",
      "shippingAddressId": "example",
      "status": "ACTIVE",
      "statusContext": "example",
      "storefrontUserId": "example",
      "updatedAt": "example"
    }
  ]
}

Pause a subscription

Pause an active subscription. Leave the length empty to pause until it is resumed; give one to pause for that long, after which it bills again.

Inputs

Subscriptionsubscription_idtextRequired
The subscription to change.
Pause forpause_fornumber
How long to pause, such as 2. Leave empty to pause until resumed.
Unitunittext
The unit of the pause length. Billing intervals counts the subscription's own billing periods.One of: DAY (Days), WEEK (Weeks), MONTH (Months), YEAR (Years), RELATIVE (Billing intervals).

Outputs

dataobject
The response from Skio.
Example output
{
  "data": {
    "message": "example",
    "ok": true
  }
}

Reactivate a subscription

Reactivate a cancelled subscription and set when it next bills. No order is placed now.

Inputs

Subscriptionsubscription_idtextRequired
The subscription to change.
Next billing datenext_billing_datedateRequired
When the subscription next bills, up to 5 years ahead.

Outputs

dataobject
The response from Skio.
Example output
{
  "data": {
    "ok": true
  }
}

Resume a subscription

Resume a paused subscription. If its next billing date has passed, it bills almost right away.

Inputs

Subscriptionsubscription_idtextRequired
The subscription to change.
End a timed pauseend_temporary_pausetrue/false
End a pause that was set for a length of time, keeping the next billing date, instead of resuming an indefinitely paused subscription.

Outputs

dataobject
The response from Skio.
Example output
{
  "data": {
    "message": "example",
    "ok": true
  }
}

Skip the next order

Move the next billing date forward, by one billing period unless you say how far. The customer gets your skip email.

Inputs

Subscriptionsubscription_idtextRequired
The subscription to change.
Skip byskip_bynumber
How far to move the date, such as 2. Leave empty for one billing period.
Unitunittext
The unit of how far to skip.One of: DAY (Days), WEEK (Weeks), MONTH (Months), YEAR (Years), RELATIVE (Billing intervals).

Outputs

dataobject
The response from Skio.
Example output
{
  "data": {
    "message": "example",
    "nextBillingDate": "example",
    "ok": true
  }
}

Swap a product on a subscription

Replace one product variant on a subscription with another, keeping the price unless you choose otherwise.

Inputs

Subscriptionsubscription_idtextRequired
The subscription to change.
Current variantold_variant_idtextRequired
The variant now on the subscription.
New variantnew_variant_idtextRequired
The variant to swap in.
Pricepricingtext
Which price the swapped-in product gets. Leave empty to keep the current price.One of: SAME (Keep the current price), NEW_VARIANT_PRICE (Use the new product's subscription price), CUSTOM (Set a custom price).
Custom pricecustom_pricenumber
The price per unit, before the selling plan's discount, when Price is a custom price.At least 0.

Outputs

dataobject
The response from Skio.
Example output
{
  "data": {
    "ok": true
  }
}

Update a subscription's note

Replace a subscription's note in Skio and Shopify. No email is sent.

Inputs

Subscriptionsubscription_idtextRequired
The subscription to change.
NotenotetextRequired
The new note, such as delivery instructions. It replaces the current one.

Outputs

dataobject
The response from Skio.
Example output
{
  "data": {
    "note": "example",
    "ok": true
  }
}

Update a subscription's product

Change the quantity, price or title of a product on a subscription. A quantity of 0 removes it; a subscription's last product can't be removed.

Inputs

Subscription line IDline_idtextRequired
The subscription line to change, from List a subscription's products.
Quantityquantitynumber
The new quantity. 0 removes the product.At least 0.
Pricepricenumber
The new price per unit, before discounts.At least 0.
Titletitletext
A custom title for the product on this subscription.

Outputs

dataobject
The response from Skio.
Example output
{
  "data": {
    "ok": true
  }
}

Update the shipping address

Change where a subscription ships. Only the fields you fill in change. The customer gets your subscription-edited email.

Inputs

Subscriptionsubscription_idtextRequired
The subscription to change.
First namefirst_nametext
First name.
Last namelast_nametext
Last name.
Companycompanytext
Company name.
Address line 1address1text
Street address.
Address line 2address2text
Apartment, suite or unit.
Citycitytext
City.
Stateprovincetext
State or province name or code, such as TX.
ZIP codeziptext
ZIP or postal code.
Countrycountrytext
Country name or code, such as US.
Phonephonetext
Phone number, such as +15125550123. Skio clears a number it can't read.

Outputs

dataobject
The response from Skio.
Example output
{
  "data": {
    "message": "example",
    "ok": true
  }
}

On this page