# Creating an order-delivery over api

**URL:** <https://forum.shopware.com/t/creating-an-order-delivery-over-api/94296>\
**Category:** Shopware 6 (English)\
**Created:** [9. Mai 2022 um 16:09 UTC](https://forum.shopware.com/t/creating-an-order-delivery-over-api/94296 "2022-05-09T16:09:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![davhol86](https://avatars.discourse-cdn.com/v4/letter/d/c77e96/32.png) [@davhol86](https://forum.shopware.com/u/davhol86)\
**Post date:** [9. Mai 2022 um 16:09 UTC](https://forum.shopware.com/t/creating-an-order-delivery-over-api/94296/1 "2022-05-09T16:09:23Z")

</div>

I’ve problems creating an order-delivery over api. Especially the shipping-costs I don’t know how to pass the values.  
Can someone pls. share an example ?  
Just to know the fields and types of values I’ve to pass.

---

<div class="post-metadata">

**Author:** ![davhol86](https://avatars.discourse-cdn.com/v4/letter/d/c77e96/32.png) [@davhol86](https://forum.shopware.com/u/davhol86)\
**Post date:** [10. Mai 2022 um 08:26 UTC](https://forum.shopware.com/t/creating-an-order-delivery-over-api/94296/2 "2022-05-10T08:26:35Z")

</div>

Now it worked. Here is the example, that worked for me. I’m not 100% sure if every value is needed, but i think so.

```auto
{
    "createdAt": "09.05.2022 17:00:00",
    "orderId": "13cfcf2bd093483f8877e4ff6b3c2cb3",
    "shippingOrderAddressId": "9647c4cdb0e04d4ea91ee41ba0c31207",
    "shippingMethodId": "212f380b8aea475ab1d472d93be3c3cc",
    "stateId": "e2d3aa03f8684f53a9f02e5643580a23",
    "shippingDateEarliest": "10.05.2022",
    "shippingDateLatest": "10.05.2022",
    "shippingCosts": {
        "unitPrice": 3.95,
        "quantity": 1,
        "totalPrice": 3.95,
        "calculatedTaxes": [],
        "taxRules": [],
        "referencePrice": null,
        "listPrice": null,
        "regulationPrice": null,
        "extensions": []
    }
}

```
