# Clear excluded rate codes

> Source: /api-reference/partner/explorer/loyalty/programs/clear-excluded-rate-codes
> Removes every exclusion so all rate codes earn. Idempotent.
> Full spec: https://docs.journey.com/openapi/partner.v1.json

## `DELETE /v1/partner/loyalty/programs/{externalId}/excluded-rate-codes`

```json
{
  "description": "Removes every exclusion so all rate codes earn. Idempotent.",
  "operationId": "loyaltyProgramsPartner_clearExcludedRateCodes",
  "parameters": [
    {
      "description": "External loyalty program id.",
      "in": "path",
      "name": "externalId",
      "required": true,
      "schema": {
        "type": "string"
      }
    },
    {
      "description": "External organization id (HXP UUID or WorkOS organization id). Only Journey superadmin callers may set it; for a partner credential the organization is taken from the credential and this parameter is ignored.",
      "in": "query",
      "name": "organizationId",
      "required": false,
      "schema": {
        "type": "string",
        "examples": [
          "org_01HZY3Q8K9W2V4X6B8N0M2P4R6"
        ]
      }
    }
  ],
  "responses": {
    "200": {
      "description": "The now-empty exclusion list."
    },
    "400": {
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/PartnerErrorResponse"
          }
        }
      },
      "description": "Request validation failed. `errors` lists the offending fields."
    },
    "401": {
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/PartnerErrorResponse"
          }
        }
      },
      "description": "No usable credential. Send `Authorization: Bearer <jwt>` or `X-API-Key: jny_...`."
    },
    "403": {
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/PartnerErrorResponse"
          }
        }
      },
      "description": "The credential authenticated but lacks the scopes in `x-required-scopes`, or the resource belongs to another organization."
    },
    "404": {
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/PartnerErrorResponse"
          }
        }
      },
      "description": "No such resource, or it is outside the organization the credential resolves to."
    }
  },
  "security": [
    {
      "partnerBearer": []
    },
    {
      "partnerApiKey": []
    }
  ],
  "summary": "Clear excluded rate codes",
  "tags": [
    "partner/loyalty/programs"
  ],
  "x-required-scopes": [
    [
      "partner:loyalty:programs:write"
    ]
  ]
}
```