---
title: "POST /api/payments/plans/{id}/complete"
method: POST
path: "/api/payments/plans/{id}/complete"
tags: ["api", "payment-plans"]
---

# POST /api/payments/plans/{id}/complete

`POST /api/payments/plans/{id}/complete`

Complete a Payment Plan

## Path parameters

- `id` string, required

## Response `200`

OK

- POSTPaymentPlansCompleteAPaymentPlan200Response
  - `_id` string, required — The ID of the payment plan
  - `schedules` object[], required — Public information about the schedules of the payment plan
    - `due` string, date-time, required — The date when the payment is due
    - `status` 'SCHEDULED' | 'PENDING' | 'SUCCEEDED' | 'FAILED' | 'REFUNDED', required — The status of the payment schedule
    - `total` number, float, required — The total amount of the payment schedule
    - `attempts` object[] — The payment schedule attempts
      - `_id` string, required — The ID of the payment schedule attempt
      - `date` string, date-time, required — The date of the payment schedule attempt
      - `status` 'SCHEDULED' | 'PENDING' | 'SUCCEEDED' | 'FAILED' | 'REFUNDED', required — The status of the payment schedule attempt
      - `paymentRequestId` string, required — The Payment Request ID of the payment schedule attempt
      - `paymentMethodId` string, required — The Payment Method ID of the payment schedule attempt
    - `nextAttempt` string, date-time — The date of the next payment schedule attempt
  - `secret` string, required — The secret of the payment plan
  - `status` 'DRAFT' | 'ACTIVE' | 'INCOMPLETE' | 'CANCELED' | 'COMPLETED', required — The status of the payment plan
  - `currency` 'EUR' | 'USD' | 'GBP' | 'AUD' | 'CHF' | 'THB' | 'ILS' | 'COP' | 'MXN' | 'DKK' | 'NOK' | 'SEK' | 'QAR' | 'CAD' | 'ISK' | 'GTQ' | 'INR' | 'DOP' | 'SGD' | 'PLN' | 'SAR' | 'TTD' | 'ZAR' | 'KYD' | 'HKD' | 'CZK' | 'KRW' | 'JPY' | 'NZD' | 'AED' | 'MAD' | 'TWD' | 'BRL' | 'BWP' | 'NAD' | 'KES' | 'SCR' | 'TRY' | 'SZL' | 'LSL' | 'TZS' | 'UGX' | 'ZMW' | 'ZWG' | 'GHS' | 'NGN' | 'SLE' | 'LRD' | 'XOF' | 'XAF' | 'GEL' | 'IDR' | 'ARS' | 'CRC' | 'HUF' | 'EGP' | 'MYR' | 'VND' | 'PHP' | 'MWK', required — The currency of the payment plan
  - `customerPaymentMethodId` string, required — The ID of the customer payment method
  - `paymentStrategyId` string, required — The ID of the payment strategy
  - `paymentOptionId` string, required — The ID of the payment option
  - `checkoutId` string — The ID of the checkout
  - `subscriptionId` string — The ID of the subscription
  - `sellerId` string, required — The ID of the seller

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found

---

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