Nest Changelog

1.9.1

12/14/2022

1.9.2

12/16/2022

2 changed endpoints

POST /users/{userId}/account/activate

create a new subscription in stripe from shopify order, optionally applies a redemption code

Request Body
{
  applyBillingDelay: bool,
  billingAddress: {
    city: string,
    country: {
      code?: string,
    },
    postalCode: string,
    region: {
      code?: string,
    },
    streetLine1: string,
    streetLine2: string,
  },
  cardTokenId?: string,
  firstName: string,
  isFirstPeriodPrepaid: bool,
  lastName: string,

phoneNumber: string, redemptionCode: string,

utm: { campaign: string, content: string, medium: string, source: string, term: string, }, }

POST /users/{userId}/account/activate

create a new subscription in stripe from shopify order, optionally applies a redemption code

Request Body
{
  applyBillingDelay: bool,
  billingAddress: {
    city: string,
    country: {
      code?: string,
    },
    postalCode: string,
    region: {
      code?: string,
    },
    streetLine1: string,
    streetLine2: string,
  },
  cardTokenId?: string,
  firstName: string,
  isFirstPeriodPrepaid: bool,
  lastName: string,
+ partner: {
+   id?: number,
+ },
  phoneNumber: string,
  redemptionCode: string,
+ serialNumber: string,
  utm: {
    campaign: string,
    content: string,
    medium: string,
    source: string,
    term: string,
  },
}

POST /users/{userId}/account/subscribe

Create a new subscription in stripe

Request Body
{
  applyBillingDelay: bool,
  billingAddress: {
    city: string,
    country: {
      code?: string,
    },
    postalCode: string,
    region: {
      code?: string,
    },
    streetLine1: string,
    streetLine2: string,
  },
  cardTokenId?: string,
  firstName: string,
  isFirstPeriodPrepaid: bool,
  lastName: string,

phoneNumber: string, planId?: number, redemptionCode: string,

utm: { campaign: string, content: string, medium: string, source: string, term: string, }, }

POST /users/{userId}/account/subscribe

Create a new subscription in stripe

Request Body
{
  applyBillingDelay: bool,
  billingAddress: {
    city: string,
    country: {
      code?: string,
    },
    postalCode: string,
    region: {
      code?: string,
    },
    streetLine1: string,
    streetLine2: string,
  },
  cardTokenId?: string,
  firstName: string,
  isFirstPeriodPrepaid: bool,
  lastName: string,
+ partner: {
+   id?: number,
+ },
  phoneNumber: string,
  planId?: number,
  redemptionCode: string,
+ serialNumber: string,
  utm: {
    campaign: string,
    content: string,
    medium: string,
    source: string,
    term: string,
  },
}
WORK IN PROGRESS