10-18-2023 11:45 AM
Hi,
Is there an issue affecting the fulfillment API? All my requests fail to create the shipment status, it returns an unexpected 32200 error message.
Example as below:
Web Service URI: https://api.ebay.com/sell/fulfillment/v1/order/18-10669-88930/shipping_fulfillment
Request Body:
{
"lineItems": [
{
"lineItemId": "324424973644",
"quantity": "1"
}
],
"shippedDate": "2023-10-18T17:30:00.768Z",
"shippingCarrierCode": "RoyalMail",
"trackingNumber": "3205832800004EB3EA785"
}
Call Response:
Status: 400 Bad Request
Response body:
{
"errors": [
{
"errorId": 32200,
"domain": "API_FULFILLMENT",
"category": "REQUEST",
"message": "Invalid line item id: '324424973644'",
"parameters": [
{
"name": "lineItemId",
"value": "324424973644"
}
]
}
]
}
Tokens and lineItemId are valid, but the error message says "Invalid line item id: '324424973644'"
Please advice why this error happens and how to resolve?
Thanks!
Solved! Go to Best Answer
10-18-2023 01:58 PM
Issue now resolved. User error 🙂
Turns out the lineItemId is different to what I thought the lineItemId actually is. The item number visible from your eBay order page is referred to as the legacyItemId. The actual lineItemId can be retrieved using the getOrders request via the Fulfillment API. Hopefully this helps someone out in the same situation.
eBay really should update their documentation to let developers know about this.
10-18-2023 01:58 PM
Issue now resolved. User error 🙂
Turns out the lineItemId is different to what I thought the lineItemId actually is. The item number visible from your eBay order page is referred to as the legacyItemId. The actual lineItemId can be retrieved using the getOrders request via the Fulfillment API. Hopefully this helps someone out in the same situation.
eBay really should update their documentation to let developers know about this.