Needio.Services

<back to all web services

GetPaymentInfoRequest

GetPaymentInfoRequest Parameters:
NameParameterData TypeRequiredDescription
PaymentTokenquerystringNo
RefreshTokenqueryboolNo
BaseRequest Parameters:
NameParameterData TypeRequiredDescription
startformDateTimeNo
DeviceUUIDformstringNo
APIKeyformstringNo
GetPaymentInfoResponse Parameters:
NameParameterData TypeRequiredDescription
PaymentInfoformPaymentTokenContentDTONo
BaseResponse Parameters:
NameParameterData TypeRequiredDescription
ResultformboolNo
ResMessageformstringNo
ErrorformErrorNo
PageInfoformBasePageInfoNo
Error Parameters:
NameParameterData TypeRequiredDescription
ErrorYnformboolNo
ErrorCodeformstringNo
ErrorDescriptionformstringNo
BasePageInfo Parameters:
NameParameterData TypeRequiredDescription
TotalRecordCountformintNo
TotalPageCountformintNo
CurrentPageformintNo
PaymentTokenContentDTO Parameters:
NameParameterData TypeRequiredDescription
DeliveryTypeformDeliveryTypesNo
ShippingAddressformUserAddressDTONo
BillingAddressformUserAddressDTONo
PaymentCardformPaymentCardDTONo
BasketPricesDTOformBasketPricesDTONo
Force3dsformboolNo
GiftCodeformstringNo
SaveCardformboolNo
SelectedBasketsHashformstringNo
PayWithThreeDsformboolNo
UserIdformintNo
InstallmentformintNo
BasketHeaderIdformintNo
IpAddressformstringNo
BasketsformBasketListDtoNo
DeliveryTypes Enum:
NameValue
None0
DeliveryToAddress1
DeliveryInStore2
DeliveryByCargo4
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
ExtensionDataformstringNo
GeoLocation Parameters:
NameParameterData TypeRequiredDescription
LonformstringNo
LatformstringNo
GeoAddressformstringNo
IsDeletedformboolNo
InvoiceAddressTypes Enum:
NameValue
Personel1
Company2
PaymentCardDTO Parameters:
NameParameterData TypeRequiredDescription
CardHolderNameformstringNo
CardNumberformstringNo
ExpireYearformstringNo
ExpireMonthformstringNo
CvcformstringNo
RegisterCardformboolNo
CardAliasformstringNo
CardTokenformstringNo
CardUserKeyformstringNo
BasketPricesDTO Parameters:
NameParameterData TypeRequiredDescription
GiftAmountformdecimalNo
ShippingAmountformdecimalNo
PaymentTotalformdecimalNo
BasketsTotalformdecimalNo
TransTotalformdecimalNo
GrandTotalformdecimalNo
BasketListDto Parameters:
NameParameterData TypeRequiredDescription
BasketsformList<ChatBasket>No
BuyerIdformintNo
PricesformBasketPricesDTONo
DeliveryTypesformDeliveryTypesNo
CampaignsformList<BasketCampaignDto>No
BasketHeaderIdformintNo
BillingAddressIdformint?No
ShippingAddressIdformint?No
GiftCodeformstringNo
GiftDescriptionformstringNo
ChatBasket Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
GrandTotalformdecimalNo
VendorTotalformdecimalNo
VendorTotalExpireformDateTime?No
BasketTotalformdecimalNo
SalerOfferYnformboolNo
TransTotalformdecimalNo
ShippingAmountformdecimalNo
PaymentTotalformdecimalNo
DeliveryTypeformDeliveryTypesNo
ItemsformList<ChatBasketItem>No
StoreIdformintNo
StockQuantityUpdatedYNformboolNo
PricesUpdateYnformboolNo
ItemStateUpdatedYNformboolNo
ShippingAddressIdformint?No
BillingAddressIdformint?No
BasketDeliveryInfosformList<ChatBasketDeliveryInfo>No
StoreTypeformStoreTypesNo
PostHeaderformstringNo
StoreHeaderformstringNo
TransactionTypeformTransactionTypes?No
SalerIdformint?No
BuyerIdformint?No
SessionIdformstringNo
GiftCodeformstringNo
GiftIdformint?No
GiftDescriptionformstringNo
GiftAmountformdecimal?No
Selectedformbool?No
StoreUrlformstringNo
NetUnitPriceformdecimal?No
NetTotalPriceformdecimal?No
OrderDataformstringNo
NotificationStatusformshort?No
ChatBasketItem Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
StoreIdformintNo
PostIdformintNo
VariantIdformintNo
NameformstringNo
DescriptionformstringNo
ListPriceformdecimalNo
SalePriceformdecimalNo
UnitPriceformdecimalNo
OldUnitPriceformdecimalNo
QuantityformdecimalNo
NewQuantityformdecimalNo
NewUnitPriceformintNo
StockQuantityUpdatedYNformboolNo
PricesUpdateYnformboolNo
ItemStateUpdatedYNformboolNo
TotalPriceformdecimalNo
MediaIdformint?No
MediaFileNameformstringNo
VariantformstringNo
StockTypeformintNo
ItemTypeformPaymentDetailItemTypeNo
PriceTypesformPriceTypes?No
StoreHeaderformstringNo
OldTotalPriceformdecimalNo
CategoryNameformstringNo
PostInStockformintNo
PostSalePriceformdecimalNo
MediaUrlformstringNo
PostUrlformstringNo
CampaignIdformint?No
CampaignCodeformstringNo
CampaignTypeformbyte?No
DiscountTypeformbyte?No
DiscountAmountformdecimal?No
MessageformstringNo
NetUnitPriceformdecimal?No
NetTotalPriceformdecimal?No
ExpireDateformDateTime?No
RefIdformint?No
PriceTypeformshort?No
PaymentDetailItemType Enum:
NameValue
PHYSICAL0
VIRTUAL1
PriceTypes Enum:
NameValue
NoPrice0
SinglePrice1
MultiVariant2
PriceRange3
ChatBasketDeliveryInfo Parameters:
NameParameterData TypeRequiredDescription
DeliveryTypeformDeliveryTypesNo
AmountformdecimalNo
PaymentAmountformdecimalNo
AddressInfoformAddressDTONo
AddressDTO Parameters:
NameParameterData TypeRequiredDescription
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
Registerformbool?No
StoreTypes Enum:
NameValue
Personel1
PrivateCompany2
LimitedCompany3
TransactionTypes Enum:
NameValue
P2P1
Doping2
SellerAcceptAggrements3
IyzicoAgreementApproved3
BasketCampaignDto Parameters:
NameParameterData TypeRequiredDescription
DiscountTotalformdecimalNo
CampaingIdformintNo
MessageformstringNo
GetPaymentInfoResponse Parameters:
NameParameterData TypeRequiredDescription
PaymentInfoformPaymentTokenContentDTONo

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 /json/reply/GetPaymentInfoRequest HTTP/1.1 
Host: baseservices.needion.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"PaymentToken":"String","RefreshToken":false,"start":"\/Date(1634660346517+0300)\/","DeviceUUID":"String","APIKey":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"PaymentInfo":{"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,"ExtensionData":"String"},"BillingAddress":{"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,"ExtensionData":"String"},"PaymentCard":{"CardHolderName":"String","CardNumber":"String","ExpireYear":"String","ExpireMonth":"String","Cvc":"String","RegisterCard":false,"CardAlias":"String","CardToken":"String","CardUserKey":"String"},"BasketPricesDTO":{"GiftAmount":0,"ShippingAmount":0,"PaymentTotal":0,"BasketsTotal":0,"TransTotal":0,"GrandTotal":0},"Force3ds":false,"GiftCode":"String","SaveCard":false,"SelectedBasketsHash":"String","PayWithThreeDs":false,"UserId":0,"Installment":0,"BasketHeaderId":0,"IpAddress":"String","Baskets":{"Baskets":[{"Id":"String","GrandTotal":0,"VendorTotal":0,"VendorTotalExpire":"\/Date(-62135596800000-0000)\/","BasketTotal":0,"SalerOfferYn":false,"TransTotal":0,"ShippingAmount":0,"PaymentTotal":0,"DeliveryType":0,"Items":[{"Id":0,"StoreId":0,"PostId":0,"VariantId":0,"Name":"String","Description":"String","ListPrice":0,"SalePrice":0,"UnitPrice":0,"OldUnitPrice":0,"Quantity":0,"NewQuantity":0,"NewUnitPrice":0,"StockQuantityUpdatedYN":false,"PricesUpdateYn":false,"ItemStateUpdatedYN":false,"TotalPrice":0,"MediaId":0,"MediaFileName":"String","Variant":"String","StockType":0,"ItemType":0,"PriceTypes":0,"StoreHeader":"String","OldTotalPrice":0,"CategoryName":"String","PostInStock":0,"PostSalePrice":0,"MediaUrl":"String","PostUrl":"String","CampaignId":0,"CampaignCode":"String","CampaignType":0,"DiscountType":0,"DiscountAmount":0,"Message":"String","NetUnitPrice":0,"NetTotalPrice":0,"ExpireDate":"\/Date(-62135596800000-0000)\/","RefId":0,"PriceType":0}],"StoreId":0,"StockQuantityUpdatedYN":false,"PricesUpdateYn":false,"ItemStateUpdatedYN":false,"ShippingAddressId":0,"BillingAddressId":0,"BasketDeliveryInfos":[{"DeliveryType":0,"Amount":0,"PaymentAmount":0,"AddressInfo":{"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,"Register":false}}],"StoreType":1,"PostHeader":"String","StoreHeader":"String","TransactionType":0,"SalerId":0,"BuyerId":0,"SessionId":"String","GiftCode":"String","GiftId":0,"GiftDescription":"String","GiftAmount":0,"Selected":false,"StoreUrl":"String","NetUnitPrice":0,"NetTotalPrice":0,"OrderData":"String","NotificationStatus":0}],"BuyerId":0,"Prices":{"GiftAmount":0,"ShippingAmount":0,"PaymentTotal":0,"BasketsTotal":0,"TransTotal":0,"GrandTotal":0},"DeliveryTypes":0,"Campaigns":[{"DiscountTotal":0,"CampaingId":0,"Message":"String"}],"BasketHeaderId":0,"BillingAddressId":0,"ShippingAddressId":0,"GiftCode":"String","GiftDescription":"String"}},"Result":false,"ResMessage":"String","Error":{"ErrorYn":false,"ErrorCode":"String","ErrorDescription":"String"},"PageInfo":{"TotalRecordCount":0,"TotalPageCount":0,"CurrentPage":0}}