Skip to content

Payment links · test mode

Get paid with a link, held until the proof passes

A payment link is a hosted page the payer opens with no app. When the link names a proof, the payer's money is held, the proof is checked, and the money moves when the check passes. Both sides get a signed receipt.
  1. 1

    Get a test key

    POST /v1/onboarding/test-key. The key is shown once and starts pop_test_. No sign-up is needed in test mode.

  2. 2

    Claim a name

    POST /v1/names with the @name your links go out under. A link always names who is paid.

  3. 3

    Make a link

    POST /v1/payment-links with the amount, what it is for, and the proof the money is held on.

  4. 4

    Share it and read its state

    Send url_full to the payer. GET /v1/payment-links/{id} says open, held, paid or returned. No webhook is needed to start.

Base URL

Every path below is under this base. Test keys only.

https://getpayonproof.com/api/pop

Your first link

The same calls in curl and in Node. Copy either.
# 1. A test key (shown once)
curl -X POST https://getpayonproof.com/api/pop/v1/onboarding/test-key

# 2. Your name
curl https://getpayonproof.com/api/pop/v1/names \
  -H "Authorization: Bearer $POP_TEST_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "name": "yourname" }'

# 3. A link, held until the delivery proof passes, fee on the payer
curl https://getpayonproof.com/api/pop/v1/payment-links \
  -H "Authorization: Bearer $POP_TEST_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "amount": 5000, "currency": "USD", "message": "Garden fence", "proof": "delivery.1", "fees_on": "payer", "methods": ["bank", "balance"] }'

# 4. Its state
curl https://getpayonproof.com/api/pop/v1/payment-links/$LINK_ID \
  -H "Authorization: Bearer $POP_TEST_KEY"

Options

The proof and who covers the fee.
  • proof

    A proof template and its version, such as delivery.1. The payer's money is held until that proof passes its check, then it moves. Leave it out and the link is paid at once with no hold.

  • fees_on

    payee by default: the fee comes out of the amount. With payer, the fee is added to what the payer pays, so you get the exact amount. That works for bank, balance and wallet payments; cards wait for counsel.

  • methods

    Optional. The ways the payer may pay: card, bank, balance, usdc, lightning.

  • A person can also type a link by hand: /@yourname/50/garden-fence?when=delivered on getpayonproof.com opens the same pay page, held until the delivery proof passes. Add fees=payer to put the fee on the payer.
  • An assistant can make a link with the MCP server's create_payment_link tool. A link asks for money and moves none, so an assistant token needs only the request scope.
  • Test mode only. No money moves until counsel signs off and the owner switches it on.

The spec

The open specification and the full API.