| Requires any of the roles: | Agent, Administrator, Agent, Administrator, Agent, Administrator |
| GET,OPTIONS | /v1/StripeCustomer | ||
|---|---|---|---|
| PUT,OPTIONS | /v1/StripeCustomer | ||
| POST,OPTIONS | /v1/StripeCustomer |
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports CRM.AgencyPlatform.API.Internal
Namespace Global
Namespace CRM.AgencyPlatform.API.Internal
Public Partial Class Address
Public Overridable Property ID As Integer
Public Overridable Property AddressTypeID As Byte
Public Overridable Property AddressContact As String
Public Overridable Property AttentionTo As String
Public Overridable Property AddressLine1 As String
Public Overridable Property AddressLine2 As String
Public Overridable Property AddressLine3 As String
Public Overridable Property AddressCity As String
Public Overridable Property AddressState As String
Public Overridable Property AddressZip As String
Public Overridable Property AddressCountry As String
Public Overridable Property PhoneNumber As String
Public Overridable Property FaxNumber As String
Public Overridable Property UID As Guid
Public Overridable Property Name As String
End Class
Public Partial Class Customer
Public Overridable Property ID As Integer
Public Overridable Property CustomerCode As String
Public Overridable Property BusinessName As String
Public Overridable Property FirstName As String
Public Overridable Property LastName As String
Public Overridable Property Email As String
Public Overridable Property UID As Guid
Public Overridable Property AgentId As Integer
End Class
Public Partial Class StripeCustomer
Public Overridable Property StripeCustomerId As Integer
Public Overridable Property StripeMerchantId As Integer
Public Overridable Property CustomerId As Integer
Public Overridable Property StripeId As String
Public Overridable Property AgentId As Integer
Public Overridable Property StripeCustomerSessionClientSecret As String
End Class
Public Partial Class StripeCustomerRequest
Public Overridable Property Customer As Customer
Public Overridable Property Address As Address
End Class
Public Partial Class StripeCustomerResponse
Public Overridable Property ResponseStatus As ResponseStatus
Public Overridable Property StripeCustomer As StripeCustomer
Public Overridable Property Success As Boolean
Public Overridable Property Message As String
End Class
End Namespace
End Namespace
VB.NET StripeCustomerRequest DTOs
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
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: application/json
Content-Type: application/json
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: application/json
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"}