---
title: "PATCH /payment-execution/{tenantLocator}/paymentProviders/{locator}"
method: PATCH
path: "/payment-execution/{tenantLocator}/paymentProviders/{locator}"
---

# PATCH /payment-execution/{tenantLocator}/paymentProviders/{locator}

`PATCH /payment-execution/{tenantLocator}/paymentProviders/{locator}`

## Request

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

## Path parameters

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

## Request body

- union
  - BraintreeConfigurationRequest
    - `paymentServiceProvider` 'braintree' | 'braintreeSandbox' | 'stripe' | 'stripeTest', required
    - `paymentProviderState` 'active' | 'inactive', required
    - `merchantId` string, required
    - `publicKey` string, required
    - `privateKey` string, required
  - StripeConfigurationRequest
    - `paymentServiceProvider` 'braintree' | 'braintreeSandbox' | 'stripe' | 'stripeTest', required
    - `paymentProviderState` 'active' | 'inactive', required
    - `secretKey` string, required

## Response `200`

OK

- PaymentProvider
  - `locator` string, ulid, required
  - `paymentServiceProvider` 'braintree' | 'braintreeSandbox' | 'stripe' | 'stripeTest', required
  - `paymentProviderState` 'active' | 'inactive', required

---

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