---
title: "Update an order"
method: PATCH
path: "/orders/{orderId}"
---

# Update an order

`PATCH /orders/{orderId}`

To update an order, you use orders resource. Orders expire after 24 hours unless the payment is captured.

## Path parameters

- `orderId` string, required

## Headers

- `Content-Type` string

## Request body

- object
  - `paymentMethodId` string — The identifier of the payment method, provided by Cleeng.
  - `couponCode` string — Applied coupon code.
  - `taxRate` string — Tax rate in float (eg '0.23').
  - `buyAsAGift` boolean — Whether an order refers to gift purchase.
  - `deliveryDetails` object
    - `personalNote` string, required — A message for the person for whom we want to purchase a gift. It can be `null`.
    - `recipientEmail` string, required — Email address of the gift recipient (person reciving a gift).
    - `deliveryDate` integer, required — A date when the purchased gift should be delivered in unix timestamp.

## Response `200`

200

- object
  - `success` boolean
  - `order` object
    - `id` integer
    - `customerId` integer
    - `customer` object
      - `locale` string
      - `email` string
    - `publisherId` integer
    - `offerId` string
    - `offer` object
      - `title` string
      - `description` unknown
      - `price` number
      - `currency` string
    - `totalPrice` number
    - `priceBreakdown` object
      - `offerPrice` number
      - `discountAmount` number
      - `discountedPrice` number
      - `taxValue` number
      - `customerServiceFee` integer
      - `paymentMethodFee` number
    - `taxRate` number
    - `taxBreakdown` unknown
    - `currency` string
    - `country` string
    - `paymentMethodId` integer
    - `expirationDate` integer
    - `billingAddress` object
      - `billingStreetName` string
      - `billingStreetNumber` string
      - `billingPostalCode` string
    - `couponId` integer
    - `discount` object
      - `applied` boolean
      - `type` string
      - `periods` integer
  - `message` string

---

[API](https://skmtc.net/cleeng/apis/mediastore-api.md) · [All operations](https://skmtc.net/cleeng/apis/mediastore-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cleeng/mediastore-api/versions/00cbfe7998a4/schema)
