PrimaryOrders

Lists sales visits

APIDescription
GET api/V3/PrimaryOrders/list?lastVisitId={lastVisitId}

Use this API to Get 100 Incremental Primary Orders

POST api/V3/PrimaryOrders/UploadPrimaryOrders

API to post external Primary Orders in the SFA

OutletWallet

APIDescription
POST api/v3/OutletWallet/CreateUpdateOutletWallet

This API is used to create or update outlet wallet balance

Assorted

Manage products

APIDescription
POST api/V3/Assorted/CreateAssortedStyle

Creates new assorted Styles.

POST api/V3/Assorted/CreateAssortedProducts

Creates new assorted products.

Outlet

List and Manage Outlets

APIDescription
POST api/V3/Outlet/CreateMultiple

Adds new outlet.

GET api/V3/Outlet/GetRegionsWithZone

For a List of All regions and Zones of The Company

POST api/V3/Outlet/CreateMultipleBeats

Creates Beats with Its Hierarchy

POST api/V3/Outlet/UpdateMultipleBeats

Update Multiple Beats

POST api/V3/Outlet/UpdateErpId/{OutletGuid}

Api to Update the ERPID of an Outlet from the GUID

POST api/V3/Outlet/UpdateKYCStatus

Api to Update the KYC status of an Outlet

POST api/V3/Outlet/BlockUnblockOutlets

Api to block Outlet from the GUID

POST api/V3/Outlet/Create

Create new outlet.

POST api/V3/Outlet/Update

Update outlet.

POST api/V3/Outlet/UpdateMultiple

updates multiple outlets in the batch (Max 2000 records can be updated in one request)

GET api/V3/Outlet/OutletsWithoutERP?LastRequestId={LastRequestId}&epoch={epoch}

Fetches the 100 outlets without ERPId after the LastRequestId

GET api/V3/Outlet/GetBilledToShippedToAddress?epoch={epoch}

Fetches the 100 Billed To Shipped To Address after the epoch time

POST api/V3/Outlet/GetBeatWithHierarchy

For a List of All Beat, Territory, Region and Zones of The Company

POST api/V3/Outlet/CreateUpdateMarginSlab

Api For Create / Update Entity Margin Slabs

QPS

QPS Scheme

APIDescription
POST api/v3/QPS/add

Add QPS (Max 2000 records can be updated in one request)

Categories

Create and Mange Product Categories

APIDescription
GET api/V3/Category/list

Lists all the Product Categories available

POST api/V3/Category/Create

Creates a new category

POST api/V3/Category/ChangeCategoryForProduct

Change Category of Product

POST api/V3/Category/ChangeBrandForCategory

Change Brand Of Category

CueCardsMetrics

CueCardMetrics

APIDescription
POST api/V3/CueCardsMetrics/PostExtMetric

External Api for CueCards

POST api/V3/CueCardsMetrics/PostExtMetricMultiple

api to post multiple outlet metric values

Allowance

Summary of expenses

APIDescription
GET api/V3/Allowance/list?lastAllowanceId={lastAllowanceId}

Lists all the expenses . Use this to get latest allowances.

MTStockAndSale

Lists MT sales

APIDescription
GET api/V3/ModernTrade/Sales/list?date={date}

Lists all the modern trade sales for the date given. date passed in "MM/dd/yyyy" format

GET api/V3/ModernTrade/GetEmployeeSummary?employeeErpId={employeeErpId}&date={date}

API can be used to fetch Employee Wise Day Summary records of a particular Date.

DispatchAgainstOrder

Manage Dispatches against Sale

APIDescription
POST api/V3/DispatchAgainstOrder/TransactionV2

Upload List of Dispatches for Various Sales Done by ESMs in Transaction database Maximum 2000 in One request

InvoiceDetails

Manage Invoice details

APIDescription
POST api/V3/InvoiceDetails/UploadPrimarySaleInvoices

Upload primary sales invoices (Max 2000 records can be uploaded in one request)

POST api/V3/InvoiceDetails/UploadEInvoiceDetails

Create Invoice Details on the basis of Attendance Id

FieldUserForWalkInInvoice

