Skip to content

The complete open source platform to run your entire marketplace. Storefront, vendor panel, admin console, and integrations in one enterprise-grade platform you own.

2.0 KB
Raw Blame
---
title: "Create Onboarding"
api: "POST /vendor/payout-accounts/{id}/onboarding"
description: "Start or refresh provider onboarding for a payout account."
---

Creates an onboarding session with the payout provider. For Stripe Connect, the returned `data` contains the hosted onboarding link.

## Path parameters

<ParamField path="id" type="string" required>
  The payout account's ID.
</ParamField>

## Body parameters

<ParamField body="data" type="object">
  Provider-specific data forwarded when creating the onboarding, merged over the payout account's stored `data`. `refresh_url` and `return_url` are ignored: the links always use the module's `onboarding` options.
</ParamField>

<ParamField body="context" type="object">
  Additional context forwarded to the provider, such as an `idempotency_key`.
</ParamField>

## Response

<ResponseField name="onboarding" type="object">
  <Expandable title="properties">
    <ResponseField name="id" type="string">The onboarding's ID.</ResponseField>
    <ResponseField name="data" type="object">Provider-specific onboarding data, such as the hosted onboarding URL.</ResponseField>
    <ResponseField name="context" type="object">The context used to create the onboarding.</ResponseField>
    <ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>
    <ResponseField name="updated_at" type="string">Update timestamp.</ResponseField>
  </Expandable>
</ResponseField>

<RequestExample>
```bash cURL
curl -X POST 'http://localhost:9000/vendor/payout-accounts/pacc_01HXYZ/onboarding' \
  -H 'Authorization: Bearer <token>' \
  -H 'x-seller-id: <seller_id>' \
  -H 'Content-Type: application/json' \
  -d '{}'
```

```ts JS Client
const { onboarding } = await client.vendor.payoutAccounts.$id.onboarding.mutate({
  $id: "pacc_01HXYZ",
})
```
</RequestExample>

<ResponseExample>
```json 201
{
  "onboarding": {
    "id": "onb_01HXYZ",
    "data": { "url": "https://connect.stripe.com/setup/s/..." },
    "created_at": "2026-01-15T10:00:00.000Z"
  }
}
```
</ResponseExample>