GET
/api/onboard/context
const url = 'https://example.com/api/onboard/context';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/onboard/context \ --header 'Authorization: Bearer <token>'Returns the merchant info, an optional pre-filled email, public plans, and any draft state already saved by the wizard. The wizard uses this to restore its state when a user comes back.
Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”Context loaded.
Media type application/json
object
invitationId
string format: uuid
status
string
expiresAt
string format: date-time
email
string
merchant
object
id
string format: uuid
name
string
description
string
country
string
products
Array<object>
object
id
string format: uuid
name
string
description
string
plans
Array<object>
object
id
string format: uuid
name
string
description
string
price
number format: double
setupFee
number format: double
frequency
string
trialDays
integer format: int32
minimumContractMonths
integer format: int32
cancellationFee
number format: double
questions
Array<object>
object
id
string format: uuid
order
integer format: int32
label
string
helpText
string
type
string
isRequired
boolean
maxLength
integer format: int32
options
Array<object>
object
id
string format: uuid
order
integer format: int32
value
string
label
string
draft
object
firstName
string
lastName
string
phone
string
addressLine1
string
city
string
state
string
postCode
string
country
string
selectedPlanId
string format: uuid
payment
object
type
string
brand
string
last4
string
expiryMonth
integer format: int32
expiryYear
integer format: int32
accountName
string
bsb
string
answers
object
key
additional properties
object
textValue
string
optionIds
Array<string>
Example
{ "status": "Pending", "products": [ { "plans": [ { "frequency": "OneOff" } ], "questions": [ { "type": "FreeText" } ] } ], "draft": { "payment": { "type": "Card" } }}Missing or non-onboarding-scoped token.
Media type application/json
object
type
string
title
string
status
integer format: int32
detail
string
instance
string
key
additional properties
Example generated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}Invitation backing the token no longer exists.
Media type application/json
object
type
string
title
string
status
integer format: int32
detail
string
instance
string
key
additional properties
Example generated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}