API referencePayments

Payments

1 operation. Every schema and example on this page is generated from the platform contract.

Give a store a sandbox Stripe account so it can trade before connecting Stripe.

Idempotent. A store that already has any connected account, half-finished onboarding included, is returned untouched, and a store that has already gone live is never touched at all. Provisioning is best-effort: on failure the store is left exactly as it was, unable to take a payment, which is what it already was.

Request body

store_idstring · uuidrequired

Store to give a sandbox till to (also authorises the merchant; owner only).

Response, 200

outcomeenumrequired

'existing' means the store already had a connected account and nothing was done, including a store that has already gone live, which is never touched.

createdexistingfailed
stripe_account_idstring, nullablerequired
charges_enabledbooleanrequired

Whether the account can actually take a card right now.

stripe_modestringrequired
reasonstring, nullablerequired

Why it did nothing, or why it failed. Present for diagnosis, not for display.

curl -X POST "https://www.membber.com/api/v1/payments/sandbox-account" \
  -H "Authorization: Bearer $MEMBBER_TOKEN" \
  -H "Idempotency-Key: 1f0e2d3c-4b5a-4678-9abc-def012345678" \
  -H "Content-Type: application/json" \
  -d '{
    "store_id": "6659c139-0000-4000-8000-d0c500000066"
  }'
Response, 200
{
  "outcome": "created",
  "stripe_account_id": "8d79cf9f-0000-4000-8000-d0c50000008d",
  "charges_enabled": true,
  "stripe_mode": "<stripe_mode>",
  "reason": "Added at the front desk"
}
WhatsApp
Book a Call
Start Free