Skip to main content

Supplier API

GetAllTheOrdersWithFilter

You can retrieve orders placed by your sellers from Avasam via the API

Call

/apiseeker/OrdersView/GetAllTheOrdersWithFilter

tip

When using the Avasam API, remember that it must be called correctly, using the appropriate method (such as POST) described in this article, and with a valid token (Which can be obtained using the Login call). Otherwise the server may return an error.

Parameters

The header details for this call are as follows:

FieldTypeIs requiredDescription
EmailStringRequiredEmail address for login
Customer IdStringRequiredUnique customer ID. See customer list
From DateStringRequiredEarliest date to limit the returned results by
To DateStringRequiredLatest date to limit the returned results by
Is TodayBooleanRequiredIf ‘True’, call will only retrieve information for current day. Supersedes ‘From Date’ and ‘To Date’
PaymentStringRequiredFilter returned results by payment method
ShippingStringRequiredFilter returned results based on shipping provider used to dispatch order where processed
Sub-SourceStringRequiredFilter returned results based on the selling channel they originated from
TypeStringRequiredNot actively used now. Retained for future usage
LimitIntegerRequiredSpecify the maximum number of results to return in a page If used, must also specify ‘Page’
PageIntegerRequiredSpecify the page number to return If used, must specify ‘Limit’
Shipper-TypeStringRequiredFilter results based on shipping method used to dispatch order where processed

Request body

The call is structured as follows:

Request Data: { "Email":"", "CustomerID":"", "IsToday":"TRUE", "Limit":"20", "Page":"2" }

Response

FieldTypeIs requiredDescription
ProcessedBoolRequiredIf TRUE, then order has been dispatched, if FALSE then order still awaiting dispatch
Processed Date TimeStringNot requiredDate and time of dispatch, if ‘Dispatch’ is TRUE.

General info

NameTypeIs requiredDescription
Reference NumStringRequiredAvasam order reference number
External Reference NumStringNot requiredSelling channel order reference number
Received DateStringRequiredDate/time order received
SourceStringNot requiredSource (channel type) for order
SubsourceStringNot requiredSubsource (name) of channel for order
Label PrintedBoolNot requiredShows TRUE if shipping label has been printed for order
Label ErrorStringNot requiredIncludes error message returned if shipping label could not be printed
Invoice PrintedBoolNot requiredShows TRUE if invoice has been printed for order
PickList PrintedBoolNot requiredShows TRUE if pick list has been printed for order
NotesIntNot requiredReturns number of Notes for order, if any
Part ShippedBoolRequiredIf TRUE, not all of order has been dispatched and some awaits delivery
Dispatch By DateStringRequiredLatest date order can/should be dispatched
NumItemsInteRequiredTotal number of items in the order

Shipping info

NameTypeIs requiredDescription
VendorStringNot requiredCustomer’s email address for ID purposes
Postal Service IDStringRequiredCustomer’s address
Postal Service NameStringRequiredCustomer’s address/city
Total WeightStringRequiredCustomer’s postcode
Item WeightStringRequiredCustomer’s address/country
Package Category IDStringNot requiredPackaging category ID
Package CategoryStringNot requiredPackaging category
Package Type IDStringNot requiredPackaging type ID
Package TypeStringNot requiredPackaging type
Postage CostDoubleRequiredCost of postage including sales tax/VAT
Postage CostEx-TaxDouble RequiredCost of postage without sales tax/VAT
Tracking numberStringNot requiredIf sent using tracked shipping method, holds tracking number
Manual AdjustBoolRequiredOnly set to TRUE if order edited in Avasam following download

Customer info

NameTypeIs requiredDescription
Channel Buyer NameStringNot requiredCustomer IDon sales channel
Email AddressStringNot requiredCustomer’s email address for Id purposes
Address1StringRequiredCustomer’s shipping address
Address2StringNot requiredCustomer’s shipping address
Address3StringNot requiredCustomer’s shipping address
TownStringRequiredCustomer’s shipping address/town
RegionStringRequiredCustomer’s shipping address/region
PostcodeStringRequiredCustomer’s shipping address/postcode
CountryStringRequiredCustomer’s shipping address/country
Full NameStringRequiredCustomer’s name
CompanyStringNot requiredCustomer’s company name
Phone NumberStringNot requiredCustomer’s telephone number
Country IDStringRequiredAvasam ID for the specified country

Billing address

NameTypeIs requiredDescription
Email AddressStringNot requiredCustomer’s email address
Address1StringRequiredCustomer’s billing address
Address2StringNot requiredCustomer’s billing address
Address2StringNot requiredCustomer’s billing address
TownStringNot requiredCustomer’s billing address/town
RegionStringNot requiredCustomer’s billing address/(region/county)
PostcodeStringNot requiredCustomer’s billing address/postcode
CountryStringRequiredCustomer’s address/country
Full NameStringNot requiredCustomer’s full name
CompanyStringNot requiredCustomer’s business name
TelephoneStringNot requiredCustomer’s telephone number
Country IDStringRequiredAvasam ID for the specified country

Totals info

