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

# 5. Accept Terms and Submit

> Record the terms of service acceptance and submit the product using Razorpay Onboarding APIs.

Available in
🇮🇳 India

The sub-merchant contracts with Razorpay, so they accept Razorpay's terms of service. You never accept them on their behalf. When the only requirement left is `accept_terms_of_service`, show the sub-merchant the details entered so far, then Razorpay's terms.

```json accept_terms_of_service theme={null}
{
  "id": "req_0HAQYzBrDRNnEM",
  "requirement_code": "accept_terms_of_service",
  "requirement_level": "mandatory",
  "requirement_type": "composite",
  "description": "Show the sub-merchant Razorpay's terms of service and record their acceptance.",
  "fulfillment_criteria": "all_of",
  "sub_requirements": [
    {
      "id": "req_CTW6xxsQmygIDU",
      "requirement_code": "acceptance_ip",
      "requirement_level": "mandatory",
      "requirement_type": "input",
      "description": "The IP address the terms were accepted from.",
      "field_path": "products.payment_gateway.terms_of_service_acceptance.ip",
      "value_type": "text",
      "status": "created"
    },
    {
      "id": "req_gXg6igx2STKrZA",
      "requirement_code": "acceptance_device_fingerprint_id",
      "requirement_level": "mandatory",
      "requirement_type": "input",
      "description": "The device fingerprint of the device the terms were accepted on.",
      "field_path": "products.payment_gateway.terms_of_service_acceptance.device_fingerprint_id",
      "value_type": "text",
      "status": "created"
    }
  ],
  "status": "created"
}
```

## 5.1 Show the Terms

Show Razorpay's terms of service to the sub-merchant, unchanged. They name Razorpay Software Private Limited (RSPL) as the company the sub-merchant contracts with, and the holder of its data. The sub-merchant accepts them in your UI.

## 5.2 Send the Acceptance

Send the acceptance in an update at `products.payment_gateway.terms_of_service_acceptance`. Send both sub-requirements together: the `ip` and `device_fingerprint_id` of the sub-merchant's device. This update submits the product.

`PATCH /v1/accounts/{account_id}`

```bash Curl theme={null}
curl -X PATCH https://api.razorpay.com/v1/accounts/acc_TcdGEzmfKQzEl1 \
-u rzp_test_partner_[CLIENT_ID]:[CLIENT_SECRET] \
-H "Content-Type: application/json" \
-H "X-Idempotency-Key: [UNIQUE_KEY]" \
-d '{
  "products": {
    "payment_gateway": {
      "terms_of_service_acceptance": {
        "ip": "203.0.113.42",
        "device_fingerprint_id": "df_9Hq4Lt2Vb5Ks8Zp"
      }
    }
  }
}'
```

