HTTP + JSV
The following are sample HTTP requests and responses.
The placeholders shown need to be replaced with actual values.
POST /jsv/reply/StripeCardRequest HTTP/1.1
Host: api.responsible-advisor.com
Content-Type: text/jsv
Content-Length: length
{
AgentId: 0,
StripeCard:
{
StripeCardId: String,
StripeCustomerId: String,
AgentId: 0,
Last4: String,
NickName: String,
IsDefault: False,
Deleted: False,
StripeSource:
{
id: String,
exp_month: String,
exp_year: 0,
address_city: String,
address_line1: String,
address_line2: String,
address_state: String,
address_zip: String,
name: String
}
},
StripeCardId: String,
StripeCardToken: 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
}
]
},
PaymentSuccess: False,
SubscriptionSuccess: False,
Message: String,
AgentNumber: 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-01,
FullResponse: String,
PaymentStatus: 0,
PaymentType: 0
},
PublicOrderID: String
}