Konnektive Receiving Error when sending orders

Konnektive receiving error when sending orders.

Invalid order. Details: partner_line_item_id should be unique across line items

Hi @laurenlevel , welcome to the community!

Please send over a request_id and I can take a closer look.

Best,
Theresa

Hi @theresa, Order ID: 856D077620

Hi @laurenlevel
Apologies, I was just going to look up the mutation with the request_id, but when I expanded the image I was able to see that the call is right there. You have two line items in the mutation, but they are the same. Both of the line items have the partner_line_item_id as 4058. The ids need to be unique in the same order.


Best,
Theresa

Thanks Teresa.

Can you also answer this for me? Is this relevant to what your answer was?

Hey, can you ask ship hero what these mean:

Syntax Error GraphQL (1:289) Invalid character escape sequence: \2. 1: mutation { order_create( data: { order_number: “F474456680” order_date: “2022-03-09 23:30:30” total_tax: “7.15” subtotal: “107.88” total_discounts: “0.00” total_price: “115.03” shipping_address: { first_name: “Tamara” last_name: “Spears” company: “” address1: “109 2nd St a” address2: “1\2” city: “Bordentown” state: “New Jersey” state_code: “NJ” zip: “08505” country: “US” country_code: “US” phone: “6095562804” } line_items: [ { partner_line_item_id: “185609” sku: “855652008115” quantity: 2 price: “79.98” product_name: "Pu

and

partner_line_item_id 184988 already exist

Hi @laurenlevel ,

The first error is related to the 1\2 that is in your address2 field. It is not allowed to have a backslash( \ ). You can change it to a forward slash, or a dash (/,-) and that should clear it up. As for the partner_line_item_id, you cannot have it the same as one that already exists. Each partner_line_item_ id must be unique.

Best,
Theresa

1 Like

Thank you! What is a partner line item?

Hi @laurenlevel,
The partner_line_item_id is the id you ( as shiphero’s partner) give to each line item. Say an order is for 3 blue widgets and 2 green widgets. Each line that contains the items is a line item.

For instance, looking at the image above, the SKU 855652008115 is on its own line in the order and the partner_line_item_id is 185609. If you add another line to the order, it has to have a different id.

Best,
Theresa

1 Like

Hi!

They responded with this:

kk sent me this:

t responseBody| |HTTP/1.1 200 OK Date: Thu, 10 Mar 2022 17:21:21 GMT Content-Type: application/json Content-Length: 121 Connection: keep-alive Server: nginx X-Frame-Options: sameorigin X-XSS-Protection: 1; mode=block X-Content-Type-Options: nosniff Strict-Transport-Security: max-age=5184000; includeSubDomains Cache-Control: no-cache Expires: Pragma: no-cache { data :{ order_create :{ request_id : 622a339100b823a70ade6d3b , complexity :10, order :{ id : T3JkZXI6MjU1MTI3NTM4 }}} }|

Let me know what you need from me!

Thanks,

Lauren

Hi again,

I just received this note from Shiphero:

{{ HTTP/1.1 200 OK Date: Mon, 14 Mar 2022 16:20:23 GMT Content-Type: application/json Content-Length: 234 Connection: keep-alive Server: nginx X-Frame-Options: sameorigin X-XSS-Protection: 1; mode=block X-Content-Type-Options: nosniff Strict-Transport-Security: max-age=5184000; includeSubDomains Cache-Control: no-cache Expires: Pragma: no-cache { errors :[{ message : Invalid order. Details: partner_line_item_id should be unique across line items , operation : order_create , field : order_create , request_id : 622f6b4759316f3ebdab1155 , code :3}], data :{ order_create :null }}} }

Can you take a peek and let me know what needs to be done?

Thanks!
Lauren

Hi Lauren,

This is the same issue as the previous ones.
The partner line item id needs to be different for every line item. In the mutation, it has 4245 as the id of both of the line items. The partner_line_item_id needs to be different for each line item.

Best,
Theresa