Field user for walk in invoice

APIDescription
GET api/V3/FieldUserForWalkInInvoiceController/Get?distributorErpId={distributorErpId}&retailerErpId={retailerErpId}

Distributor Erp IdRetailer Erp Id

CompanyStock

Manage Company Stock

APIDescription
POST api/V3/CompanyStock/UpdateStock

Creates or updates multiple Company Stocks.

Geography

Manage Geographies

APIDescription
POST api/V3/Geography/UpdateGeographies

Update Geographies based on Geography ERPId

PositionCode

APIDescription
POST api/v3/PositionCode/CreateUpdatePositionCode

This API is used to create or update Position Codes

Products

Manage products

APIDescription
GET api/V3/Product/list

Lists all the products. Max 1000 products are listed in a request. Use paging ($skip) to get more.

POST api/V3/Product/Create

Creates a new product. Method fails if a product of same name exists in the same category.

POST api/V3/Product/Update

Updates a product. If Variants are null they are ignored. This method requires that the product model must have either Guid or ERPId set. GUID will be used for reference and can't be Updated

POST api/V3/Product/CreateMultiple

Adds multiple new products in the batch (Max 2000 records can be updated in one request)

POST api/V3/Product/CreateUpdateMultipleAsync

This API is used to create or update multiple products (maximum limit of 100 at once in input)

POST api/V3/Product/UpdatePrice

Upload the price of the products (Max 2000 records can be updated in one request)

POST api/V3/Product/UpdateProductStage

Update the Product Attributes based on Its Stage

POST api/V3/Product/AddNewLaunchDistributorMapping

Add Distributor Mappings for New Launched Products

POST api/V3/Product/RemoveNewLaunchDistributorMapping

Remove Distributor Mappings for New Launched Products

GET api/V3/Product/Activate/{ProductErpId}

Activate a Product via ErpId

POST api/V3/Product/UpdateProductPrice

Update product prices for Super Stockist, distributors and Sub Stockist. (Max 2000 records can be updated in one request)

POST api/V3/Product/UpdateRegionalProductPrice

Update product prices for Regional Super Stockist, distributors and Sub Stockist. (Max 2000 records can be updated in one request)

POST api/V3/Product/UpdateStockiestProductPrice

Update product prices for Regional Super Stockist, distributors and Sub Stockist. (Max 2000 records can be updated in one request)

POST api/V3/Product/UpdateStockiestCategoryProductPrice

Update product prices for Regional Super Stockist, distributors and Sub Stockist. (Max 2000 records can be updated in one request)

POST api/V3/Product/UpdateStockiestPriceAllProduct

Update product prices,ERPId and MRP for Regional Super Stockist, distributors and Sub Stockist. (Max 2000 records can be updated in one request)

POST api/V3/Product/CreateUpdateDisplayCategory

Api For Create / Update Display Categories

POST api/V3/Product/CreateUpdateProductBasket

Api for Create / Update Product Basket and Create Product-Basket Mappings

POST api/V3/Product/GetProductsFromErpId

Get Products from ERP Ids

VanSales

Van LoadOut/LoadIn details

APIDescription
GET api/V3/VanSales/LoadOut?id={id}

API can be used to fetch 10 incremental records of Approved Van Load Out Details.

GET api/V3/VanSales/LoadIn?id={id}

API can be used to fetch 10 incremental records of Approved Van Load In Details.

GET api/V3/VanSales/LoadOutLastUpdated?lastUpdated={lastUpdated}&isApproved={isApproved}

API can be used to fetch 10 incremental records of Approved Van Load Out Details.

GET api/V3/VanSales/LoadInLastUpdated?lastUpdated={lastUpdated}

API can be used to fetch 10 incremental records of Approved Van Load Out Details.

POST api/V3/VanSales/UpdateLatestVanDetails

API can be used to fetch 10 incremental records of Approved Van Load Out Details.

GET api/V3/VanSales/OrderIntent?lastUpdated={lastUpdated}

API can be used to fetch 10 incremental records of Van Order Intent.

OrderStatus

manage order status

APIDescription
GET api/V3/OrderStatus/GetCancelledOrderStatusesAsync?lastRequestId={lastRequestId}

