API GENERATE AIRWAYBILL

Description

API for insert order and generated the airwaybill on demand

URL

SANDBOXhttps://apiv2.jne.co.id:10202/tracing/api/generatecnote
LIVE{{URL_LIVE}}

SANDBOX

usernameTESTAPI
api_key25c898a9faea1a100859ecd9ef674548

LIVE

username{{USER_LIVE}}
api_key{{API_KEY}}

METHOD :??POST

REQUEST

  • HEADER
Content-Typeapplication/x-www-form-urlencoded
User-Agent(Fiiled with framework request, Ex: Java-Request)
  • BODY

*mandatory

username*
api_key*
OLSHOP_BRANCH*VARCHAR(10 BYTE)Value of this Parameter is Branch code
OLSHOP_CUST*VARCHAR(10 BYTE)Values is your Cust no
OLSHOP_ORDERID*VARCHAR(20 BYTE)Value of this Parameter is Order Id of the goods
OLSHOP_SHIPPER_NAME*VARCHAR(30 BYTE)Value of this Parameter is Name of Shipper
OLSHOP_SHIPPER_ADDR1*VARCHAR(30 BYTE)Value of this Parameter is Address 1 of Shipper
OLSHOP_SHIPPER_ADDR2*VARCHAR(30 BYTE)Value of this Parameter is Address 2 of Shipper
OLSHOP_SHIPPER_ADDR3VARCHAR(30 BYTE)Value of this Parameter is Address 3 of Shipper
OLSHOP_SHIPPER_CITY*VARCHAR(20 BYTE)Value of this Parameter is City of Shipper
OLSHOP_SHIPPER_REGIONVARCHAR(20 BYTE)Value of this Parameter is Region of Shipper
OLSHOP_SHIPPER_ZIP*VARCHAR(5 BYTE)Value of this Parameter is zip of Shipper
OLSHOP_SHIPPER_PHONE*NUMBER (15 BYTE)Value of this Parameter is Phone of Shipper
OLSHOP_RECEIVER_NAME*VARCHAR(30 BYTE)Value of this Parameter is Name of Customer
OLSHOP_RECEIVER_ADDR1*VARCHAR(30 BYTE)Value of this Parameter is Address 1 of Customer
OLSHOP_RECEIVER_ADDR2*VARCHAR(30 BYTE)Value of this Parameter is Address 2 of Customer
OLSHOP_RECEIVER_ADDR3VARCHAR(30 BYTE)Value of this Parameter is Address 3 of Customer
OLSHOP_RECEIVER_CITY*VARCHAR(20 BYTE)Value of this Parameter is City of Customer
OLSHOP_RECEIVER_REGIONVARCHAR(20 BYTE)Value of this Parameter is Region of Customer
OLSHOP_RECEIVER_ZIP*VARCHAR(5 BYTE)Value of this Parameter is zip of Customer
OLSHOP_RECEIVER_PHONE*NUMBER (15 BYTE)Value of this Parameter is Phone of Customer
OLSHOP_QTY*NUMBER(5)Value of this Parameter is Qty of the goods (Number)
OLSHOP_WEIGHT*NUMBER(3)Value of this Parameter is Weight of the goods (Number)
OLSHOP_GOODSDESC*VARCHAR(60 BYTE)Value of this Parameter is Description of the goods
OLSHOP_GOODSVALUE*NUMBER(12 BYTE)Value of this Parameter is Amount of the goods
OLSHOP_GOODSTYPE*VARCHAR(1 BYTE)Default value ???2??? (No quotes)
OLSHOP_INSTVARCHAR(60 BYTE)Value of this Parameter is Instruction of the goods
OLSHOP_INS_FLAG*VARCHAR (1 Byte)Fill ???Y??? if insurance and fill ???N??? if not
OLSHOP_ORIG*VARCHAR(10 BYTE)Value of this Parameter is Origin of the resellers value is CGK10000
OLSHOP_DEST*VARCHAR(10 BYTE)Value of this Parameter is Destination of the goods (with Code)
OLSHOP_SERVICE*VARCHAR(10 BYTE)Value of this Parameter is Service of the goods (Value REG, YES, SS)
OLSHOP_COD_FLAG*VARCHAR (3 Byte)Fill ???YES??? if COD and fill ???N??? if not
OLSHOP_COD_AMOUNT*NUMBER(12 BYTE)Value of this Parameter is COD Amount of the goods

RESULT FROM API

  • Success response
{
    "detail": [
        {
            "status": "sukses",
            "cnote_no": "0109401900003724"
        }
    ]
}
  • Error response : If using the same Order ID
{
    "detail": [
        {
            "status": "Error",
            "reason": "Transaction no. already exists, please try with another",
            "cnote_no": "0109401900003724"
        }
    ]
}
  • Error response : Incorrect Username / API key
{
    "error": "Username Or API KEY Not Found.",
    "status": "false"
}