Performs persist operations for a specified shipment

POST /V1/shipment/

Performs persist operations for a specified shipment.

Body

Responses

POST /V1/shipment/
curl \
 -X POST https://magento2.winkelstraat.mac/rest/all/V1/shipment/ \
 -d '{"entity":{"billing_address_id":42,"created_at":"string","customer_id":42,"email_sent":42,"entity_id":42,"increment_id":"string","order_id":42,"packages":[{"extension_attributes":{}}],"shipment_status":42,"shipping_address_id":42,"shipping_label":"string","store_id":42,"total_qty":42.0,"total_weight":42.0,"updated_at":"string","items":[{"additional_data":"string","description":"string","entity_id":42,"name":"string","parent_id":42,"price":42.0,"product_id":42,"row_total":42.0,"sku":"string","weight":42.0,"extension_attributes":{"list_price":42.0,"size":"string","color":"string","merchant_product_reference":"string","category_code":"string","image":"string","mpn":"string","msrp":42.0,"manufacturer_code":"string","manufacturer_name":"string","merchant_code":"string","merchant_name":"string","merchant_city":"string","merchant_commission_percentage":42.0,"merchant_deficiency_percentage":42.0,"merchant_handling_fee":42.0,"is_sale":true,"return_item_fee":42.0,"base_return_item_fee":42.0,"price_incl_tax":42.0,"base_price_incl_tax":42.0,"is_outlet":true,"qty_to_deduct":42},"order_item_id":42,"qty":42.0}],"tracks":[{"order_id":42,"created_at":"string","entity_id":42,"parent_id":42,"updated_at":"string","weight":42.0,"qty":42.0,"description":"string","extension_attributes":{"label_filename":"string","status":"string","insured":true},"track_number":"string","title":"string","carrier_code":"string"}],"comments":[{"is_customer_notified":42,"parent_id":42,"extension_attributes":{},"comment":"string","is_visible_on_front":42,"created_at":"string","entity_id":42}],"extension_attributes":{"source_code":"string","customer_email":"string","customer_firstname":"string","customer_lastname":"string","customer_middlename":"string","status":"string","delivered_at":"string","collected_at":"string","merchant_code":"string","delayed_notification_send":"string","packed_at":"string","logistics_service_provider_code":"string","external_funding":"string","company_id":42}}}'
