Checkout (public)

Simulate a demo store payment

Works only on invoices from the public demo store (/demo), which are in test mode. Moves the latest payment attempt to the chosen outcome one status every 4 seconds, through the same statuses as a real payment. The invoice needs a deposit address first. Any other invoice returns 404. Rate limit: 60 per minute per IP address.

POST
/api/v1/invoices/{id}/simulate

Path Parameters

id*string

Invoice id, starting with inv_.

Request Body

application/json
  1. body
outcome*string
Value in"paid""underpaid""refunded""failed"

Response Body

The outcome was recorded.

Example Request
curl -X POST 'https://example.com/api/v1/invoices/string/simulate' \  -H 'Content-Type: application/json' \  -d '{  "outcome": "paid"}'
Example Response
Empty