---
title: "Update order details"
method: PUT
path: "/orders/{orderId}"
tags: ["Orders"]
---

# Update order details

`PUT /orders/{orderId}`

Use this endpoint to update order details

## Path parameters

- `orderId` string, required

## Request body

- OrderObject
  - `id` string — unique uuid of the order
  - `reference` string, required — order reference
  - `customerId` string — Optional. Unique identifier of the customer, recipient of the order
  - `customerName` string — Customer Full name, recipient of the payment link
  - `amount` number, double — Optional. Set this value if you want to override the finalAmount below calculated from order details.
  - `currency` string, required — order currency
  - `orderDetails` ItemObject[], required — list of purchased items
    - `id` string, uuid — unique uuid of the product
    - `name` string — product name. A product can be a service
    - `reference` string — product reference
    - `price` number, double — product unit price
    - `quantity` number, double — quantity of this product purchased
    - `discount` number, double — discount percentage applied to product price and tax rate
    - `taxRate` number, double — tax rate in percentage added to product price
    - `totalPrice` number, double — total price including discount and tax
  - `subTotalAmount` number, double — total price of items bought by the customer without tax
  - `deliveryCharges` number, double — shipping costs
  - `deductedAmount` number, double — amount in absolute value to be deducted to final amount
  - `totalTax` number, double — total tax collected
  - `finalAmount` number, double — final amount to be paid by the customer including tax
  - `status` 'opened' | 'paid' — Order status
  - `deviceId` string — device identifier that has initiated the create request.
  - `createdAt` string — The date time that record was created in our system.
  - `updatedAt` string — The date time that record was updated in our system.

## Response `200`

The order is updated successfully

## Other responses

- `400` — Bad Request
- `401` — The caller is not authenticated
- `403` — Access rights not sufficient
- `404` — Cannot not found order. Check order Id
- `500` — Internal Server Error.

---

[API](https://skmtc.dev/bictorys/apis/pay.md) · [All operations](https://skmtc.dev/bictorys/apis/pay/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/bictorys/pay/revisions/b85cce14340b/schema)
