order.ship

Create a shipment for an order's shippable lines (a cargo extension or a manual carrier) — writes the VUK 509 forward fields.

Payload

fieldtyperequirednotes
orderIdstring (/^ord_[a-zA-Z0-9]{1,32}$/)yes
shipmentIdstring (/^shp_[a-zA-Z0-9]{1,32}$/)yes
extensionIdconst "manual" | string (/^[a-z0-9-]+\.[a-z0-9-]+$/)yes
carrierCodestring (/^[A-Z0-9_]{2,32}$/)no
carrierNamestring (≤60 chars)yes
carrierVknstring (/^\d{10}$/)no
serviceCodestring (≤32 chars)no
providerShipmentIdstring (≤80 chars)no
providerOfferIdstring (≤80 chars)no
trackingNumberstring (≤64 chars)no
trackingUrlstring (≤300 chars)no
labelUrlstring (≤600 chars)no
labelFormat"PDF" | "JPG" | "ZPL" | "ZPLII"no
parcelobjectyes
weightGrinteger (1..100000)yes
lengthCminteger (1..200)yes
widthCminteger (1..200)yes
heightCminteger (1..200)yes
recipientobjectyes
namestring (≤120 chars)yes
ilstring (≤40 chars)yes
il_plakastring (/^\d{2}$/)yes
ilcestring (≤60 chars)yes
addressstring (≤500 chars)yes
priceKurusinteger (0..10000000000000)no
codAmountKurusinteger (0..10000000000000)no
testbooleanyes
linesarray<object> (≤50)yes

JSON Schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "orderId": {
      "type": "string",
      "pattern": "^ord_[a-zA-Z0-9]{1,32}$"
    },
    "shipmentId": {
      "type": "string",
      "pattern": "^shp_[a-zA-Z0-9]{1,32}$"
    },
    "extensionId": {
      "anyOf": [
        {
          "type": "string",
          "const": "manual"
        },
        {
          "type": "string",
          "pattern": "^[a-z0-9-]+\\.[a-z0-9-]+$"
        }
      ]
    },
    "carrierCode": {
      "type": "string",
      "pattern": "^[A-Z0-9_]{2,32}$"
    },
    "carrierName": {
      "type": "string",
      "minLength": 1,
      "maxLength": 60
    },
    "carrierVkn": {
      "type": "string",
      "pattern": "^\\d{10}$"
    },
    "serviceCode": {
      "type": "string",
      "minLength": 1,
      "maxLength": 32
    },
    "providerShipmentId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 80
    },
    "providerOfferId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 80
    },
    "trackingNumber": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64
    },
    "trackingUrl": {
      "type": "string",
      "minLength": 1,
      "maxLength": 300
    },
    "labelUrl": {
      "type": "string",
      "minLength": 1,
      "maxLength": 600
    },
    "labelFormat": {
      "type": "string",
      "enum": [
        "PDF",
        "JPG",
        "ZPL",
        "ZPLII"
      ]
    },
    "parcel": {
      "type": "object",
      "properties": {
        "weightGr": {
          "type": "integer",
          "minimum": 1,
          "maximum": 100000
        },
        "lengthCm": {
          "type": "integer",
          "minimum": 1,
          "maximum": 200
        },
        "widthCm": {
          "type": "integer",
          "minimum": 1,
          "maximum": 200
        },
        "heightCm": {
          "type": "integer",
          "minimum": 1,
          "maximum": 200
        }
      },
      "required": [
        "weightGr",
        "lengthCm",
        "widthCm",
        "heightCm"
      ],
      "additionalProperties": false
    },
    "recipient": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 120
        },
        "il": {
          "type": "string",
          "minLength": 1,
          "maxLength": 40
        },
        "il_plaka": {
          "type": "string",
          "pattern": "^\\d{2}$"
        },
        "ilce": {
          "type": "string",
          "minLength": 1,
          "maxLength": 60
        },
        "address": {
          "type": "string",
          "minLength": 1,
          "maxLength": 500
        }
      },
      "required": [
        "name",
        "il",
        "il_plaka",
        "ilce",
        "address"
      ],
      "additionalProperties": {}
    },
    "priceKurus": {
      "type": "integer",
      "minimum": 0,
      "maximum": 10000000000000
    },
    "codAmountKurus": {
      "type": "integer",
      "minimum": 0,
      "maximum": 10000000000000
    },
    "test": {
      "type": "boolean"
    },
    "lines": {
      "minItems": 1,
      "maxItems": 50,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^shl_[a-zA-Z0-9]{1,32}$"
          },
          "orderLineId": {
            "type": "string",
            "pattern": "^oln_[a-zA-Z0-9]{1,32}$"
          },
          "qty": {
            "type": "integer",
            "minimum": 1,
            "maximum": 99
          }
        },
        "required": [
          "id",
          "orderLineId",
          "qty"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "orderId",
    "shipmentId",
    "extensionId",
    "carrierName",
    "parcel",
    "recipient",
    "test",
    "lines"
  ],
  "additionalProperties": false
}
Generated from the live platform registries at build time — reference pages cannot go stale. Markdown variant: /reference/commands/order.ship.md