Skip to end of banner
Go to start of banner

Outward Sales Posting API (For ERP Systems) (Beta)

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Sales Order Posting

Outbound | POST  | {Client’s URL}

Summary

This API will call the channel with sales order details.

Description

This API will call the channel with the details of sales orders which are completed in Increff Omni. This will be triggered at a certain frequency from Increff Omni to the channels.

List of Indian State Names: State Names (Indian)

 

We can send these posting on these triggers

  • OUTWARD_ORDER_CREATE,

  • OUTWARD_ORDER_CANCEL,

  • OUTWARD_ORDER_COMPLETE ,

  • OUTWARD_ORDER_PARTIAL_CANCEL

Request

{
  "partnerCode": "partner1",
  "partnerLocationCode": "partnerLocationCode",
  "locationCode": "Wid235",
  "messageId": 1100,
  "orderCode": "order1",
  "parentOrderCode": null,
  "orderTime": "2020-10-16T20:22:28.000+05:30",
  "orderType": "SO",
  "paymentMethod": "COD",
  "isPriority": true,
  "channelName": "channel1",
  "channelType": "MARKETPLACE",
  "orderItems": [
    {
      "orderItemCode": "item1",
      "channelSkuCode": "sku1",
      "orderedQuantity": 10,
      "cancelledQuantity": 2,
      "channelDiscount": 1,
      "sellerDiscount": null,
      "sellingPricePerUnit": 30,
      "giftChargePerUnit": 2.8,
      "shippingCharge": null,
      "omsItemId": null,
      "barcode": "barcodeOrderItem"
    }
  ],
  "eventType": "OUTWARD_ORDER_COMPLETE",
  "eventTime": "2020-10-16T20:22:28.000+05:30",
  "shipments": [
    {
      "shipmentCode": "shipment1",
      "generatedInvoiceId": "invoiceId1",
      "generatedInvoiceDate": "2020-10-16T20:22:28.000+05:30",
      "invoiceDocumentUrl": "https://storage.googleapis.com/dev-oltp-nextscm-com/1200027112/MANIFEST/77a9230b-c335-4d9c-b50b-c0d5a43ee24f.pdf",
      "shippingLabelDocumentUrl": "https://storage.googleapis.com/dev-oltp-nextscm-com/1200027112/MANIFEST/77a9230b-c335-4d9c-b50b-c0d5a43ee24f.pdf",
      "externalInvoiceId": "code1",
      "externalInvoiceDate": "2020-10-16T20:22:28.000+05:30",
      "irn": "irn",
      "qrCode": "qrCode",
      "shipmentStatus": null,
      "shipmentItems": [
        {
          "channelSkuCode": "sku1",
          "orderItemCode": "item1",
          "channelDiscount": 1,
          "netTaxAmountPerUnit": 1,
          "netTaxAmountTotal": 10,
          "baseSellingPricePerUnit": 29,
          "baseSellingPriceTotal": 290,
          "sellingPricePerUnit": 30,
          "sellingPriceTotal": 300,
          "quantity": 10,
          "shippingChargePerUnit": null,
          "taxItems": [
            {
              "type": "Tax",
              "rate": 3,
              "taxPerUnit": 1,
              "taxTotal": 10
            }
          ],
          "barcode": "BarcodeShipmentItem"
        }
      ],
      "locationCode": null,
      "awbNumber": null,
      "transporter": "transporter",
      "packageSku": "packageSKU1",
      "deliveredAt": "2020-10-16T20:22:28.000+05:30"
    }
  ],
  "shippingAddress": {
    "name": "name",
    "line1": "address line 11",
    "line2": "address line 21",
    "line3": "address line 31",
    "phone": "9012345678",
    "email": "email2@gmail.com",
    "city": "Bengaluru",
    "state": "Karnataka",
    "zip": "560075",
    "country": "India"
  },
  "billingAddress": {
    "name": "name",
    "line1": "address line 1",
    "line2": "address line 2",
    "line3": "address line 3",
    "phone": "9876543210",
    "email": "email@gmail.com",
    "city": "Bengaluru",
    "state": "Karnataka",
    "zip": "560076",
    "country": "India"
  },
  "virtualSkuDefinitions": [],
  "isSplitRequired": null,
  "shippingCharges": null,
  "omsOrderId": null,
  "turnAroundTime": "2020-10-18T20:22:28.000+05:30"
}

 

