Skip to main content

CLI command reference

Run peer-pay-cli COMMAND --help for a command's options and an example, and peer-pay-cli GROUP, such as peer-pay-cli webhooks, to list a group's commands. Help needs no login or running server. Options can go before or after the command.

Commands authenticate in one of two ways, chosen by the command:

  • API key: the merchant API key saved in the profile by login.
  • Session: the email sign-in saved by login. Some session commands need the owner role, noted below. Commands marked "owner or manager" reject cashiers.

The local mock accepts its API key for both.

Global options​

OptionMeaning
--profile NAMEUse this saved profile. Takes precedence over --local.
--localUse the local mock profile.
--config FILECredentials file. Overrides PEER_PAY_CONFIG and the default ~/.config/peer-pay/config.json.
--jsonPrint the full JSON result. Automatic when stdout is piped, except for integration runbook text.
--show-secretsShow values that output redacts: API keys, order tokens, signing secrets, session tokens, invite and transfer links, and webhook custom headers. Has no effect on serve, profiles, or handoff.
--helpShow help for the command.
--versionPrint the installed CLI version.

In a terminal, a successful command prints the API message and responseObject. With --json or a pipe it prints the whole envelope: success, message, responseObject, and statusCode. Bodyless HTTP 204 responses return responseObject: null.

Errors go to stderr and exit with code 1. A terminal shows HTTP STATUS: MESSAGE [ERROR_CODE]; JSON mode prints the failure envelope with errorCode and responseObject when the API sent them. An interrupted command exits with 130 (Ctrl+C) or 143 (SIGTERM). Running peer-pay-cli with no command outside a terminal prints help to stderr and exits with 2.

webhooks create and merchant rotate-key print the new secret or key in full once, save it in the profile, and write a reminder to stderr. Prefer credentials export over --show-secrets for application setup.

Grants​

Mint single-use checkout grants for user-directed payouts and on-ramps. The merchant sets optional limits and a reference; the customer supplies the money details in Peer's hosted checkout. Available in CLI 0.11.0.

grants create​

Uses the profile's merchant API key to call POST /api/v1/checkout-grants. Prints grantId, token, expiresAt, and checkoutUrl in responseObject. The token and hosted link are printed in full so you can open the checkout.

peer-pay-cli grants create --kind onramp --reference deposit-001 --return-url https://wallet.example/return --min-amount 10 --max-amount 100 --expires-in 900
OptionMeaning
--kindRequired: payout or onramp.
--referenceMerchant reference, 1–128 characters.
--return-urlHTTPS return URL.
--min-amountOptional minimum USDC amount, at most 6 decimals.
--max-amountOptional maximum USDC amount, at most 6 decimals. Equal bounds pin the amount.
--expires-in60–3600 seconds; defaults to 900. Limits first consumption only.

checkoutUrl is built as /g/<grantId>?t=<token> from the profile's optional checkoutBaseUrl. Existing local profiles default to http://localhost:5173; profiles using https://api.pay.peer.xyz default to https://pay.peer.xyz. For another API origin, set checkoutBaseUrl in that profile in the credentials JSON before minting. A local serve restart preserves it and uses it for grant payout links too. Run the checkout app separately, pointing its existing VITE_API_BASE_URL setting at the simulator.

The local simulator supports mint, context, result, payout consume and order consume with the API's validation and binding rules. Grants and their created records survive serve --state restarts. The in-memory hourly budgets reset on restart: 600 mints per merchant (or its configured override), 5 payout attempts per player. Payouts retain the simulator's seeded-merchant and fixed-price funding restrictions. Local merchants use sandbox order entitlements.

Local payout consumption uses Authorization: Bearer local-player:alice@example.com in place of a Peer-app sign-in, plus x-grant-token. The browser's real Privy login does not produce this stand-in token. On-ramp consumption needs no login: it uses x-grant-token and a 32-byte base64url x-grant-consumer secret. Keep that secret for replay and result reads. Both grant headers are allowed by localhost CORS.

Every payment on an order a grant created needs that order's token in x-order-token: the orderToken the order consume returned. Without it the simulator answers 401, as the API does. The local-only simulate shortcut is the exception: it has no API counterpart and still takes the merchant key.

To simulate a suspended merchant, run peer-pay-cli local settings --local --data '{"suspended":true}' (use false to resume). Mint and first consumption are refused; consumed results still recover.

Profiles​

A profile stores an API URL, merchant, API key, session, order tokens, and webhook signing secrets. Commands use the first of: --profile NAME, --local, the active profile, or local if it exists.

  • login saves a hosted profile and makes it active. Without --profile, it reuses the profile for the same API URL and merchant, or names a new one after the merchant: lowercase letters, numbers, _, and -, at most 32 characters, with -2, -3 on collision.
  • serve owns the local profile. It never changes the active profile, and login cannot use the name local.
  • sandbox enable and setup save the hosted sandbox as NAME-sandbox.
  • use NAME switches the active profile, profiles lists them, and logout removes one.

The credentials file has mode 0600; keep it private. One command at a time can use a profile. A second one fails with Another command owns profile NAME (PID …); wait for it to finish.

Sessions​

Session commands refresh the email sign-in when its access token is missing or expired, or once after an HTTP 401. A token piped to login --token-stdin cannot refresh; run login again when it expires. API-key commands never refresh.

Filling in required arguments​

In a terminal, a missing required argument is asked for after the profile is resolved:

  • IDs open a picker of your orders, payments, payouts, webhooks, webhook deliveries, invitations, removable team members, merchants, sub merchants, disputes, onboarding steps, local funding issues, or profiles. Pickers show the API's first page; pass an ID to use anything else.
  • payments create offers the order's enabled rails. Fixed values, such as --quote-mode, --outcome, --event, --tier, --fee-payer, --status, and merchant identity-help's --reason, open a menu.
  • Other values, such as actions get's ACTION_ID, are text questions.
  • merchant concierge and merchant concierge-inquiry walk through the nine intake questions when --answers is missing.

Optional flags never prompt, except that team invite offers --role when it asks for --email, and merchant identity-help asks for --message when you pick OTHER from its --reason menu. --data skips the flag questions. JSON bodies are never prompted: local settings, local admin, and payouts resolve-funding-issue need explicit --data. Without a terminal, a missing argument fails with a usage error.

peer-pay-cli webhooks test              # pick a webhook
peer-pay-cli webhooks test WEBHOOK_ID # run immediately

Menus use Up/Down (or k/j, Ctrl+P/N) to move and Enter or Space to choose. In multi-selects, Space toggles, a selects or clears all, and Enter confirms. Esc, Ctrl+C, or Ctrl+D cancels. Menus write to stderr, so stdout stays clean for --json. Set NO_COLOR to disable styling.

Request input​

--data takes inline JSON or @FILE. Quote inline JSON so your shell passes it unchanged. A command takes either --data or its individual body options, not both. JSON amounts and chain IDs are decimal strings. IDs in examples are placeholders for IDs the API returns.

peer-pay-cli merchant settings --profile live --data '{"defaultPaymentCurrency":"USD"}'
peer-pay-cli merchant settings --profile live --data @settings.json

Getting started​

Run peer-pay-cli with no command in a terminal to choose from a menu: sign in, set up your merchant, hand off to a coding agent, start the local sandbox, enable the remote sandbox, or show status.

serve​

Start the local mock backend on 127.0.0.1 and save its API key in the local profile. No account or database is needed. Open the URL in a browser for a summary page with quickstart commands; it never shows credentials.

Like the hosted API, the local server answers malformed input with HTTP 400 before routing. A URL containing an encoded NUL byte (%00) gets Request URL contains a NUL byte. A JSON body with a NUL (\u0000) in any value or key gets Request body contains a NUL byte. A path that isn't valid percent-encoding (for example %c0%af) gets Invalid URL encoding.

OptionMeaning
--portLocal port (default 4020).
--state FILEPersist local state to this file. Without it, state lives in memory.
--api-keyLocal API key. Defaults to PEER_PAY_API_KEY, then a generated key. It must match the key saved in --state.

serve runs until Ctrl+C or SIGTERM, which saves the state and releases the FILE.lock lock. After a hard kill, remove a stale lock only once that server has exited. A state file written by an older CLI fails to load; see local reset. Set PAYOUT_MIN_USDC (a whole number from 1 to 10, default 10) to lower the smallest local payout step and buyer payment.

peer-pay-cli serve --state ./peer-pay.json

login​

Sign in or create a merchant account with email. Login sends a code to the email and reads it at a hidden prompt, so it needs a terminal unless you pipe a token. The first sign-in creates a merchant account when self-serve creation is enabled. If the environment has paused creation, login returns HTTP 403 MERCHANT_SELF_SERVE_DISABLED without saving a profile. Existing merchant sign-in and accepted invitations remain available.

