| GET | /profile/{BeeNumber} |
|---|
import Foundation
import ServiceStack
public class ProfileGet : IGet, Codable
{
public var beeNumber:Double?
public var pageName:String?
required public init(){}
}
public class ProfileGetResponse : Codable
{
public var beeNumber:Double?
public var currentStatus:String?
public var removalReason:String?
public var pcTag:String?
public var labcOwner:Double?
public var pastDueCode:String?
public var pastDueAmount:Double?
public var creditLimit:Double?
public var currentBalance:Double?
public var selectiveServiceTag:String?
public var noCode21:String?
public var noCode30:String?
public var rep_Acs_ind:Bool?
public var campaignDoubleDollars:Double?
public var campaignAwardSales:Double?
public var cycletoDateDoubleDollars:Double?
public var cycletoDateAwardSales:Double?
public var pendingOrdersBalance:Double?
public var hyperwalletAccountStatus:String?
public var responseStatus:ResponseStatus?
public var amountDue:Double?
public var lastPaymentAmount:Double?
public var lastPaymentDate:Date?
required public init(){}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /profile/{BeeNumber} HTTP/1.1
Host: extensions.avon.ca
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
beeNumber: 0,
currentStatus: String,
removalReason: String,
pcTag: String,
labcOwner: 0,
pastDueCode: String,
pastDueAmount: 0,
creditLimit: 0,
currentBalance: 0,
selectiveServiceTag: String,
noCode21: String,
noCode30: String,
rep_Acs_ind: False,
campaignDoubleDollars: 0,
campaignAwardSales: 0,
cycletoDateDoubleDollars: 0,
cycletoDateAwardSales: 0,
pendingOrdersBalance: 0,
hyperwalletAccountStatus: String,
responseStatus:
{
errorCode: String,
message: String,
stackTrace: String,
errors:
[
{
errorCode: String,
fieldName: String,
message: String,
meta:
{
String: String
}
}
],
meta:
{
String: String
}
},
amountDue: 0,
lastPaymentAmount: 0,
lastPaymentDate: 0001-01-01T00:00:00
}