API Docs
YMS API
Appointment/Level 1
POST Cancel Appointment

POST Cancel appointment

Introduction

Cancels an existing appointment in the Yard Management System (YMS). This endpoint marks the appointment as cancelled and releases any associated resources such as reserved time slots and location assignments. Requires a cancellation reason for audit tracking. Used when carriers cannot fulfill scheduled visits, when customers reschedule operations, or when operational constraints prevent appointment completion. Cancelled appointments remain in the system for historical reporting.

API Request

POST /appointment/{appointmentId}/cancel

Body Request Parameters

{
  "reason": "string",
  "missAppointment": true,
  "appointmentTimeTo": "string",
  "note": "string",
  "forceCancel": true
}

Request Parameters

NameLocationTypeRequiredDescription
appointmentIdpathstringYesAppointment ID
X-Tenant-IDheaderstringNonone
X-Yard-IDheaderstringNonone
Item-Time-ZoneheaderstringNonone
AuthorizationheaderstringNonone
bodybodyAppointmentCancelCmdNonone

Response Example

200 Response

{
  "id": 0,
  "appointmentId": "",
  "appointmentType": "",
  "carrierId": "",
  "carrierName": "",
  "finalCarrierId": "",
  "subCarrierName": "",
  "appointmentTime": "",
  "appointmentStatus": "",
  "customerIds": [
    ""
  ],
  "externalId": 0,
  "entryId": "",
  "referenceCode": "",
  "driverId": "",
  "createdTime": "",
  "createdBy": "",
  "updatedTime": "",
  "updatedBy": "",
  "customerNames": [
    ""
  ],
  "appointmentActionViews": [
    {
      "id": 0,
      "appointmentId": "",
      "appointmentType": "",
      "serviceType": "",
      "appointmentTime": "",
      "referenceIds": [
        ""
      ],
      "createdTime": "",
      "createdBy": "",
      "updatedTime": "",
      "updatedBy": "",
      "loadViews": [
        {
          "id": "",
          "loadId": "",
          "loadStatus": "",
          "loadNo": "",
          "shipMethod": "",
          "carrierId": "",
          "appointmentTime": "",
          "appointmentId": "",
          "orderIds": [
            ""
          ],
          "customerId": "",
          "masterBol": "",
          "sealNo": "",
          "customerName": "",
          "carrierName": "",
          "orderViews": [
            {
              "id": 0,
              "orderId": "",
              "orderStatus": "",
              "customerId": "",
              "poNo": "",
              "referenceNo": "",
              "retailer": "",
              "shipFrom": "",
              "shipTo": "",
              "totalPalletQty": 0,
              "totalCartonQty": 0,
              "itemInfos": [
                {
                  "itemId": "",
                  "itemName": "",
                  "itemQty": "",
                  "palletQty": "",
                  "itemSpecDesc": "",
                  "itemSpecName": "",
                  "uomId": "",
                  "qty": ""
                }
              ],
              "customerName": "",
              "carrierName": "",
              "shipToAddress": {
                "id": "",
                "name": "",
                "country": "",
                "state": "",
                "city": "",
                "zipCode": "",
                "fax": "",
                "address1": "",
                "address2": "",
                "contact": "",
                "phone": "",
                "extension": "",
                "email": "",
                "orgId": "",
                "orgName": "",
                "referenceNo": "",
                "batchCode": "",
                "storeNo": "",
                "shorthand": "",
                "toHome": false,
                "tags": [
                  ""
                ],
                "latitude": "",
                "longitude": "",
                "crmAddressId": ""
              },
              "shipFromAddress": {
                "id": "",
                "name": "",
                "country": "",
                "state": "",
                "city": "",
                "zipCode": "",
                "fax": "",
                "address1": "",
                "address2": "",
                "contact": "",
                "phone": "",
                "extension": "",
                "email": "",
                "orgId": "",
                "orgName": "",
                "referenceNo": "",
                "batchCode": "",
                "storeNo": "",
                "shorthand": "",
                "toHome": false,
                "tags": [
                  ""
                ],
                "latitude": "",
                "longitude": "",
                "crmAddressId": ""
              },
              "appointmentTime": "",
              "dynamicFieldValues": [
                {
                  "entityId": "",
                  "entityType": "",
                  "fieldCode": "",
                  "value": "",
                  "fieldName": "",
                  "longValue": "",
                  "shortValue": ""
                }
              ],
              "proNos": [
                ""
              ],
              "invoicePros": [
                ""
              ],
              "doNos": [
                ""
              ],
              "tripNo": "",
              "shippedTime": ""
            }
          ],
          "dynamicFieldValues": [
            {
              "entityId": "",
              "entityType": "",
              "fieldCode": "",
              "value": "",
              "fieldName": "",
              "longValue": "",
              "shortValue": ""
            }
          ],
          "equipmentType": "",
          "equipmentNo": "",
          "referenceNoList": [
            ""
          ],
          "poNoList": [
            ""
          ],
          "templateLoadKey": "",
          "proNos": [
            ""
          ],
          "invoicePros": [
            ""
          ],
          "doNos": [
            ""
          ],
          "tripNos": [
            ""
          ],
          "loadType": "",
          "stagingLocationName": "",
          "shippedTime": ""
        }
      ],
      "receiptViews": [
        {
          "id": 0,
          "receiptId": "",
          "receiptStatus": "",
          "receiptType": "",
          "poNo": "",
          "carrierId": "",
          "customerId": "",
          "referenceNo": "",
          "equipmentType": "",
          "equipmentNo": "",
          "totalPalletQty": 0,
          "itemLines": [
            {
              "itemId": "",
              "itemName": "",
              "itemQty": "",
              "palletQty": "",
              "itemSpecDesc": "",
              "itemSpecName": "",
              "uomId": "",
              "qty": ""
            }
          ],
          "appointmentTime": "",
          "appointmentId": "",
          "sealNo": "",
          "dataChannel": "",
          "eventTime": "",
          "extraData": "",
          "carrierName": "",
          "customerName": "",
          "dynamicFieldValues": [
            {
              "entityId": "",
              "entityType": "",
              "fieldCode": "",
              "value": "",
              "fieldName": "",
              "longValue": "",
              "shortValue": ""
            }
          ],
          "proNos": [
            ""
          ],
          "invoicePros": [
            ""
          ],
          "doNos": [
            ""
          ],
          "tripNo": ""
        }
      ]
    }
  ],
  "driverSnapshot": "",
  "driverSnapshotParse": {
    "driverId": "",
    "firstName": "",
    "middleName": "",
    "lastName": "",
    "driverPhone": "",
    "phone": "",
    "licenseNumber": "",
    "licenseExpirationDate": "",
    "licenseState": "",
    "email": "",
    "licensePlate": "",
    "carrierName": "",
    "carrierId": "",
    "usdot": "",
    "equipmentNo": "",
    "equipmentType": "",
    "cargoStatus": ""
  },
  "serviceTypes": [
    ""
  ],
  "checkedInTime": "",
  "carrierFinishTime": "",
  "driverFinishTime": "",
  "finalCarrierView": {
    "carrierId": "",
    "carrierName": "",
    "scac": [
      ""
    ],
    "usdot": "",
    "mcNumber": "",
    "verified": false,
    "createdTime": "",
    "createdBy": "",
    "updatedTime": "",
    "updatedBy": "",
    "carrierStatus": "",
    "knownName": "",
    "orgIds": [
      ""
    ]
  },
  "cargoStatus": "",
  "notes": ""
}

Response

Status CodeDefinitionDescriptionData Model
200OK (opens in a new tab)noneAppointmentView