```json Response theme={null}
{
  "id": "acc_TcdGEzmfKQzEl1",
  "country": "IN",
  "statement_descriptor": {
    "value": "Acme Corp",
    "verification": {
      "status": "verified",
      "verified_at": 1792433135
    }
  },
  "is_mfa_enabled": false,
  "user": {
    "role": "owner",
    "email": "gaurav.kumar@example.com",
    "phone": "+919611752201",
    "name": "Gaurav Kumar",
    "is_email_verified": true,
    "is_phone_verified": true
  },
  "business_profile": {
    "business_type": "individual",
    "business_name": "GAURAV KUMAR",
    "date_of_establishment": null,
    "identity_numbers": {},
    "documents": {},
    "business_category": {
      "category": "ecommerce",
      "subcategory": "fashion_and_lifestyle",
      "mcc": "5651",
      "business_description": "Clothing and accessories for men, women and children, sold online",
      "business_model_clarifications": {
        "bmc_question_2": {
          "question_id": "bmc_question_2",
          "question": "What is your average delivery time after receiving an order?",
          "options": [
            {
              "label": "0-7 days",
              "value": "bmc_question_2_option_1"
            },
            {
              "label": "8-14 days",
              "value": "bmc_question_2_option_2"
            },
            {
              "label": "15-21 days",
              "value": "bmc_question_2_option_3"
            },
            {
              "label": "22-35 days",
              "value": "bmc_question_2_option_4"
            },
            {
              "label": "35+ days",
              "value": "bmc_question_2_option_5"
            },
            {
              "label": "No shipping required",
              "value": "bmc_question_2_option_6"
            }
          ],
          "bmc_input_type": "single_select",
          "answer": [
            "bmc_question_2_option_1"
          ]
        }
      }
    },
    "authorized_person": {
      "name": "GAURAV KUMAR",
      "identity_numbers": {
        "individual_pan": {
          "type": "individual_pan",
          "value": "ABCPD1234A",
          "verification": {
            "status": "verified",
            "error_code": null,
            "error_description": null,
            "verified_at": 1792433290,
            "metadata": {},
            "created_at": 1792433290
          },
          "metadata": {},
          "is_skipped": false,
          "created_at": 1792433280,
          "updated_at": 1792433290
        },
        "individual_ckyc": {
          "type": "individual_ckyc",
          "value": null,
          "verification": {
            "status": "verified",
            "error_code": null,
            "error_description": null,
            "verified_at": 1792433340,
            "metadata": {},
            "created_at": 1792433340
          },
          "metadata": {
            "ckyc_mobile": "+919845098450"
          },
          "is_skipped": false,
          "created_at": 1792433340,
          "updated_at": 1792433340
        }
      },
      "documents": {
        "aadhaar_front": {
          "id": "file_Hx7Ui2kQe9Zf3A",
          "type": "aadhaar_front",
          "url": "https://files.razorpay.com/documents/file_Hx7Ui2kQe9Zf3A",
          "metadata": {
            "source": "ckyc",
            "file_name": "aadhaar-front.jpg",
            "mime_type": "image/jpeg",
            "size_bytes": 187342
          },
          "verification": {
            "status": "verified",
            "error_code": null,
            "error_description": null,
            "verified_at": 1792433340,
            "metadata": {},
            "created_at": 1792433340
          },
          "created_at": 1792433340
        }
      },
      "address": null,
      "date_of_birth": null,
      "additional_data": {},
      "created_at": 1792433280,
      "updated_at": 1792433340
    },
    "stakeholders": {},
    "addresses": [],
    "metadata": {}
  },
  "bank_accounts": {
    "settlements_primary": {
      "type": "settlements_primary",
      "account_number": "001234567890",
      "routing_code": "ICIC0000009",
      "routing_code_type": "IFSC",
      "supporting_document": null,
      "verification": {
        "status": "verified",
        "error_code": null,
        "error_description": null,
        "verified_at": 1792435025,
        "metadata": {},
        "created_at": 1792435011
      }
    }
  },
  "products": {
    "payment_gateway": {
      "type": "payment_gateway",
      "status": "activated",
      "status_reason": null,
      "created_at": 1792433135,
      "updated_at": 1792435105,
      "requirements": [],
      "terms_of_service_acceptance": {
        "ip": "203.0.113.42",
        "device_fingerprint_id": "df_9Hq4Lt2Vb5Ks8Zp",
        "metadata": {},
        "accepted_at": 1792435100
      },
      "payment_channels": {
        "website": {
          "primary": "https://www.example.com",
          "additional": [],
          "verification": {
            "status": "verified",
            "error_code": null,
            "error_description": null,
            "verified_at": 1792433250,
            "metadata": {},
            "created_at": 1792433220
          }
        },
        "app_android": null,
        "app_ios": null
      },
      "clarification_responses": {}
    }
  },
  "notes": {
    "shop_id": "60291847"
  },
  "created_at": 1792433135,
  "updated_at": 1792435105
}
```

Razorpay records the acceptance. The product's `terms_of_service_acceptance` returns the `ip` and `device_fingerprint_id` you sent, with the time of acceptance in `accepted_at`:

```json terms_of_service_acceptance theme={null}
{
  "ip": "203.0.113.42",
  "device_fingerprint_id": "df_9Hq4Lt2Vb5Ks8Zp",
  "metadata": {},
  "accepted_at": 1792435100
}
```

> [accordion] Request Parameters
>
> `products.payment_gateway.terms_of_service_acceptance.ip` *mandatory*
> : `string` The IP address the sub-merchant accepted the terms from. For example, `203.0.113.42`.
>
> `products.payment_gateway.terms_of_service_acceptance.device_fingerprint_id` *mandatory*
> : `string` The device fingerprint of the sub-merchant's device. For example, `df_9Hq4Lt2Vb5Ks8Zp`.

> [accordion] Errors
>
> `400 invalid_request`
> : The `ip` or `device_fingerprint_id` is missing. `error.field` names it.

## 5.3 Risk Checks After Submission

Razorpay then runs its risk checks. Most products come back `activated` in the same response. Otherwise, the product moves to one of these statuses:

* **`under_review`:** A reviewer decides, because a check is deferred or the product needs a review.
* **`edd_pending`:** A video KYC call is needed. After the call, the product moves to `under_review`. Know more about [video KYC](https://razorpay.com/docs/partners/aggregators/onboarding-api/verification-actions.md#4-3-complete-video-kyc).

From submission on, the KYC details are locked. After activation, a few can change after a manual review. Know more about [account management](https://razorpay.com/docs/partners/aggregators/onboarding-api/account-management.md). Know more about [locked details](https://razorpay.com/docs/partners/aggregators/onboarding-api/submit-information.md#3-3-locked-details). A `needs_clarification` review opens only the fields it lists.

## Next Step

[Handle Needs Clarification](https://razorpay.com/docs/partners/aggregators/onboarding-api/needs-clarification.md)
