最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

rest - FedEx Freight Pickup Cancellation API - "FREIGHT.PICKUPCONFIRMATIONCODE.INVALID" Error - Stack Overflow

programmeradmin1浏览0评论

I'm trying to cancel a freight pickup using the FedEx API, but I keep receiving the following error:

{
    "transactionId": "APIF_SV_PUDC_TxIDd7cc20b2-bee1-4131-89eb-a8bf3216057f",
    "errors": [
        {
            "code": "FREIGHT.PICKUPCONFIRMATIONCODE.INVALID",
            "message": "Missing or invalid confirmation number. Please update and try again."
        }
    ]
}

API Endpoint:

Request Payload - Valid Payload

{
  "associatedAccountNumber": {
    "value": "510XXXXX0"
  },
  "pickupConfirmationCode": "20230620COS457822",
  "remarks": "This is my remarks",
  "reason": "This is my reason",
  "contactName": "This is my contactName",
  "scheduledDate": "2025-03-19"
}

What I Have Tried:

Used a valid Pickup Confirmation Code obtained from a previous request. Tested multiple payload variations, including the exact sample payload from FedEx freight documentation. Verified that the API credentials and authentication tokens are correct. Checked if the issue is due to sandbox limitations by testing in the FedEx test environment.

Questions:

Has anyone encountered this error when canceling a freight pickup using the sandbox FedEx API? Are there any additional requirements for the Pickup Confirmation Code that I might be missing? Could this be a sandbox environment limitation, and would switching to a production account resolve it? Any insights or suggestions would be greatly appreciated!

发布评论

评论列表(0)

  1. 暂无评论