pay_order
shallowai.egonex/marketplace · Verify this server
Pay for an order made with request_order without the confirm page, using a Stripe Shared Payment Token that your user approved (for example in Stripe Link). request_order returns payment: the amount per unit in USD, max_quantity and payment_handlers with the Stripe network_id to issue the token to; the token must allow at least amount × quantity in USD (plus sales tax where Egonex collects it, calculated from the shipping address for an item that ships and from the card's billing address otherwise; if the token doesn't cover it, nothing is charged and the error gives the total). Egonex creates the order for your user: on a guest account for the email you give (receipts and seller replies go to that email), or, when that email is the Egonex account your user connected to you with permission to act for them (egonex.write), on that account. The result has the same status and order as check_request (order has its title, quantity, amount and deadlines), so you can tell your user where the order stands. The seller confirms an order before the buyer pays: when the result has status waiting_for_seller, the order was sent to the seller and nothing was charged; once check_request shows ready_to_pay, call pay_order again with the same request_id and buyer_email and a valid token (or your user pays on Egonex: from the link Egonex emails them, or, for an order on the Egonex account they connected, in their chat with the seller). If the seller declines or doesn't respond, the order closes and nothing is charged. If the first pay_order result already has status ready_to_pay, the seller accepted right away and nothing was charged yet either: call pay_order again now in the same way. When the result has status paid and order.accept_by, the token was charged first and the seller has until then to accept; if they decline or don't respond, your user is refunded. For an item that ships (payment.requires_shipping_address), the pay_order call that charges must have shipping_address and shipping_address_confirmed=true, otherwise nothing is charged (shipping_address_required / shipping_address_not_confirmed): before you pay, ask your user for the full address, read it back to them and pass it only once they say it's right. A call that only sends the order to the seller charges nothing and doesn't keep an address: pass it on the call that pays. An address that fails the format check (the error names the field) or that Stripe can't place for sales tax is refused with shipping_address_invalid, and nothing is charged. The address becomes the order's shipping address only once the payment goes through (if it doesn't, nothing is kept and you can retry with a corrected address); order.ship_to then shows its city, state, ZIP code and country (never the name or street). After payment pay_order can't change it: a different address is refused (shipping_address_locked), and your user tells the seller in the Egonex chat instead. If your user pays on Egonex (the confirm page, or the link in Egonex's email), they enter the address there and no address you passed is used. If the email already has an Egonex account: when it is the account your user connected to you with egonex.write, the payment goes ahead on that account like any other, unless that account has to finish setting up on Egonex first (phone_verification_required, account_setup_required: nothing is charged); when they connected a different account, nothing is charged (buyer_email_mismatch); without such a connection (none, or a read-only one), nothing is charged (email_has_account) and your user should pay on the confirm_url page instead. A connected account can't pay for its own listing (own_listing). If Stripe declines the token, nothing is charged: retry with a new token and the same buyer_email. check_request then shows ready_to_pay when the seller had already accepted the order (pay it the same way as above), and payment_failed otherwise (or give confirm_url to your user). If the payment couldn't be confirmed (payment_error), it may or may not have gone through: don't call pay_order again while check_request shows payment_in_progress (Egonex is checking with Stripe, usually a few minutes; nothing is charged twice meanwhile). When it no longer does: if it shows paid, nothing more is needed; if it shows payment_failed or ready_to_pay, ask your user for a new approval and call pay_order again with the new token (not the same one). If the listing sold out meanwhile, or there aren't that many left, nothing is charged (sold_out / stock_short; stock_short says how many are left when it is 3 or fewer): search again, or call pay_order again with a smaller quantity. If the seller isn't taking new orders right now and hasn't accepted this order yet, nothing is charged (seller_not_taking_orders): choose another listing, or ask the seller with ask_seller. Errors end with their code in parentheses, the same code the REST API returns (for example (shipping_address_required), (invalid_input), (not_found)). After an order is placed, with your user's Egonex account connected to you with permission to act for them (egonex.write) and that account the order's buyer, confirm_receipt confirms delivery and withdraw_order withdraws an order the seller hasn't accepted yet, preview_refund and then request_refund ask for a refund, and submit_return_shipment passes the tracking number when the seller asked for the item back; everything else about the order (a problem with it, a cancellation after the seller accepted), and all of it without such a connection, is handled on Egonex, in your user's chat with the seller (a buyer without an Egonex account opens it from the link in Egonex's email). Pass quote_id from quote_order (the one given to request_order, or a new one for the same listing and quantity) to charge exactly the quoted total: if the price, shipping, sales tax, agreed price or quantity changed, or the quote expired, nothing is charged (quote_changed / quote_expired / quote_not_found): call quote_order again. When the seller accepts first, quote the order with quote_order and request_id right before the call that charges. Only call this after your user agreed to the purchase and to Egonex's terms.
1 trials · measured 10 days ago
pay_order scores 100.0/100 on Vouch's measured behaviour index, from 1 real invocation trials against ai.egonex/marketplace, measured 12 Nov 2026 under methodology v0.2.0. Every measured component scored 100.
Component breakdown
| Component | Weight | Value |
|---|---|---|
| Reliability | 35% | not applicable |
| Schema integrity | 25% | 100.0 |
| Failure behaviour | 15% | not applicable |
| Latency | 15% | not applicable |
| Concurrency | 10% | not applicable |
Tool details
- Transport
- remote
- Credential class
- self-provisionable
- Input schema
- not declared
- Output schema
- not declared
- Side-effect classification
- unclassified
Score history
| Day | Score | Tier | Methodology |
|---|---|---|---|
| 2026-11-12 | 100.0 | shallow | v0.2.0 |
Probe evidence
| Probe | Outcomes |
|---|---|
| schema_integrity | pass: 1 |
Raw request/response logs are not archived yet — the outcome counts above are drawn directly from every recorded trial.
Embed this score
Available for every tool, scored or not — not a verification perk. Always links back to this page.
[](https://vouch.tools/tools/a26c16a0-deaa-401e-8045-005df7c00d04)