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

# POST /api/payments/requests/{id}/payment-status

`POST /api/payments/requests/{id}/payment-status`

Change Payment Request Payment Status

## Path parameters

- `id` string, required — The ID of the payment request

## Request body

- POSTPaymentRequestsChangePaymentRequestPaymentStatus
  - `paymentStatus` 'SUCCEEDED' | 'FAILED', required — The new payment status
  - `gatewaySecret` string, required — The secret of the payment gateway responsible for the payment

## Response `200`

OK

- PaymentRequestResource
  - `_id` string, required — The ID of the payment request
  - `secret` string, required — The secret token of the payment request
  - `amount` number, float — The amount which needs to be paid
  - `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' — An ISO 4217 3-character code of the currency
  - `checkoutId` string — The ID of the checkout that request belongs to
  - `subscriptionId` string — The ID of the subscription that request belongs to
  - `paymentPlanId` string — The ID of the payment plan that request belongs to
  - `paymentGatewayId` string — The ID of the payment gateway responsible for the payment
  - `reference` string
  - `processors` PaymentRequestProcessorResource[]
    - `paymentGatewayType` 'stripe' | 'paypal' | 'adyen' | 'custom' | 'cardconnect' | 'worldline' | 'shift4' | 'authorizenet' | 'wallee' | 'square' | 'payfast' | 'touchnet' | 'transact' | 'unzer' | 'monext' | 'vivenuPayments' | 'ebanx' | 'rapyd' | 'momentusPayments' | 'additional-payment-method', required
    - `paymentGatewayId` string
    - `reference` string
    - `redirectUrl` string
    - `data` union
      - boolean
      - number
      - object
      - string
    - `createdAt` string, date-time, required — An ISO timestamp indicating when the payment request processor was created
  - `status` 'NEW' | 'SUCCEEDED' | 'CANCELED', required
  - `history` object[]
    - `type` 'payment_request.created' | 'payment_request.details_submitted' | 'payment_request.verified' | 'payment_request.confirmed' | 'payment_request.succeeded' | 'payment_request.canceled', required
    - `date` string, date-time, required — An ISO timestamp indicating when the history entry was added
    - `data` union
      - boolean
      - number
      - object
      - string
  - `applications` object[]
    - `amount` number, float, required — The amount of the application
    - `method` 'deposit' | 'customer_balance', required — The method of the application
  - `customer` object
    - `customerId` string — The ID of the customer of the payment request
    - `email` string, email — The email of the user of the payment request
    - `country` string — The country of the user of the payment request
  - `sellerId` string, required
  - `expiresAt` string, date-time — An ISO timestamp indicating when the payment request will expire and a new one will be created if requested
  - `createdAt` string, date-time, required — An ISO timestamp indicating when the payment request was created
  - `updatedAt` string, date-time, required — An ISO Timestamp indicating when the payment request was last updated

## Other responses

- `400` — Bad Request

---

[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)
