Needio.Services

<back to all web services

MakePaymentPreControlRequest

Requires Authentication
MakePaymentPreControlRequest Parameters:
NameParameterData TypeRequiredDescription
SessionIdquerystringNo
PaidPricequerydecimalNo
Installmentqueryint?No
PaymentCardqueryPaymentCardDTONo
InvoiceAddressIdqueryintNo
DeliveryTypequeryDeliveryTypesNo
ShippingAddressIdqueryintNo
RefIdqueryintNo
ShippingCodequerystringNo
LocationqueryGeoLocationNo
levelquerybyteNo
BaseRequest Parameters:
NameParameterData TypeRequiredDescription
startformDateTimeNo
MakePaymentPreControlResponse Parameters:
NameParameterData TypeRequiredDescription
ErrorsformList<string>No
WarningsformList<string>No
InfosformList<string>No
BaseResponse Parameters:
NameParameterData TypeRequiredDescription
ResultformboolNo
ResMessageformstringNo
ErrorformErrorNo
Error Parameters:
NameParameterData TypeRequiredDescription
ErrorYnformboolNo
ErrorCodeformstringNo
ErrorDescriptionformstringNo
PaymentCardDTO Parameters:
NameParameterData TypeRequiredDescription
CardHolderNameformstringNo
CardNumberformstringNo
ExpireYearformstringNo
ExpireMonthformstringNo
CvcformstringNo
RegisterCardformboolNo
CardAliasformstringNo
CardTokenformstringNo
CardUserKeyformstringNo
DeliveryTypes Enum:
NameValue
None0
DeliveryToAddress1
DeliveryInStore2
DeliveryByCargo4
GeoLocation Parameters:
NameParameterData TypeRequiredDescription
LonformstringNo
LatformstringNo
GeoAddressformstringNo
IsDeletedformboolNo
MakePaymentPreControlResponse Parameters:
NameParameterData TypeRequiredDescription
ErrorsformList<string>No
WarningsformList<string>No
InfosformList<string>No

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 /jsv/reply/MakePaymentPreControlRequest HTTP/1.1 
Host: baseservices2.needion.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	SessionId: String,
	PaidPrice: 0,
	Installment: 0,
	PaymentCard: 
	{
		CardHolderName: String,
		CardNumber: String,
		ExpireYear: String,
		ExpireMonth: String,
		Cvc: String,
		RegisterCard: False,
		CardAlias: String,
		CardToken: String,
		CardUserKey: String
	},
	InvoiceAddressId: 0,
	DeliveryType: 0,
	ShippingAddressId: 0,
	RefId: 0,
	ShippingCode: String,
	Location: 
	{
		Lon: String,
		Lat: String,
		GeoAddress: String,
		IsDeleted: False
	},
	level: 0,
	start: 2020-07-03T13:47:42.5781773+03:00
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Errors: 
	[
		String
	],
	Warnings: 
	[
		String
	],
	Infos: 
	[
		String
	],
	Result: False,
	ResMessage: String,
	Error: 
	{
		ErrorYn: False,
		ErrorCode: String,
		ErrorDescription: String
	}
}