Parameter Name

Data Type

Description

Mandatory

partnerCode

String

This represents the partner to which order was shipped to.

If Order is of type SO/STO, this field represents customer’s code

If Order is of type RTV, this field represents vendor’s code

For Marketplaces Orders, this field will be having the erp channel name which is mapped in Increff Omni

Yes

partnerLocationCode

String

This represents the partner’s location to which order was shipped to.

If Order is of type SO/STO, this field represents customer location’s code

If Order is of type RTV, this field represents vendor location’s code

Yes

isPriority

Boolean

Flag to identify wether an order is of priority or not

Yes

locationCode

String

Warehouse location from which order was fulfilled

Yes

 

orderCode

String

Unique code used by the channel to identify order

Yes

parentOrderCode

String

Parent order code  which can be null or empty or some duplicate value across orders. 

No

channelName

String

Channel name of the marketplace.

Yes

orderTime

String

Time at which order was placed at the channel in UNIX (UTC)

Yes

orderType

String

Can be - SO(Sales Order)/STO(Stock Transfer Order)/RTV(Return To Vendor), RPO(Replacement)

Yes

messageId

Long

Unique Identifier of a notification (for De-duplication)

Yes

paymentMethod

String

Possible values - COD, NCOD

Yes

omsOrderId

Long

Internal order id of OMS

No

orderItems

Object[]

List of order items

Yes

orderItems.orderItemCode

String

This is provided by the channel to uniquely identify each order item.

Yes

orderItems.channelskuCode

String

SKU code of order item

Yes

orderItems.orderedQuantity

int

Ordered Quantity

Yes

orderItems.cancelledQuantity

int

cancelledQuantity

Yes

orderItems.sellingPricePerUnit

double

sellingPricePerUnit

Yes

orderItems.giftChargePerUnit

Double

giftChargePerUnit

No

orderItems.channelDiscount

Double

Discount provided by channel per unit

No

orderItems.sellerDiscount

Double

Discount provided by seller per unit

No

orderItems.omsItemId

Long

Internal item id of OMS

No

orderItems.shippingCharge

Double

Shipping charge

No

orderItems.barcode

String

Barcode

Yes

eventType

String

Possible values : { OUTWARD_ORDER_CREATE,

OUTWARD_ORDER_CANCEL, OUTWARD_ORDER_COMPLETE ,

OUTWARD_ORDER_PARTIAL_CANCEL}

Yes

eventTime

String

Time of event creation

Yes

virtualSkuDefinitions

Object [ ]

List of virtual SKU definitions

No

virtualSkuDefinitions.virtualParentChannelSkuId

String

SKU code of virtual SKU

No

virtualSkuDefinitions.virtualParentBarcode

String

Barcode of parent SKU

No

virtualSkuDefinitions.childSkus

Object [ ]

List of child SKUs

No

childSkus.channelSkuCode

String

SKU code of child SKU

No

childSkus.qty

Integer

Quantity of child SKU

No

childSkus.barcode

String

Barcode of child SKU

No

isSplitRequired

Boolean

Flag to identify wether WMS had to split the order

Yes

channelType

String

Enum with possible values:ERP,MARKETPLACE

No

shippingCharges

Double

Shipping charges

No

shipments

Object[]

List of shipments

Yes

shipments.shipmentCode

String

Shipment code

Yes

shipments.locationCode

String

Warehouse location from which shipment was fulfilled

No

shipments.generatedInvoiceId

String

Invoice id for the shipment

No

shipments.generatedInvoiceDate

String

