castomAPI
Get your key

The platform · pay.castomapi.com

Pay

Payments between people and businesses on the platform, with Stripe underneath.

11 operationsOpenAPI → castomocastomUIclickSomo

castomapi-pay takes a payment on behalf of a seller — a booking, an order, a service — through Stripe Connect, so the money lands in the seller's own account and the platform keeps only its fee. Refunds, receipts and payouts follow the seller's own rules.

It is what lets a marketplace, a booking page or a shop built on castomAPI charge a customer on day one.

Operations

MethodPathDescription
GET/public/v1/payments/{id}What a payer may see of a payment: amount, description, state.
POST/public/v1/payments/{id}/checkoutA checkout URL for an unpaid payment — the open session, or a fresh one when it has expired. `paid` when the read settled it; 409 once the payment is paid, refunded or canceled.
GET/v1/payments/Your payments, newest first
POST/v1/payments/Ask a customer for money and get a checkout link
GET/v1/payments/{id}One payment, and whether it is paid
POST/v1/payments/{id}/cancelCancel an unpaid payment and kill its checkout link
POST/v1/payments/{id}/refundRefund a payment in full or in part
POST/webhooks/stripeStripe Connect events, live mode
POST/webhooks/stripe/accountStripe events on the platform account (house sales), live mode
POST/webhooks/stripe/account/testStripe events on the platform account (house sales), test mode
POST/webhooks/stripe/testStripe Connect events, test mode

Base URL: https://pay.castomapi.com · Open the live docs

The platform