Trendsic Platform Service

<back to all web services

StripeCustomerRequest

Requires Authentication
Requires any of the roles:Agent, Administrator, Agent, Administrator, Agent, Administrator
The following routes are available for this service:
GET,OPTIONS/v1/StripeCustomer
PUT,OPTIONS/v1/StripeCustomer
POST,OPTIONS/v1/StripeCustomer
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*


open class StripeCustomerRequest
{
    open var Customer:Customer? = null
    open var Address:Address? = null
}

open class Customer
{
    open var ID:Int? = null
    open var CustomerCode:String? = null
    open var BusinessName:String? = null
    open var FirstName:String? = null
    open var LastName:String? = null
    open var Email:String? = null
    open var UID:UUID? = null
    open var AgentId:Int? = null
}

open class Address
{
    open var ID:Int? = null
    open var AddressTypeID:Short? = null
    open var AddressContact:String? = null
    open var AttentionTo:String? = null
    open var AddressLine1:String? = null
    open var AddressLine2:String? = null
    open var AddressLine3:String? = null
    open var AddressCity:String? = null
    open var AddressState:String? = null
    open var AddressZip:String? = null
    open var AddressCountry:String? = null
    open var PhoneNumber:String? = null
    open var FaxNumber:String? = null
    open var UID:UUID? = null
    open var Name:String? = null
}

open class StripeCustomerResponse
{
    open var ResponseStatus:ResponseStatus? = null
    open var StripeCustomer:StripeCustomer? = null
    open var Success:Boolean? = null
    open var Message:String? = null
}

open class StripeCustomer
{
    open var StripeCustomerId:Int? = null
    open var StripeMerchantId:Int? = null
    open var CustomerId:Int? = null
    open var StripeId:String? = null
    open var AgentId:Int? = null
    open var StripeCustomerSessionClientSecret:String? = null
}

Kotlin StripeCustomerRequest DTOs

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

HTTP + JSV

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

POST /v1/StripeCustomer HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	Customer: 
	{
		ID: 0,
		CustomerCode: String,
		BusinessName: String,
		FirstName: String,
		LastName: String,
		Email: String,
		UID: 00000000000000000000000000000000,
		AgentId: 0
	},
	Address: 
	{
		ID: 0,
		AddressTypeID: 0,
		AddressContact: String,
		AttentionTo: String,
		AddressLine1: String,
		AddressLine2: String,
		AddressLine3: String,
		AddressCity: String,
		AddressState: String,
		AddressZip: String,
		AddressCountry: String,
		PhoneNumber: String,
		FaxNumber: String,
		UID: 00000000000000000000000000000000,
		Name: String
	}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	},
	StripeCustomer: 
	{
		StripeCustomerId: 0,
		StripeMerchantId: 0,
		CustomerId: 0,
		StripeId: String,
		AgentId: 0,
		StripeCustomerSessionClientSecret: String
	},
	Success: False,
	Message: String
}