sfgboxapi

<back to all web services

CreateSubscribeCustomer

Requires Authentication
The following routes are available for this service:
POST/create-customer
CreateSubscribeCustomer Parameters:
NameParameterData TypeRequiredDescription
EmailbodystringNo
StripeCustomer Parameters:
NameParameterData TypeRequiredDescription
AccountBalanceformintNo
BusinessVatIdformstringNo
CreatedformDateTime?No
DefaultSourceformstringNo
Delinquentformbool?No
DescriptionformstringNo
DiscountformStripeDiscountNo
EmailformstringNo
InvoicePrefixformstringNo
LivemodeformboolNo
MetadataformDictionary<string, string>No
ShippingformStripeShippingNo
SourcesformStripeCollection<StripeCard>No
SubscriptionsformStripeCollection<StripeSubscription>No
DeletedformboolNo
CurrencyformstringNo
StripeId Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
StripeObject Parameters:
NameParameterData TypeRequiredDescription
ObjectformStripeType?No
StripeType Enum:
unknown
account
card
charge
coupon
customer
discount
dispute
event
invoiceitem
invoice
line_item
plan
subscription
token
transfer
list
product
StripeDiscount Parameters:
NameParameterData TypeRequiredDescription
CustomerformstringNo
CouponformStripeCouponNo
StartformDateTime?No
EndformDateTime?No
StripeCoupon Parameters:
NameParameterData TypeRequiredDescription
AmountOffformint?No
CreatedformDateTime?No
CurrencyformstringNo
DurationformStripeCouponDurationNo
DurationInMonthsformint?No
LivemodeformboolNo
MaxRedemptionsformint?No
MetadataformDictionary<string, string>No
PercentOffformint?No
RedeemByformDateTime?No
TimesRedeemedformintNo
ValidformboolNo
StripeCouponDuration Enum:
forever
once
repeating
StripeShipping Parameters:
NameParameterData TypeRequiredDescription
AddressformStripeAddressNo
NameformstringNo
PhoneformstringNo
StripeAddress Parameters:
NameParameterData TypeRequiredDescription
CityformstringNo
CountryformstringNo
Line1formstringNo
Line2formstringNo
PostalCodeformstringNo
StateformstringNo
StripeCollection<T> Parameters:
NameParameterData TypeRequiredDescription
UrlformstringNo
TotalCountformintNo
HasMoreformbool?No
DataformList<T>No
StripeCard Parameters:
NameParameterData TypeRequiredDescription
BrandformstringNo
NumberformstringNo
Last4formstringNo
DynamicLast4formstringNo
ExpMonthformintNo
ExpYearformintNo
CvcformstringNo
NameformstringNo
AddressCityformstringNo
AddressCountryformstringNo
AddressLine1formstringNo
AddressLine2formstringNo
AddressStateformstringNo
AddressZipformstringNo
CvcCheckformStripeCvcCheck?No
AddressLine1CheckformstringNo
AddressZipCheckformstringNo
FundingformstringNo
FingerprintformstringNo
CustomerformstringNo
CountryformstringNo
StripeCvcCheck Enum:
Unknown
Pass
Fail
Unchecked
StripeSubscription Parameters:
NameParameterData TypeRequiredDescription
CurrentPeriodEndformDateTime?No
StatusformStripeSubscriptionStatusNo
PlanformStripePlanNo
CurrentPeriodStartformDateTime?No
StartformDateTime?No
TrialStartformDateTime?No
CancelAtPeriodEndformbool?No
TrialEndformDateTime?No
CanceledAtformDateTime?No
EndedAtformDateTime?No
CustomerformstringNo
QuantityformintNo
StripeSubscriptionStatus Enum:
Unknown
Trialing
Active
PastDue
Canceled
Unpaid
StripePlan Parameters:
NameParameterData TypeRequiredDescription
AmountformintNo
CreatedformDateTime?No
CurrencyformstringNo
IntervalformStripePlanIntervalNo
IntervalCountformint?No
LivemodeformboolNo
MetadataformDictionary<string, string>No
NicknameformstringNo
ProductformstringNo
TrialPeriodDaysformint?No
StripePlanInterval Enum:
month
year

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /create-customer HTTP/1.1 
Host: sfgboxapi.dev.scadsoftware.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"email":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"accountBalance":0,"businessVatId":"String","created":"\/Date(-62135596800000-0000)\/","defaultSource":"String","delinquent":false,"description":"String","discount":{"customer":"String","coupon":{"amountOff":0,"created":"\/Date(-62135596800000-0000)\/","currency":"String","duration":"forever","durationInMonths":0,"livemode":false,"maxRedemptions":0,"metadata":{"String":"String"},"percentOff":0,"redeemBy":"\/Date(-62135596800000-0000)\/","timesRedeemed":0,"valid":false,"id":"String","object":"unknown"},"start":"\/Date(-62135596800000-0000)\/","end":"\/Date(-62135596800000-0000)\/","id":"String","object":"unknown"},"email":"String","invoicePrefix":"String","livemode":false,"metadata":{"String":"String"},"shipping":{"address":{"city":"String","country":"String","line1":"String","line2":"String","postalCode":"String","state":"String"},"name":"String","phone":"String"},"sources":{"url":"String","totalCount":0,"hasMore":false,"data":[{"brand":"String","number":"String","last4":"String","dynamicLast4":"String","expMonth":0,"expYear":0,"cvc":"String","name":"String","addressCity":"String","addressCountry":"String","addressLine1":"String","addressLine2":"String","addressState":"String","addressZip":"String","cvcCheck":"Unknown","addressLine1Check":"String","addressZipCheck":"String","funding":"String","fingerprint":"String","customer":"String","country":"String","id":"String","object":"unknown"}],"id":"String","object":"unknown"},"subscriptions":{"url":"String","totalCount":0,"hasMore":false,"data":[{"currentPeriodEnd":"\/Date(-62135596800000-0000)\/","status":"Unknown","plan":{"amount":0,"created":"\/Date(-62135596800000-0000)\/","currency":"String","interval":"month","intervalCount":0,"livemode":false,"metadata":{"String":"String"},"nickname":"String","product":"String","trialPeriodDays":0,"id":"String","object":"unknown"},"currentPeriodStart":"\/Date(-62135596800000-0000)\/","start":"\/Date(-62135596800000-0000)\/","trialStart":"\/Date(-62135596800000-0000)\/","cancelAtPeriodEnd":false,"trialEnd":"\/Date(-62135596800000-0000)\/","canceledAt":"\/Date(-62135596800000-0000)\/","endedAt":"\/Date(-62135596800000-0000)\/","customer":"String","quantity":0,"id":"String","object":"unknown"}],"id":"String","object":"unknown"},"deleted":false,"currency":"String","id":"String","object":"unknown"}