---
title: "Create Shipping"
method: POST
path: "/orders/{id}/shipping_lines"
tags: ["Shippings"]
---

# Create Shipping

`POST /orders/{id}/shipping_lines`

Creates a new shipping line for an existing order. The shipping line is added to the order identified by `id`. The response returns the created shipping line.

## Path parameters

- `id` string, required

## Headers

- `Accept-Language` 'es' | 'en'
- `X-Child-Company-Id` string

## Request body

- ShippingRequest — Shipping line request payload.
  - `amount` integer, required — Shipping amount in cents
  - `carrier` string — Carrier name for the shipment
  - `tracking_number` string — Tracking number can be used to track the shipment
  - `method` string — Method of shipment
  - `description` string — Shipping line description
  - `metadata` object — Hash where the user can send additional information for each 'shipping'.

## Response `200`

successful

## Other responses

- `401` — authentication error
- `404` — not found entity
- `422` — parameter validation error
- `500` — internal server error

---

[API](https://skmtc.dev/digitalfemsa/apis/femsa-api.md) · [All operations](https://skmtc.dev/digitalfemsa/apis/femsa-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/digitalfemsa/femsa-api/revisions/2e43caddf36b/schema)
