---
title: "Update the service charge on an order"
method: PUT
path: "/shop/orders/{orderId}/service-charge"
tags: ["Orders"]
---

# Update the service charge on an order

`PUT /shop/orders/{orderId}/service-charge`

Use this endpoint to update the service charge applied to an order.

## Request body

- object
  - `amount` integer — The amount of service charge, in minor units. Required if item_amounts isn't specified.
  - `item_amounts` ItemServiceChargeAmount[]
    - `item_id` string, mongo-id, required — The ID of the item.
    - `amount` integer, required — The amount of service charge for this item, in minor units.

## Response `201`

The `Order` was successfully retrieved

- object
  - `data` Order, required — A customer order containing items and payments. This format replaces an older version of the order schema, and must be requested explicitly by passing `generic_items_array=true` as a query parameter.
    - `id` string, object-id — The ID of the order.

## Other responses

- `401` — The user is unauthenticated
- `403` — The authenticated user does not have permission.
- `404` — The resource couldn't be found
- `422` — The request didn't pass validation

---

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