Trendsic Platform Service

<back to all web services

CustomerPaymentsRequest

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


open class CustomerPaymentsRequest
{
    open var Customer:Customer? = null
    open var OrderID:UUID? = null
    open var PaymentInfo:PaymentInfo? = 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 PaymentInfo
{
    open var PaymentType:String? = null
    open var CardNumber:String? = null
    open var ExpDate:String? = null
    open var CCV:String? = null
    open var StripeToken:String? = null
    open var AgentId:Int? = null
}

open class CustomerPaymentsResponse
{
    open var ResponseStatus:ResponseStatus? = null
    open var PaymentIntentSuccess:Boolean? = null
    open var PaymentSuccess:Boolean? = null
    open var SubscriptionSuccess:Boolean? = null
    open var Message:String? = null
    open var ReceiptUrl:String? = null
    open var AgentNumber:String? = null
    open var ClientSecret:String? = null
    open var CustomerPayment:CustomerPayment? = null
    open var PublicOrderID:String? = null
}

open class CustomerPayment
{
    open var ID:Int? = null
    open var CustomerID:Int? = null
    open var OrderHeaderID:Int? = null
    open var Amount:String? = null
    open var Approved:Boolean? = null
    open var AuthCode:String? = null
    open var CardNumber:String? = null
    open var Message:String? = null
    open var ResponseCode:Int? = null
    open var TransactionId:String? = null
    open var TransactionDate:Date? = null
    open var FullResponse:String? = null
    open var PaymentStatus:Int? = null
    open var PaymentType:Int? = null
}

Kotlin CustomerPaymentsRequest 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

HTTP + JSON

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

POST /v1/CustomerPayments 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},"OrderID":"00000000000000000000000000000000","PaymentInfo":{"PaymentType":"String","CardNumber":"String","ExpDate":"String","CCV":"String","StripeToken":"String","AgentId":0}}
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"}},"PaymentIntentSuccess":false,"PaymentSuccess":false,"SubscriptionSuccess":false,"Message":"String","ReceiptUrl":"String","AgentNumber":"String","ClientSecret":"String","CustomerPayment":{"ID":0,"CustomerID":0,"OrderHeaderID":0,"Amount":"String","Approved":false,"AuthCode":"String","CardNumber":"String","Message":"String","ResponseCode":0,"TransactionId":"String","TransactionDate":"0001-01-01T00:00:00.0000000","FullResponse":"String","PaymentStatus":0,"PaymentType":0},"PublicOrderID":"String"}