{
  "opencollection": "1.0.0",
  "info": {
    "name": "Consents Account On File Account Controls (New) Account Controls (New) Payouts API",
    "version": "v0.2.3"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Payouts",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Create Payout Payment",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://sandbox.leantech.me/payouts/v1/payment",
            "headers": [
              {
                "name": "idempotency-key",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create Payout Payment"
        },
        {
          "info": {
            "name": "Create Bulk Payout Payment",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://sandbox.leantech.me/payouts/v1/bulk-payments",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create Bulk Payout Payment"
        },
        {
          "info": {
            "name": "List Payouts",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://sandbox.leantech.me/payouts/v1/payments",
            "params": [
              {
                "name": "page_number",
                "value": "",
                "type": "query",
                "description": "The page number."
              },
              {
                "name": "page_size",
                "value": "",
                "type": "query",
                "description": "The number of Payout payments to return per page."
              },
              {
                "name": "amount_min",
                "value": "",
                "type": "query",
                "description": "The lower bound limit on the amount value for Payout payments."
              },
              {
                "name": "amount_max",
                "value": "",
                "type": "query",
                "description": "The upper bound limit on the amount value for Payout payments."
              },
              {
                "name": "from",
                "value": "",
                "type": "query",
                "description": "A DateTime in ISO-8601 format as the lower bound limit on the created_at value for Payout payments."
              },
              {
                "name": "to",
                "value": "",
                "type": "query",
                "description": "A DateTime in ISO-8601 format as the upper bound limit on the created_at value for Payout payments."
              },
              {
                "name": "from_updated_at",
                "value": "",
                "type": "query",
                "description": "A DateTime in ISO-8601 format as the lower bound limit on the updated_at value for Payout payments."
              },
              {
                "name": "to_updated_at",
                "value": "",
                "type": "query",
                "description": "A DateTime in ISO-8601 format as the upper bound limit on the updated_at value for Payout payments."
              }
            ]
          },
          "docs": "List Payouts"
        },
        {
          "info": {
            "name": "Get Payment History",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://sandbox.leantech.me/payouts/v1/payments/:payment_id/history",
            "params": [
              {
                "name": "payment_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get Payment History"
        },
        {
          "info": {
            "name": "Create Payouts Destination(s)",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://sandbox.leantech.me/payouts/v1/payment/destinations",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create payment destinations for use with Payouts. Destinations created with Payouts create a corresponding beneficiary with your bank."
        },
        {
          "info": {
            "name": "Get Payouts Destination",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://sandbox.leantech.me/payouts/v1/payment/destinations/:destination_id",
            "params": [
              {
                "name": "destination_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Create payment destinations for use with Payouts. Destinations created with Payouts create a corresponding beneficiary with your bank."
        },
        {
          "info": {
            "name": "Get Payment History",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://sandbox.leantech.me/payouts/v1/payments/:intent_id/history",
            "params": [
              {
                "name": "intent_id",
                "value": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
                "type": "path",
                "description": "Payment intent ID"
              }
            ]
          },
          "docs": "Get payment history for a payment intent"
        },
        {
          "info": {
            "name": "Get Payouts",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://sandbox.leantech.me/payouts/v1/:payment_id",
            "params": [
              {
                "name": "payment_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the payment"
              }
            ]
          },
          "docs": "Fetch a single payment"
        },
        {
          "info": {
            "name": "Get Payout Intent",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://sandbox.leantech.me/payouts/v1/intents/:payment_intent_id",
            "params": [
              {
                "name": "payment_intent_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "The Payment intent is the contract between your backend and Lean to certify that you will request a payment from your customer of a specified amount and currency. In order to initiate a payment, the `payment_intent_id` must be provided into the `pay()` method of the LinkSDK."
        },
        {
          "info": {
            "name": "Split Payouts",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://sandbox.leantech.me/payouts/v1/split-payments",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "A split payout always divides the payout by either a fixed amount or a percentage split—depending on the strategy provided in the request. In case no strategy is entered in the request, the split will fallback to the preconfigured percentage (requires manual configuration). Additionally, any fee payment resulting from the split is directed to a preconfigured destination."
        },
        {
          "info": {
            "name": "List Refunds",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://sandbox.leantech.me/payouts/refunds",
            "params": [
              {
                "name": "page_number",
                "value": "",
                "type": "query",
                "description": "The page number."
              },
              {
                "name": "page_size",
                "value": "",
                "type": "query",
                "description": "The number of Payout payments to return per page."
              }
            ]
          },
          "docs": "List refunds payments"
        },
        {
          "info": {
            "name": "Create Refund ",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://sandbox.leantech.me/payouts/refunds",
            "headers": [
              {
                "name": "idempotency-key",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a refund"
        },
        {
          "info": {
            "name": "getPayoutsRefundsByRefundId",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://sandbox.leantech.me/payouts/refunds/:refund_id",
            "params": [
              {
                "name": "refund_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get refund details by refund ID"
        }
      ]
    }
  ],
  "bundled": true
}