Organizations
Billing

Create New Customer Subscription

Creates a subscription for new clients to be paid on frontend

post/v1/new-customer-subscription

Request

  • Base URL: https://api.iotflows.com
  • URL: https://api.iotflows.com/v1/new-customer-subscription
  • Auth: none declared. Required headers: Authorization

Headers

Authorizationstring Bearer access-token required

Request body

emailstring
phonestring
companystring
shipping_addressstring {name: "", address: "", address2: "", city: "", state: "", zipCode: "required", country: "required"}
billing_addressstring {name: "", address: "", address2: "", city: "", state: "", zipCode: "required", country: "required"}
cart_itemsstring {'price': 'price_1SFye6KI2r9dYktAMncyZKla', 'quantity': 2}
customer_idstring optional customer id
first_namestring
last_namestring
promotion_codestring[]
payment_methodstring stripe payment method from setup intent

Response

successful operation

payment_intent_idstring
subscriptionstring optional subscription object if an actual subscription was created
invoicestring optional invoice if no subscription was created

Changes

No recorded changes to this operation across all 1 revision of this API.