Request examples
{
  "entity": {
    "billing_address_id": 42,
    "created_at": "string",
    "customer_id": 42,
    "email_sent": 42,
    "entity_id": 42,
    "increment_id": "string",
    "order_id": 42,
    "packages": [
      {
        "extension_attributes": {}
      }
    ],
    "shipment_status": 42,
    "shipping_address_id": 42,
    "shipping_label": "string",
    "store_id": 42,
    "total_qty": 42.0,
    "total_weight": 42.0,
    "updated_at": "string",
    "items": [
      {
        "additional_data": "string",
        "description": "string",
        "entity_id": 42,
        "name": "string",
        "parent_id": 42,
        "price": 42.0,
        "product_id": 42,
        "row_total": 42.0,
        "sku": "string",
        "weight": 42.0,
        "extension_attributes": {
          "list_price": 42.0,
          "size": "string",
          "color": "string",
          "merchant_product_reference": "string",
          "category_code": "string",
          "image": "string",
          "mpn": "string",
          "msrp": 42.0,
          "manufacturer_code": "string",
          "manufacturer_name": "string",
          "merchant_code": "string",
          "merchant_name": "string",
          "merchant_city": "string",
          "merchant_commission_percentage": 42.0,
          "merchant_deficiency_percentage": 42.0,
          "merchant_handling_fee": 42.0,
          "is_sale": true,
          "return_item_fee": 42.0,
          "base_return_item_fee": 42.0,
          "price_incl_tax": 42.0,
          "base_price_incl_tax": 42.0,
          "is_outlet": true,
          "qty_to_deduct": 42
        },
        "order_item_id": 42,
        "qty": 42.0
      }
    ],
    "tracks": [
      {
        "order_id": 42,
        "created_at": "string",
        "entity_id": 42,
        "parent_id": 42,
        "updated_at": "string",
        "weight": 42.0,
        "qty": 42.0,
        "description": "string",
        "extension_attributes": {
          "label_filename": "string",
          "status": "string",
          "insured": true
        },
        "track_number": "string",
        "title": "string",
        "carrier_code": "string"
      }
    ],
    "comments": [
      {
        "is_customer_notified": 42,
        "parent_id": 42,
        "extension_attributes": {},
        "comment": "string",
        "is_visible_on_front": 42,
        "created_at": "string",
        "entity_id": 42
      }
    ],
    "extension_attributes": {
      "source_code": "string",
      "customer_email": "string",
      "customer_firstname": "string",
      "customer_lastname": "string",
      "customer_middlename": "string",
      "status": "string",
      "delivered_at": "string",
      "collected_at": "string",
      "merchant_code": "string",
      "delayed_notification_send": "string",
      "packed_at": "string",
      "logistics_service_provider_code": "string",
      "external_funding": "string",
      "company_id": 42
    }
  }
}
Response examples (200)
{
  "billing_address_id": 42,
  "created_at": "string",
  "customer_id": 42,
  "email_sent": 42,
  "entity_id": 42,
  "increment_id": "string",
  "order_id": 42,
  "packages": [
    {
      "extension_attributes": {}
    }
  ],
  "shipment_status": 42,
  "shipping_address_id": 42,
  "shipping_label": "string",
  "store_id": 42,
  "total_qty": 42.0,
  "total_weight": 42.0,
  "updated_at": "string",
  "items": [
    {
      "additional_data": "string",
      "description": "string",
      "entity_id": 42,
      "name": "string",
      "parent_id": 42,
      "price": 42.0,
      "product_id": 42,
      "row_total": 42.0,
      "sku": "string",
      "weight": 42.0,
      "extension_attributes": {
        "list_price": 42.0,
        "size": "string",
        "color": "string",
        "merchant_product_reference": "string",
        "category_code": "string",
        "image": "string",
        "mpn": "string",
        "msrp": 42.0,
        "manufacturer_code": "string",
        "manufacturer_name": "string",
        "merchant_code": "string",
        "merchant_name": "string",
        "merchant_city": "string",
        "merchant_commission_percentage": 42.0,
        "merchant_deficiency_percentage": 42.0,
        "merchant_handling_fee": 42.0,
        "is_sale": true,
        "return_item_fee": 42.0,
        "base_return_item_fee": 42.0,
        "price_incl_tax": 42.0,
        "base_price_incl_tax": 42.0,
        "is_outlet": true,
        "qty_to_deduct": 42
      },
      "order_item_id": 42,
      "qty": 42.0
    }
  ],
  "tracks": [
    {
      "order_id": 42,
      "created_at": "string",
      "entity_id": 42,
      "parent_id": 42,
      "updated_at": "string",
      "weight": 42.0,
      "qty": 42.0,
      "description": "string",
      "extension_attributes": {
        "label_filename": "string",
        "status": "string",
        "insured": true
      },
      "track_number": "string",
      "title": "string",
      "carrier_code": "string"
    }
  ],
  "comments": [
    {
      "is_customer_notified": 42,
      "parent_id": 42,
      "extension_attributes": {},
      "comment": "string",
      "is_visible_on_front": 42,
      "created_at": "string",
      "entity_id": 42
    }
  ],
  "extension_attributes": {
    "source_code": "string",
    "customer_email": "string",
    "customer_firstname": "string",
    "customer_lastname": "string",
    "customer_middlename": "string",
    "status": "string",
    "delivered_at": "string",
    "collected_at": "string",
    "merchant_code": "string",
    "delayed_notification_send": "string",
    "packed_at": "string",
    "logistics_service_provider_code": "string",
    "external_funding": "string",
    "company_id": 42
  }
}
Response examples (401)
{
  "message": "string",
  "errors": [
    {
      "message": "string",
      "parameters": [
        {
          "resources": "string",
          "fieldName": "string",
          "fieldValue": "string"
        }
      ]
    }
  ],
  "code": 42,
  "parameters": [
    {
      "resources": "string",
      "fieldName": "string",
      "fieldValue": "string"
    }
  ],
  "trace": "string"
}
Response examples (default)
{
  "message": "string",
  "errors": [
    {
      "message": "string",
      "parameters": [
        {
          "resources": "string",
          "fieldName": "string",
          "fieldValue": "string"
        }
      ]
    }
  ],
  "code": 42,
  "parameters": [
    {
      "resources": "string",
      "fieldName": "string",
      "fieldValue": "string"
    }
  ],
  "trace": "string"
}