ServiceStack Home (Live)

<back to all web services

CreateCustomer

Admin
Requires Authentication
Required role:Admin
The following routes are available for this service:
POST/CreateCustomer
CreateCustomer Parameters:
NameParameterData TypeRequiredDescription
FirstNamebodystringNo
LastNamebodystringNo
EmailbodystringNo
PasswordbodystringNo
CompanybodystringNo
PhoneNumberbodystringNo
AddressLine1bodystringNo
AddressLine2bodystringNo
AddressCitybodystringNo
AddressZipbodystringNo
AddressStatebodystringNo
AddressCountrybodystringNo
CreatedDatebodyDateTime?No
Customer Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
EmailformstringNo
DisplayNameformstringNo
FirstNameformstringNo
LastNameformstringNo
CompanyformstringNo
PhoneNumberformstringNo
AddressLine1formstringNo
AddressLine2formstringNo
AddressCityformstringNo
AddressZipformstringNo
AddressStateformstringNo
AddressCountryformstringNo
StripeCustomerIdformstringNo
StripeCouponIdformstringNo
PlanformstringNo
CreatedDateformDateTimeNo
IsReferrerformboolNo
OrdersformList<Order>No
SubscriptionsformList<Subscription>No
Order Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
CustomerIdformintNo
ProductNameformstringNo
FirstNameformstringNo
LastNameformstringNo
EmailformstringNo
CompanyformstringNo
PhoneNumberformstringNo
AddressLine1formstringNo
AddressLine2formstringNo
AddressCityformstringNo
AddressZipformstringNo
AddressStateformstringNo
AddressCountryformstringNo
AgreeTermsformboolNo
NotesformstringNo
Last4formstringNo
SubTotalformintNo
CouponIdformstringNo
DiscountformintNo
TaxformintNo
TotalformintNo
ItemQuantityformintNo
AuthorizedQuantityformint?No
SubscriptionIdformint?No
LicenseRefformstringNo
PaymentIdformint?No
EmailIdformint?No
PaidformboolNo
CreatedDateformDateTimeNo
ModifiedDateformDateTimeNo
ModifiedByformstringNo
CancelledDateformDateTime?No
CancelledReasonformstringNo
IpAddressformstringNo
OrderDetailsformList<OrderDetail>No
OrderDetail Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
OrderIdformintNo
SkuIdformintNo
SkuTypeformSkuTypeNo
PriceformintNo
DescriptionformstringNo
QuantityformintNo
TotalformintNo
SkuType Enum:
Product
PerDev
PerCore
Site
Support
Training
Register
Payment
Subscription Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
CustomerIdformintNo
EmailformstringNo
SkuIdformintNo
SkuNameformstringNo
SkuTypeformSkuTypeNo
CodeformstringNo
QuantityformintNo
SupportQuantityformintNo
TotalformintNo
IsPlanformboolNo
IsRenewalformboolNo
SubscriptionDurationDaysformintNo
RenewalDateformDateTime?No
LicenseRefformstringNo
LicenseNameformstringNo
LicenseAddressformstringNo
LicenseTypeformLicenseTypeNo
ExpiryDateformDateTimeNo
LicenseKeyformLicenseKeyNo
LicenseKeyTextformstringNo
CreatedDateformDateTimeNo
ModifiedDateformDateTimeNo
CancelledDateformDateTime?No
StripeSubscriptionIdformstringNo
EmailIdformint?No
EmailRenewalIdformint?No
EmailExpiredIdformint?No
RenewalSubscriptionIdformint?No
ExternalRefformstringNo
NotesformstringNo
ErrorformstringNo
LicenseType Enum:
Free
FreeIndividual
FreeOpenSource
Indie
Business
Enterprise
TextIndie
TextBusiness
OrmLiteIndie
OrmLiteBusiness
RedisIndie
RedisBusiness
AwsIndie
AwsBusiness
Trial
Site
TextSite
RedisSite
OrmLiteSite
LicenseKey Parameters:
NameParameterData TypeRequiredDescription
RefformstringNo
NameformstringNo
TypeformLicenseTypeNo
MetaformlongNo
HashformstringNo
HalgformstringNo
ExpiryformDateTimeNo

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 /CreateCustomer HTTP/1.1 
Host: account.servicestack.net 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"firstName":"String","lastName":"String","email":"String","password":"String","company":"String","phoneNumber":"String","addressLine1":"String","addressLine2":"String","addressCity":"String","addressZip":"String","addressState":"String","addressCountry":"String","createdDate":"\/Date(-62135596800000-0000)\/"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"id":0,"email":"String","displayName":"String","firstName":"String","lastName":"String","company":"String","phoneNumber":"String","addressLine1":"String","addressLine2":"String","addressCity":"String","addressZip":"String","addressState":"String","addressCountry":"String","stripeCustomerId":"String","stripeCouponId":"String","plan":"String","createdDate":"\/Date(-62135596800000-0000)\/","isReferrer":false,"orders":[{"id":0,"customerId":0,"productName":"String","firstName":"String","lastName":"String","email":"String","company":"String","phoneNumber":"String","addressLine1":"String","addressLine2":"String","addressCity":"String","addressZip":"String","addressState":"String","addressCountry":"String","agreeTerms":false,"notes":"String","last4":"String","subTotal":0,"couponId":"String","discount":0,"tax":0,"total":0,"itemQuantity":0,"authorizedQuantity":0,"subscriptionId":0,"licenseRef":"String","paymentId":0,"emailId":0,"paid":false,"createdDate":"\/Date(-62135596800000-0000)\/","modifiedDate":"\/Date(-62135596800000-0000)\/","modifiedBy":"String","cancelledDate":"\/Date(-62135596800000-0000)\/","cancelledReason":"String","ipAddress":"String","orderDetails":[{"id":0,"orderId":0,"skuId":0,"skuType":"Product","price":0,"description":"String","quantity":0,"total":0}]}],"subscriptions":[{"id":0,"customerId":0,"email":"String","skuId":0,"skuName":"String","skuType":"Product","code":"String","quantity":0,"supportQuantity":0,"total":0,"isPlan":false,"isRenewal":false,"subscriptionDurationDays":0,"renewalDate":"\/Date(-62135596800000-0000)\/","licenseRef":"String","licenseName":"String","licenseAddress":"String","licenseType":"Free","expiryDate":"\/Date(-62135596800000-0000)\/","licenseKey":{"ref":"String","name":"String","type":"Free","meta":0,"hash":"String","halg":"String","expiry":"\/Date(-62135596800000-0000)\/"},"licenseKeyText":"String","createdDate":"\/Date(-62135596800000-0000)\/","modifiedDate":"\/Date(-62135596800000-0000)\/","cancelledDate":"\/Date(-62135596800000-0000)\/","stripeSubscriptionId":"String","emailId":0,"emailRenewalId":0,"emailExpiredId":0,"renewalSubscriptionId":0,"externalRef":"String","notes":"String","error":"String"}]}