PreRelease

The API stores order information via a POST request, with the status set as ‘pre-release’.

endpoint : https://api.ship-cheap.com/api/openapi/preRelease/create

Parameter Description:
“preRelease”:
“1”: Pre-release (only push creation information)
“2”: Pre-release (push one message per day for four days)
“3”: Pre-release (push four messages per day)

POST : https://api.ship-cheap.com/api/openapi/preRelease/create

{
    "orderNO": "testPre111",
    "from": {
        "personName": "Sender Name",
        "company": "Sender Company",
        "countryCode": "US",
        "phone": "9999999999",
        "stateCode": "CA",
        "city": "San Francisco",
        "addressLine1": "215 Clayton St.",
        "addressLine2": "1092,IFC",
        "zipCode": "94117"
    },
    "to": {
        "personName": "Recipient Name",
        "company": "Recipient Company",
        "countryCode": "US",
        "stateCode": "CA",
        "phone": "9999999999",
        "city": "Inglewood",
        "addressLine1": "11222 S La Cienega BLVD",
        "addressLine2": "1092,IFC",
        "zipCode": "90304"
    },
    "parcels": [
        {
            "packageNum": 1,
            "length": "5",
            "width": "5",
            "height": "5",
            "distanceUnit": "in",
            "weight": "4",
            "massUnit": "lb",
            "packageCode": "your_package",
            "extra": {
                "insurance": 399,
                "isCod": true,
                "codAmount": 399,
                "paymentMethod": "any",
                "dryIceWeight": 2
            }
        }
    ],
    "extra": {
        "reference": "gggggggggg",
        "reference2": "ttttttttttttt"
    },
    "preRelease":"1"
}

Response :
{
    "code": 200,
    "message": "Success",
    "data": {
        "orderNo": "testPre112001"
    },
    "sucess": true
}
作者:admin  创建时间:2025-11-20 10:19
最后编辑:admin  更新时间:2025-11-24 16:46