We use grapql API to create_order, we send partner_line_item_id along with API, After create order success we get the response from shiphero and also store line_item id that return from shiphero to our end for reference.
The problem is both partner_line_item_id and id is different from create the order and get order api. See example below
Response from create_order api
{
“order_create”: {
“request_id”: “5e9ba44e2a46d9fa6b9815ba”,
“complexity”: 10,
“order”: {
“id”: “T3JkZXI6MTIzMTYyMjM5”,
“order_number”: “100162”,
“line_items”: {
“edges”: [
{
“node”: {
"id": “TGluZUl0ZW06MzYxOTU5MjE1”,
"partner_line_item_id": “25”,
}
}
}
}
When get_order id T3JkZXI6MTIzMTYyMjM5 this is the response that we got
{
“data”: {
“order”: {
“request_id”: “5ea7fc448d74b1ffed5cda41”,
“complexity”: 201,
“data”: {
“id”: “T3JkZXI6MTIzMTYyMjM5”,
“line_items”: {
“pageInfo”: {
“hasNextPage”: false,
“startCursor”: “YXJyYXljb25uZWN0aW9uOjA=”,
“endCursor”: “YXJyYXljb25uZWN0aW9uOjA=”
},
“edges”: [
{
“node”: {
“line_item”: {
"id": “TGluZUl0ZW06MzYyNDA1MTM3”,
"partner_line_item_id": “25-123162239-1”,
“quantity”: 1
}
}
}
}
}
You see both id and partner_line_item_id is different? we want this id to map between data line from our site and your site,
Any suggestion why the id and partner_line_item_id is different? what should we do?
Thanks