HTTP + JSV
The following are sample HTTP requests and responses.
The placeholders shown need to be replaced with actual values.
POST /Ams/{ClientID}/Products HTTP/1.1
Host: ws.yourmembership.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
ProductID: 0,
Details:
{
ProductName: String,
ProductCode: String,
ProductActive: False,
PrimaryCategory: String,
ProductDescription: String,
ProductType: 0
},
DisplayOptions:
{
IsFeatured: False,
ListInStore: False,
BuyFromStore: False,
TagLine: String,
ProductGroup: String
},
ItemOptions:
{
RequireCustomerResponse: False,
SpecialInstructions: String,
SizeType: String,
ColorOptions: String,
CustomFieldName: String,
CustomFieldOptions: String
},
PricingOptions:
{
ChargeTaxVAT: False,
ShippingWeight: 0,
ShippingSurcharge: 0,
NonMemberUnitPrice: 0,
MemberPricing:
[
{
MemberTypeCode: String,
UnitPrice: 0,
ListInStore: False,
BuyFromStore: False
}
]
},
Financial:
{
GLCode: String,
QuickBooksClass: String
},
Freestone:
{
IsFreestoneProduct: False,
ProductTypeId: 0,
CourseTypeId: 0
},
UsingRedis: True,
AppInitTime: 2025-01-15T06:15:49.6223497-05:00,
ServerID: WS-4-190-907,
ClientID: 0,
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
},
BypassCache: False,
DateCached: 2025-01-15T08:55:22.9394807-05:00,
Device: Desktop
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ProductID: 0,
Details:
{
ProductName: String,
ProductCode: String,
ProductActive: False,
PrimaryCategory: String,
ProductDescription: String,
ProductType: 0
},
DisplayOptions:
{
IsFeatured: False,
ListInStore: False,
BuyFromStore: False,
TagLine: String,
ProductGroup: String
},
ItemOptions:
{
RequireCustomerResponse: False,
SpecialInstructions: String,
SizeType: String,
ColorOptions: String,
CustomFieldName: String,
CustomFieldOptions: String
},
PricingOptions:
{
ChargeTaxVAT: False,
ShippingWeight: 0,
ShippingSurcharge: 0,
NonMemberUnitPrice: 0,
MemberPricing:
[
{
MemberTypeCode: String,
UnitPrice: 0,
ListInStore: False,
BuyFromStore: False
}
]
},
Financial:
{
GLCode: String,
QuickBooksClass: String
},
Freestone:
{
IsFreestoneProduct: False,
ProductTypeId: 0,
CourseTypeId: 0
},
UsingRedis: True,
AppInitTime: 2025-01-15T06:15:49.6223497-05:00,
ServerID: WS-4-190-907,
ClientID: 0,
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
},
BypassCache: False,
DateCached: 2025-01-15T08:55:22.9394807-05:00,
Device: Desktop
}