LogBuy API help page


Login

APIDescription
POST  token

Request Token

POST  api/login/requestpassword?email={email}

Request password. Email is sent to user if user is registered in the system

POST  api/login/changepassword

Change password.

POST  api/login/logout

LogOut

GET  api/account/externallogins?returnUrl={returnUrl}&generateState={generateState}

Method to get facebook access token

GET  api/login/contactUs?countryId={countryId}

Get contact information

Registration

APIDescription
POST  api/registration/CreateUserProfile?countryId={countryId}

Create User Profile. If result of creating user profile is true, User should wait for approval from Logbuy. When profile is approved, User will receive email about success or reject for approval. User can login into the system just after approval.

POST  api/registration/CreateExternalUserProfile?countryId={countryId}

Creation user from external provider. For now we only support creating users with Facebook. Authorization by token is required.

Activation

APIDescription
POST  api/activation/userProfile

Activate user profile and in case of success user will get welcome email back. Use grant type accesskey for authorization

UserProfile

APIDescription
GET  api/userprofile

Get User Profile Info

POST  api/userprofile

Update User Profile Info

PUT  api/userprofile/Facebook

Allow Facebook Login

DELETE  api/userprofile/Facebook

Remove relation between facebook account and user account. User will not be able to login with facebook if relation with facebook account is removed

PUT  api/userprofile/Image

Upload Front User Profile Image. file should be provided as a multipart content. Parametr name 'file'

DELETE  api/userprofile/Image

Remove user profile image

PUT  api/userprofile/buyerInfo

Update user info - for purchase

GET  api/userprofile/buyerInfo

Get user info - for purchase

GET  api/userprofile/purchasehistory

Get Purchase history

GET  api/userprofile/purchasehistory/shoppingCard?giftCardId={giftCardId}

Purchase Shopping Card History

GET  api/userprofile/purchasehistory/eVoucher?eVoucherCodeId={eVoucherCodeId}

Get EVoucher PDF

GET  api/userprofile/purchasehistory/overview

Get Purchase History Overview

GET  api/userprofile/purchasehistory/balance

Get Balance amount. Balance amount is cashback amount that will be returned to user from provider website

POST  api/userprofile/withdraw

Method allows user to request cashback Balance amount to Bank account if Balance is not zero.

GET  api/userprofile/prefferedlocation

Get User Preffered Location

POST  api/userprofile/prefferedlocation

Update User Preffered Location

BenefitCard

APIDescription
GET  api/benefitcard

Get Benefit Card Information

Agreements

APIDescription
GET  api/Terms?countryId={countryId}

Get latest terms and conditions by countryId. Each user must accept terms and conditions. Authorization by token is required.

POST  api/Terms/Accept/{id}

Accept Terms and Conditions. Authorization by token is required.

GET  api/policy

Get Privacy policy information

Support

APIDescription
POST  api/support/Comment

Add Comment

POST  api/support/SuggestDeal

Suggest a Deal

Country

APIDescription
GET  api/Country

Get all available Countries

GET  api/countryByUser

Get country by user profile

Customer

APIDescription
GET  api/Customer?countryId={countryId}&term={term}&resultItemsAmount={resultItemsAmount}

Get list of Customers by CountryId and term

Location

APIDescription
GET  api/City?countryId={countryId}&term={term}&resultItemsAmount={resultItemsAmount}

Get Locations (list of cities) by Country Id

Suppliers

APIDescription
GET  api/suppliers/{id}

Get Supplier Details

GET  api/suppliers/{id}/info?addressId={addressId}

Get Supplier Details

POST  api/suppliers/{id}/GetOrderedAddressesByGeo

Get Supplier Details With ordered Addresses By Geo Location

GET  api/suppliers/topSearchWords

Get Top Search Words

GET  api/suppliers/url?supplierId={supplierId}&dealId={dealId}

Get Go To web site link

GET  api/suppliers/terms?supplierId={supplierId}&dealId={dealId}

Get Terms And Conditions

POST  api/suppliers/search

Search Suppliers

POST  api/suppliers/availableFilters

Gets list of available filters

POST  api/suppliers/searchmap

Search Suppliers for Map

POST  api/suppliers/frontpage

Get FrontPage suppliers

POST  api/suppliers/promoted

Get Promoted Suppliers

POST  api/suppliers/featured

Get Featured Suppliers

GET  api/suppliers/{supplierId}/addresses/{addressId}

Get Address Details

GET  api/suppliers/{supplierId}/addresses/{addressId}/playdates

Get play dates for culture deals

POST  api/suppliers/sendlink

Send link on supplier to user in email

POST  api/suppliers/suggest

Suggest customer and tags

POST  api/suppliers/overview

Get Overview

Cashback

APIDescription
POST  api/cashback/buy

Get redirect link to cashback partner website. Unique number is saved for each calling of this method to receive information about purchase from provider website

Favorites

APIDescription
POST  api/favorites/search

Get Favorites Suppliers

POST  api/favorites/{supplierId}

Add Supplier to Favorites

DELETE  api/favorites/{supplierId}

Remove Supplier from Favorites list

POST  api/favorites/remove

Remove Suppliers from Favorites list

DealTypes

APIDescription
GET  api/dealtypes

Get available deal types depends on user access to suppliers/deal

Categories

APIDescription
GET  api/categories

Get Categories

Themes

APIDescription
GET  api/themes

Get Themes

Brands

APIDescription
GET  api/brands