OptionMeaning
--emailAccount email. Asked for when omitted.
--merchant-idSelect one of the merchants you can access.
--referral-codeAnother merchant's referral code. Applies only when this sign-in creates your merchant.
--transfer-tokenToken from a merchant account transfer email.
--token-stdinRead an existing access token from a pipe instead of email. Cannot combine with --email.
--api-urlAPI origin (default https://api.pay.peer.xyz). HTTP is allowed only on localhost.
--client-id, --app-identifierOverride the public sign-in client ID or native app identifier that the CLI reads from Peer Pay.

The result includes profile, merchantId, role, environment, accessibleMerchants, and walletsProvisioned. For owners, false means the merchant wallets are not ready; run merchant provision-wallets. Managers and cashiers get null.

Cashiers receive no API key. Login then clears the profile's saved API key, order tokens, and webhook secrets. Clearing them does not revoke copies of an old key; rotate it with merchant rotate-key.

With --transfer-token, or for an email with a pending transfer and no merchant, login returns a loginState instead of a merchant:

  • PENDING_OWNERSHIP_TRANSFER: login saves a profile without a merchant (pending-transfer, or --profile NAME). Run peer-pay-cli transfer accept --profile NAME --token TRANSFER_TOKEN next.
  • OWNERSHIP_TRANSFER_EMAIL_MISMATCH: the transfer is for another email, shown masked. Nothing is saved.
  • OWNERSHIP_TRANSFER_UNAVAILABLE: the transfer was withdrawn or expired, or the token is unknown. Nothing is saved.
peer-pay-cli login --email owner@example.com

setup​

Configure your hosted merchant with guided questions or a JSON file. Owner or manager session. In a terminal, setup offers sign-in first when the profile is missing, local, or has no session. Without a terminal, run it with --file and --dry-run or --yes.

OptionMeaning
--file FILESetup JSON file. See Merchant setup.
--dry-runPreview the plan. Cannot combine with --yes or --harness.
--yesApply without the confirmation prompt.
--harness, --project, --launchAfter applying, continue with a coding agent, as in handoff.

--dry-run validates the input before reading current state, makes no changes, and does not provision a sandbox.

Setup saves the business profile, the pricing plan when chosen, settings, logo, and webhook, then enables the hosted sandbox and saves NAME-sandbox without activating it. Activating a merchant's plan needs the owner identity verified with ZKPassport in the merchant dashboard: until then setup skips the plan choice for the owner, and an owner's setup file with tier fails before any write. While the plan is not activated, choosing the current tier is sent too, which activates it. The result includes applied, onboarding, and sandboxProfile. Managers skip the owner-only onboarding read and plan choice, so onboarding is skipped: requires owner. Writes run in order; if one fails, earlier ones stay applied, so fix the error and rerun.

peer-pay-cli setup --profile live

handoff​

Prepare agent instructions that explicitly select your merchant profile, and optionally launch a coding agent with them.

OptionMeaning
--harness NAMEcodex, claude, opencode, gemini, or prompt. Asked for in a terminal; defaults to prompt in scripts.
--project DIRRepository to open in the agent (default: current directory).
--output FILEWrite the instructions to this new file. Defaults to a new file under handoffs/ next to the credentials file. Never overwrites.
--launchStart the installed agent and wait for it to exit. Not valid with prompt.

Install and sign in to your agent separately; its executable must be on PATH. In a terminal, handoff asks for the agent and project, then whether to launch. The instructions name the profile and credentials file but contain no API keys, tokens, or signing secrets. They tell the agent to pass --profile NAME on every command, export credentials into an ignored file, and ask before changing merchant settings or deploying. Handoff does not change the active profile.

A launched agent receives PEER_PAY_CONFIG but not PEER_PAY_API_KEY. A missing executable or a nonzero exit fails the command; the error includes the instructions path so you can resume. The agent's own output is interactive even with --json.

Handoff also starts a setup run, so the merchant can follow the agent on the dashboard's onboarding page. The instructions name the run and tell the agent to report milestones with progress. A launched agent also receives PEER_PAY_SETUP_RUN. While it runs, handoff ignores Ctrl-C so it can report how the agent ended; Ctrl-C still reaches the agent. If the run can't be started (for example, a cashier profile without an API key), handoff prints a warning and carries on without the progress steps. Running handoff again starts a new run.

peer-pay-cli handoff --harness codex --project ./my-store --launch
peer-pay-cli handoff --profile live --harness claude --project ./my-store --launch
peer-pay-cli handoff --output ./peer-pay-instructions.md

progress​

Report a setup milestone to the merchant's dashboard during an agent handoff. Agents run this from the handoff instructions; you rarely need it yourself.

OptionMeaning
--run IDSetup run from the handoff instructions. Defaults to PEER_PAY_SETUP_RUN.
--milestone NAMEread-app, merchant-settings, checkout, or webhook-handler.
--progress-state STATEworking, done, or needs-merchant, which shows the note to the merchant as a request.
--note TEXTOne plain sentence for the dashboard, up to 200 characters. Control and invisible formatting characters are removed.

Use the handoff profile even while testing with --profile local: the run lives on the backend that handoff used. Bad arguments fail the command. Any other failure, such as a network error, a refused key, an ended run or a rate limit, prints a warning and exits 0, so the agent's setup work continues.

peer-pay-cli progress --profile live --run RUN_ID --milestone checkout --progress-state done --note "Orders are created on the server"

status​

Check integration verification for the selected profile. API key. The result adds profile and mode. Locally, verified becomes true once your handler returns a 2xx for an ORDER_FULFILLED delivery.

If an active webhook's last ORDER_FULFILLED delivery failed or never arrived, nextAgentAction tells you to keep the webhook and its signing secret, correct its URL with webhooks update --url if needed, fix the endpoint, and run test-order with the same sandbox profile and no --order-id. Check status again afterward. A queued delivery only needs another status check. An inactive webhook still needs re-enabling; register a webhook only when none exists.

peer-pay-cli status --profile live-sandbox

profiles​

List saved profiles with name, active, mode, apiUrl, and merchantId. Credentials are never shown.

peer-pay-cli profiles

use​

Set the active profile. The profile must exist; use local selects the local mock.

peer-pay-cli use local

logout​

Remove a saved profile from this computer and clear the active selection if it pointed there. Logout does not rotate API keys or sign out other devices.

peer-pay-cli logout --profile live

whoami​

Read your signed-in profile, accessible merchants, and staking. Session.

peer-pay-cli whoami --profile live

sandbox enable​

Enable the hosted sandbox for your merchant, save its API key as NAME-sandbox, and make that profile active. Owner or manager session; in a terminal it offers sign-in first. If NAME-sandbox belongs to another API URL or merchant, the CLI uses NAME-sandbox-2, -3, and so on. Rerunning reuses the matching profile and keeps its order tokens and webhook secrets. The result includes sandboxProfile and activeProfile. Run peer-pay-cli use NAME to return to your merchant.

peer-pay-cli sandbox enable

integration runbook​

Print the public integration runbook as Markdown. No credentials needed. It prints text even when piped; --json wraps it in a JSON string.

peer-pay-cli integration runbook --profile live

Orders​

See create a checkout session for order fields and limits, and the orders API for responses.

orders create​

Create an order. API key, or your session with --management. Choose one amount mode: --amount, --fiat-amount with --fiat-currency, --open-amount with --currency, or a --data body.

OptionMeaning
--amountOrder amount in USDC (requestedUsdcAmount).
--fiat-amount, --fiat-currencyOrder amount in a fiat currency, converted to USDC.
--open-amount, --currencyLet the customer type the amount. --currency is the order's currency. See open-amount orders.
--min, --max, --presetsOpen-amount range and 1–6 suggested amounts, in --currency, at most 2 decimals.
--idempotency-keyRetry key for this business order.
--destination-address, --destination-token, --destination-chain-idPayout override for this order.
--fee-payerMERCHANT, PAYEE, or SPLIT.
--buyer-fee-share-bpsBuyer share of fees for SPLIT: 0–10000 in steps of 1000. See split payment fees.
--enabled-railsComma-separated rails for this order, replacing the merchant's list.
--dynamic-orders-enabledtrue or false. See dynamic orders.
--expires-in-minutesWhole minutes the checkout stays open, 30 to 10080. Omitted, the order never expires. See checkout expiry.
--success-url, --cancel-urlCheckout redirect URLs. Each must be http:// or https://.
--notesJSON object, inline or @FILE.
--managementCreate through your session. Cashiers must use in-person checkout and cannot override payout, rails, or fees.
--in-persontrue or false for in-person checkout. Requires --management.
--dataFull JSON request body.

The CLI saves the returned order token in the profile. orders resize, payments cancel, and some payments create options need it.

Retrying with the same --idempotency-key and amount returns the same order with the message Order already created and a null order token; the CLI keeps the token from the first response. A different amount returns HTTP 409 IDEMPOTENCY_KEY_CONFLICT. HTTP 409 MERCHANT_OWNERSHIP_CHANGED means the merchant changed owners mid-request and nothing was saved; retry with the same key.

The local mock defaults to the hosted limits, 1 USDC minimum and 10,000 USDC maximum; change them with local settings.

peer-pay-cli orders create --amount 10 --idempotency-key order-123
peer-pay-cli orders create --amount 100 --fee-payer SPLIT --buyer-fee-share-bps 5000
peer-pay-cli orders create --open-amount --currency USD --min 10 --max 2000 --presets 25,50,100

orders get​

Read an order and its payments. API key, or your session with --management.

peer-pay-cli orders get ORDER_ID

orders list​

List merchant orders, newest first. API key.

OptionMeaning
--statusCREATED, PARTIALLY_FULFILLED, FULFILLED, or CANCELLED.
--display-statusCREATED, ACTIVE, or EXPIRED. Overrides --status.
--chargeback-statusNONE, PARTIALLY_CHARGEBACKED, or CHARGEBACKED.
--order-idCase-insensitive substring of the order ID.
--search3–128 characters; matches IDs, notes, rails, recipients, transaction hashes, and amounts. Shorter text is ignored.
--page, --limitPage (default 1) and page size (1–100, default 20).

See list orders for the filter and search rules.

peer-pay-cli orders list
peer-pay-cli orders list --display-status ACTIVE --chargeback-status NONE --limit 10

orders cancel​

Cancel a CREATED order that has never had a payment. Session. Cancelling an already cancelled order returns HTTP 409.

peer-pay-cli orders cancel ORDER_ID

orders resize​

Resize an unpaid dynamic order using its cached order token. --amount is the new total and --expected-amount the current total, both in USDC. An order that cannot be resized returns HTTP 409 RESIZE_CONFLICT.

peer-pay-cli orders resize ORDER_ID --amount 15 --expected-amount 10

orders payments​

List all payment attempts for an order. API key, or your session with --management.

peer-pay-cli orders payments ORDER_ID --profile live

Read the customer support link for each order in --order-ids, a comma-separated list. API key.

peer-pay-cli orders support-links --profile live --order-ids order_a,order_b

Payments​

payments create​

For a hosted USD Venmo or Cash App quote carrying zagnuOfferId, confirm the buyer amount and pass the value with --zagnu-offer-id. A 409 ZAGNU_REQUOTE requires a fresh platform quote and buyer confirmation. The local simulator supplies native Peer liquidity and returns that conflict for a provider offer. Provider reservations and signed delivery events run in the API.

Create a payment attempt on an order. API key; the CLI attaches the order token saved by orders create when it has one. --rail is required unless you send --data. See payment platforms for rail names.

OptionMeaning
--railPayment rail, such as venmo, revolut, or relay_8453.
--currencyOn fiat rails, the currency the payment is priced in (default USD). On crypto rails, the token symbol; live merchants must send it, and sandboxes default to USDC.
--refund-toA wallet the buyer controls on the payment chain. Required for every crypto rail, including EVM, Zcash, Bitcoin, Solana, and Tron. EVM addresses must be non-zero 0x + 40 hex characters. Mixed-case EVM addresses must have a valid EIP-55 checksum; all-lowercase and all-uppercase addresses are accepted. Omit for Apple Pay; a supplied address is rejected.
--onramp-providercoinbase_apple_pay for Apple Pay. Needs apple_pay in the order's rails, --rail relay_8453 --currency USDC, and a saved order token.
--replacement-payment-idPayment to replace. Needs a saved order token. Live merchants cancel the replaced payment; sandboxes leave it unchanged.
--payment-method-idZelle bank method, such as zelle-chase.
--quote-limitNumber of quotes, 1–20.
--excluded-pay-toPay-to value to exclude from quotes. Repeatable.
--amount, --amount-currency, --expected-amount-versionOpen-amount orders only: save a new amount, typed in --amount-currency, with the payment. Send all three; on a fiat rail --currency must match --amount-currency.
--dataFull JSON request body.

Both local simulation and hosted commands reject missing crypto refund addresses with HTTP 400 / CRYPTO_REFUND_ADDRESS_MISSING, and invalid addresses with HTTP 400 / CRYPTO_REFUND_ADDRESS_INVALID. Apple Pay rejects --refund-to with Apple Pay payments must not include refundTo.

Errors you can handle:

StatusCodeMeaning
503PAYMENTS_PAUSEDNew payments are paused; existing ones keep settling. See payments API.
502CRYPTO_PAYMENT_ROUTE_FAILEDThe crypto route could not be created. The message carries the provider's reason.
410ORDER_EXPIREDThe order is past its expiresAt, including after the expiry sweep cancelled it. Payments already started are unaffected; create a new order.
409ORDER_FROM_PREVIOUS_OWNERThe order was created before the merchant changed owners. Create a new order.
409STAKE_COVERAGE_UNAVAILABLE in responseObject.errorCodeThe quote no longer fits the available stake. Fetch a fresh quote and retry.
400INTENT_ABOVE_MAXWith buyer-paid fees, the payment exceeds the per-payment maximum.
peer-pay-cli payments create ORDER_ID --rail venmo --currency USD
peer-pay-cli payments create ORDER_ID --rail revolut --currency EUR \
--amount 92 --amount-currency EUR --expected-amount-version 0

payments list​

List merchant payments, newest first. API key.

OptionMeaning
--statusCREATED, SETTLED, CANCELLED, EXPIRED, or FAILED.
--payout-statusPAID, HELD, RELEASED, or DISPUTED. See deferred payouts.
--chargeback-statusNONE or CHARGEBACKED.
--page, --limitPage (default 1) and page size (1–100, default 20).
peer-pay-cli payments list

payments cancel​

Cancel an open payment using its cached order token.

peer-pay-cli payments cancel ORDER_ID PAYMENT_ID

A fiat payment the customer marked paid in checkout, or whose window was extended, is refused with HTTP 409 PAYMENT_MARKED_PAID or PAYMENT_EXTENDED from the hosted API and stays open. CLI 0.11.0 does not simulate the marked-paid or extended states. Taking the mark back lifts PAYMENT_MARKED_PAID but keeps buyerMayHavePaid set on the payment, in the hosted API and the local mock.

payments bridge​

Read bridge status and attempt history for a payment. Session.

peer-pay-cli payments bridge PAYMENT_ID

payments recreate​

Request a replacement for a failed, expired, or cancelled fiat payment.

peer-pay-cli payments recreate ORDER_ID PAYMENT_ID --profile live --idempotency-key retry-001

payments extend​

Request an extension for an eligible fiat payment window.

peer-pay-cli payments extend ORDER_ID PAYMENT_ID --profile live --idempotency-key extend-001

payments fulfill-sar​

Request seller-verified fulfillment using --tx-id, the payment platform's transaction ID (not an onchain hash).

peer-pay-cli payments fulfill-sar ORDER_ID PAYMENT_ID --profile live --tx-id TRANSACTION_ID --idempotency-key fulfill-001

actions get​

Read a remediation action and its current payment snapshot.

peer-pay-cli actions get ORDER_ID ACTION_ID --profile live

payments recreate, payments extend, and payments fulfill-sar use your API key, or an owner or manager session with --management; actions get accepts any session. A request returns an action ID; HTTP 202 means accepted, not done. Poll actions get until the status is SUCCEEDED, BLOCKED, or FAILED. Reuse the same --idempotency-key (8–200 characters) when retrying. Sandbox merchants, including the local mock, get HTTP 403 SANDBOX_NOT_SUPPORTED. On Pro or Base, payments recreate shares your active payment limits (HTTP 409 ACTIVE_PAYMENT_LIMIT_REACHED) and payments extend works once per payment (HTTP 409 EXTENSION_LIMIT_REACHED). Concierge accounts meet the same two errors only at their abuse ceilings. See the remediation API for eligibility and errors.

quotes availability​

Check fiat quote availability for the requested rails and amount. API key.

OptionMeaning
--amountAmount to check.
--quote-modeexact-fiat or exact-token; sets what --amount means.
--destination-chain-id, --destination-token, --destination-addressWhere the payment settles.
--enabled-railsRails to check. Defaults to the merchant's rails.
--fiat-currencyFiat currency to quote.
--nearby-quotes-countNearby amounts to suggest, 1–10 (default 3).
--dataFull JSON request body.

For merchants using Seller Automated Release only, Zelle requires the Include email auth quotes setting. Venmo requires a seller-release partner unless the setting allows an email-confirmed fallback. CLI 0.11.0 returns synthetic local quotes without nearby suggestions and does not expose the hosted email-quote setting. See quote availability.

peer-pay-cli quotes availability --amount 10 --quote-mode exact-token --destination-chain-id 8453 --destination-token USDC --destination-address WALLET_ADDRESS

Webhooks​

Webhook commands use your API key. Hosted webhook URLs must be public HTTPS on port 443 with a hostname, not an IP address, and not a peer.xyz or zkp2p.xyz host; local ones can be any HTTP or HTTPS URL, such as http://localhost:3000. Hosted and local both allow at most 10 active webhooks per merchant: creating another, or re-activating an 11th, fails with 409 ACTIVE_WEBHOOK_LIMIT_REACHED until you delete or deactivate one. Both also switch a webhook off after 30 failed deliveries in a row spanning at least a day; test deliveries don't count. Switch it back on with webhooks update WEBHOOK_ID --active true, which on a hosted profile checks the stored URL again. See webhooks for destination and custom header rules, retries, and delivery statuses, and events and payloads for payloads. The local mock retries on the hosted schedule.

webhooks list​

List webhook destinations and subscriptions. Signing secrets are never listed.

peer-pay-cli webhooks list

webhooks create​

Register a webhook, show its signing secret in full once, and save it in the profile.

OptionMeaning
--urlDestination URL.
--eventsComma-separated event names. Defaults to every event.
--header NAME=VALUECustom header sent on every delivery. Repeatable. Names are lowercased; values are kept as given.

Export the saved secret later with peer-pay-cli credentials export --output FILE --webhook-id WEBHOOK_ID.

peer-pay-cli webhooks create --local --url http://localhost:3000/webhooks/peer-pay --header X-Auth=secret

webhooks update​

Update a webhook URL, events, headers, or active state. Omitted options stay unchanged.

OptionMeaning
--urlNew destination URL.
--eventsComma-separated event names, at least one.
--activetrue or false to enable or disable deliveries.
--header NAME=VALUEReplace all custom headers. Repeatable.
--clear-headersRemove all custom headers. Cannot combine with --header.
peer-pay-cli webhooks update WEBHOOK_ID --active false --header X-Auth=secret

webhooks delete​

Delete a webhook and its locally saved secret (HTTP 204 with no body).

peer-pay-cli webhooks delete WEBHOOK_ID

webhooks test​

Send a connectivity test with empty business entities. Use test-order or simulate for real payloads.

peer-pay-cli webhooks test WEBHOOK_ID

webhooks deliveries​

Inspect the latest 50 webhook deliveries, with status, attempts, and response codes. There is no pagination.

peer-pay-cli webhooks deliveries WEBHOOK_ID

Merchant​

merchant get​

Read your merchant profile and settings. API key, or your session with --management, which shows the role-masked dashboard view and works even when the API key IP allowlist blocks you.

peer-pay-cli merchant get --profile live

merchant update​

Update business name, industry, or integration path. Owner or manager session. The profile lives on the live merchant, so from a sandbox profile the session also needs an owner or manager seat on the live merchant; without one the hosted API returns HTTP 403 LIVE_WORKSPACE_ACCESS_REQUIRED. A sandbox profile prints the sandbox merchant, with its sandbox API key and the fields just saved. From a hosted sandbox profile, pass --name: the command does not copy the sandbox workspace's own name onto the live merchant.

OptionMeaning
--nameBusiness name. Defaults to the current name; required from a hosted sandbox profile.
--industry-typeIndustry, such as ecommerce. An empty string clears it.
--industry-other-textIndustry description for other. An empty string clears it.
--integration-pathCUSTOM_API, WOOCOMMERCE, IN_PERSON, TELEGRAM, or SHOPIFY.
--dataFull JSON body; must include name.
peer-pay-cli merchant update --profile live --name "Example Store" --industry-type ecommerce

merchant settings​

Update payment, settlement, fee, or checkout settings. Owner or manager session. Settings use the API's field names; omitted fields keep their values.

OptionMeaning
--fee-payerMERCHANT, PAYEE, or SPLIT.
--buyer-fee-share-bpsBuyer share of fees for SPLIT, 0–10000 in steps of 1000. Required when you switch to SPLIT.
--enabled-railsComma-separated payment rails.
--default-payment-currencyDefault fiat currency. An empty string clears it.
--clear-default-payment-currencyClear the default currency.
--destination-chain-id, --destination-tokenSettlement chain ID and token.
--sweep-enabledtrue or false. Settling to anything other than USDC on Base needs sweep.
--dynamic-orders-enabledtrue or false.
--buyer-identity-requiredtrue or false: customers pass a ZKPassport check before a covered live fiat payment starts. Turning it on needs Peer to have offered the check for your account (otherwise 403 BUYER_IDENTITY_NOT_AVAILABLE). See verifying your customers.
--buyer-identity-railsComma-separated fiat rails the check covers, such as venmo,cashapp. An empty string covers every fiat rail.
--theme-presetCheckout preset: default, dark, light, or custom.
--theme-page-background-color, --theme-panel-background-color, --theme-panel-text-color, --theme-panel-text-muted-color, --theme-panel-accent-color, --theme-panel-border-color, --theme-button-background-color, --theme-button-text-colorCheckout colors, #rgb or #rrggbb.
--buyer-tee-verification-deviceBASE buyer verification: both (default), desktop for the browser extension, or mobile for the Peer app.
--theme-currency-selector-enabled, --theme-pay-with-crypto-enabledtrue or false: show the currency selector or pay with crypto.
--theme-default-max-fee-percentageCheckout default maximum fee percentage.
--quick-amounts-enabled, --quick-amounts-count, --quick-amountsDashboard quick amounts: on or off, count 4, 6, or 8, and up to eight positive amounts.
--dashboard-theme-preset, --dashboard-theme-accent-hexDashboard theme preset and accent color.
--clear-dashboard-uiClear all dashboard preferences. Cannot combine with dashboard options.
--max-fee-modeflat or tranches, in USD.
--max-fee-percentageFlat maximum fee, 0–100. Requires --max-fee-mode flat.
--max-fee-tranchesJSON array, inline or @FILE, of min, max (number or null), and value (0–100). Requires --max-fee-mode tranches.
--replaceSend the full configuration (PUT): current settings plus your options, or the --data object as given.
--dataJSON body.

Theme and dashboard options merge into the current objects, which the API replaces as a whole; avoid editing them from two places at once. A JSON body with merchantCheckoutTheme replaces the whole theme. Managers cannot change sweepEnabled, destinationChainId, or destinationToken; --replace may resend them unchanged. Every merchant has a maximum fee: new merchants start at a flat 20%, and it cannot be set to null. See fee caps and split payment fees.

peer-pay-cli merchant settings --profile live --data @settings.json
peer-pay-cli merchant settings --profile live --fee-payer SPLIT --buyer-fee-share-bps 5000
peer-pay-cli merchant settings --profile live --theme-preset dark --theme-pay-with-crypto-enabled true
peer-pay-cli merchant settings --profile live --quick-amounts-enabled true --quick-amounts-count 4 --quick-amounts 10,20,50,100
peer-pay-cli merchant settings --profile live --max-fee-mode tranches --max-fee-tranches '[{"min":0,"max":null,"value":2}]'

Upload a PNG, JPEG, WebP, or GIF logo, up to 2 MB. Owner or manager session.

peer-pay-cli merchant logo --profile live --file ./logo.png

merchant tier​

Select the PRO pricing plan and activate it. Owner session. An account on the closed Base plan that selects PRO cannot switch back. Sandbox merchants, including the local mock, get HTTP 403 TIER_CHANGE_SANDBOX_FORBIDDEN. A live merchant whose plan is not activated gets HTTP 403 MERCHANT_IDENTITY_REQUIRED until the owner verifies their identity with ZKPassport in the merchant dashboard (Settings > Billing). An owner who cannot verify can ask the Peer team for help with merchant identity-help. Selecting the current tier activates a plan that is not activated yet; merchant get reports the time as planActivatedAt. Live orders need an activated plan; a tier alone is not enough. Local merchants with a plan count as activated from their creation.

A live Base or Pro merchant that activated its plan before verification was required keeps its plan. Once Peer Pay's date to verify by has passed, creating a live order returns HTTP 403 MERCHANT_IDENTITY_OVERDUE until the owner verifies. The local mock is a sandbox and is never held to it.

peer-pay-cli merchant tier --profile live --tier PRO

merchant sandbox​

Enable the hosted sandbox for your merchant. Owner or manager session. This does not save a profile; sandbox enable does both.

peer-pay-cli merchant sandbox --profile live

merchant ip-allowlist​

Replace or clear the API key IP allowlist using owner management access. --entries takes up to 50 comma-separated public IPs or CIDRs (IPv4 /8 to /32, IPv6 /32 to /128), which are canonicalized and deduplicated. --clear removes the allowlist. Hosted API-key requests from other addresses get HTTP 403 IP_NOT_ALLOWED. An entry only matches its own address family, so add IPv6 entries for servers that call over IPv6. The local mock stores the list but does not enforce it.

peer-pay-cli merchant ip-allowlist --profile live --entries 8.8.8.8,1.1.1.0/24
peer-pay-cli merchant ip-allowlist --profile live --clear

merchant rotate-key​

Replace your API key, show the new key in full once, and save it in the profile. Owner session. The old key stops working; update applications that use it, or export the new one with peer-pay-cli credentials export --output FILE.

peer-pay-cli merchant rotate-key --profile live

merchant provision-wallets​

Retry provisioning missing owner wallets. Owner session. Existing wallet addresses are kept.

peer-pay-cli merchant provision-wallets --profile live

merchant switch​

Select an accessible merchant and refresh its API key. Hosted profiles only. Switching to another merchant clears the profile's cached order tokens and webhook secrets. A merchant you cannot access returns You do not have access to merchant MERCHANT_ID and leaves the profile unchanged.

peer-pay-cli merchant switch MERCHANT_ID --profile live

merchant stats​

Read merchant dashboard statistics. API key.

peer-pay-cli merchant stats --profile live

merchant tier-usage​

Read this month's usage against your plan's limits. API key.

peer-pay-cli merchant tier-usage --profile live

merchant bridge-signer-status​

Read bridge signer status for your payout wallet. Session. --signer-id is required; --policy-id is optional; --chain-type is ethereum (default) or solana.

peer-pay-cli merchant bridge-signer-status --profile live --signer-id SIGNER_ID --chain-type ethereum

merchant referral​

Read your referral code, reward recipient, and referred merchants. Owner or manager session. The result has code, referralFeeBpsByTier, recipientAddress, totalReferred, and the newest 50 referredMerchants. Sandbox merchants, including the local mock, get HTTP 403 REFERRAL_SANDBOX_FORBIDDEN. See merchant referrals.

peer-pay-cli merchant referral --profile live

merchant concierge​

Submit a Concierge plan request. Owner session. Takes the same options and answers as merchant concierge-inquiry. An open request returns HTTP 409 CONCIERGE_REQUEST_ALREADY_OPEN. Sandbox merchants, including the local mock, get HTTP 403 CONCIERGE_REQUEST_SANDBOX_FORBIDDEN after the body is validated.

peer-pay-cli merchant concierge --profile live --contact-email owner@example.com --answers @answers.json

merchant concierge-inquiry​

Submit a Concierge intake inquiry. Owner session. Works on sandbox merchants too.

OptionMeaning
--contact-emailRequired contact email.
--answersRequired JSON object, inline or @FILE, with the nine answers below.
--business-name1–200 characters. Defaults to the merchant name.
--telegramTelegram username, up to 64 characters.
--messageMessage, up to 1000 characters.
--dataFull JSON body instead of the options.

Each answer is a 1–500 character string. In a terminal, a missing --answers asks the questions in order.

Answer keyQuestion
businessWhat do you sell, and what industry are you in?
storefrontWhere do you sell?
volumeHow much volume do you process today?
customersWhere are your customers?
appsWhich payment apps do you want your customers paying with?
paymentsWhat do you use to accept payments today?
cryptoDo you also want to accept crypto directly? Yes, No, or Not sure yet.
feePayerWho pays the Peer Pay fee? Customer, Merchant, or Split.
integratorWho is doing the integration on your side, you or a developer?
answers.json
{
"business": "Clothing",
"storefront": "Shopify",
"volume": "USD 50,000 monthly; USD 100 average order",
"customers": "US",
"apps": "Venmo",
"payments": "Stripe",
"crypto": "Not sure yet",
"feePayer": "Merchant",
"integrator": "Our developer"
}
peer-pay-cli merchant concierge-inquiry --contact-email owner@example.com --answers @answers.json

merchant identity-help​

Ask the Peer team for help when the owner cannot verify with ZKPassport. Owner session. This sends the merchant dashboard's Can't verify? Talk to us form; see If you can't verify. The team reviews the account and replies to the contact email.

OptionMeaning
--reasonRequired. One of the reasons below. In a terminal, a missing --reason opens a menu.
--contact-emailRequired contact email.
--telegramTelegram username, up to 64 characters.
--messageMessage, up to 1000 characters. Required with --reason OTHER; picking OTHER from the menu asks for it.
--dataFull JSON body instead of the options: reason, contactEmail, and optional telegramUsername and message.
ReasonMeaning
PASSPORT_NOT_SUPPORTEDMy passport isn't supported.
NO_NFC_PHONEI don't have a phone with NFC.
CHECK_KEEPS_FAILINGThe check keeps failing.
MORE_THAN_ONE_BUSINESSI run more than one business.
OTHERSomething else; say what in --message.

An unknown reason, an invalid email, or OTHER without a message fails before any request; the API answers the same body with HTTP 400. An owner who has already verified gets HTTP 409 MERCHANT_IDENTITY_ALREADY_VERIFIED, and a Concierge merchant or sub-merchant, which the owner check does not hold, gets HTTP 409 IDENTITY_HELP_NOT_NEEDED. A merchant gets one open request: sending again while it is open gets HTTP 409 IDENTITY_HELP_ALREADY_OPEN. It closes when the owner verifies or the merchant moves to Concierge, or when staff mark it handled in admin. Sandbox merchants, including the local mock, get HTTP 403 IDENTITY_HELP_SANDBOX_FORBIDDEN after the body is validated. Valid requests have their own limit of five per merchant per hour, separate from Concierge requests; past it the API returns HTTP 429. A body the API rejects does not count toward it.

peer-pay-cli merchant identity-help --profile live --reason NO_NFC_PHONE --contact-email owner@example.com

merchant shopify​

Request Shopify setup for your merchant. Owner or manager session. All three options are required.

OptionMeaning
--store-domainYour myshopify.com domain, such as acme.myshopify.com. Scheme, path, and case are normalized.
--collaborator-codeThe 4-digit collaborator request code from Shopify admin, under Settings > Users > Security.
--checkout-currencyThe 3-letter currency code your Shopify checkout uses, such as USD.

Shopify setup runs on the live workspace: from a sandbox profile the hosted API returns HTTP 403 SHOPIFY_SETUP_SANDBOX_FORBIDDEN and saves nothing. Locally, a merchant that does not simulate live gets the same refusal.

The hosted API then asks Shopify whether the store exists. A domain with no store returns HTTP 422 SHOPIFY_STORE_NOT_FOUND; if Shopify cannot be reached it returns HTTP 503 SHOPIFY_STORE_CHECK_UNAVAILABLE, so retry. Neither saves a request. Sending the same store, code and currency again saves the request but does not alert the Peer team a second time. The local sandbox validates the input without contacting Shopify.

peer-pay-cli merchant shopify --profile live --store-domain acme.myshopify.com --collaborator-code 1234 --checkout-currency USD

Team​

Team commands other than team redeem need an owner or manager session. Locally, invitations send no email.

team list​

List merchant invitations. Use merchant get to see current members.

peer-pay-cli team list --profile live

team invite​

Invite a manager or cashier (default role: MANAGER).

peer-pay-cli team invite --profile live --email teammate@example.com --role MANAGER

team resend​

Resend an invitation.

peer-pay-cli team resend INVITE_ID --profile live

team revoke​

Revoke an invitation.

peer-pay-cli team revoke INVITE_ID --profile live

team remove​

Remove a team member by user ID. The owner cannot be removed, and a member whose removalLocked is true returns HTTP 403 MEMBER_LOCKED.

peer-pay-cli team remove USER_ID --profile live

team redeem​

Accept an invitation using its token or a JSON body such as {"token":"INVITE_TOKEN"}. Uses the session of the invited email. The result is merchantId, role, and redeemed; a retry by an existing member returns redeemed: false. Unknown or revoked tokens return HTTP 404 and expired ones HTTP 410. Then run login --merchant-id MERCHANT_ID to select the new merchant. Locally, use the invitation ID as the token.

peer-pay-cli team redeem --profile live --token INVITE_TOKEN

Sub merchants​

A Master Merchant Account creates sub merchants and earns a pay-in fee on their payments and a payout fee on their payouts. See Master Merchant Accounts for how fees and transfers work.

StatusCodeMeaning
403MASTER_MERCHANT_NOT_ENABLEDThe merchant is not an enabled, live Master Merchant Account.
422MASTER_MERCHANT_PAYIN_FEE_EXCEEDS_CAP, MASTER_MERCHANT_PAYOUT_FEE_EXCEEDS_CAPA changed fee is above the cap set for your account.
422MASTER_MERCHANT_FEE_EXCEEDS_MAX_FEEA payment method's fees would exceed the sub merchant's maximum fee.
409MASTER_MERCHANT_FEE_LOCKEDA transfer is pending, or the sub merchant now belongs to someone else.

Locally, enable access with local admin --data '{"masterMerchantEnabled":true}' while simulatedLive is on, its default. Local payouts run only for the seeded merchant, so sub merchant payout fees cannot be tested locally.

sub-merchants list​

List your sub merchants with fee, owner, and transfer state. Owner or manager session.

peer-pay-cli sub-merchants list --profile live

sub-merchants create​

Create a sub merchant under your Master Merchant Account. Owner session. --payin-fee-bps is 0–5000 and --payout-fee-bps 0–1000 (100 = 1%). The new sub merchant is not selected; run merchant switch SUB_MERCHANT_ID to act on it.

peer-pay-cli sub-merchants create --profile live --sub-merchant-name Outlet --payin-fee-bps 100 --payout-fee-bps 50

sub-merchants set-fees​

Change the master merchant fees on a sub merchant you still own. Owner session. Pass both fees. The pay-in fee applies to new orders and the payout fee to new payouts.

peer-pay-cli sub-merchants set-fees SUB_MERCHANT_ID --profile live --payin-fee-bps 150 --payout-fee-bps 50

sub-merchants fee-preview​

Preview configured fees per payment method for a master merchant fee. Owner or manager session. These are configured fees before exchange-rate spread.

peer-pay-cli sub-merchants fee-preview --profile live --payin-fee-bps 100

Sub merchant transfers​

A Master Merchant Account owner can hand a sub merchant to a new owner by email. transfer send, transfer cancel, and transfer status need an owner session on both merchants. Select the sub merchant with --merchant-id, or use a profile whose merchant is the sub merchant. Transfer links last 7 days, and a sub merchant can have one pending transfer.

transfer send​

Send a sub merchant you own as its Master Merchant Account to a new owner by email. The recipient gets the link by email. Output shows transferUrl only with --show-secrets, and it cannot be read again. To issue a new link, cancel and send again.

peer-pay-cli transfer send --profile master-merchant --merchant-id SUB_MERCHANT_ID --email buyer@example.com --show-secrets

transfer cancel​

Withdraw the pending sub merchant transfer.

peer-pay-cli transfer cancel --profile master-merchant --merchant-id SUB_MERCHANT_ID

transfer status​

Read the pending transfer and its open-order impact.

peer-pay-cli transfer status --profile master-merchant --merchant-id SUB_MERCHANT_ID

transfer accept​

Accept a merchant account transferred to your email. Uses the recipient's session, such as the profile login --transfer-token saved. Takes --token or a --data body. The CLI previews the transfer first. If your payout wallet still needs setup, it prints the dashboard link to accept there and exits with an error. On success the profile targets the new merchant. Errors are TRANSFER_NOT_FOUND, TRANSFER_UNAVAILABLE, TRANSFER_EMAIL_MISMATCH, WALLET_SETUP_REQUIRED, and TERMS_CHANGED (the master merchant fees changed after the transfer was sent).

peer-pay-cli transfer accept --profile pending-transfer --token TRANSFER_TOKEN

Onboarding​

Onboarding commands need an owner session. ack and skip return the updated checklist.

onboarding get​

Read your merchant onboarding checklist. Some steps, such as a delivered hosted webhook, complete only from real activity.

peer-pay-cli onboarding get --profile live

onboarding ack​

Acknowledge an onboarding step by its ID. Automatically verified steps still need their evidence.

peer-pay-cli onboarding ack STEP_ID --profile live

onboarding skip​

Dismiss the onboarding checklist. This does not mark your integration complete.

peer-pay-cli onboarding skip --profile live

Credentials​

credentials export​

Write credentials to a new private environment file: PEER_PAY_API_URL and PEER_PAY_API_KEY, plus PEER_PAY_WEBHOOK_SECRET with --webhook-id. The profile must have saved that webhook's secret when it created the webhook. The file gets mode 0600, and existing files are never overwritten. Keep it out of version control.

peer-pay-cli credentials export --output .env.peer-pay --webhook-id WEBHOOK_ID

Deferred payouts​

With deferred payouts on, Venmo and PayPal payouts are held through the risk window before release. See accept deferred payouts. Filter held payments with payments list --payout-status HELD. The local mock starts with deferred payouts off.

config set​

Accept or decline deferred payouts. Owner or manager session.

peer-pay-cli config set --deferred-payouts on

payouts summary​

Read held and recently released merchant payment payouts: heldUsdcAmount, heldCount, nextReleaseEligibleAt, and releasedUsdcAmountLast30Days. API key.

peer-pay-cli payouts summary

Staking​

Staking commands need an owner or manager session. See staking for how stake works. Amounts are USDC base units (6 decimals).

Locally, local settings --data '{"stakingFixture":true}' seeds deterministic balances, locks, and activity, including a previous vault at 0x00000000000000000000000000000000000000b1. false clears them.

staking overview​

Read merchant staking balances, access, and previousVaults. previousVaults lists vaults Peer no longer uses where your merchant wallet still has stake, locks, or claimable USDC; it is null when they could not be read. Withdraw or move that stake from the dashboard. HTTP 503 MERCHANT_STAKING_STACK_UNAVAILABLE means the staking contracts could not be read; retry later.

peer-pay-cli staking overview --profile live

staking locks​

List merchant stake locks.

OptionMeaning
--statusACTIVE, UNLOCKED, or RESOLVED.
--vaultRead a previous vault listed by staking overview. Defaults to the live vault. An unknown vault returns HTTP 400 MERCHANT_STAKE_VAULT_UNKNOWN.
--cursornextCursor from the previous page; keep the same filters.
--limitPage size, 1–100 (default 50).

A lock for a Peer Pay payment has releasesIfUnpaidAt: when the lock frees if the customer never pays, 30 minutes after the payment window closes. It is null when that no longer applies, such as after the payment settles or is cancelled.

peer-pay-cli staking locks --profile live --status ACTIVE --cursor CURSOR --limit 20

staking activity​

List merchant stake activity. --kind is DEPOSITED, WITHDRAWN, TAKER_AUTHORIZATION_UPDATED, STAKE_OWNER_SELECTED, LOCK_FUNDED, STAKE_LOCKED, STAKE_LOCK_INCREASED, STAKE_LOCK_RESIZED, STAKE_UNLOCKED, STAKE_LOCK_RESOLVED, CLAIM_CREATED, or CLAIM_WITHDRAWN. --cursor and --limit work as for staking locks.

peer-pay-cli staking activity --profile live --kind DEPOSITED --limit 20

Refunds​

Refund commands need an owner session. See refunds for eligibility and funding.

refunds get​

Read an order's latest refund.

peer-pay-cli refunds get ORDER_ID --profile live

refunds create​

Create a refund. --seller-username is your customer's handle on the app they paid with (1–256 characters). An order created before the merchant changed owners returns HTTP 409 ORDER_FROM_PREVIOUS_OWNER. Locally, no funds move; complete the refund with simulate ORDER_ID --event REFUND_COMPLETED.

peer-pay-cli refunds create ORDER_ID --profile live --seller-username seller123

refunds cancel​

Cancel a pending order refund.

peer-pay-cli refunds cancel ORDER_ID --profile live

Seller disputes​

Dispute commands need an owner or manager session. Amounts are USDC base units (6 decimals). Paying a dispute happens in the dashboard, where your Peer Pay wallet signs the transfer.

disputes list​

List seller disputes on your orders. --status takes OPEN, ESCALATED, or PAID, comma-separated. --order-id limits to one order. --page defaults to 1 and --limit is 1–100 (default 20).

peer-pay-cli disputes list --status OPEN,ESCALATED

disputes get​

Read one seller dispute.

peer-pay-cli disputes get DISPUTE_ID --profile live

Fees​

fees settlement-amounts​

Calculate settlement and order contribution amounts. Public endpoint; no credentials needed. Amounts and rates are decimal strings, and results truncate to 6 decimals.

Use unsigned decimal strings such as 0, 95, or 0.92; the currency rate must be greater than zero. Signs, whitespace, exponent or hexadecimal notation, and a trailing decimal point are rejected before the CLI sends a request. The local HTTP endpoint applies the same validation and returns HTTP 400 for invalid input.

OptionMeaning
--fee-payerMERCHANT, PAYEE, or SPLIT. Required.
--buyer-fee-share-bpsBuyer share of fees, 0–10000 in steps of 1000. Required for SPLIT.
--net-settled-usdcNet USDC received. Required.
--total-usdc-feeTotal USDC fee. Required.
--payment-amountFiat amount the customer paid. Required.
--currency-per-usd-rateLocal currency per 1 USD, such as 0.92 for EUR. Required.
--quoted-bridge-spread-bpsQuoted payout bridge spread for SPLIT, in basis points.

The order contribution is payment-amount / rate for MERCHANT, the net USDC for PAYEE, and (1 - s) * (payment-amount / rate) + s * net for SPLIT, where s = buyer-fee-share-bps / 10000. With a quoted bridge spread, net USDC is first divided by 1 + spread / 10000.

peer-pay-cli fees settlement-amounts --fee-payer MERCHANT --net-settled-usdc 97.5 --total-usdc-fee 2.5 --payment-amount 92 --currency-per-usd-rate 0.92
# A $105 payment and $95 net credit $100 of principal at a 50:50 split.
peer-pay-cli fees settlement-amounts --fee-payer SPLIT --buyer-fee-share-bps 5000 --net-settled-usdc 95 --total-usdc-fee 10 --payment-amount 105 --currency-per-usd-rate 1

fees invoice​

Read the off-chain fee owed for a finished time range. Uses your API key. Merchants that are not billed by invoice get HTTP 404. Locally, set invoicedFeeBps with local settings first; until then the local merchant returns 404 the same way. The local invoice treats the fee as active from the start of time, so it never moves --from up to a fee start date the way hosted invoices do. See Invoice for the response and how the amount is worked out.

OptionMeaning
--fromStart of the range, included. ISO 8601 with Z or an offset, at most millisecond precision. For automatic payments, use the window.to of the last range you paid; see Paying automatically. Required.
--toEnd of the range, excluded. Same format. Must be after --from, at most 366 days later, and at least 5 minutes in the past. Required.
peer-pay-cli fees invoice --from 2026-11-09T00:00:00Z --to 2026-11-16T00:00:00Z

Payouts​

Payouts send money to a customer by email. You owe the payout in USDC on Base and fund it through a deposit address with a supported EVM token or BTC; the customer chooses how to receive it. payouts create, get, list, and cancel use your API key. Sandbox merchants get HTTP 403 PAYOUT_SANDBOX_UNSUPPORTED, so test payouts with the local mock. See the payouts API for the money rules, statuses, and errors, and test payouts locally for a full walkthrough.

payouts create​

Create a payout for a customer email and get its funding deposit address.

OptionMeaning
--emailCustomer email. Required.
--amountUSDC owed to the customer. Required. A whole multiple of your payout step, at least one step.
--funding-chain-idChain you fund from, such as 8453 for Base or 8253038 for Bitcoin. Required.
--funding-tokenFunding token address on that chain, or bc1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqmql8k8 for BTC. Required.
--refund-addressWhere an unconverted deposit is refunded. Required for Bitcoin: a Bitcoin address you control. On EVM chains, omit it to refund the sender; set it when funding from an exchange, because exchange wallets are not refunded automatically.
--railsComma-separated payout methods for this payout, such as venmo,relay_8453; a crypto network is relay_CHAIN_ID, or near_intents_133701 for Zcash. Never adds a method you or Peer turned off.
--merchant-referenceYour reference, up to 128 characters.
--return-urlHTTPS URL the payout checkout returns the customer to.
--idempotency-keyRequired, even with --data. Sent as the Idempotency-Key header: 8–128 letters, digits, _, or -.
--dataFull JSON request body.

Rerunning with the same key and body returns the payout with HTTP 200 and idempotentReplay: true; a different body returns HTTP 409 IDEMPOTENCY_KEY_CONFLICT. Do not send funds after funding.quoteExpiresAt; create a new payout with a new key.

StatusCodeMeaning
400PAYOUT_NOT_STEP_MULTIPLE--amount is not a multiple of your payout step.
403PAYOUTS_DISABLEDYour merchant has no payout methods enabled.
422PAYOUT_NO_RAILS_AVAILABLENone of your payout methods are available right now.
422PAYOUT_REQUESTED_RAILS_UNAVAILABLENone of the --rails methods are available right now.

The local mock prices only stablecoins and BTC (at a fixed 100,000 USD per BTC); other funding tokens return HTTP 422 PAYOUT_ROUTE_UNQUOTABLE. Its default payout step is 100 USDC.

peer-pay-cli payouts create --email customer@example.com --amount 100 --funding-chain-id 8453 --funding-token 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 --refund-address WALLET_ADDRESS --idempotency-key payout-001
peer-pay-cli payouts create --local --email customer@example.com --amount 100 --funding-chain-id 8253038 --funding-token bc1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqmql8k8 --refund-address bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4 --idempotency-key payout-btc-001

payouts get​

Show one payout with funding progress and status. Another merchant's payout returns HTTP 404 PAYOUT_NOT_FOUND.

peer-pay-cli payouts get PAYOUT_ID

payouts list​

List payouts, newest first, filtered by email, status or reference. --status is AWAITING_FUNDING, FUNDED, READY, LISTING, PAYING, SETTLED, CANCELLED, or EXPIRED. --merchant-reference matches exactly. --page defaults to 1 and --limit is 1–100 (default 20). The result is { items, page, limit, total }.

peer-pay-cli payouts list --email customer@example.com

payouts cancel​

Cancel a payout that is still awaiting funding with nothing received. Otherwise it returns HTTP 409 PAYOUT_NOT_CANCELLABLE with the current status and fundingStatus, or, once funds are on the way, HTTP 409 PAYOUT_FUNDING_DETECTED.

peer-pay-cli payouts cancel PAYOUT_ID

payouts configure-local​

Change the local simulator merchant's payout settings; every platform is on by default. Local profiles only; it stands in for the dashboard's payout settings.

OptionMeaning
--railsRequired. Comma-separated methods: venmo, cashapp, paypal, wise, zelle, revolut, chime, relay_CHAIN_ID networks, and near_intents_133701 for Zcash.
--fee-bpsYour payout fee, 0–1000 (default 0). Nonzero needs an enabled Master Merchant Account, otherwise HTTP 403 PAYOUT_MERCHANT_FEE_REQUIRES_MASTER_ACCOUNT.
--payout-stepWhole USDC every payout is a multiple of, from PAYOUT_MIN_USDC to 1000 (default 100).
--support-urlCustomer support https:// link or email (saved as mailto:). Without it, the payout checkout shows no contact line.

Each run saves every setting. The response adds availableRails and availableFundingTokens. Existing payouts keep the step and rails they were created with.

peer-pay-cli payouts configure-local --local --rails venmo,cashapp --fee-bps 0 --payout-step 50 --support-url help@example.com

payouts simulate-funding​

Add a simulated Relay record to a local payout's deposit address and check its funding. Local profiles only. Each call stands in for one payment Relay reports.

OptionMeaning
--statussuccess, failure, refund, or pending. Required.
--receivedUSDC that reached the customer's wallet on Base for this record. Required with success and allowed only with it.
--sentFunding-token amount you sent. Not allowed with failure or refund.
--relay-request-idRecord ID (default: generated). An ID the payout already has returns HTTP 409 PAYOUT_FUNDING_RECORD_EXISTS.
--superseded-byWith pending only: the request this record moved to, as Relay does for Bitcoin deposits.
--refund-tx-hashWith refund only: the refund transaction.

The payout becomes FUNDED once the USDC received covers it, or once you sent the quoted amount, nothing is pending, and some USDC arrived. Less than that leaves it AWAITING_FUNDING with fundingStatus: PARTIALLY_FUNDED. failure and refund records count as nothing received. Overpayments, late funds, and refunds are recorded as funding issues.

peer-pay-cli payouts simulate-funding PAYOUT_ID --local --status success --received 106.4 --sent 110

payouts sweep-local​

Run the local payout jobs: funding, settlement, credentials, wallet balances. Local profiles only. --now sets the time the jobs run at (default: now). A time after funding.quoteExpiresAt expires a payout with nothing received and funds a partly funded one with what arrived. The result reports checkedPayouts, items, settlement, credentials, and walletBalances.

peer-pay-cli payouts sweep-local --local --now 2026-09-26T12:00:01Z

payouts simulate-credential​

In CLI 0.11.0, set the simulated credential for a local Venmo, Cash App or PayPal account. --status accepts active, inactive or missing and applies to local payouts with that account. The default is missing. A funded payout becomes READY when the credential is active or the customer skips connecting. The simulator always treats a valid Wise handle as active.

Hosted PayPal and Wise payouts can list as soon as the account is recognized. See payout methods for the hosted flow.

A payout without a saved method returns HTTP 409 PAYOUT_METHOD_MISSING. Crypto, Zelle, Revolut, and Chime methods return HTTP 409 PAYOUT_METHOD_NO_CREDENTIAL.

peer-pay-cli payouts simulate-credential PAYOUT_ID --local --status active

payouts resolve-send​

Confirm or fail what Pay is sending from a local payout's customer wallet after the customer signs it. Local profiles only. Submit signatures to the customer checkout /signatures route first; until then the command returns HTTP 409 PAYOUT_SIGNATURE_REQUIRED. With nothing queued, it returns HTTP 409 PAYOUT_SEND_MISSING.

OptionMeaning
--resultconfirmed (default) lands eligible sends in order; failed reverts the first one.
--countWith confirmed, land only the first N eligible sends.

A confirmed fiat send lists the payout (LISTING). A confirmed send to a Base USDC address settles it. A send to another network starts a bridge; finish it with payouts simulate-payout-bridge. A failed listing or transfer returns the payout to READY. The command returns the checkout state.

peer-pay-cli payouts resolve-send PAYOUT_ID --local
peer-pay-cli payouts resolve-send PAYOUT_ID --local --result failed

payouts simulate-payout-quote​

Set the next local payout price, or make it refuse. Local profiles only. Pass exactly one of --amount, the next estimate in destination tokens, or --refuse. The next Relay or NEAR preview, confirm, or send-to-address uses it once; Base USDC sends ignore it.

--refuseResult
AMOUNT_TOO_LOWHTTP 422 CASHOUT_PAYOUT_AMOUNT_TOO_LOW
ROUTE_UNAVAILABLEHTTP 422 CASHOUT_PAYOUT_ROUTE_UNAVAILABLE
FAILEDHTTP 502 CASHOUT_PAYOUT_QUOTE_FAILED
peer-pay-cli payouts simulate-payout-quote PAYOUT_ID --local --refuse ROUTE_UNAVAILABLE

payouts simulate-payout-bridge​

Deliver, refund or hold a local bridged payout; NEAR bridges use NEAR's statuses. Local profiles only. The bridge must already be sending, otherwise HTTP 409 PAYOUT_BRIDGE_NOT_SENDING.

OptionMeaning
--statusRequired: success (NEAR SUCCESS), refund (REFUNDED), failure (FAILED), or pending (PROCESSING).
--deliveredWith success: the amount delivered, in destination tokens, greater than zero.
--refundedWith refund or failure: USDC refunded, no more than sent. refund defaults to the full send; failure without it keeps the bridge waiting.

success settles the payout. A refund returns it to READY, and any shortfall is deducted from the next payout. Invalid combinations or amounts return HTTP 400 PAYOUT_BRIDGE_SIMULATION_INVALID.

peer-pay-cli payouts simulate-payout-bridge PAYOUT_ID --local --status success --delivered 0.033

payouts simulate-payment​

Simulate a buyer payment step on a listed local payout and refresh its settlement. Local profiles only.

--stepEffect
signaledA buyer opens a payment for --amount (default: everything the listing holds, up to its maximum payment). The payout moves to PAYING.
replacedThe open payment expires and a new buyer opens one for --amount, with the same default.
expiredThe open payment expires. The payout returns to LISTING.
prunedThe open payment is released. The payout returns to LISTING.
fulfilledThe buyer pays --amount (default: the open payment's amount). Paying everything left settles the payout; less records a partial payment, and the rest stays listed for the next buyer.
StatusCodeMeaning
400PAYOUT_PAYMENT_AMOUNT_INVALID--amount is zero, or, for signaled or replaced, below the listing's minimum: 0.01 USDC, or the whole listing if it is smaller.
400PAYOUT_PAYMENT_ABOVE_REMAINING--amount is above what the listing holds or its maximum payment (signaled, replaced) or above the open payment (fulfilled).
409PAYOUT_BUYER_PAYMENT_ACTIVEsignaled while a payment is already open.
409PAYOUT_BUYER_PAYMENT_MISSINGreplaced, expired, pruned, or fulfilled with no open payment.
409PAYOUT_LISTING_NOT_ACCEPTINGA new buyer after a withdraw landed.
409PAYOUT_ATTEMPT_NOT_LISTEDThe payout is not listed.

--amount is in USDC. One payment is open at a time locally; to pay a payout in several payments, run signaled --amount and then fulfilled for each one. A rest of 0.10 USDC or less settles as dust. Non-USD payout amounts use the local settings rates fixture.

peer-pay-cli payouts simulate-payment PAYOUT_ID --local --step fulfilled

payouts simulate-peer-withdraw​

Simulate the customer withdrawing a listed local payout in the Peer app, outside Pay. Local profiles only. An unpaid payout ends CANCELLED; a partly paid one ends SETTLED with the rest returned. While a buyer is paying, nothing is returned and the listing takes no new buyers.

peer-pay-cli payouts simulate-peer-withdraw PAYOUT_ID --local

payouts simulate-wallet-balance​

Set the simulated USDC balance of a local payout's customer wallet for the wallet check. Local profiles only. It applies to all of that customer's local payouts. When the balance no longer covers a payout, checkout shows walletShortfall and confirm returns HTTP 409 CASHOUT_WALLET_SHORT; payouts sweep-local then closes it.

peer-pay-cli payouts simulate-wallet-balance PAYOUT_ID --local --amount 50

payouts emails​

List a local payout's customer emails with their resume links. Local profiles only. The mock records the emails the API would send, with kind and restOutcome, but sends none. See customer emails.

peer-pay-cli payouts emails PAYOUT_ID --local

payouts funding-issues​

List local payout funding issues. Local profiles only. --status is open (default) or all. Each issue has a kind (LATE_FUNDS, OVERPAYMENT, or ROUTE_REFUND), an amount, the payout, and its resolution.

peer-pay-cli payouts funding-issues --local --status all

payouts resolve-funding-issue​

Record how Peer returned or claimed a local funding issue's money, so you can see a resolved issue. Local profiles only; no money moves. --data is {"resolution":"RETURNED","txHash":"0x…","note":"…"} or {"resolution":"CLAIMED","note":"…"}. An issue resolves once.

peer-pay-cli payouts resolve-funding-issue FUNDING_ISSUE_ID --local --data @resolve.json

payouts timeline​

Show a local payout's dashboard timeline and next step. Local profiles only. Returns timeline, oldest first, and nextStep, which is null once the payout is final.

peer-pay-cli payouts timeline PAYOUT_ID --local

Local customer checkout​

The local mock serves the customer checkout API under http://127.0.0.1:4020/api/v1/cashout-checkout. Every route needs the x-cashout-token header, set to the t query parameter of checkoutUrl or an email resume link. Every route except GET /:id also needs Authorization: Bearer local-player:EMAIL with the payout's customer email.

MethodPath
GET/:id, /:id/state, /:id/activity
PUT/:id/payout-method
POST/:id/payout-quote, /:id/confirm, /:id/signatures, /:id/skip-connect, /:id/send-to-address, /:id/change-method

Routes and errors match the payouts API. Locally, any well-formed base64 signature is accepted, and the simulator recognizes every well-formed payee handle. PayPal requires both a PayPal.Me username and an email. The username identifies the payee for the listing.

Hosted sandbox testing​

These commands need a sandbox merchant: a NAME-sandbox profile or the local mock.

test-order​

Create and fulfill a local or hosted sandbox test order. API key. Live merchants are rejected. The default amount is 1 USDC. Without --rail, it uses the first enabled fiat rail, then the first crypto rail.

For a wallet crypto rail, supply --refund-to with a buyer-controlled address on that chain, including when a crypto-only merchant omits --rail. No default is supplied. Missing or invalid addresses return 400 CRYPTO_REFUND_ADDRESS_MISSING or CRYPTO_REFUND_ADDRESS_INVALID before an order is created. Fiat rails need no refund address.

OptionMeaning
--order-idFulfill this existing sandbox order instead of creating one. An order a checkout grant created is refused with 409: it can only be paid from its checkout.
--amountOrder amount in USDC.
--railRail to pay with.
--refund-toBuyer-controlled wallet on the selected crypto chain; required for wallet crypto rails, including with --order-id.
--dataFull JSON request body.
peer-pay-cli test-order --profile live-sandbox
peer-pay-cli test-order --profile live-sandbox --rail relay_8453 --refund-to "$BUYER_REFUND_ADDRESS"

sandbox crypto-simulate​

Simulate a crypto outcome through the hosted sandbox API, also served locally. No API key or order token needed. --outcome is success or failure; --payment-id pins the current payment; --deposit-amount is a partial USDC deposit (up to 6 decimals) for a successful Apple Pay payment.

peer-pay-cli sandbox crypto-simulate ORDER_ID --profile live-sandbox --outcome success --payment-id PAYMENT_ID --deposit-amount 5

sandbox fail-payment​

Fail a payment through the hosted sandbox API, also served locally. --payment-id is required.

peer-pay-cli sandbox fail-payment ORDER_ID --profile live-sandbox --payment-id PAYMENT_ID

sandbox expire-payment​

Expire a payment through the hosted sandbox API, also served locally. --payment-id is required.

peer-pay-cli sandbox expire-payment ORDER_ID --profile live-sandbox --payment-id PAYMENT_ID

Simulation​

simulate and the local commands need a local profile. No money moves.

simulate​

Apply a local mock event injection to an order. peer-pay-cli local events lists event names. Transitions must be valid: refunds and chargebacks need settled funds, and bridge events go from pending to submitted to completed or failed. After a failed, expired, or cancelled payment, create a new payment to retry.

OptionMeaning
--eventEvent to apply. Required.
--payment-idPayment to act on (default: the order's latest payment).
--amountUSDC amount for a partial fiat settlement, refund, chargeback, resize, or DISPUTE_OPENED release. For ORDER_AMOUNT_SET, the buyer's amount. Crypto settlement other than Apple Pay rejects it and settles everything left.
--amount-currencyFor ORDER_AMOUNT_SET: the fiat currency --amount is typed in.
--railRail for events that create a payment, such as PAYMENT_CREATED and ORDER_AMOUNT_SET.
--refund-toRefund wallet address on the source chain. Required for PAYMENT_CREATED and ORDER_AMOUNT_SET on wallet crypto rails; not needed for fiat rails. Mixed-case EVM addresses must have a valid EIP-55 checksum; all-lowercase and all-uppercase addresses are accepted. No default is supplied.
--deposit-amountPartial Apple Pay deposit in USDC, with PAYMENT_SETTLED only.
--automatic-retryWith PAYMENT_BRIDGE_FAILED: true schedules the next automatic retry instead of failing. Needs serve started with PAYMENT_BRIDGE_AUTO_RETRY_ENABLED=true.
  • ORDER_CREATED comes from orders create; payout events come from the payouts commands.
  • ORDER_AMOUNT_SET needs --amount, --amount-currency, and --rail, and starts a payment with that amount, as payments create --amount does.
  • Wallet crypto payment creation requires --refund-to: omitting it returns HTTP 400 CRYPTO_REFUND_ADDRESS_MISSING; an invalid address returns HTTP 400 CRYPTO_REFUND_ADDRESS_INVALID, just as payments create does.
  • DISPUTE_OPENED, DISPUTE_ESCALATED, and DISPUTE_PAID need a settled fiat --payment-id.
  • PAYMENT_PAYOUT_RELEASED needs a settled payment whose payout is HELD.
peer-pay-cli simulate ORDER_ID --event PAYMENT_SETTLED --payment-id PAYMENT_ID
peer-pay-cli simulate ORDER_ID --event PAYMENT_CREATED --rail relay_8453 --refund-to 0xabcdefabcdefabcdefabcdefabcdefabcdefabcd
peer-pay-cli simulate OPEN_ORDER_ID --event ORDER_AMOUNT_SET --rail relay_8453 --amount 10.00 --amount-currency USD --refund-to 0xabcdefabcdefabcdefabcdefabcdefabcdefabcd

local events​

List all supported simulation events.

peer-pay-cli local events

local settings​

Set mock staking, rates, expiry, logo, minimum/maximum order amounts, and the invoiced fee. --data sets any of:

FieldMeaning
simulatedLivetrue (the default for new local merchants) treats the merchant as live for payouts and Master Merchant Account checks. false returns sandbox refusals such as PAYOUT_SANDBOX_UNSUPPORTED.
paymentCreationPausedtrue makes payment creation and test orders fail with HTTP 503 PAYMENTS_PAUSED. Resets when serve restarts.
stakingFixturetrue seeds deterministic staking data; false clears it.
ratesFixture rates in currency units per USD, such as {"EUR":"0.92"}, or token units per USD, such as {"ETH":"0.0004"}.
quoteTtlSecondsPayment window for new payments, 1–86400 seconds. Defaults to 3000 (50 minutes), like hosted fiat checkout.
minOrderAmountUsdc, maxOrderAmountUsdcOrder limits as decimal strings (defaults 1 and 10000). The maximum must exceed the minimum.
logoUrlMock merchant logo URL, or null.
invoicedFeeBpsInvoiced fee for fees invoice, 0–5000 basis points, or null (the default) for a merchant that is not billed by invoice. Applies to the merchant your API key (or X-Merchant-Id) selects. Resets when serve restarts.
peer-pay-cli local settings --data '{"quoteTtlSeconds":30}'

local reset​

Back up a stopped local state file so the next serve starts fresh. Use it for a state file from an older CLI. --state is required and must name an existing file whose server is stopped. The file is renamed to PATH.backup-<uuid> without being read; restart serve with the same --state path.

peer-pay-cli local reset --state ./local-state.json

local retry​

Retry a completed local webhook delivery with a fresh retry budget.

peer-pay-cli local retry DELIVERY_ID

local accept-invite​

Accept a simulated invitation without sending email.

peer-pay-cli local accept-invite INVITE_ID

local session​

Act as another local identity, such as a transfer recipient. --email is required. --wallet-delegated false simulates a recipient whose payout wallet is not set up yet.

peer-pay-cli local session --email new-owner@example.com

local admin​

Set mock merchant controls that Peer manages for hosted merchants, such as Apple Pay availability (applePayAvailable), fee overrides, and Master Merchant Account access (masterMerchantEnabled, which needs simulatedLive).

peer-pay-cli local admin --data @admin.json
peer-pay-cli local admin --data '{"applePayAvailable":true}'

local admin payout​

Show or set Peer's payout fee, step, rails and tokens for the local merchant. Without --data it reads them; with --data it saves any of peerFeeBps (0–1000), payoutStepUsdc, rails, and fundingTokens (CHAIN_ID:address keys; empty allows every token). Changes apply to new payouts.

merchant-payout.json
{ "peerFeeBps": 150, "payoutStepUsdc": 50, "rails": ["relay_8453"] }
peer-pay-cli local admin payout --data @merchant-payout.json

local admin payout-settings​

Show or set the global payout rails, funding tokens and Peer fee wallet. These apply to every local merchant: disabledRails and disabledFundingTokens turn methods and tokens off for new payouts, and peerFeeRecipient receives Peer's payout fee.

global.json
{ "disabledRails": ["paypal"], "disabledFundingTokens": [] }
peer-pay-cli local admin payout-settings --data @global.json

API requests​

api​

Call an API endpoint with optional --management authentication. METHOD is GET, POST, PUT, PATCH, or DELETE. PATH starts with /api/v1/, or /local/ on a local profile, and stays on the profile's API URL; redirects are not followed. --data sends a JSON body. The response must be JSON.

peer-pay-cli api GET '/api/v1/merchants/me/orders?limit=20'