Cdn API - CPG Source

<back to all web services

IapPlanUpsertRequest

Cdn.Api

The following routes are available for this service:
POST/IapPlanUpsertRequest
IapPlanUpsertRequest Parameters:
NameParameterData TypeRequiredDescription
PlanIdbodystringNo
NamebodystringNo
TaglinebodystringNo
LevelbodyintNo
BadgebodystringNo
BenefitsbodyList<string>No
EntitlementLookupKeybodystringNo
ProductCategoryIdbodylongNo
ParentProductCategoryIdbodylongNo
MonthlySkubodystringNo
AnnualSkubodystringNo
MonthlyLocalProductIdbodylongNo
AnnualLocalProductIdbodylongNo
IncludesPrintbodyboolNo
RequiresShippingAddressbodyboolNo
VisibleInAppbodyboolNo
SortOrderbodyintNo
WholesaleCatalogsbodystringNo
ReasonbodystringNo
IapPlanCatalogResponse Parameters:
NameParameterData TypeRequiredDescription
PlansformList<IapPlanDefinition>No
SourceformstringNo
OfferingIdformstringNo
StatusformstringNo
StepsformList<IapPlanStepResult>No
BaseResponse Parameters:
NameParameterData TypeRequiredDescription
TotalformintNo
OpCodeformintNo
ErrorTextformstringNo
RequestTimeformstringNo
ResponseTimeformstringNo
TotalExecutionTimeformstringNo
CachedResponseformboolNo
IapPlanDefinition Parameters:
NameParameterData TypeRequiredDescription
PlanIdformstringNo
NameformstringNo
TaglineformstringNo
LevelformintNo
BadgeformstringNo
BenefitsformList<string>No
EntitlementLookupKeyformstringNo
ProductCategoryIdformlongNo
ParentProductCategoryIdformlongNo
MonthlySkuformstringNo
AnnualSkuformstringNo
MonthlyLocalProductIdformlongNo
AnnualLocalProductIdformlongNo
IncludesPrintformboolNo
RequiresShippingAddressformboolNo
VisibleInAppformboolNo
SortOrderformintNo
WholesaleCatalogsformstringNo
IapPlanStepResult Parameters:
NameParameterData TypeRequiredDescription
StepformstringNo
TargetformstringNo
OutcomeformstringNo
DetailformstringNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

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

POST /IapPlanUpsertRequest HTTP/1.1 
Host: cdnapidev.greysheet.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	PlanId: String,
	Name: String,
	Tagline: String,
	Level: 0,
	Badge: String,
	Benefits: 
	[
		String
	],
	EntitlementLookupKey: String,
	ProductCategoryId: 0,
	ParentProductCategoryId: 0,
	MonthlySku: String,
	AnnualSku: String,
	MonthlyLocalProductId: 0,
	AnnualLocalProductId: 0,
	IncludesPrint: False,
	RequiresShippingAddress: False,
	VisibleInApp: False,
	SortOrder: 0,
	WholesaleCatalogs: String,
	Reason: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Plans: 
	[
		{
			PlanId: String,
			Name: String,
			Tagline: String,
			Level: 0,
			Badge: String,
			Benefits: 
			[
				String
			],
			EntitlementLookupKey: String,
			ProductCategoryId: 0,
			ParentProductCategoryId: 0,
			MonthlySku: String,
			AnnualSku: String,
			MonthlyLocalProductId: 0,
			AnnualLocalProductId: 0,
			IncludesPrint: False,
			RequiresShippingAddress: False,
			VisibleInApp: False,
			SortOrder: 0,
			WholesaleCatalogs: String
		}
	],
	Source: String,
	OfferingId: String,
	Status: String,
	Steps: 
	[
		{
			Step: String,
			Target: String,
			Outcome: String,
			Detail: String
		}
	],
	Total: 0,
	OpCode: 0,
	ErrorText: String,
	RequestTime: String,
	ResponseTime: String,
	TotalExecutionTime: String,
	CachedResponse: False
}