Invoice date in the sample format mentioned

No

shipments.externalInvoiceId

String

External invoice id

No

shipments.externalInvoiceDate

String

External invoice date

No

shipments.invoiceDocumentUrl

String

Url of the invoice document

No

shipments.shippingLabelDocumentUrl

String

Url of the shipping label document

No

shipments.irn

String

IRN code

No

shipments.qrCode

String

QR code

No

shipments.shipmentStatus

String

Status of the shipment

No

shipments.awbNumber

String

AWB number of shipment

No

shipments.shipmentItems

Object[]

Items belonging to this shipment

Yes

shipments.transporter

String

Transporter

No

shipments.packageSku

String

Package SKU

No

shipments.deliveredAt

String

Delivered Time

No

shipmentItems.channelSkuCode

String

SKU code of order item

Yes

shipments.locationCode

String

Fulfillment Location

Yes

shipmentItems.orderItemCode

String

This is provided by the channel to uniquely identify each order item.

Yes

shipmentItems.netTaxAmountPerUnit

Double

Per unit tax applicable for the SKU.

Yes

shipmentItems.netTaxAmountTotal

Double

Total tax applicable for the SKU

Yes

shipmentItems.baseSellingPricePerUnit

Double

Per unit base selling price of the SKU

Yes

shipmentItems.baseSellingPriceTotal

Double

Total base selling price of SKU

Yes

shipmentItems.sellingPricePerUnit

Double

Per unit selling price of the SKU including tax

Yes

shipmentItems.sellingPriceTotal

Double

Total selling price of the SKU 

Yes

shipmentItems.quantity

Integer

Quantity of the sku in the shipment item.

Yes

shipmentItems.shippingChargePerUnit

Double

Shipping charge per unit for a shipment item

No

shipmentItems.channelDiscount

Double

Channel discount of item

No

shipmentItems.taxItems

Object

Distribution of tax with tax type

Yes

shipmentItems.barcode

String

Barcode

Yes

irn

String

Irn generated on Govt. portal while e-invoicing

No

qrCode

String

QrCode generated on Govt. portal while e-invoicing

No

shipmentStatus

String

Possible values: {OPEN,CLOSED, INVOICED, MANIFESTED, DISPATCHED, CANCELLED, DELIVERED}

No

taxItems.type

String

Type of tax applicable

Yes

taxItems.rate

Double

Tax rate for this tax type

Yes

taxItems.taxPerUnit

Double

Tax applicable for this type of tax per unit

Yes

taxItems.taxTotal

Double

Total tax applicable for this type of tax

Yes

shippingAddress

Object

Shipping address of the customer

Yes

shippingAddress.name

String

Name of customer

Yes

shippingAddress.line1

String

1st line of customer’s address

Yes

shippingAddress.line2

String

2nd line of customer’s address

No

shippingAddress.line3

String

3rd line of customer’s address

No

shippingAddress.city

String

City of customer

Yes

shippingAddress.state

String

State of customer

Yes

shippingAddress.zip

String

ZIP/Pin code of customer

Yes

shippingAddress.country

String

Country of customer

Yes

shippingAddress.email

String

Email of customer

No

shippingAddress.phone

String

Phone Number of customer

No

billingAddress

Object

Billing address of the customer

yes

billingAddress.name

String

Name of customer

Yes

billingAddress.line1

String

1st line of customer’s address

Yes

billingAddress.line2

String

2nd line of customer’s address

No

billingAddress.line3

String

3rd line of customer’s address

No

billingAddress.city

String

City of customer

Yes

billingAddress.state

String

State of customer

Yes

billingAddress.zip

String

ZIP/Pin code of customer

Yes

billingAddress.country

String

Country of customer

Yes

billingAddress.email

String

Email of customer

No

billingAddress.phone

String

Phone Number of customer

No

turnAroundTime

String

Turn around time

No

 

Response

{
    "hasError": false,
    "errorMessage":"message"
}

 

HttpStatus : 200

 

  • No labels