Fetches the 100 next cancelled order status ids after the LastRequestId

POST api/V3/OrderStatus/CreateOrderStatusesBulkAsync

This API is used to create multiple order status (maximum limit of 100 at once in input)

SkuSalesData

Manage Sales Data, Norms and Pending orders

APIDescription
POST api/V3/SkuSalesData/UploadSkuNorms

Upload Sku norms (Max 2000 records can be updated in one request)

POST api/V3/SkuSalesData/UploadCategoryProductTypes

Upload Category ProductTypes (Max 2000 records can be updated in one request)

Distributor

Manage distributor tasks

APIDescription
POST api/V3/Distributor/Update

Updates a distributor

POST api/V3/Distributor/DistributorToPDMapping

Adds Distributor To Product Division Mapping

POST api/V3/Distributor/DistributorToBeatMapping

Distributor to Beat mappings - Used to map all types of distributor to beats

POST api/V3/Distributor/CreateWithPDs

Creates Distributor with Product Divsion Mappings

POST api/V3/Distributor/Create

Creates a Distributor

GET api/V3/Distributor/list

Lists All the Distributors

GET api/V3/Distributor/Employees/{DistributorERPId}

Lists Employees of a particular distributor

GET api/V3/Distributor/Beats/{DistributorERPId}

Lists Beats of a particular distributor

GET api/V3/Distributor/Outlets/{DistributorERPId}

Returns all outlets attached to the distributor

POST api/V3/Distributor/UpdateStock/{DistributorERPId}

Upload the stock of a distributor

GET api/V3/Distributor/GetStock/{lastStockId}

View the Stocks of a Particular Distributor (100 at a time) Starting from lastStockId

POST api/V3/Distributor/DistributorToOutletMappings

Add Distributor to outlet Mappings

POST api/V3/Distributor/RemoveDistributorToOutletMappings

Removes Distributor to Location Mappings

POST api/V3/Distributor/DistributorToUserMappings

Add Distributor to User Mappings

GET api/V3/Distributor/Activate/{DistributorErpId}

Activate a distributor via ErpId

DELETE api/V3/Distributor/DetachDistributorsfromUser

Delete all the User Distributor mapping at once (max 100 records at a time)

GET api/V3/Distributor/getRetailerDistributorMapping?DistributorErpId={DistributorErpId}

Lists all the Retailers mapped to a Distributor

ReceivedPaymentsController

Get list of received payments.

APIDescription
GET api/V3/ReceivedPayments/list?id={id}

Returns a list of Payments Received.

RetailerCollectionModule

Get list of Retailer Collection Details.

APIDescription
GET api/V3/RetailerCollection/list?id={id}

API can be used to fetch 100 incremental records of payment collected against invoice/order thorugh SFA.This is Live API and data will be available as soon as it get synched to FA Database.

POST api/V3/RetailerCollection/RetailerLedger/list

API can be used to fetch Outlet wise payment details.

POST api/V3/RetailerCollection/UploadRetailerCollection

API can be used to upload Retailer Collection details.

GET api/V3/RetailerCollection/getPaged?lastCollectionId={lastCollectionId}&pageSize={pageSize}

API can be used to fetch 100 incremental Collection records and relevant collection information by seeding a particular Collection ID.

Visits

Lists sales visits

APIDescription
GET api/V3/Visit/dayStarts?date={date}

Returns the DayStarts of Employees of your company on a particular date

GET api/V3/Visit/LatestVisit

Get Next productive visit.

GET api/V3/Visit/detailedVisit?lastVisitId={lastVisitId}&includeUnproductive={includeUnproductive}

Provides List of Visits from Transaction Db

GET api/V3/Visit/getVisitId?VisitId={VisitId}

Returns V4 Visit Id and takes input V3 Visit Id

EmployeeJourney

APis For Employee Journey Plans

APIDescription
POST api/V3/EmployeeJourney/DeactivateRoutePlan

Deactivates a Route Plan

POST api/V3/EmployeeJourney/CreateRoutePlan

Creates a Route Plan

POST api/V3/EmployeeJourney/UpdateRoute

