> For the complete documentation index, see [llms.txt](https://developers.bead.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.bead.xyz/faqs-and-troubleshooting/onboarding-faqs/why-am-i-getting-a-403-forbidden-when-submitting-an-application.md).

# Why am I getting a 403 Forbidden when submitting an application?

A `403 Forbidden` response on `POST /merchant-onboarding/applications` almost always means your API key is valid but is not authorized for the `partnerId` you supplied. The API key issued to you is scoped to a specific partner — if `partnerId` does not exactly match your provisioned partner ID, the request is rejected.

**Check the following:**

**1. Verify your `partnerId`** The `partnerId` field must match the partner ID provisioned by Bead for your account. A placeholder or incorrect value will result in a 403 even if all other fields are valid.

```json
{
  "partnerId": "a3f9c2e817b054d63e2a1f08"
}
```

Contact your Bead integration contact if you are unsure of your `partnerId`.

**2. Use your API key, not a bearer token** Requests to the merchant onboarding endpoints must be authenticated using your scoped API key. Bearer tokens (used for admin or internal access) are not valid for this endpoint and will produce unexpected results including 404 responses.

**3. Confirm you are hitting the correct environment** Sandbox and production use separate credentials and separate `partnerId` values. A sandbox API key used against the production base URL — or vice versa — will return a 403.

**Example request (correct):**

```json
{
  "submitImmediately": true,
  "merchantData": {
    "partnerId": "a3f9c2e817b054d63e2a1f08",
    "merchantName": "Harborview Market",
    ...
  }
}
```

**Example error response:**

```json
{
  "type": "https://tools.ietf.org/html/rfc9110#section-15.5.4",
  "title": "Forbidden",
  "status": 403
}
```

Note: The 403 response body does not include field-level detail. If you have verified all of the above and are still seeing a 403, contact Bead support with the `traceId` from the response body.

**Related documentation:**

* [Submit Application – Submit behavior](/onboarding/submit-application.md#submit-behavior)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://developers.bead.xyz/faqs-and-troubleshooting/onboarding-faqs/why-am-i-getting-a-403-forbidden-when-submitting-an-application.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
