---
title: "PATCH /billing/{tenantLocator}/payments/{locator}/request"
method: PATCH
path: "/billing/{tenantLocator}/payments/{locator}/request"
---

# PATCH /billing/{tenantLocator}/payments/{locator}/request

`PATCH /billing/{tenantLocator}/payments/{locator}/request`

## Request

- Base URL: `https://docs.socotra.com`
- URL: `https://docs.socotra.com/billing/{tenantLocator}/payments/{locator}/request`
- Auth: none declared
- TypeScript: <https://skmtc.dev/socotra/apis/socotra-insurance-suite-openapi/docs/billing/:tenantLocator/payments/:locator/request/patch.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `tenantLocator` string, uuid, required
- `locator` string, ulid, required

## Response `200`

OK

- PaymentResponse
  - `locator` string, ulid, required
  - `paymentState` 'draft' | 'validated' | 'requested' | 'executing' | 'posting' | 'posted' | 'failed' | 'cancelled' | 'reversing' | 'reversed' | 'discarded', required
  - `type` string, required
  - `currency` string, required
  - `amount` number, required
  - `remainingAmount` number
  - `data` object
  - `createdAt` string, date-time, required
  - `createdBy` string, uuid, required
  - `accountLocator` string, ulid
  - `targets` CreditItem[], required
    - `containerLocator` string, ulid, required
    - `containerType` 'invoice' | 'account' | 'subpayment' | 'invoiceItem', required
    - `amount` number
  - `externalCashTransactionLocator` string, ulid
  - `validationResult` ValidationResult
    - `validationItems` ValidationItemResponse[]
      - `elementType` string, required
      - `locator` string, ulid, required
      - `errors` string[], required
    - `success` boolean, required
  - `postedAt` string, date-time
  - `reversalReason` string
  - `reversedAt` string, date-time
  - `reversedBy` string, uuid
  - `shortfallCreditLocators` string[], required
  - `subpayments` SubpaymentResponse[], required
    - `subpaymentLocator` string, ulid, required
    - `amount` number, required
  - `paymentMode` 'normal' | 'aggregate'
  - `aggregatePaymentLocator` string, ulid
  - `paymentNumber` string
  - `anonymizedAt` string, date-time
  - `executionLog` PaymentRequestExecutionLogItem[], required
    - `paymentRequestLocator` string, ulid, required
    - `paymentRequestState` 'pending' | 'completed' | 'failed' | 'error', required
    - `requestTime` string, date-time
    - `transactionId` string
    - `note` string
    - `data` object, required
  - `nextRequestTime` string, date-time
  - `retryPlanName` string

---

[API](https://skmtc.dev/socotra/apis/socotra-insurance-suite-openapi.md) - [All operations](https://skmtc.dev/socotra/apis/socotra-insurance-suite-openapi/llms.txt) - [OpenAPI document](https://skmtc.dev/socotra/apis/socotra-insurance-suite-openapi/revisions/77ee7d8172b9?raw)
