Sample - Stripe API
POST/v1/terminal/onboarding_links

Create an Onboarding Link

Creates a new OnboardingLink object that contains a redirect_url used for onboarding onto Tap to Pay on iPhone.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.
  • IdempotentThe SDK sends Idempotency-Key, so a retried request is only applied once.

4 body fields
expandarray<string>optional
Specifies which fields in the response should be expanded.
link_optionsobjectrequired
Specific fields needed to generate the desired link type.
link_typestringrequired
The type of link being generated.
Allowed:apple_terms_and_conditions
on_behalf_ofstringoptional
Stripe account ID to generate the link for.

2 status codes
200Successful response.
link_optionsobjectrequired
Link type options associated with the current onboarding link object.
link_typestringrequired
The type of link being generated.
Allowed:apple_terms_and_conditions
objectstringrequired
Allowed:terminal.onboarding_link
on_behalf_ofstringoptional
Stripe account ID to generate the link for.
redirect_urlstringrequired
The link passed back to the user for their onboarding.
defaultError response.
errorobjectrequired

Error handling

Any other status is an error: Error response.