---
updatedAt: 2026-05-26T22:53:01.000Z
agentTools:
  projectIndex: https://developer.vinoshipper.com/llms.txt
---

# Create the shipping labels for an order


            If the format is not specified, it will be generated in the default format for the account. Once a label
            has been generated, the format parameter will be ignored and the label will be returned in the format
            it was originally created.
        

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Vinoshipper API Docs",
    "version": "3.0",
    "x-logo": {
      "url": "/static/img/brand/vinoshipper-logo.svg"
    }
  },
  "servers": [
    {
      "url": "https://vinoshipper.com"
    }
  ],
  "tags": [
    {
      "name": "Order",
      "description": "Post-purchase order operations"
    },
    {
      "name": "Order",
      "description": "Pre-purchase order operations"
    }
  ],
  "paths": {
    "/api/v3/p/orders/{orderNumber}/shipping-labels": {
      "post": {
        "tags": [
          "Order"
        ],
        "summary": "Create the shipping labels for an order",
        "description": "\n            If the format is not specified, it will be generated in the default format for the account. Once a label\n            has been generated, the format parameter will be ignored and the label will be returned in the format\n            it was originally created.\n        ",
        "operationId": "createLabels",
        "parameters": [
          {
            "name": "orderNumber",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateLabelsForm"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Operation successful",
            "content": {
              "*/*": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LabelImageView"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Request has failed validation",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed"
          },
          "403": {
            "description": "Insufficient permission",
            "content": {}
          },
          "404": {
            "description": "Not Found"
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "BasicAuth": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "Error": {
        "required": [
          "code",
          "description"
        ],
        "type": "object",
        "properties": {
          "description": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "field": {
            "type": "string"
          },
          "shortDescription": {
            "type": "string"
          }
        }
      },
      "ErrorDetails": {
        "required": [
          "status",
          "type"
        ],
        "type": "object",
        "properties": {
          "status": {
            "type": "integer",
            "format": "int32"
          },
          "type": {
            "type": "string",
            "enum": [
              "VALIDATION",
              "COMPLIANCE",
              "PAYMENT_FAILURE",
              "SERVER_ERROR",
              "ACCESS_DENIED",
              "CONFLICT"
            ]
          },
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "ErrorResponse": {
        "required": [
          "error"
        ],
        "type": "object",
        "properties": {
          "error": {
            "$ref": "#/components/schemas/ErrorDetails"
          }
        }
      },
      "CreateLabelsForm": {
        "type": "object",
        "properties": {
          "format": {
            "type": "string",
            "description": "Format for the shipping label, if not provided the default format for the account will be used.",
            "enum": [
              "GIF",
              "EPL",
              "ZPL"
            ]
          }
        }
      },
      "LabelImageView": {
        "type": "object",
        "properties": {
          "orderNumber": {
            "type": "string",
            "description": "The external order number. For API orders this is your externally supplied number; otherwise it is Vinoshipper's order number."
          },
          "trackingNumber": {
            "type": "string"
          },
          "imgUrl": {
            "type": "string"
          },
          "format": {
            "type": "string",
            "enum": [
              "GIF",
              "EPL",
              "ZPL"
            ]
          }
        }
      }
    },
    "securitySchemes": {
      "BasicAuth": {
        "type": "http",
        "scheme": "basic"
      }
    }
  }
}
```