Skip to content
Console
Menu

Queues

Workflows

Getting Started

Authentication

KV Store

Merchant accounts

A Merchant Account is the seller an environment charges as on the web: the customer's own Stripe account, connected through Stripe Connect…

A Merchant Account is the seller an environment charges as on the web: the customer's own Stripe account, connected through Stripe Connect OAuth, or with a restricted key when OAuth cannot be used (the platform's own products). Sylphx stores the account id, and for a key connection the key sealed, never in the clear and never returned. :connect starts the connection; the processor's redirect completes an OAuth one.

Service Sylphx Money · Resource type money.sylphx.com/MerchantAccount · Name pattern orgs/{org}/projects/{project}/envs/{env}/merchant_accounts/{merchant_account} · Shape record

#Fields

FieldTypeWhat it is
namestringorgs/{org}/projects/{project}/envs/{env}/merchant_accounts/{merchant_account}; the environment's seller is default.
uidstringmac_<cell><ulid>; never reused. Output only.
metaResourceMetaResource metadata.
processorstringThe processor: stripe. Output only.
account_idstringThe connected account id, for example acct_1Nv…. Output only.
livemodeboolWhether the connection is in live mode (false is test mode). Output only.
statestringconnected or disconnected. Output only.
charges_enabledboolWhether the account can take payments now. Output only.
payouts_enabledboolWhether the account can be paid out. Output only.
business_namestringThe business name the processor holds for the account. Output only.
region_codestringISO 3166-1 alpha-2 country of the account. Output only.
default_currency_codestringISO 4217 default currency of the account, upper case. Output only.
refresh_timetimestampWhen the processor last confirmed these fields. Output only.
credentialstringHow the account is called at the processor: connect (the platform's key acts for a connected account) or restricted_key (the account's own key, held sealed). Output only.

#Methods

Every method of the collection, in the registry's order, with the scope it needs. The full request, response and examples are one link away.

MethodCallWhat it does
GETgetGets a merchant account.
GETlistLists merchant accounts.
POSTconnectStarts connecting a Stripe account: returns the processor's authorisation URL for an org owner to open, which the processor's redirect completes. With a restricted key in the request the account connects at once instead, and the connected merchant account comes back in the response.
POSTrefreshReads the connected account back from the processor.
POSTdisconnectDisconnects the account: Sylphx loses access; checkout is refused.

#get

Gets a merchant account.

GET https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/merchant_accounts/merchant-account · scope billing:read · effect read · Request, response and examples

#list

Lists merchant accounts.

GET https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/merchant_accounts · scope billing:read · effect read · paginated · Request, response and examples

#connect

Starts connecting a Stripe account: returns the processor's authorisation URL for an org owner to open, which the processor's redirect completes. With a restricted key in the request the account connects at once instead, and the connected merchant account comes back in the response.

POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/merchant_accounts:connect · scope billing:write · effect write · Request, response and examples

#refresh

Reads the connected account back from the processor.

POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/merchant_accounts/merchant-account:refresh · scope billing:write · effect write · Request, response and examples

#disconnect

Disconnects the account: Sylphx loses access; checkout is refused.

POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/merchant_accounts/merchant-account:disconnect · scope billing:write · effect destructive · Request, response and examples