@mercurjs/docs 2.3.6-canary.1 → 2.3.6-canary.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -155,7 +155,8 @@ curl -X POST http://localhost:9000/vendor/payout-accounts/<account-id>/onboardin
|
|
|
155
155
|
-H "Authorization: Bearer <seller-token>" \
|
|
156
156
|
-H "Content-Type: application/json" \
|
|
157
157
|
-d '{
|
|
158
|
-
"
|
|
158
|
+
"data": {
|
|
159
|
+
"refresh_url": "https://my-store.com/settings/payouts",
|
|
159
160
|
"return_url": "https://my-store.com/settings/payouts"
|
|
160
161
|
}
|
|
161
162
|
}'
|
|
@@ -15,11 +15,11 @@ Creates an onboarding session with the payout provider. For Stripe Connect, the
|
|
|
15
15
|
## Body parameters
|
|
16
16
|
|
|
17
17
|
<ParamField body="data" type="object">
|
|
18
|
-
Provider-specific data forwarded when creating the onboarding.
|
|
18
|
+
Provider-specific data forwarded when creating the onboarding (e.g. `refresh_url` and `return_url` for Stripe Connect). Merged over the payout account's stored `data`.
|
|
19
19
|
</ParamField>
|
|
20
20
|
|
|
21
21
|
<ParamField body="context" type="object">
|
|
22
|
-
|
|
22
|
+
Additional context forwarded to the provider, such as an `idempotency_key`.
|
|
23
23
|
</ParamField>
|
|
24
24
|
|
|
25
25
|
## Response
|
|
@@ -40,13 +40,13 @@ curl -X POST 'http://localhost:9000/vendor/payout-accounts/pacc_01HXYZ/onboardin
|
|
|
40
40
|
-H 'Authorization: Bearer <token>' \
|
|
41
41
|
-H 'x-seller-id: <seller_id>' \
|
|
42
42
|
-H 'Content-Type: application/json' \
|
|
43
|
-
-d '{"
|
|
43
|
+
-d '{"data": {"refresh_url": "https://vendor.example.com/payouts", "return_url": "https://vendor.example.com/payouts"}}'
|
|
44
44
|
```
|
|
45
45
|
|
|
46
46
|
```ts JS Client
|
|
47
47
|
const { onboarding } = await client.vendor.payoutAccounts.$id.onboarding.mutate({
|
|
48
48
|
$id: "pacc_01HXYZ",
|
|
49
|
-
|
|
49
|
+
data: {
|
|
50
50
|
refresh_url: "https://vendor.example.com/payouts",
|
|
51
51
|
return_url: "https://vendor.example.com/payouts",
|
|
52
52
|
},
|
|
@@ -60,7 +60,6 @@ const { onboarding } = await client.vendor.payoutAccounts.$id.onboarding.mutate(
|
|
|
60
60
|
"onboarding": {
|
|
61
61
|
"id": "onb_01HXYZ",
|
|
62
62
|
"data": { "url": "https://connect.stripe.com/setup/s/..." },
|
|
63
|
-
"context": { "return_url": "https://vendor.example.com/payouts" },
|
|
64
63
|
"created_at": "2026-01-15T10:00:00.000Z"
|
|
65
64
|
}
|
|
66
65
|
}
|
|
@@ -9,11 +9,11 @@ Creates a payout account for the current seller through the configured payout pr
|
|
|
9
9
|
## Body parameters
|
|
10
10
|
|
|
11
11
|
<ParamField body="data" type="object">
|
|
12
|
-
Provider-specific data forwarded when creating the account.
|
|
12
|
+
Provider-specific data forwarded when creating the account (e.g. `{ "country": "US" }` for Stripe Connect). Defaults to `{}`.
|
|
13
13
|
</ParamField>
|
|
14
14
|
|
|
15
15
|
<ParamField body="context" type="object">
|
|
16
|
-
|
|
16
|
+
Additional context forwarded to the provider, such as an `idempotency_key`.
|
|
17
17
|
</ParamField>
|
|
18
18
|
|
|
19
19
|
## Response
|
|
@@ -35,12 +35,12 @@ curl -X POST 'http://localhost:9000/vendor/payout-accounts' \
|
|
|
35
35
|
-H 'Authorization: Bearer <token>' \
|
|
36
36
|
-H 'x-seller-id: <seller_id>' \
|
|
37
37
|
-H 'Content-Type: application/json' \
|
|
38
|
-
-d '{"
|
|
38
|
+
-d '{"data": {"country": "US"}}'
|
|
39
39
|
```
|
|
40
40
|
|
|
41
41
|
```ts JS Client
|
|
42
42
|
const { payout_account } = await client.vendor.payoutAccounts.mutate({
|
|
43
|
-
|
|
43
|
+
data: { country: "US" },
|
|
44
44
|
})
|
|
45
45
|
```
|
|
46
46
|
</RequestExample>
|
|
@@ -51,7 +51,7 @@ const { payout_account } = await client.vendor.payoutAccounts.mutate({
|
|
|
51
51
|
"payout_account": {
|
|
52
52
|
"id": "pacc_01HXYZ",
|
|
53
53
|
"status": "pending",
|
|
54
|
-
"
|
|
54
|
+
"data": { "id": "acct_1Q2w3E4r5T6y7U8i" },
|
|
55
55
|
"created_at": "2026-01-15T10:00:00.000Z"
|
|
56
56
|
}
|
|
57
57
|
}
|