NameTypeIs requiredDescription
SubtotalDoubleRequiredTotal value of the items in the order, ex tax and postage
Postage CostDoubleRequiredCost of shipping ex tax
TaxDoubleRequiredTax for total order value
Total ChargeDoubleRequiredTotal order value ex tax
Payment MethodStringRequiredAvasam recorded payment method
Payment Method IDStringRequiredAvasam internal ID for recorded payment method
Profit MarginDoubleRequiredProfit (total value excluding tax less cost)
Total DiscountDoubleRequiredTotal value of any discounts applied to the order cost
CurrencyStringRequiredThe currency the order was invoiced and paid in
Country Tax-RateDoubleRequiredBasic sales tax rate for the country the order was placed in

Items

NameTypeIs requiredDescription
Order IDStringNot requiredAvasam order ID
Item IDStringRequired
Stock Item IDStringRequired
Item NumberStringRequired
SKUStringRequired
Item SourceObjectNot requiredSupplier of item
TitleStringRequiredItem title/name
QuantityIntRequiredItem title/name
Category NameStringNot requiredAvasam category
Composite AvailabilityObjectNot requiredConfirms items available, where item is a composite/bundle
Row IDStringNot requiredRow ID within order
Stock Levels SpecifiedBoolNot requiredIf true, then supplier holds levels for an item. Often false for services
On OrderIntNot requiredQuantity on order from supplier
In Order BookIntNot requiredQuantity currently in unfulfilled orders
LevelIntNot requiredQuantity on shelf
Minimum LevelIntNot requiredMinimum level specified for supplier to trigger re-order
Available StockIntNot requiredStock on shelf less items in unfulfilled orders – usually the value sent to listings to avoid overselling
Price Per UnitDoubleRequiredCost per item
Unit CostDoubleRequiredItem cost ex tax
DiscountDoubleNot requiredDiscount amount (if applied)
TaxDoubleNot required
Tax RateDoubleNot requiredSales tax rate
CostDoubleNot requiredItem cost price to seller ex VAT
Cost Inc TaxDoubleNot requiredItem cost price inc VAT/sales tax
Composite Sub-ItemsListNot requiredIf composite - list of parent items that will be shipped/included in the order
Is ServiceBoolNot requiredIf true, the item line represents a service, not a product (i.e.giftwrap)
Sales TaxDoubleNot requiredTotal sales tax paid
Tax Cost InclusiveBoolNot requiredDoes cost price include tax? TRUE/FALSE
Part shippedBoolNot requiredIf ‘true’, only part of the items in this row has been dispatched, possibly due to stock availability
WeightDoubleNot requiredTotal weight of items in this row
Barcode NumberStringNot requiredBarcode for item
MarketIntNot required
Channel SKUStringNot requiredSKU of item in original listing
Channel TitleStringNot requiredTitle of Item in original listing
Has ImageBoolNot requiredIf TRUE, the item has one or more images saved in Avasam
Image IDObjectNot requiredReference for item main image in Avasam
Additional InfoListNot requiredContains a list of entries containing additional item information
Stock Level IndicatorIntNot required
Bin RackObjectNot requiredItem’s physical location reference
Return QuantityIntNot requiredIf any return requests have been made against this order, shows the number of items returned
AmountDoubleNot requiredIf any return requests have been made against this order, shows the value of items returned
ReasonStringNot requiredIf any return requests have been made against this order, shows the reason given for the return(s)

Response body

The response from Avasam will come in the following form:

