Skip to content
payrocdevelopers

List, retrieve, then delete an owner of a funding recipient.

List, retrieve, then delete an owner of a funding recipient.

Actors

Integratorclient

Finds and deletes the owner; the only API caller in this workflow.

Payroc gatewayapi

The Payroc API surface these steps call.

Sequence

Follow the numbered steps in order. Each step is described under Steps.

Steps

Follow the workflow

Simulate API steps with synthetic inputs. Confirm manual steps yourself before continuing.

Interactive workflow tests are unavailable in this profile. Use the linked reference and source files to send API requests with your own client.

  1. 1

    List owners

    API request

    OPTIONAL — list the owners of the funding recipient to discover the numeric ownerId. Skip if you already hold the ownerId.

    Integrator → Payroc gateway

    GET/funding-recipients/{recipientId}/owners
  2. 2

    Get owner

    API request

    OPTIONAL — retrieve the full details of a single owner before deleting.

    Integrator → Payroc gateway

    GET/owners/{ownerId}

    Complete the earlier steps before continuing.

  3. 3

    Delete owner

    API request

    Delete an owner from the funding recipient — only valid there; the API rejects attempts against a processing account's owner (400). The API also rejects this call if the owner is the last one on the funding recipient. Returns no body on success.

    Integrator → Payroc gateway

    DELETE/owners/{ownerId}

    Complete the earlier steps before continuing.

Arazzo workflow source
arazzo: 1.0.0
info:
  title: Delete an owner
  summary: Find an owner, then delete them.
  description: |
    Removes one of the owners attached to a funding recipient. This workflow finds an owner and deletes them.
    Agent gotchas (load-bearing): - deleteOwner only works for owners associated with a FUNDING RECIPIENT. The
      API rejects attempts to delete an owner of a processing account with a 400
      error.
    - You cannot delete the last owner on a funding recipient — the API requires
      at least one owner to remain and rejects the deletion.
    - The list step requires a `recipientId`, not a `processingAccountId`. The
      recipientId is returned when you create a funding recipient; use the
      list-funding-recipients operation to look it up if needed.
    - deleteOwner returns 204 No Content.
    To amend an owner instead, use the update-an-owner workflow.
  version: 1.0.0
sourceDescriptions:
  - name: payroc-api
    url: /openapi.yaml
    type: openapi
workflows:
  - workflowId: delete-an-owner
    summary: List, retrieve, then delete an owner of a funding recipient.
    description: |
      Optionally list the owners of the funding recipient (listFundRecipientOwners) and retrieve one (getOwner) to confirm it, then delete it (deleteOwner). Delete only affects funding-recipient owners; against a processing-account owner it is rejected with a 400. The list/retrieve steps are optional when you already hold the ownerId.
    x-actors:
      - id: integrator
        name: Integrator
        type: client
        description: Finds and deletes the owner; the only API caller in this workflow.
      - id: payroc-gateway
        name: Payroc gateway
        type: api
        description: The Payroc API surface these steps call.
    inputs:
      type: object
      required:
        - recipientId
        - ownerId
      properties:
        recipientId:
          type: string
          description: Unique identifier of the funding recipient whose owners you are
            listing.
          example: 4ab5c
        ownerId:
          type: integer
          description: |
            Unique identifier of the owner to delete. Returned by Create Funding Recipient or by the List Owners step.
          example: 4564
    steps:
      - stepId: listOwners
        x-actor: integrator
        x-actor-to: payroc-gateway
        x-label: list owners
        description: |
          OPTIONAL — list the owners of the funding recipient to discover the numeric ownerId. Skip if you already hold the ownerId.
        operationId: listFundRecipientOwners
        parameters:
          - name: recipientId
            in: path
            value: $inputs.recipientId
        successCriteria:
          - condition: $statusCode == 200
        outputs:
          firstOwnerId: $response.body#/0/ownerId
      - stepId: getOwner
        x-actor: integrator
        x-actor-to: payroc-gateway
        x-label: get owner
        description: |
          OPTIONAL — retrieve the full details of a single owner before deleting.
        operationId: getOwner
        parameters:
          - name: ownerId
            in: path
            value: $inputs.ownerId
        successCriteria:
          - condition: $statusCode == 200
        outputs:
          ownerId: $response.body#/ownerId
          equityPercentage: $response.body#/relationship/equityPercentage
          isControlProng: $response.body#/relationship/isControlProng
      - stepId: deleteOwner
        x-actor: integrator
        x-actor-to: payroc-gateway
        x-label: delete owner
        description: |
          Delete an owner from the funding recipient — only valid there; the API rejects attempts against a processing account's owner (400). The API also rejects this call if the owner is the last one on the funding recipient. Returns no body on success.
        operationId: deleteOwner
        parameters:
          - name: ownerId
            in: path
            value: $inputs.ownerId
        successCriteria:
          - condition: $statusCode == 204
    outputs:
      ownerId: $inputs.ownerId
Download Arazzo

Search documentation

API reference169
Guides118
Knowledge38
legal1
Solutions32
Workflows74
↑↓highlight↵openView all search results

Menu

Theme

Sign out

Your saved plans remain in your organization. This browser’s private draft and account view will be cleared.

Talk to an engineer