Get brands

Deparments

APIDescription
GET  api/departments

Get departments

Purchase

APIDescription
POST  api/order/beginPayment

Method to start payment process

GET  api/order/seller

Get Seller Info

POST  api/order/shippings

Get available shipping options for current order

GET  api/order/paymentCardFee

Get Payment Card Fee. Payment Card fee is price for using credit cards during purchase and should be included to Total price

EVoucher

APIDescription
GET  api/evoucher/maxquantity?supplierId={supplierId}&dealId={dealId}

Get Max Allowed Quantity of eVouchers to Buy

GET  api/evoucher/buy?supplierId={supplierId}&dealId={dealId}

Get Max Allowed Quantity of eVouchers to Buy

PUT  api/evoucher/book?supplierId={supplierId}&dealId={dealId}&quantity={quantity}

eVoucher reservation, set the amount of vouchers reserved by current user

ShoppingCard

APIDescription
GET  api/shoppingcard/maxquantity?supplierId={supplierId}&dealId={dealId}

Get Max Allowed Quantity of shopping cards to Buy

GET  api/shoppingcard/buy?supplierId={supplierId}&dealId={dealId}

Get Shopping card info to Buy

GET  api/shoppingcard/topUp?supplierId={supplierId}&dealId={dealId}

Get Shopping card info to Top Up

Receipt

APIDescription
GET  api/receipt?transactionId={transactionId}

Get receipt when buy shopping card, eVoucher, upgrade to private membership

Statistics

APIDescription
GET  api/statistics/portal?fromDate={fromDate}&toDate={toDate}&countryId={countryId}&defaultPortalId={defaultPortalId}&customerId={customerId}

No documentation available.

GET  api/statistics/portal/toplists?fromDate={fromDate}&toDate={toDate}&countryId={countryId}&defaultPortalId={defaultPortalId}&customerId={customerId}

No documentation available.

GET  api/statistics/portal/login?fromDate={fromDate}&toDate={toDate}&countryId={countryId}&defaultPortalId={defaultPortalId}&customerId={customerId}

No documentation available.

GET  api/statistics/portal/uniquelogin?fromDate={fromDate}&toDate={toDate}&countryId={countryId}&defaultPortalId={defaultPortalId}&customerId={customerId}

No documentation available.

GET  api/statistics/portal/dealclicks?fromDate={fromDate}&toDate={toDate}&countryId={countryId}&defaultPortalId={defaultPortalId}&customerId={customerId}

No documentation available.

GET  api/statistics/portal/partnerdealclicks?fromDate={fromDate}&toDate={toDate}&countryId={countryId}&defaultPortalId={defaultPortalId}&customerId={customerId}

No documentation available.

GET  api/statistics/users?fromDate={fromDate}&toDate={toDate}&countryId={countryId}&defaultPortalId={defaultPortalId}&customerId={customerId}

No documentation available.

GET  api/statistics/users/activated?fromDate={fromDate}&toDate={toDate}&countryId={countryId}&defaultPortalId={defaultPortalId}&customerId={customerId}

No documentation available.

GET  api/statistics/users/active?fromDate={fromDate}&toDate={toDate}&countryId={countryId}&defaultPortalId={defaultPortalId}&customerId={customerId}

No documentation available.

GET  api/statistics/users/created?fromDate={fromDate}&toDate={toDate}&countryId={countryId}&defaultPortalId={defaultPortalId}&customerId={customerId}

No documentation available.

GET  api/statistics/users/deleted?fromDate={fromDate}&toDate={toDate}&countryId={countryId}&defaultPortalId={defaultPortalId}&customerId={customerId}

No documentation available.

GET  api/statistics/users/total?fromDate={fromDate}&toDate={toDate}&countryId={countryId}&defaultPortalId={defaultPortalId}&customerId={customerId}

No documentation available.

GET  api/statistics/users/newsletter?fromDate={fromDate}&toDate={toDate}&countryId={countryId}&defaultPortalId={defaultPortalId}&customerId={customerId}

No documentation available.

GET  api/statistics/usersavings?fromDate={fromDate}&toDate={toDate}&countryId={countryId}&defaultPortalId={defaultPortalId}&customerId={customerId}

No documentation available.

GET  api/statistics/usersavings/purchase?fromDate={fromDate}&toDate={toDate}&countryId={countryId}&defaultPortalId={defaultPortalId}&customerId={customerId}

No documentation available.

GET  api/statistics/usersavings/savings?fromDate={fromDate}&toDate={toDate}&countryId={countryId}&defaultPortalId={defaultPortalId}&customerId={customerId}

No documentation available.

GET  api/statistics/countries

Get available Countries

GET  api/statistics/defaultportals?countryId={countryId}

Get available Default Portals

GET  api/statistics/customers?countryId={countryId}&defaultPortalId={defaultPortalId}

Get Available Customers

PrivateMembership

APIDescription
GET  api/privatemembership

Get Private Membership Info

POST  api/privatemembership/startrenewal

Start Automatic membership Renewal

POST  api/privatemembership/stoprenewal

Stop Automatic membership Renewal

GET  api/privatemembership/terms

Get private membership Terms and Conditions. User must accept during purchase private membership

GET  api/privatemembership/upgrade/info

Information about price and additional charges for upgrading to private membership

POST  api/privatemembership/upgrade

Upgarde to private membership (Begin Payment)

UserManagement

APIDescription
POST  api/users/delete

Remove User