Onboarding reference data

List the locations, Merchant Category Codes, and occupations that onboarding flows accept, using the Wingspan V3 API.

Use these three read-only calls to fill pickers in an onboarding form. They return static lists, so you can cache them.

  • Location affects tax jurisdiction and the compliance requirements that apply.
  • A Merchant Category Code (MCC) classifies the type of business or service an Account provides.
  • Occupation selection can affect tax classification or compliance requirements.

Prerequisites

  • A credential for a Person, an Account session, or a ServiceAccount with access to reference data. All three calls are Account-scoped, so X-Wingspan-Account is accepted when you act on a child Account. See Acting on behalf of Accounts.

Endpoints

Method and pathOperationReturns
GET /v3/onboarding/locationslistLocationsCountries, states, and provinces. Paginated.
GET /v3/onboarding/mcc-codeslistMccCodesMerchant Category Codes. No pagination parameters.
GET /v3/onboarding/occupationslistOccupationsOccupations. Paginated.

listLocations and listOccupations take page[size] (1 to 100, default 25) and page[token]. Follow pagination.nextPageToken until it's an empty string. listMccCodes has no page parameter and its response has no pagination object.

Response fields

Each item carries accountId (the owning Account) plus:

ResourceFields
Locationcode (for example US-TX), name, country (ISO 3166-1 alpha-2), subdivision (ISO 3166-2, or null)
MCC codecode (four digits, as a string), name, category
Occupationcode (string), name, category

Example: list locations

curl "https://api.wingspan.app/v3/onboarding/locations?page[size]=2" \
  -H "Authorization: Bearer $WINGSPAN_TOKEN"
// 200 OK (trimmed)
{
  "url": "/v3/onboarding/locations",
  "data": [
    { "accountId": "Nw7kQ2pLx9RtVb3mHc5dZa", "code": "US-TX", "name": "Texas", "country": "US", "subdivision": "TX" }
  ],
  "pagination": { "nextPageToken": "" }
}

listMccCodes returns { "url": "...", "data": [ { "code": "5734", "name": "Computer Software Stores", "category": "Technology" } ] }.

Errors

StatusWhen
401Missing or invalid credential.
403The credential can't read reference data, or can't act on the Account in X-Wingspan-Account.

Related pages


Did this page help you?