Internal

Lookup the account owner for an organization (internal)

Returns the user holding the account_owner role for the supplied organization_id, with role-set and any unresolved email_confirmation. Returns 404 when the org has no owner.

post/v1/users/lookup_account_owner

Request

  • Base URL
    https://identity-api.paymongo.com
  • URL
    https://identity-api.paymongo.com/v1/users/lookup_account_owner
  • Auth
    API key in header X-Internal-Api-Key

Request body

organization_idstring required

Example request

{
  "organization_id": "org_abc123"
}

Response

OK

has_moreboolean

Example response

{
  "data": {
    "attributes": {
      "accelerator_program_code": "sme",
      "affiliate_partner": "partner-name",
      "confirmed": true,
      "contact_number": "+639171234567",
      "email": "owner@example.com",
      "email_confirmation": "new-owner@example.com",
      "email_confirmation_updated_at": 1735689600,
      "first_name": "Juan",
      "last_name": "dela Cruz",
      "organization_id": "org_abc123",
      "roles": [
        "account_owner"
      ]
    }
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.