> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# DeclineJoinApplication

# Package: onlinePrograms

# Namespace: JoinApplicationsService

# Method link: https://dev.wix.com/docs/api-reference/business-management/online-programs/join-applications/decline-join-application.md

## Permission Scopes:
Manage Online Programs: SCOPE.CHALLENGES.MANAGE

## Introduction

Declines a member's request to join a program.

Changes `status` from `APPROVAL_PENDING` to `DECLINED`. Returns an error if the join application has any other status.

`DECLINED` is a terminal status, and the join application is removed asynchronously.

To accept the request instead, call [Approve Join Application](https://dev.wix.com/docs/api-reference/business-management/online-programs/join-applications/approve-join-application.md).

---

## REST API

### Schema

```
 Method: declineJoinApplication
 Description: Declines a member's request to join a program.  Changes `status` from `APPROVAL_PENDING` to `DECLINED`. Returns an error if the join application has any other status.  `DECLINED` is a terminal status, and the join application is removed asynchronously.  To accept the request instead, call [Approve Join Application](https://dev.wix.com/docs/api-reference/business-management/online-programs/join-applications/approve-join-application.md).
 URL: https://www.wixapis.com/online-programs/participants/v3/join-applications/{joinApplicationId}/decline
 Method: POST
 Return type: DeclineJoinApplicationResponse
  - name: joinApplication | type: JoinApplication | description: Declined join application.  
     - name: id | type: string | description: Join application GUID.  | read-only: true | validation: format GUID
     - name: revision | type: string | description: Revision number, which increments by 1 each time a lifecycle, payment, or tag action changes the join application.  This API doesn't provide a generic update method, so `revision` is read-only. Don't specify it when creating or changing a join application.  | read-only: true | validation: format int64
     - name: createdDate | type: string | description: Date and time the join application was created.  | read-only: true | validation: format date-time
     - name: updatedDate | type: string | description: Date and time the join application was last updated.  | read-only: true | validation: format date-time
     - name: memberId | type: string | description: GUID of the site member applying or invited to participate in the program.  Required when a Wix user creates an application on a member's behalf. Automatically set to the caller's member GUID when a member creates their own application.  | read-only: true | validation: format GUID
     - name: programId | type: string | description: GUID of the program the join application is for.  | validation: format GUID, immutable
     - name: status | type: Status | description: Current status of the join application.  Read-only for member-initiated applications. A Wix user can set the initial status when creating an application on a member's behalf.  | read-only: true 
         - enum:
         -     INVITED: Member has been invited to join the program and has not yet accepted.
         -     APPROVAL_PENDING: Member's application is awaiting the Wix user's decision.
         -     APPROVED: Application is approved. Payment may still be required before the member is enrolled.
         -     CANCELLED: Member canceled the application. The join application is removed asynchronously.
         -     DECLINED: Wix user declined the application. The join application is removed asynchronously.
         -     SUSPENDED: Connected participant is suspended after the related Pricing Plans subscription expires. A successful new payment resumes the participation flow.
     - name: paymentStatus | type: PaymentStatus | description: Payment status of the join application.  | read-only: true 
         - enum:
         -     NO_PAYMENT_REQUIRED: Payment isn't required because the program is free or the member has an eligible Pricing Plans entitlement.
         -     PAYMENT_PENDING: Payment is required before the member can be enrolled.
         -     PAYMENT_IN_PROGRESS: Payment checkout or a Pricing Plans purchase is in progress.
         -     PENDING_OWNER_APPROVAL: Member submitted an offline payment that awaits the Wix user's decision.
         -     PAYMENT_SUCCESSFUL: Payment completed successfully.
         -     PAYMENT_FAILED: Payment was declined by the payment system or, for an offline payment, by the Wix user.
         -     PAYMENT_CANCELED: Member canceled payment.
     - name: paymentInfo | type: PaymentInfo | description: Wix Payments or Pricing Plans data associated with the join application.  | read-only: true 
        - name: paymentOrderId | type: string | description: Wix Payments order GUID. Populated when the member selects one-time payment at checkout.  | read-only: true | validation: format GUID
        - name: offlineTransactionId | type: string | description: Offline transaction GUID. Populated when the member selects manual payment at checkout.  | read-only: true | validation: format GUID
        - name: paidPlanIds | type: array<string> | description: IDs of the pricing plans connected to the program. Populated when the member selects Pricing Plans at checkout.  | read-only: true | validation: maxItems 100, format GUID
        - name: couponId | type: string | description: GUID of the coupon applied to the payment order. Populated when a coupon is applied with [Apply Coupon](https://dev.wix.com/docs/api-reference/business-management/online-programs/join-applications/apply-coupon.md).  | read-only: true | validation: format GUID
     - name: member | type: Member | description: Snapshot of the member identified by `memberId`, copied from the Members API. It isn't the authoritative member record.  | read-only: true 
        - name: firstName | type: string | description: Member contact's first name.  | read-only: true | validation: maxLength 1000
        - name: lastName | type: string | description: Member contact's last name.  | read-only: true | validation: maxLength 1000
        - name: email | type: string | description: Member's login email.  | read-only: true | validation: format EMAIL
        - name: contactId | type: string | description: Member's contact GUID.  | read-only: true | validation: format GUID
        - name: nickname | type: string | description: Member's nickname.  | read-only: true | validation: maxLength 1000
        - name: profileImageUrl | type: string | description: URL of the member's profile image.  | read-only: true | validation: format WEB_URL
     - name: participantId | type: string | description: GUID of the participant created from the join application.  Populated when `status` is `APPROVED` and `paymentStatus` is `NO_PAYMENT_REQUIRED` or `PAYMENT_SUCCESSFUL`.  | read-only: true | validation: format GUID
     - name: extendedFields | type: ExtendedFields | description: Custom field data for the join application object.  [Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions.md) must be configured in the app dashboard before they can be accessed with API calls.  
        - name: namespaces | type: object | description: Extended field data. Each key corresponds to the namespace of the app that created the extended fields. The value of each key is structured according to the schema defined when the extended fields were configured.  You can only access fields for which you have the appropriate permissions.  Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields.md).  | validation: format map
     - name: tags | type: Tags | description: Tags for categorizing and organizing join applications.  
        - name: privateTags | type: TagList | description: Tags that require an additional permission in order to access them, typically restricted from site members and visitors.  
           - name: tagIds | type: array<string> | description: List of tag GUIDs.  | validation: maxItems 100, maxLength 5
        - name: publicTags | type: TagList | description: Tags that are exposed to anyone with access to the entity, including site members and visitors.  

 Possible Errors:
   HTTP Code: 428 | Status Code: FAILED_PRECONDITION | Application Code: INVALID_JOIN_APPLICATION_STATUS | Description: The join application isn't in `APPROVAL_PENDING` status, which declining requires.


```

### Examples

### Decline a join application
Declines a pending join application, transitioning status to DECLINED

```curl
curl -X POST \
'https://www.wixapis.com/online-programs/participants/v3/join-applications/c8b9321b-8c3a-4ac2-bf09-054d9d4e842a/decline' \
-H 'Authorization: <AUTH>'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.onlinePrograms.joinApplications.declineJoinApplication(joinApplicationId)
 Description: Declines a member's request to join a program.  Changes `status` from `APPROVAL_PENDING` to `DECLINED`. Returns an error if the join application has any other status.  `DECLINED` is a terminal status, and the join application is removed asynchronously.  To accept the request instead, call [Approve Join Application](https://dev.wix.com/docs/api-reference/business-management/online-programs/join-applications/approve-join-application.md).
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  joinApplicationId
 Method parameters: 
   param name: joinApplicationId | type: string | description: GUID of the join application to decline. | required: true | validation: format GUID
 Return type: PROMISE<DeclineJoinApplicationResponse>
  - name: joinApplication | type: JoinApplication | description: Declined join application.  
     - name: _id | type: string | description: Join application GUID.  | read-only: true | validation: format GUID
     - name: revision | type: string | description: Revision number, which increments by 1 each time a lifecycle, payment, or tag action changes the join application.  This API doesn't provide a generic update method, so `revision` is read-only. Don't specify it when creating or changing a join application.  | read-only: true | validation: format int64
     - name: _createdDate | type: Date | description: Date and time the join application was created.  | read-only: true 
     - name: _updatedDate | type: Date | description: Date and time the join application was last updated.  | read-only: true 
     - name: memberId | type: string | description: GUID of the site member applying or invited to participate in the program.  Required when a Wix user creates an application on a member's behalf. Automatically set to the caller's member GUID when a member creates their own application.  | read-only: true | validation: format GUID
     - name: programId | type: string | description: GUID of the program the join application is for.  | validation: format GUID, immutable
     - name: status | type: Status | description: Current status of the join application.  Read-only for member-initiated applications. A Wix user can set the initial status when creating an application on a member's behalf.  | read-only: true 
         - enum:
         -     INVITED: Member has been invited to join the program and has not yet accepted.
         -     APPROVAL_PENDING: Member's application is awaiting the Wix user's decision.
         -     APPROVED: Application is approved. Payment may still be required before the member is enrolled.
         -     CANCELLED: Member canceled the application. The join application is removed asynchronously.
         -     DECLINED: Wix user declined the application. The join application is removed asynchronously.
         -     SUSPENDED: Connected participant is suspended after the related Pricing Plans subscription expires. A successful new payment resumes the participation flow.
     - name: paymentStatus | type: PaymentStatus | description: Payment status of the join application.  | read-only: true 
         - enum:
         -     NO_PAYMENT_REQUIRED: Payment isn't required because the program is free or the member has an eligible Pricing Plans entitlement.
         -     PAYMENT_PENDING: Payment is required before the member can be enrolled.
         -     PAYMENT_IN_PROGRESS: Payment checkout or a Pricing Plans purchase is in progress.
         -     PENDING_OWNER_APPROVAL: Member submitted an offline payment that awaits the Wix user's decision.
         -     PAYMENT_SUCCESSFUL: Payment completed successfully.
         -     PAYMENT_FAILED: Payment was declined by the payment system or, for an offline payment, by the Wix user.
         -     PAYMENT_CANCELED: Member canceled payment.
     - name: paymentInfo | type: PaymentInfo | description: Wix Payments or Pricing Plans data associated with the join application.  | read-only: true 
        - name: paymentOrderId | type: string | description: Wix Payments order GUID. Populated when the member selects one-time payment at checkout.  | read-only: true | validation: format GUID
        - name: offlineTransactionId | type: string | description: Offline transaction GUID. Populated when the member selects manual payment at checkout.  | read-only: true | validation: format GUID
        - name: paidPlanIds | type: array<string> | description: IDs of the pricing plans connected to the program. Populated when the member selects Pricing Plans at checkout.  | read-only: true | validation: maxItems 100, format GUID
        - name: couponId | type: string | description: GUID of the coupon applied to the payment order. Populated when a coupon is applied with [Apply Coupon](https://dev.wix.com/docs/api-reference/business-management/online-programs/join-applications/apply-coupon.md).  | read-only: true | validation: format GUID
     - name: member | type: Member | description: Snapshot of the member identified by `memberId`, copied from the Members API. It isn't the authoritative member record.  | read-only: true 
        - name: firstName | type: string | description: Member contact's first name.  | read-only: true | validation: maxLength 1000
        - name: lastName | type: string | description: Member contact's last name.  | read-only: true | validation: maxLength 1000
        - name: email | type: string | description: Member's login email.  | read-only: true | validation: format EMAIL
        - name: contactId | type: string | description: Member's contact GUID.  | read-only: true | validation: format GUID
        - name: nickname | type: string | description: Member's nickname.  | read-only: true | validation: maxLength 1000
        - name: profileImageUrl | type: string | description: URL of the member's profile image.  | read-only: true | validation: format WEB_URL
     - name: participantId | type: string | description: GUID of the participant created from the join application.  Populated when `status` is `APPROVED` and `paymentStatus` is `NO_PAYMENT_REQUIRED` or `PAYMENT_SUCCESSFUL`.  | read-only: true | validation: format GUID
     - name: extendedFields | type: ExtendedFields | description: Custom field data for the join application object.  [Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions.md) must be configured in the app dashboard before they can be accessed with API calls.  
        - name: namespaces | type: object | description: Extended field data. Each key corresponds to the namespace of the app that created the extended fields. The value of each key is structured according to the schema defined when the extended fields were configured.  You can only access fields for which you have the appropriate permissions.  Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields.md).  | validation: format map
     - name: tags | type: Tags | description: Tags for categorizing and organizing join applications.  
        - name: privateTags | type: TagList | description: Tags that require an additional permission in order to access them, typically restricted from site members and visitors.  
           - name: tagIds | type: array<string> | description: List of tag GUIDs.  | validation: maxItems 100, maxLength 5
        - name: publicTags | type: TagList | description: Tags that are exposed to anyone with access to the entity, including site members and visitors.  

 Possible Errors:
   HTTP Code: 428 | Status Code: FAILED_PRECONDITION | Application Code: INVALID_JOIN_APPLICATION_STATUS | Description: The join application isn't in `APPROVAL_PENDING` status, which declining requires.


```

### Examples

### Decline a join application
Declines a pending join application, changing its status to DECLINED

```javascript
import { joinApplications } from "@wix/online-programs";

async function declineJoinApplication() {
  const response = await joinApplications.declineJoinApplication(
    "c8b9321b-8c3a-4ac2-bf09-054d9d4e842a",
  );
}

/* Promise resolves to:
 * {
 *   "joinApplication": {
 *     "_id": "c8b9321b-8c3a-4ac2-bf09-054d9d4e842a",
 *     "revision": "2",
 *     "_createdDate": "2026-06-01T14:23:28.628Z",
 *     "_updatedDate": "2026-06-01T14:24:02.018Z",
 *     "memberId": "6c7c7b22-67a2-43c7-9d27-3b8ed07d9a45",
 *     "programId": "3f8e26e7-c5d1-4a12-86f8-33d64f4c2a0e",
 *     "status": "DECLINED",
 *     "paymentStatus": "NO_PAYMENT_REQUIRED"
 *   }
 * }
 */

```

### declineJoinApplication (self-hosted)
Self-hosted SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md).

```javascript
import { createClient } from '@wix/sdk';
import { joinApplications } from '@wix/online-programs';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

const myWixClient = createClient ({
  modules: { joinApplications },
  // Include the auth strategy and host as relevant
});


async function declineJoinApplication(joinApplicationId) {
  const response = await myWixClient.joinApplications.declineJoinApplication(joinApplicationId);
};
```

---