Skip to content
payrocdevelopers

List, retrieve, then delete a funding recipient.

List, retrieve, then delete a funding recipient.

Actors

Integratorclient

Finds and deletes the funding recipient; 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 recipients

    API request

    OPTIONAL — return a paginated list of funding recipients so the caller can find the target recipientId. Skip if the recipientId is already known.

    Integrator → Payroc gateway

    GET/funding-recipients
  2. 2

    Get recipient

    API request

    OPTIONAL — retrieve the target funding recipient to confirm it before deleting.

    Integrator → Payroc gateway

    GET/funding-recipients/{recipientId}

    Complete the earlier steps before continuing.

  3. 3

    Delete recipient

    API request

    Delete the funding recipient. This is destructive and cascades - it also removes the recipient's funding accounts and owners. Returns 204 No Content.

    Integrator → Payroc gateway

    DELETE/funding-recipients/{recipientId}

    Complete the earlier steps before continuing.

Arazzo workflow source
arazzo: 1.0.0
info:
  title: Delete a funding recipient
  summary: Find a funding recipient, then delete it (cascading to its accounts and
    owners).
  description: |
    Removes a funding recipient. Discover the recipient, optionally retrieve it, then delete it.
    Agent gotchas: - The path parameter is recipientId (an integer). - deleteFundingRecipient is destructive and CASCADES: it removes the recipient
      together with all of its funding accounts and owners. Returns 204 No Content.

    To amend a recipient instead, use the update-a-funding-recipient workflow. Mutually exclusive with update for the same recipient.
  version: 1.0.0
sourceDescriptions:
  - name: payroc-api
    url: /openapi.yaml
    type: openapi
workflows:
  - workflowId: delete-a-funding-recipient
    summary: List, retrieve, then delete a funding recipient.
    description: |
      Optionally list recipients (listRecipients) and retrieve the target recipient (getRecipient) to confirm it, then delete it (deleteRecipient). The list/retrieve steps are optional when you already hold the recipientId.
    x-actors:
      - id: integrator
        name: Integrator
        type: client
        description: Finds and deletes the funding recipient; 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
      properties:
        recipientId:
          type: integer
          description: Unique identifier of the funding recipient to delete.
          example: 234
        limit:
          type: integer
          description: Maximum number of funding recipients to return per page when listing.
          example: 25
    steps:
      - stepId: listRecipients
        x-actor: integrator
        x-actor-to: payroc-gateway
        x-label: list funding recipients
        description: |
          OPTIONAL — return a paginated list of funding recipients so the caller can find the target recipientId. Skip if the recipientId is already known.
        operationId: listFundingRecipients
        parameters:
          - name: limit
            in: query
            value: $inputs.limit
        successCriteria:
          - condition: $statusCode == 200
        outputs:
          firstRecipientId: $response.body#/data/0/recipientId
      - stepId: getRecipient
        x-actor: integrator
        x-actor-to: payroc-gateway
        x-label: get funding recipient
        description: |
          OPTIONAL — retrieve the target funding recipient to confirm it before deleting.
        operationId: getFundingRecipient
        parameters:
          - name: recipientId
            in: path
            value: $inputs.recipientId
        successCriteria:
          - condition: $statusCode == 200
        outputs:
          recipientId: $response.body#/recipientId
          status: $response.body#/status
      - stepId: deleteRecipient
        x-actor: integrator
        x-actor-to: payroc-gateway
        x-label: delete funding recipient
        description: |
          Delete the funding recipient. This is destructive and cascades - it also removes the recipient's funding accounts and owners. Returns 204 No Content.
        operationId: deleteFundingRecipient
        parameters:
          - name: recipientId
            in: path
            value: $inputs.recipientId
        successCriteria:
          - condition: $statusCode == 204
    outputs:
      recipientId: $inputs.recipientId
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