---
title: "Add payment to Order."
method: POST
path: "/rest/api/orders/{id}/payment/"
tags: ["Order"]
---

# Add payment to Order.

`POST /rest/api/orders/{id}/payment/`

Add payment to Orders

## Path parameters

- `id` string, required

## Request body

- RestOrderPaymentDTO
  - `idExternal` string — External payment ID
  - `type` integer, required — <a href='#tag/Order/operation/get_rest_orders_payment_map'>Payment method ID</a>
  - `paymentDate` string, date-time, nullable, required — Date of payment
  - `amount` string, nullable, required — Amount of payment
  - `comment` string

## Response `200`

Payment with the given idExternal already exists

- unknown

## Other responses

- `201` — Add payment correctly
- `401` — Authorization failed
- `404` — Order not found

---

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