Skip to main content
Permission: Read · Workspace: required (from goody_workspaces_list) Lists the payment methods the user can charge for a gift in the given workspace. Call this before sending so the user can confirm the funding source.

Parameters

workspace_id
string
required
Workspace UUID — from goody_workspaces_list. Gates access to the user’s payment methods.

Returns

items
object[]
The payment methods available in this workspace.

Example

"What can I pay with?"
{
  "name": "goody_payment_methods_list",
  "arguments": { "workspace_id": "3f8a…" }
}
{
  "items": [
    {
      "id": "c41d…",
      "name": "Visa 1234",
      "cardholder_name": "Jordan Lee",
      "balance": null
    },
    {
      "id": "BALANCE",
      "name": "Balance",
      "cardholder_name": null,
      "balance": 25000
    },
    {
      "id": "CORPORATE_ACCOUNT",
      "name": "Corporate Account",
      "cardholder_name": null,
      "balance": 480000
    }
  ]
}
Confirm the funding source with the user, then pass the chosen id as payment_method_id to goody_order_batches_create.