Creates a new onboarding process for a specific user.
Body
Required
-
The URL to which the user will be redirected after a cancelled onboarding.
-
The URL to which the user will be redirected after a failed onboarding.
-
The kind of the payment method to be created.
-
An optional metadata object that is passed to the underlying payment integration. The requirements may vary for each provider.
Additional properties are allowed.
-
Determines if the payment method will be created as proxy payment method.
Default value is
false. -
The URL to which the user will be redirected after a successful onboarding.
-
The unique identifier of the user associated with the onboarding. Required if not requesting with the :authenticated scope.
POST
/2026-2/onboardings
curl \
--request POST 'https://api.pace.cloud/payment/2026-2/onboardings' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"cancelRedirectUrl":"https://example.com/cancel","failureRedirectUrl":"https://example.com/failure","kind":"FUEL_CARD_PROVIDER","metadata":{},"proxy":true,"successRedirectUrl":"https://example.com/success","userId":"c7bf1e9e-6ea0-445c-b3ae-e814a109416b"}'
Request examples
{
"cancelRedirectUrl": "https://example.com/cancel",
"failureRedirectUrl": "https://example.com/failure",
"kind": "FUEL_CARD_PROVIDER",
"metadata": {},
"proxy": true,
"successRedirectUrl": "https://example.com/success",
"userId": "c7bf1e9e-6ea0-445c-b3ae-e814a109416b"
}
Response examples (201)
{
"data": {
"cancelRedirectUrl": "https://example.com/cancel",
"cancelledAt": "2023-10-01T12:00:00.000Z",
"clientOnboardingUrl": "https://example.com/onboarding",
"completedAt": "2023-10-01T12:00:00.000Z",
"createdAt": "2023-10-01T12:00:00.000Z",
"expiresAt": "2023-10-01T12:00:00.000Z",
"failedAt": "2023-10-01T12:00:00.000Z",
"failureRedirectUrl": "https://example.com/failure",
"id": "565aa839-876b-4f24-8de0-dd8df72eda17",
"kind": "FUEL_CARD_PROVIDER",
"metadata": {},
"proxy": true,
"status": "PENDING",
"successRedirectUrl": "https://example.com/success",
"updatedAt": "2023-10-01T12:00:00.000Z",
"userId": "c7bf1e9e-6ea0-445c-b3ae-e814a109416b"
}
}