0

Can someone help me about the shipment. How can I pass the MSI source code to the Shipment Create API?

Thanks

  • provide us the endpoint and payload you are using – Philipp Sander Aug 8 at 14:56
  • /V1/order/{orderId}/ship – Moin Malek Aug 8 at 15:02
  • please edit your question with the payload you are using – Philipp Sander Aug 8 at 15:06
0

You can achieve this through rest API /V1/order/{orderId}/ship I did this by adding the source code into the API.

{
  "items": [
    {
      "extension_attributes": {},
      "order_item_id": 1482,
      "qty": 1
    }
  ],
  "notify": false,
  "appendComment": true,
  "comment": {
    "extension_attributes": {},
    "comment": "Shipment Create",
    "is_visible_on_front": 0
  },
  "tracks": [
    {
      "extension_attributes": {},
      "track_number": "XXXXXXXXXXXXXX",
      "title": "Custom",
      "carrier_code": "custom"
    }
  ],
  "arguments": {
    "extension_attributes": {
      "source_code": "source_code"
    }
  }
}

Thanks

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.