---
title: "Repay an order in full"
method: POST
path: "/v4/orders/{id}/repay-full"
tags: ["Orders"]
---

# Repay an order in full

`POST /v4/orders/{id}/repay-full`

Fully repay an order by Order ID.

A `linkToken` is required in the HTTP Header `Slope-Link-Token` in addition to the regular auth headers, see [Link Flow](https://developers.slopepay.com/docs/link-flow).

## Path parameters

- `id` string, required

## Headers

- `Slope-Link-Token` string

## Request body

- OrderRepayFullV4RequestDto
  - `paymentAmount` number, required — The same expected paymentAmount as returned by the estimate endpoint

## Response `200`

The updated repayment estimate.

- OrderRepayEstimateV4ResponseDto
  - `orderId` string, required — The order ID
  - `hasPendingPayments` boolean, required — Whether the order has pending payments or another repayment in progress. If true, repayment will not be allowed.
  - `outstandingPrincipal` number, required — The outstanding principal amount in cents
  - `outstandingCustomerFees` number, required — The outstanding customer fees in cents
  - `outstandingBalance` number, required — The total outstanding balance in cents
  - `proratedDiscount` number, required — The discount amount in cents for paying off early. NOTE: This can 0 when the order is overdue or has already received previous discounts or refunds
  - `paymentAmount` number, required — The total amount to be charged now
  - `paymentMethod` PaymentMethodV4ResponseDto, required
    - `id` string, required — Payment method id
    - `customerId` string, required — Customer ID
    - `displayName` number, required — A friendly display name of the payment method
    - `type` 'ach' | 'card' | 'oxxo' | 'spei' | 'wire' | 'rtp' | 'customer_wallet' | 'virtual_card' | 'virtual_account', required

## Other responses

- `400` — Bad Request - Invalid request format or validation errors
- `422` — Unprocessable Entity - Request validation failed
- `500` — Internal Server Error - An unexpected error occurred

---

[API](https://skmtc.net/slopepay/apis/slope-v4-api.md) · [All operations](https://skmtc.net/slopepay/apis/slope-v4-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/slopepay/slope-v4-api/revisions/cbdbc861073b/schema)
