cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Fulfillment API returns unexpected 32200 error - Invalid line item id

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!

Message 1 of 2
latest reply
1 BEST ANSWER

Accepted Solutions

Fulfillment API returns unexpected 32200 error - Invalid line item id

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.

View Best Answer in original post

Message 2 of 2
latest reply
1 REPLY 1

Fulfillment API returns unexpected 32200 error - Invalid line item id

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.

Message 2 of 2
latest reply