> For the complete documentation index, see [llms.txt](https://docs.getpenfold.dev/llms.txt)

# Retrieve a partner management request

> GET /partner_management_requests/{partner_management_request_id}
> 
> **Partner organisations only.** A Payroll organisation calling this
> endpoint receives `405 Method Not Allowed`. An employer-scoped access
> token receives `403 Forbidden`.
> 
> Returns one of your partner management requests, with its current
> `status`. Returns `404 Not Found` when the request does not exist or
> was sent by another organisation.



## Servers
- https://payroll-api.getpenfold.dev/v4: https://payroll-api.getpenfold.dev/v4


## Authentication methods
- O auth2 client credentials


## Parameters

### Path parameters

- **partner_management_request_id** (string)
  Penfold’s identifier for the partner management request, as returned when it was created.




## Responses
### 200
Partner management request retrieved successfully.

#### Body: application/json (object)
- **id** (string)
  Penfold’s identifier for the request.

- **status** (string)
  Where a partner management request has got to.
  - `PendingApproval`: A Penfold account manager has not decided yet.
  - `Approved`: You took over the client’s organisation, `organisation_id`. Read it with the organisation endpoints, then link its people with `POST /partner_management_requests/{partner_management_request_id}/sso_identity_links`.
  - `Rejected`: Penfold did not approve the request. `rejection_reason` says what to do next.
  - `Reverted`: The request was approved, then Penfold returned the organisation to the client. You no longer manage it.

- **external_id** (string)
  Your platform’s identifier for the client, as you sent it.

- **name** (string)
  The client’s name, as you sent it.

- **employer_external_references** (array[string])
  The employers’ Penfold references, as you sent them.

- **organisation_id** (string | null)
  The managed organisation the client moved into. `null` unless `status` is `Approved`.

- **rejection_reason** (string)
  Why Penfold rejected the request. `null` unless `status` is `Rejected`.

- **created_at** (string(date-time))
  The date and time the request was received, in ISO 8601 format.


### 401
Unauthorized

#### Body: application/json (object)
- **error** (string)
  A descriptive error message.


### 403
Forbidden, the access token is scoped to an employer.

#### Body: application/json (object)
- **error** (string)
  A descriptive error message.


### 404
Partner management request not found, or sent by another organisation.

#### Body: application/json (object)
- **error** (string)
  A descriptive error message.


### 405
Method not allowed

#### Body: application/json (object)
- **error** (string)
  A descriptive error message.



[Powered by Bump.sh](https://bump.sh)
