# Organization API: Customer Portal: Payment preference

> The 2 Organization API operations for payment preference.

Source: https://www.coritan.com/docs/api/reference/organizations/customer-portal/payment-preference/

Part of [Customer Portal](/docs/api/reference/organizations/customer-portal/).

## Operations

| Method | Path | Summary |
| --- | --- | --- |
| GET | [`/api/v1/orgs/{org_slug}/portal/payment-preference`](#op-get-api-v1-orgs-org-slug-portal-payment-preference) | Get portal payment preference |
| PATCH | [`/api/v1/orgs/{org_slug}/portal/payment-preference`](#op-patch-api-v1-orgs-org-slug-portal-payment-preference) | Update account-wide preferred payment currency |

### Get portal payment preference {#op-get-api-v1-orgs-org-slug-portal-payment-preference}

`GET /api/v1/orgs/{org_slug}/portal/payment-preference`

#### Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| `org_slug` | path | string | yes |

#### Responses

| Status | Meaning |
| --- | --- |
| `200` | Success. |
| `422` | The request is not valid. `detail` lists each problem. |

### Update account-wide preferred payment currency {#op-patch-api-v1-orgs-org-slug-portal-payment-preference}

`PATCH /api/v1/orgs/{org_slug}/portal/payment-preference`

Update account-wide preferred payment currency.

Accepts JSON body ``{ currency, country_code, auto_pay_enabled }`` (same as
the client API) or legacy query params. Manual updates mark the source as
``user`` so a later geo lookup leaves the choice alone.

#### Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| `org_slug` | path | string | yes |
| `currency` | query | string or null | no |
| `country_code` | query | string or null | no |
| `auto_pay_enabled` | query | boolean or null | no |

#### Request body

`application/json`

Type: object or null.

#### Responses

| Status | Meaning |
| --- | --- |
| `200` | Success. |
| `422` | The request is not valid. `detail` lists each problem. |
