API Docs
API Reference
DN Cancellation

DN Cancellattion API

This article introduces the general DN Cancellation API for easily understanding and applying this API.

Introduction

The DN Cancellation API is used to cancel an order in the WMS. When called, this API ensures that the designated DN associated with an order is invalidated within the system, preventing the order from being processed or shipped. It plays a key role in managing inventory and operations, especially when changes or cancellations are necessary after an order has been created.

API Request

API: PUT /edi/outbound/order/cancel
Body Request:

FieldNameDescriptionDataTypeLengthRequiredVersionSample
Root
1CompanyIDHard code, assigned by UNIS system admin.string15Yes1.4"LT"
2FacilityIDFacilityID indicates which warehouse UNIS ship from. It should be assigned by UNIS CSRstring15Yes1.4"889"
3CustomerIDHard code, assigned by UNIS accounting dept.string15Yes1.4"AUKINT0001"
4PONoYour customer's Purchse Order Number, doesn't need to be unique.string50No1.4"8957515451-10"
5ReferenceNoReference Number, Unique identifier, indicate an order.string50No1.4"LIV2020021804-10"
6CancelNoteCreated Fromstring50No1.4"Cancel by consumer"

API Return

It will return a message to indicate whether the cancellation successes or not. For more details, please refer to the Example below.

Example

Request

// Url
http://preview.logisticsteam.com/shared/bam/v1/public/edi/outbound/order/cancel
 
// Body
{
    "CompanyID": "LT",
    "CustomerID": "AUKINT0001",
    "FacilityID": "889",
    "PONo": "2007331_1",
    "ReferenceNo": "liv202001159-1",
    "CancelNote": "Cancel for testing"
}

Response

  // Success return
{
    "success": true
}
// Failed return
{
    "error": "Not found order"
}