Needio.Services

<back to all web services

MakePaymentRequest

Requires Authentication
The following routes are available for this service:
All Verbs/Trans/MakePayment/
MakePaymentRequest Parameters:
NameParameterData TypeRequiredDescription
SessionIdquerystringNo
PaidPricequerydecimalNo
Installmentqueryint?No
PaymentCardqueryPaymentCardDTONo
InvoiceAddressqueryUserAddressDTONo
DeliveryTypequeryDeliveryTypesNo
ShippingAddressqueryUserAddressDTONo
TransactionTypequeryTransactionTypesNo
RefIdqueryintNo
ShippingCodequerystringNo
BaseRequest Parameters:
NameParameterData TypeRequiredDescription
startformDateTimeNo
MakePaymentResponse Parameters:
NameParameterData TypeRequiredDescription
TransactionIdformintNo
PaymentIdformintNo
TokenformstringNo
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
UserAddressDTO Parameters:
NameParameterData TypeRequiredDescription
UserAddressIdformintNo
AddressAliasformstringNo
Address1formstringNo
Address2formstringNo
CityformstringNo
StateformstringNo
CountryformstringNo
ZipCodeformstringNo
DistrictIdformint?No
CityIdformint?No
StateIdformint?No
CountryIdformint?No
DistrictformstringNo
StreetformstringNo
BuildingNoformstringNo
DoorNoformstringNo
AddressRecipeformstringNo
GeoAddressformstringNo
LocationformGeoLocationNo
InvoiceYnformboolNo
DeliveryYnformboolNo
ActiveYnformboolNo
DefaultYnformboolNo
PhoneNumberformstringNo
EmailformstringNo
InvoiceAddressTypeformInvoiceAddressTypes?No
InvoiceNameformstringNo
TaxOfficeformstringNo
TaxNoformstringNo
Registerformbool?No
DeliveryNameformstringNo
DeliverySurnameformstringNo
EInvoiceYnformbool?No
GeoLocation Parameters:
NameParameterData TypeRequiredDescription
LonformstringNo
LatformstringNo
GeoAddressformstringNo
IsDeletedformboolNo
InvoiceAddressTypes Enum:
NameValue
Personel1
Company2
DeliveryTypes Enum:
NameValue
None0
DeliveryToAddress1
DeliveryInStore2
DeliveryByCargo4
TransactionTypes Enum:
NameValue
P2P1
Doping2
SellerAcceptAggrements3
MakePaymentResponse Parameters:
NameParameterData TypeRequiredDescription
TransactionIdformintNo
PaymentIdformintNo
TokenformstringNo

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /Trans/MakePayment/ HTTP/1.1 
Host: baseservices2.needion.com 
Accept: application/json
Content-Type: application/json
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"},"InvoiceAddress":{"UserAddressId":0,"AddressAlias":"String","Address1":"String","Address2":"String","City":"String","State":"String","Country":"String","ZipCode":"String","DistrictId":0,"CityId":0,"StateId":0,"CountryId":0,"District":"String","Street":"String","BuildingNo":"String","DoorNo":"String","AddressRecipe":"String","GeoAddress":"String","Location":{"Lon":"String","Lat":"String","GeoAddress":"String","IsDeleted":false},"InvoiceYn":false,"DeliveryYn":false,"ActiveYn":false,"DefaultYn":false,"PhoneNumber":"String","Email":"String","InvoiceAddressType":0,"InvoiceName":"String","TaxOffice":"String","TaxNo":"String","Register":false,"DeliveryName":"String","DeliverySurname":"String","EInvoiceYn":false},"DeliveryType":0,"ShippingAddress":{"UserAddressId":0,"AddressAlias":"String","Address1":"String","Address2":"String","City":"String","State":"String","Country":"String","ZipCode":"String","DistrictId":0,"CityId":0,"StateId":0,"CountryId":0,"District":"String","Street":"String","BuildingNo":"String","DoorNo":"String","AddressRecipe":"String","GeoAddress":"String","Location":{"Lon":"String","Lat":"String","GeoAddress":"String","IsDeleted":false},"InvoiceYn":false,"DeliveryYn":false,"ActiveYn":false,"DefaultYn":false,"PhoneNumber":"String","Email":"String","InvoiceAddressType":0,"InvoiceName":"String","TaxOffice":"String","TaxNo":"String","Register":false,"DeliveryName":"String","DeliverySurname":"String","EInvoiceYn":false},"TransactionType":1,"RefId":0,"ShippingCode":"String","start":"\/Date(1594207371281+0300)\/"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"TransactionId":0,"PaymentId":0,"Token":"String","Result":false,"ResMessage":"String","Error":{"ErrorYn":false,"ErrorCode":"String","ErrorDescription":"String"}}