{
"data":
[
{
"_id":"cb2d8e7d-2d83-4926-ba61-b6b9037fd30a",
"ShipperId":null,
"OrderId":"cb2d8e7d-2d83-4926-ba61-b6b9037fd30a",
"NumOrderId":"20600",
"Processed":true,
"ProcessedDateTime":"2018-12-14T10:17:24.271Z",
"FulfilmentLocationId":"",
"GeneralInfo":
{
"Status":1,
"LabelPrinted":false,
"LabelError":"",
"InvoicePrinted":false,
"PickListPrinted":false,
"Notes":0,
"PartShipped":false,
"Marker":0,
"ReferenceNum":"ODS1245873",
"ExternalReferenceNum":"ODS1245873",
"ReceivedDate":"2018-12-14T10:11:39.722Z",
"Source":"DIRECT",
"SubSource":"-",
"HoldOrCancel":false,
"DespatchByDate":"2018-12-14T10:11:39.72Z",
"NumItems":1
},
"ShippingInfo": {
"Vendor":"",
"PostalServiceId":"FEDEX",
"PostalServiceName":"FEDEX",
"TotalWeight":0.0,
"ItemWeight":0.0,
"PackageCategoryId":"00000000-0000-0000-0000-000000000000",
"PackageCategory":"",
"PackageTypeId":"00000000-0000-0000-0000-000000000000",
"PackageType":"",
"PostageCost":10.0,
"PostageCostExTax":10.0,
"TrackingNumber":"testing for process sync",
"ManualAdjust":false
},
"CustomerInfo": {
"ChannelBuyerName":"",
"Address":
{
"EmailAddress":"",
"Address1":"test",
"Address2":"",
"Address3":"",
"Town":"test",
"Region":"",
"PostCode":"test",
"Country":"Anguilla",
"FullName":"test",
"Company":"",
"PhoneNumber":"",
"CountryId":"8eed01c8-df37-40e6-bf74-c8d0376047b8"
},
"BillingAddress":
{
"EmailAddress":"",
"Address1":"test",
"Address2":"",
"Address3":"",
"Town":"test",
"Region":"",
"PostCode":"test",
"Country":"Anguilla",
"FullName":"test",
"Company":"",
"PhoneNumber":"",
"CountryId":"8eed01c8-df37-40e6-bf74-c8d0376047b8"
}
},
"TotalsInfo": {
"Subtotal":156.0,
"PostageCost":10.0,
"Tax":9.85,
"TotalCharge":160.25,
"PaymentMethod":"",
"PaymentMethodId":"00000000-0000-0000-0000-000000000000",
"ProfitMargin":0.0,
"TotalDiscount":15.6,
"Currency":null,
"CountryTaxRate":0.0
},
"FolderName": [
],
"Items": [
{
"OrderId":"00000000-0000-0000-0000-000000000000",
"ItemId":"722bd9c6-af78-406c-9e70-1bc6abc4369b",
"StockItemId":"722bd9c6-af78-406c-9e70-1bc6abc4369b",
"ItemNumber":"",
"SKU":"Producttest1",
"ItemSource":"",
"Title":"Producttest1",
"Quantity":1,
"CategoryName":"",
"CompositeAvailablity":"",
"RowId":null,
"StockLevelsSpecified":true,
"OnOrder":0,
"InOrderBook":0,
"Level":0,
"MinimumLevel":0,
"AvailableStock":0,
"PricePerUnit":48.65,
"UnitCost":51.0,
"Discount":10.0,
"Tax":2.75,
"TaxRate":6.0,
"Cost":51.0,
"CostIncTax":48.65,
"CompositeSubItems":
[
],
"IsService":false,
"SalesTax":0.0,
"TaxCostInclusive":false,
"PartShipped":false,
"Weight":0.0,
"BarcodeNumber":"",
"Market":0,
"ChannelSKU":"Producttest1",
"ChannelTitle":"Producttest1",
"HasImage":false,
"ImageId":"",
"AdditionalInfo":
[
],
"StockLevelIndicator":0,
"BinRack":"",
"ReturnQuantity":0,
"Amount":0.0,
"Reason":null
},
{
"OrderId":"00000000-0000-0000-0000-000000000000",
"ItemId":"746753a3-4577-4fdd-8573-3a98cccd6b06",
"StockItemId":"746753a3-4577-4fdd-8573-3a98cccd6b06",
"ItemNumber":"",
"SKU":"Producttest2",
"ItemSource":"",
"Title":"Producttest2",
"Quantity":1,
"CategoryName":"",
"CompositeAvailablity":"",
"RowId":null,
"StockLevelsSpecified":true,
"OnOrder":0,
"InOrderBook":0,
"Level":0,
"MinimumLevel":0,
"AvailableStock":0,
"PricePerUnit":50.08,
"UnitCost":52.0,
"Discount":10.0,
"Tax":3.28,
"TaxRate":7.0,
"Cost":52.0,
"CostIncTax":50.08,
"CompositeSubItems":
[
],
"IsService":false,
"SalesTax":0.0,
"TaxCostInclusive":false,
"PartShipped":false,
"Weight":0.0,
"BarcodeNumber":"",
"Market":0,
"ChannelSKU":"Producttest2",
"ChannelTitle":"Producttest2",
"HasImage":false,
"ImageId":"",
"AdditionalInfo":
[
],
"StockLevelIndicator":0,
"BinRack":"",
"ReturnQuantity":0,
"Amount":0.0,
"Reason":null
},

],
"total":2
}

GetCustomerList

Retrieve details about customers

Retrieve customer details to enable you to build orders for them.

Returns customer details including address and email.

Call

apiseeker/OrdersCreation/GetCustomerList/{Seller Name Or Email Address}

tip

When using the Avasam API, remember that it must be called correctly, using the appropriate method (such as POST) described in this article, and with a valid token (Which can be obtained using the Login call). Otherwise the server may return an error.

Parameters

The header details for this call are as follows:

NameTypeLimitIs requiredDescription
Sellername or email addressString100RequiredSeller name or email address

Request body

The call is structured as follows:

Request Data: 
{
“Name” or “Email address”
}

Response

NameTypeIs requiredDescription
Business NameStringNot requiredName of the business as a string
Contact NameStringNot requiredName of the contact at the customer
Address1StringRequiredCustomer’s address
Address2StringNot requiredCustomer’s address
Address3StringNot requiredCustomer’s address
CountryStringRequiredCustomer’s country
PostcodeStringRequiredCustomer’s postcode
TelephoneStringNot requiredCustomer’s telephone number
Mobile numberStringNot requiredCustomer’s telephone number
Email AddressStringRequiredCustomer’s email address
Credit AccountBooleanRequiredDoes customer have a credit account – true or false
Credit LimitDoubleRequiredIf ‘Credit Account’ is true, maximum credit allowed
Payment termsStringNot requiredMaximum time for credit to be repaid if ‘Credit Account’ is true
SurchargeStringNot requiredIf a surcharge is applied for customer, then whether it is a fixed value or %
Surcharge ValueDoubleNot requiredAmount of surcharge
VatableBooleanRequiredDoes the product need to have VAT added
Customer GroupStringNot requiredIf customer is allocated to a group, include group name
StatusStringRequiredCustomer account status in Avasam
Is ActiveBooleanRequiredIs customer account currently active and in use
Amount DepositsStringNot requiredAmount held as deposit
Outstanding BalanaceDoubleRequiredCurrent total money to pay
Location IDStringRequiredLocation information
PasswordStringRequiredPassword value in database
Is ShipperBooleanRequiredIs account a shipper (true) or supplier(false)
TypeStringRequiredAccount information

Response body

The response from Avasam will come in the following form:

[    
{ "_id":"dc663f77-0bc4-4d18-93cc-afef2089f44d",
"BusinessName":"-",
"ContactName":"-",
"Address1":"Address 1",
"Address2":"Address 2",
"Address3":"Address 3",
"Country":"India",
"Postcode":"445566",
"Telephone":"-",
"MobileNumber":"-",
"EmailAddress":"-",
"CreditAccount":true,
"CreditLimit":100.0,
"PaymentTerms":"15",
"Surcharge":"%",
"SurchargeValue":"10",
"Vatable":true,
"CustomerGroup":"-",
"Status":"Active",
"IsActive":true,
"AmountDeposits":0,
"OutStandingBalance":0,
"LocationId":"-",
"Password":"-",
"IsShipper":false,
"Type":"-",
"LinnToken":null,
"SessionToken":"-",
"LinnServer":”-”,
"DbName":"-",
"CreatedDate":"2018-12-12T09:39:40.283Z",
"LoginToken":”-”,
"SubSource":"-",
"InvoiceCreationTime":"-",
"InvoicePreference":"-",
"PreferenceOn":"-",
"IsInvoiceCreated":false,
"LastInvoiceCreatedOn":"2018-11-27T08:40:31.448Z",
"Currency":”-”,
"Notes":"-",
"authkey":"TESTKEY”,
"shipperid":"977b6bb9-fac4-4dbb-b237-8c513e6122dc",
"seekerid":"885dc301-83d2-4242-9d46-78aca2ed0e07"
}
]

Tips

  • Store the relevant customer record(s) for use in later order creation.
  • Store the ‘SupplierAuthKey’ value for later calls.

CreateNewOrder

Create an order in Avasam for a customer

Creating an order is only possible once you have a customer and one or more products to add to their records.

Call

https://app.avasam.com/api/OrdersCreation/CreateNewOrder

tip

When using the Avasam API, remember that it must be called correctly, using the appropriate method (such as POST) described in this article, and with a valid token (Which can be obtained using the Login call). Otherwise the server may return an error.

Parameters

The header details for this call are as follows:

Field nameTypeDescriptionIs required
GeneralInfoGeneralInfoModelShows detailsfor order (see GeneralInfoModel)TRUE
CustomerInfoAddressModelShows customer-specific details (see AddressModel)TRUE
CustomerIDStringContains the selected seller’s unique idTRUE
ItemsList- ItemModelUsed for order item details (See ItemModel)TRUE
NotesStringAny notes associated with order at creationFALSE
ShippingServiceStringThe selected shipping service nameTRUE
OrderTypeStringSpecify the order type (eg Seller)TRUE
IsSelfboolIf supplier created the order manually, set as yes.FALSE

GeneralInfoModel

Field nameTypeDescriptionIs required
ReferenceNumStringOrder reference numberTRUE
ReceivedDateDateTimeThe date &time the order was createdTRUE
NameStringShippingaddress – customer’s full nameTRUE
AddressStringShipping address building addressTRUE
CityStringShipping city nameTRUE
PostCodeStringShipping address post codeTRUE
CountyStringShipping address country nameTRUE
PhoneNoStringCustomer phone numberFALSE
EmailStringCustomer email addressFALSE
SourceStringSpecifies the source of the order (eg Amazon, eBay etc)TRUE
SubSourceStringSpecifies the source of the order (internal reference)FALSE
ErrorList - StringAlways blankFALSE
ShippingServiceStringAvasam shipping service nameTRUE
FirstNameStringShipping address customer first nameTRUE
SurNameStringShipping address   customer surnameTRUE

AddressModel

Field nameTypeDescriptionIs required
ReferenceNumStringOrder reference numberTRUE
ReceivedDateDateTimeThe date & time the order was createdTRUE
NameStringShipping address – customer’s full nameTRUE
AddressStringShipping address building addressTRUE
CityStringShipping city nameTRUE
PostCodeStringShipping address post codeTRUE
CountyStringShipping address country nameTRUE
PhoneNoStringCustomer phone numberFALSE
EmailStringCustomer email addressFALSE
SourceStringSpecifies the source of the order (eg Amazon, eBay etc)TRUE
SubSourceStringSpecifies the source of the order (internal reference)FALSE
ErrorList - StringAlways blankFALSE
ShippingServiceStringAvasam shipping service nameTRUE
FirstNameStringShipping address customer first nameTRUE
SurNameStringShipping address   customer surnameTRUE

ItemModel

Field nameTypeDescriptionIs required
_idStringItem unique id (internal reference)FALSE
SKUStringAvasam SKU (External ID)TRUE
NumberstringAvasam SKUTRUE
PriceDoubleProduct RRPTRUE
CostpriceDoubleProduct cost price for sellerTRUE
TitleStringProduct titleTRUE
VatDoubleProduct VAT rateTRUE
PackQtyintHow many items included in order when a single SKU item is purchasedTRUE
ImageStringProduct main image pathTRUE
IsSelectedboolSpecify if product has been selected (yes or no)TRUE
ActualPackQtyintTotal number of item in orderTRUE
DiscountdoubleUsed for product discount valueTRUE

Request body

The call is structured as follows:

{

"GeneralInfo":

{
"ReferenceNum":"ODS7529463",

"ReceivedDate":"22/01/2021, 19:19",

"Name":"Test user Test user surname",

"Address":"Test address detail",

"City":"London",

"PostCode":"Ygv2637",

"County":"United Kingdom",

"PhoneNo":"8787656578",

"Email":"[email protected]",

"Source":"Avasam",

"SubSource":"",

"Error":[],

"ShippingService":"Expedited Tracked ( 1 to 2 days)",

"FirstName":"Test user",

"SurName":"Test user surname"
},

"CustomerInfo":

{

"ReferenceNum":"ODS7529463",

"ReceivedDate":"22/01/2021, 19:19",

"Name":"Test user Test user surname",

"Address":"Test address detail",

"City":"London",

"PostCode":"Ygv2637",

"County":"United Kingdom",

"PhoneNo":"8787656578",

"Email":"[email protected]",

"Source":"Avasam",

"SubSource":"",

"Error":[],

"ShippingService":"Expedited Tracked ( 1 to 2 days)",

"FirstName":"Test user",

"SurName":"Test user surname"

},

"CustomerID":"00000000-0000-0000-0000-000000000000",

"Items":
[
{
        "_id":"00000000-0000-0000-0000-000000000000",

        "SKU":"Test56789",

        "Number":"S036570016",

        "Price":12,

        "costprice":23,

        "Title":"New Product T-shirt",

        "Vat":20,

        "PackQty":1,

        "image":"",

        "IsSelected":true,

        "ActualPackQty":99,

        "Discount":"0"
}
],

"Notes":"test create order note",

"ShippingService":"Expedited Tracked ( 1 to 2 days)",

"OrderType":"Sellers",

"IsSelf":false

}

Response

The response from Avasam will come in the following form:

Field nameTypeDescription
ErrorCodeintSpecifies if an error has been returned 0 = no error 1 = error Should this be Boolean? - No, because we have use int value
MessageStringError body for order request
idintAlways returns 0

Response body

{   
"ErrorCode": 0,  
"Message": "Order created successfully.",  
"id": 0
}

SellerGetOrdersListWithFilter

Call

https://app.avasam.com/api/SellerOrdersView/SellerGetOrdersListWithFilter

tip

When using the Avasam API, remember that it must be called correctly, using the appropriate method (such as POST) described in this article, and with a valid token (Which can be obtained using the Login call). Otherwise the server may return an error.

Parameters

The header details for this call are as follows:

Field nameTypeDescriptionIs required
FromDateDateTimeOrder range start dateTRUE
ToDateDateTimeOrder range end dateTRUE
DateDispalystringString value to define range (eg Today, Yesterday)TRUE
CustomerstringSearch parameter for filtering for specific customer(s)FALSE
OrderStatusstringSpecifies the current status of the orders that should be returned (inc ‘Dispatched’, ‘Return’)FALSE
PaymentStatusstringSpecify a payment status to filter byFALSE
SortbystringSpecify sort direction for SortStatus (up or down)TRUE
SortStatusstringSpecify a field name from AvasamOrder to sort the list byTRUE
limitintSpecify the number of records per pageTRUE
pageintSpecify which page number to returnTRUE

Request body

The call is structured as follows:

{
"FromDate":"2020-11-23T18:30:00.000Z",
"ToDate":"2021-01-23T06:11:28.328Z",
"DateDispaly":"Last 60 days",
"Customer":"",
"OrderStatus":"All",
"PaymentStatus":"All",
"Sortby":"ChRecdDate",
"SortStatus":"down",
"limit":"60",
"page":0
}

Response

Field nameTypeDescription
dataList - AvasamOrderIncludes a list of all matching orders and details
TotallongDisplay total count of orders returned

AvasamOrder

Field nameTypeDescription
_idstringDisplay the order’s unique ID
NumberstringDisplay the internal Avasam order number
SellerRefstringDisplay the order’s reference number from channel
SellerOrderIdstringDisplay the order reference number (may be same as SellerRef)
SellerOtherRefstringDisplay the order reference number (may be same as SellerRef and SellerOtherId)
SupplierOtherRefstringSupports additional order reference from external order management software
IsChildboolIf order has been merged or split &order is the child ("True") else "False"
ParentIdstringDisplay parent order ID if IsChild=True
IsParentboolIf order has been merged or split &order is the parent("True") else "False"
StatusOrderStatusOrder status value list – QUEUE, AWAITING_PAYMENT, DRAFT, CREATED, ERROR, CANCELLED_REQUEST, CANCELLED, DISPATCH_QUEUE, DISPATCH, RETURN_REQUEST, RETURN, QUEUE_EDIT, AWAITING_PAYMENT_EDIT, UPDATE_PENDING_SUPPLIER, CREATE_PENDING_SUPPLIER, DISPATCH_ERROR, REPAYMENT, MERGE, INPROCESS, CANCEL_PARTIAL_ORDER
PaymentStatusstringOrder payment status
ChannelstringOrder channel name
AccountstringOrder channel account name
InvIdstringOrder invoice unique id
InvNumberstringOrder invoice number
SellerIdstringSeller unique id
SupplierIdstringAlways blank
AuthKeystringSupplier unique code
CustomerOrderCustomerDisplay order customer details
ShippingOrderShippingDisplay order shipping details
PaymentOrderPaymentDisplay order payment details.
OptionOrderOptionDisplay other details associated with order
ItemsList-OrderItemList of order items.
RetrunItemList-OrderItemList of order items flagged for return.
UnpiadAmountdoubleIf order not fully paid, show balance owing
PaidAmountdoubleShow balance paid for order
VATdoubleShow VAT amount on order
SubTotaldoubleOrder subtotal (Ex VAT)
TotaldoubleOrder total value (Inc VAT)
DiscountdoubleShow total discount applied to order
DiscountPerdoubleDiscount applied per product
SurchargedoubleThe value of any surcharges applied to order
ErrorList-stringDisplay for the order error list data details
ErrorTypeOrderErrorTypeDisplay order error type (Value list here – NONE, PRODUCTNOTMAPP, PRODUCTMISSING, PRODUCTNOTSOURCE, PARENTPRODUCT, SHIPPINGNOTMAPP, SHIPPINGNOTFOUND, PROCESSORDERERROR, RESTRICTEDPRODUCT, OUTOFSTOCK, OTHERERROR, PAYMENTERROR
IsShipperPayoutboolConfirm if order payment has been disbursed to supplier.
GeneralInfoStatusintGeneral info sting
ProcessedboolIs order marked as processed?
IsProcessAtSeekerboolIf order processed, was order processed by seller instead of supplier? (default False)
IsDeletedboolIf order is marked as deleted, set as True
IsReturnRequestDraftboolIf order has a return request in process, but not submitted, set as True
IsReturnRequestboolIf order has had a return request submitted, set as True
ManifestPrintedboolIf supplier has printed a label and manifest has been printed for it
SellerNamestringSellername
LabelPrintedboolOrder label printed
IsInvoicedboolsOrder Invoice raised in Avasam
NotesList-OrderNotesOrder notes (as list)
DespatchByDateTimeLatest date and time order must be dispatched by
MetaDataDictionary-string, stringMisc order data not covered in other fields for completeness
HistoriesList-HistoryList of actions taken against order
CreatedDateTimeOrder placed on channel (date and time)
ChRecdDateDateTimeOrder created in Avasam (date and time)
DispatchDateTimeIf order dispatched, specify date and time
LastUpdateDateTimeLast action or change on order (date and time)
IsCreditNotesboolIf credit note has been raised against order set True
ReturnStatusstringIf order has been returned, set True
CurrencystringCurrency that order was placed in (GBP)

OrderItem

Field nameTypeDescription
ItemIdstringDisplay for the order item unique id
SKUstringDisplay for the order item supplier SKU value
sCodestringDisplay for the order item avasam SKU value
TitlestringDisplay for the order item title value
BarcodestringDisplay for the order item barcode value
QtyintDisplay for the order item total quantity
UnitPricedoubleDisplay for the order item unit price value
VATPerdoubleDisplay for the order item vat percentage
VATdoubleDisplay for the order item vat
DiscountPerdoubleDisplay for the order item discount percentage
DiscountdoubleDisplay for the order item discount
SubTotaldoubleDisplay for the order item subtotal count value
TotaldoubleDisplay for the order item total value
AuthkeystringDisplay for the order item supplier code
ReturnQuantityintDisplay for the order item return quantity total value
ReasonstringDisplay for the order item return reason value
CostIncTaxdoubleDisplay for the order item cost price including tax value
WeightdoubleDisplay for the order item weight value
HeightdoubleDisplay for the order item height value
WidthdoubleDisplay for the order item width value
DepthdoubleDisplay for the order item depth value
VatExclboolDisplay for the order item vat excluding boolean value
VatIncudingdoubleDisplay for the order item vat including value

OrderNotes

Field nameTypeDescription
UserstringDisplay for the order type value like – Avasam, Import, Channel name
NotesstringDisplay for the order notes message
OnDateTimeDisplay for the create order date time
SelfboolDisplay for the boolean value

OrderCustomer

Field nameTypeDescription
NamestringDisplay for the delivery user name
AddressAddressDisplay for the address detail see Address
BillingAddressAddressDisplay for the billing address detail see Address

Address

Field nameTypeDescription
EmailAddressstringDisplay for the user email id
Address1stringDisplay for the user address line 1
Address2stringDisplay for the user address line 2
Address3stringDisplay for the user address line 3
TownstringDisplay for the user town name
PostCodestringDisplay for the user postcode
CountrystringDisplay for the user country name
FullNamestringDisplay for the user full name
PhoneNumberstringDisplay for the user phone number

OrderShipping

Field nameTypeDescription
ShippingNamestringDisplay for the order shipping name
ShippingIdstringDisplay for the order shipping id
WeightdoubleDisplay for the order shipping weight value
TotaldoubleDisplay for the order shipping total value
VATPerdoubleDisplay for the order shipping vat percentage value
VATdoubleDisplay for the order shipping vat
TrackingNumberstringDisplay for the order tracking number

OrderPayment

Field nameTypeDescription
RefNumberstringDisplay for the order payment reference number
TypestringDisplay for the order payment type
TotaldoubleDisplay for the order payment total value
OnDateTimeDisplay for the order payment date time

History

Field nameTypeDescription
NamestringDisplay for the order action name
ActionstringDisplay for the order updated action type name
OnDateTimeDisplay for the order action updated date time

Response body

The response from Avasam will come in the following form:

{
"data":
[
{
"_id":"00000000-0000-0000-0000-000000000000",
"Number":"29350248331",
"SellerRef":"ODS59413",
"SellerOrderId":"ODS59413",
"SellerOtherRef":null,
"SupplierOtherRef":"29350248331",
"IsChild":false,"ParentId":"00000000-0000-0000-0000-000000000000",
"IsParent":false,
"Status":9,
"PaymentStatus":"Paid",
"Channel":"Web",
"Account":"Avasam Seller",
"InvId":"00000000-0000-0000-0000-000000000000",
"InvNumber":"INGB0132935210122",
"SellerId":"00000000-0000-0000-0000-000000000000",
"SupplierId":"",
"AuthKey":"GB01003",
"Customer":
{
"Name":"Testing User",       
"Address":       
{       
"EmailAddress":"",       
"Address1":"Z-211",       
"Address2":"",       
"Address3":"",       
"Town":"Baroda",       
"PostCode":"350015",       
"Country":"India",       
"FullName":"Testing User",       
"PhoneNumber":"+918899776655"       
},       
"BillingAddress":       
{       
"EmailAddress":"",       
"Address1":"Z-211",       
"Address2":"",       
"Address3":"",       
"Town":"Ahmedabad",       
"PostCode":"350015",       
"Country":"India",       
"FullName":"Testing User",       
"PhoneNumber":"+918899776655"       
}
},
"Shipping":
{
"ShippingName":"Standard",       
"ShippingId":"2",       
"Weight":22.0,       
"Total":6.0,       
"VATPer":20.0,       
"VAT":1.0,       
"TrackingNumber":""
},
"Payment":
{       
"RefNumber":"00000000-0000-0000-0000-000000000000",       
"Type":"Deposit",       
"Total":19.68,       
"On":"2021-01-22T14:22:29.999Z"
},
"Items":
[
{       
"ItemId":"00000000-0000-0000-0000-000000000000",       
"SKU":"S036570016",       
"sCode":"Test56789",       
"Title":"New Product T-shirt",       
"Barcode":"",       
"Qty":1,       
"UnitPrice":12.0,       
"VATPer":20.0,       
"VAT":2.28,       
"DiscountPer":5.0,       
"Discount":0.6,       
"SubTotal":12.0,       
"Total":13.68,       
"authkey":"GB01003",       
"ReturnQuantity":0,       
"Reason":null,       
"CostIncTax":0.0,       
"Weight":22.0,       
"Height":20.0,       
"Width":20.0,       
"Depth":20.0,       
"VatExcl":true,       
"VatIncuding":0.0
}
],
"RetrunItem":
[
{       
"ItemId":"00000000-0000-0000-0000-000000000000",       
"SKU":"S036570016",       
"sCode":"Test56789",       
"Title":"New Product T-shirt",       
"Barcode":"",       
"Qty":1,       
"UnitPrice":12.0,       
"VATPer":20.0,       
"VAT":2.28,       
"DiscountPer":5.0,       
"Discount":0.6,       
"SubTotal":12.0,       
"Total":13.68,       
"authkey":"GB01003",       
"ReturnQuantity":1,       
"Reason":"Faulty item",       
"CostIncTax":0.0,       
"Weight":22.0,       
"Height":0.0,       
"Width":0.0,       
"Depth":0.0,       
"VatExcl":true,       
"VatIncuding":0.0
}
],
"UnpiadAmount":0.0,
"PaidAmount":19.68,
"VAT":2.28,
"SubTotal":12.0,
"Total":19.68,
"Discount":0.6,
"DiscountPer":0.0,
"Surcharge":0.0,
"Error":[],
"ErrorType":0,
"IsShipperPayout":false,
"GeneralInfoStatus":0,
"Processed":true,
"IsProcessAtSeeker":true,
"IsDeleted":false,
"IsReturnRequestDraft":false,
"IsReturnRequest":true,
"ManifestPrinted":false,
"SellerName":null,
"LabelPrinted":false,
"IsInvoiced":true,"Notes":
[
{       
User: "Import",        
Notes: "demo order",        
On: "2020-12-30T10:38:37.187Z",        
Self: false
}
],
"DespatchBy":"2021-01-25T23:59:00Z",
"MetaData":
{       
"ReturnNo":"RTN5186729"
},
"Histories":
[
{       
"Name":"OrderCreate",       
"Action":"OrderCreateDate",       
"On":"2021-01-22T14:22:27.333Z"
},
{       
"Name":"Stock S036570016",       
"Action":"1",       
"On":"2021-01-22T14:22:28.895Z"
}
],
"Created":"2021-01-22T14:22:27.334Z",
"ChRecdDate":"2021-01-22T14:22:27.334Z",
"Dispatch":"2021-01-22T14:26:03.859Z",
"LastUpdate":"2021-01-23T00:27:08.099Z",
"IsCreditNotes":false,
"ReturnStatus":"Return requested","Currency":"GBP"
}
],  
"total":1
}

Supplier - Login

Confirm authorisation to access Avasam

Confirm your authorisation to access data with your email address and password. Returns authorisation token and ClientID.

Call

https://app.avasam.com/api/Signup/Login

tip

When using the Avasam API, remember that it must be called correctly, using the appropriate method (such as POST) described in this article, and with a valid token (Which can be obtained using the Login call). Otherwise the server may return an error.

Parameters

The header details for this call are as follows:

Field nameTypeDescriptionIs required
EmailstringUsed for user login email id (used base64 encrypt email)True
PasswordstringUsed for user login password (used base64 encrypt password)True
CodestringAlways blankFalse
CheckMultiLoginstringUsed for multi login option yes or noFalse

Request body

The call is structured as follows:

{   
"Email":"Z2F0YXBlaDY2MUBhaWNsYmQuY29t",
"Password":"MTIzNEBxd2VBUw==",
"Code":"",
"CheckMultiLogin":"yes"
}

Response

Field nameTypeIs requiredDescription
ErrorboolDisplay error status (yes or no)If the request is unsuccessful, return error type
ClientIDStringDisplay the unique client idIf the request is unsuccessful, return error specifics
tokenStringDisplay the unique id token value for the userUnique identifier
EndPointStringDisplay the API endpoint pathThe name of the customer’s business
ActionStringDisplay the user login panel pathAuthorisation string for the connection
TokenStringRequiredVerification value used for later connections to Avasam
Is Enable Product CreationBooleanRequiredConfirm if products can be created in this account
ActionStringNot required
End PointStringRequiredSpecifies the end point address for all future API queries

Response body

The response from Avasam will come in the following form:

{   
"Error":false,
"ClientID":"00000000-0000-0000-0000-000000000000",
"token":"00000000-0000-0000-0000-000000000000",
"EndPoint":"https://api.avasam.com/",
"Action":"shipper.html",
}

Tips

  • Store the ‘Token’ value separately for repeated use in other calls until it expires.
  • Store the ‘ClientID’ value for later calls.
  • API Access calls are not counted against your API rate limit.
  • Use the ‘End Point’ URL for any API calls following this result.

NewGetCustProductListWithSupplierCode

Retrieve product information from Avasam

You can retrieve information about one or more product with this command. 'SearchKeyWord' can be a full or partial SKU or product name.

Call

https://app.avasam.com/api/ProductCatalog/NewGetCustProductListWithSupplierCode/Select/GB010003/Test56789/0/10/SKU/up

tip

When using the Avasam API, remember that it must be called correctly, using the appropriate method (such as POST) described in this article, and with a valid token (Which can be obtained using the Login call). Otherwise the server may return an error.

Parameters

The header details for this call are as follows:

FieldTypeDescriptionIs RequiredDescription
CustProIdstringSpecify the product ID (filter list)FALSEThis value is returned by the login method for authorising access to the API
CustSupplierCodestringSpecify the specific supplier code (filter list)TRUEThis value is returned by ‘GetCustomerList’, and represents the seller
SKUstringSearch by product IDor product titleTRUEProduct name or SKU
pageintDefine the page number to return from the searchTRUEPage number. Where you have specified a page size limit (‘Limit’), you should specify which page you want in the call. If ‘Limit’ is specified, you must specify ‘Page Number’
limitintDefine the max number of records per page (eg ‘10’ would return 10 per page, so 120 would return 12 pages)TRUEThe maximum number of records returned per page by a single call. A call including ‘Limit’ also requires ‘Page Number’
sortbystringSpecify a field name to sort the list returned by that fieldTRUE
sorttypestringSpecify the direction of the sort from sortby (up, down)TRUE

Request body

{
"CustProId":"Select",    
"CustSupplierCode":"GB0103",    
"SKU":" Test56789",  
"page":"0",  
"Limit":"10",  
"sortby": "SKU",  
"sorttype": "up"
}

Response

FieldTypeDescription
dataList - ProductFeedDisplay search product data list (See ProductFeed)
totalLongDisplay search product data total record count
HasErrorboolDisplay if there was an error (yes or no)
MessagestringDisplay search status message

ProductFeed

FieldTypeDescription
_idstringDisplays current id number
SKUstringDisplays the product supplier SKU name
NumberstringDisplays the product’s Avasam number
PricedoubleDisplay the product price
CostpricedoubleDisplay the product cost price
TitlestringDisplay the product title
BarCodestringDisplay for the barcode value
VatdoubleDisplay for the product’s VAT rate
PackQtyintDisplay the quantity of the product in stock/available
ImagestringDisplay the product’s main image path
VideostringDisplay the product video link
IsActiveboolDisplay the boolean value
IsVarPboolDisplay if the product is a variation parent (yes or no)
SKUSmallstringProduct stock zero at a time value display ‘Product is out of stock’ otherwise blank value
StockUpdateOnDateTimeDisplay the date and time the stock level was last updated
PriceUpdateOnDateTimeDisplay the date and time the cost price was last updated
CategorystringDisplay for the category name
CategoryIdstringDisplay for the category id

Response body

The response from Avasam will come in the following form:

{

"data":

[
{

        "_id":"00000000-0000-0000-0000-000000000000",

        "SKU":"Test56789",

        "Number":"S036570016",

        "Price":12.0,

        "costprice":23.0,

        "Title":"New Product T-shirt",

        "BarCode":null,

        "Vat":20.0,

        "PackQty":0,

        "image":"https://avasam.s3.amazonaws.com/avasam/05d86d7a-326e-47e9-b391-688579013619/07b2e4c3-b223-4caf-a556-147761eeca44.jpg",

        "video":null,

        "IsActive":false,

        "IsVarP":false,

        "SKUSmall":"Product is out of stock",

        "StockUpdateOn":"0001-01-01T00:00:00",

        "PriceUpdateOn":"0001-01-01T00:00:00",

        "Category":null,

        "CategoryId":null

}
],

"total":1,

"HasError":true,

"Message":""

}