---
title: "Get Salesforce Opportunity payment setup status"
description: "Looks up the durable payment setup intent by Salesforce Opportunity Id."
---

> Documentation Index
> Fetch the complete documentation index at: https://my.caretlegal.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

Path: External Customer Access API

`GET /integrations/external-clients/salesforce/opportunity-payment-setup`

Looks up the durable payment setup intent by Salesforce Opportunity Id.

## Authentication

- `PartnerApiKey`, http, header `Authorization`

## Query parameters

- `opportunity_id` (`getSalesforceOpportunityPaymentSetupStatus.query.opportunity_id`; string, required)

## Code samples

### cURL

```bash
curl --request GET \
  --url 'https://api.caretlegal.net/integrations/external-clients/salesforce/opportunity-payment-setup?opportunity_id=string' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.caretlegal.net/integrations/external-clients/salesforce/opportunity-payment-setup?opportunity_id=string';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.caretlegal.net/integrations/external-clients/salesforce/opportunity-payment-setup?opportunity_id=string"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

Status lookup completed

### 400

Invalid request

#### Example

```json
{
  "success": false,
  "error": "string",
  "details": [
    {}
  ]
}
```

- `success` (`getSalesforceOpportunityPaymentSetupStatus.response.400.success`; boolean, required)
- `error` (`getSalesforceOpportunityPaymentSetupStatus.response.400.error`; string, required)
- `details` (`getSalesforceOpportunityPaymentSetupStatus.response.400.details`; array<object>, optional)

### 401

Invalid API key

#### Example

```json
{
  "success": false,
  "error": "string",
  "details": [
    {}
  ]
}
```

- `success` (`getSalesforceOpportunityPaymentSetupStatus.response.401.success`; boolean, required)
- `error` (`getSalesforceOpportunityPaymentSetupStatus.response.401.error`; string, required)
- `details` (`getSalesforceOpportunityPaymentSetupStatus.response.401.details`; array<object>, optional)

### 403

Missing scope

#### Example

```json
{
  "success": false,
  "error": "string",
  "details": [
    {}
  ]
}
```

- `success` (`getSalesforceOpportunityPaymentSetupStatus.response.403.success`; boolean, required)
- `error` (`getSalesforceOpportunityPaymentSetupStatus.response.403.error`; string, required)
- `details` (`getSalesforceOpportunityPaymentSetupStatus.response.403.details`; array<object>, optional)


Source: https://my.caretlegal.com/docs/reference/external-clients/getSalesforceOpportunityPaymentSetupStatus/index.md
