Skip to main content

Update Amount

Purpose: Updates the current order amount.


Endpoint Details

  • HTTP Verb: PATCH
  • URL Segment: /v3/order/{orderId}/amount
  • OpenAPI Spec: View in Swagger UI
  • Notes: Allowed if status is Created, Approved, or ReadyForCapture. The amount can never be set to a value higher than originalAmount or approvedAmount (if set).

Path Parameters

Field NameDescriptionTypeAdditional Information
orderIdThe unique ID of the order to update.string ($uuid)Required.

Request Body (UpdateAmountRequest)

This method requires a JSON body containing the new amount.

Field NameDescriptionTypeAdditional Information
amountThe new, current amount of the order.doubleRequired. Non-decimal.

Example Request

{
"amount": 40000
}

Successful Response (200 OK)

The API returns an OrderResponse object containing the updated Order.

For schema and examples, see the OrderResponse Schema page.


Error Responses

Status CodeDescription
400 Bad RequestThe request was invalid (e.g., amount exceeds limits or order status does not allow updates).
401 UnauthorizedAuthentication failure (e.g., missing or invalid API key/credentials).
404 Not FoundThe specified orderId does not exist.