Update Route Names

POST api/V3/EmployeeJourney/CreateRoute

Creates a Route Plan

POST api/V3/EmployeeJourney/CreateRouteName

Creates a Route

POST api/V3/EmployeeJourney/UpdateRouteOutlet

Map the outlets with Route

Beat

Manage Beats

APIDescription
POST api/V3/Beat/CreateEmployeePositionBeatMapping

creates user beat mapping or position beat mapping based on company setting

UnifyDistributorProducts

Unify Distributor products

APIDescription
GET api/V3/DistributorProducts/GetDistributorProductStocks?distributorErpId={distributorErpId}&startDate={startDate}&endDate={endDate}

Gets opening and closing values for distributor's products.

GET api/V3/DistributorProducts/GetSecondaryOrderVsInvoices?token={token}

Gets distributor's products order Vs Invoice Data.

POST api/V3/DistributorProducts/AddPWDSRecord

Adds new Product Wise Demand Vs Sales Record.

Employees

List and Manage Employees

APIDescription
GET api/V3/Employee/list

Lists all the Employees

POST api/V3/Employee/AddFieldUser

Add a field user

GET api/V3/Employee/DeactivateFieldUser?erpId={erpId}

For deactivating user

POST api/V3/Employee/AddHierarchy

add or update manager of user

POST api/V3/Employee/AddHierarchyV2

API to add an Employee in the Company(updates if Employee ERP is present)

GET api/V3/Employee/{EmployeeERPId}/GetBeatPlan

Get the BeatPlan of the employee

POST api/V3/Employee/{EmployeeERPId}/AddBeatPlan

Upload the beat plan for the employee

POST api/V3/Employee/RemoveEmployeeToPDMapping

Dettach Employee to ProductDivision Mapping Api

POST api/V3/Employee/EmployeeToPDMapping

Employee to ProductDivision Mapping Api

POST api/V3/Employee/UpdateFieldUser

Update Level 1 Field Users Api

POST api/V3/Employee/AddEmployeeLeaves

Add or Update Employee Leaves

DetailedVisits

Lists sales visits

APIDescription
GET api/V3/DetailedVisit/list?lastVisitId={lastVisitId}&DistributorERPId={DistributorERPId}&includeUnproductive={includeUnproductive}

Provides List of Visits from Transaction Db

GET api/V3/DetailedVisit/listScheme?lastVisitId={lastVisitId}&DistributorERPId={DistributorERPId}&includeUnproductive={includeUnproductive}

Provides List of Visits

GET api/V3/DetailedVisit/listDMS?lastVisitId={lastVisitId}&DistributorERPId={DistributorERPId}&includeUnproductive={includeUnproductive}

No documentation available.

NonFAInvoiceDetails

Upload Invoice Details

APIDescription
POST api/V3/NonFAInvoiceDetails/UploadInvoiceDetails

Upload Invoice Details

OutletAdditionRequest

Lists sales visits

APIDescription
GET api/V3/OutletAdditionRequest/list?LastRequestId={LastRequestId}&IsManagerApproved={IsManagerApproved}

Fetches the 100 Outlet Creation requests after the LastRequestId

POST api/V3/OutletAdditionRequest/review

Reviews and Saves the Location as per Request Approval, Max 100 Addition Requests can be executed in one Request

GET api/V3/OutletAdditionRequest/reject?RequestId={RequestId}&ReasonForRejection={ReasonForRejection}

Rejects a outlet Addition Request and adds the reason for rejection

POST api/V3/OutletAdditionRequest/ExternalOutletCreationRequest

Outlet Creation Request From External API to Manager App

Schemes

Manage Schemes

APIDescription
POST api/V3/Schemes/CreateMultiple

API to create multiple schemes

POST api/V3/Schemes/CreateMultipleV2

API to create multiple schemes

RegionalPricing

APIDescription
POST api/V3/RegionalPricing/Update

Updates Regional pricing for products

Survey

List and Manage Surveys

APIDescription
GET api/V3/Survey/detailedlist?surveyId={surveyId}&lastResponseId={lastResponseId}

Lists all the survey responses From ReportDb.