Skip to main content

Signing up Merchants

Overview#

Merchants on your platform can sign up to offer Sunbit to customers.

Sunbit's Merchant API makes signing up for Sunbit quick and easy. You can incorporate this API in your current onboarding process by adding a Call to Action in your registration form.

Once a merchant expresses interest in offering financing, you can initiate the Sunbit sign up process by either:

a. Asking Sunbit to send an onboarding text message to the merchant.

b. Requesting a unique URL so that you can incorporate the Sunbit sign up into your platform's onboarding experience.

Ask Sunbit to send an onboarding text message to the merchant#

Send merchant information to Sunbit in the request payload. The information you send will be pre-filled for the merchant so it's helpful to provide as much information as possible for a smoother onboarding experience. The request should also include a Location ID which you will provide as a unique identifier for each specific merchant location. Merchants from the following states are not supported: VT, WV and WY. Business information of Dental Merchants/Customers located in CA will not be pre-filled.

Important

Merchants from the following states are not supported: VT, WV and WY. Business information of Dental Merchants/Customers located in CA will not be pre-filled.

Request a unique URL#

Based on the request, Sunbit will return a unique URL for the merchant or text the merchant directly to the phone number specified.

Once the merchant completes and submits the onboarding form they will be reviewed and activated. Sunbit will send merchants a training package so that they can start offering Sunbit right away. You can use a webhook to check the status of the merchant application. The URL will expire within 30 days if an application has not been submitted.

Merchant Onboarding Form Merchant Onboarding Form

Add a new merchant#

POST https://api-sandbox.sunbit.com/onboarding/api/v1/location#

Headers#

PropertyRequiredTypeDescription
sunbit-keyyestextProvided to you by Sunbit
sunbit-secretyestextProvided to you by Sunbit

Body#

AttributeRequiredTypeDescription
locationyestextUnique identifier of the merchant.
sendSMSnobooleanTrue if Sunbit should send SMS with the onboarding link, false by default
legalNamenotextThe legal name of the business entity
businessNamenotextThe business name
verticalyestextThe name of vertical as defined in Verticals
businessAddressnoAddressDetailsThe business address
representativeDetailsyesBusinessRepresentativeBusiness representative details that is associated with the location
sourcePlatformnotextThe originating platform on whose behalf the API request is being made, if different from the alliance.

AddressDetails#

AttributeRequiredTypeDescription
addressnotextCustomer's address
citynotextCustomer's city
statenotextCustomer's state
zipcodenotextCustomer's zipcode
suitenotextCustomer's suite

BusinessRepresentative#

AttributeRequiredTypeDescription
firstNamenotext
lastNamenotext
phoneNumbernotext
emailnotext

Response#

AttributeTypeDescription
locationtextSame as in request body
urltextMerchant application URL for onboarding form
creationDatetextFormat YYYY-MM-DD
statustextCREATED

Verticals#

The vertical should be taken from the defined below options:

  • Car_Dealerships
  • Car_Services
  • Veterinary
  • Motorsports_Parts_and_Services
  • Dental
  • Eyewear
  • Home_Services
  • Med_Spa
  • Bridal
  • General_Retail
  • Jewelry_and_Watches
  • Legal_Services
  • Medical_Office
  • Hospital_Health_System

Example#

Request#

curl -X POST \  '"https://api-sandbox.sunbit.com/onboarding/api/v1/location' \  -H 'Content-Type: application/json' \  -H 'sunbit-key: YOUR_KEY' \  -H 'sunbit-secret: YOUR_SECRET' \  -d '{      "location" : "johns-store",      "sendSMS" : true,      "legalName" : "John Doe Dental",      "vertical" : "Car_Dealerships",      "representativeDetails" : {             "firstName" : "John",             "lastName" : "Doe",             "phoneNumber" : "303-988-8945",             "email":"john.doe@emailaddress.email"      }}'

Response#

{      "location" : "johns-store",      "url" : "https://merchant-onboarding.sunbit.com/hwerityQas",      "creationDate" : "2019-12-19",      "status" : "CREATED"}

Errors#

Error CodeMessageDescription
400Bad RequestMissing or invalid input, or sendSMS is true but no representative phone number provided
401Unauthorizedsunbit-key and/or sunbit-secret do not match any alliance credentials
409ConflictSame location was already added for this alliance
422Unprocessable EntityVertical parameter is not supported
422Unprocessable EntityState is not supported, List of Unsupported States
500Internal Server ErrorSomething went wrong on Sunbit's side

Get merchant status#

GET https://api-sandbox.sunbit.com/onboarding/api/v1/location/{location}#

Headers#

PropertyRequiredTypeDescription
sunbit-keyyestextProvided to you by Sunbit
sunbit-secretyestextProvided to you by Sunbit

Body#

Path Parameters#

PropertyRequiredTypeDescription
locationyestextUnique identifier of the merchant.

Response#

AttributeTypeDescription
locationtextSame as in request path
urltextMerchant application URL for onboarding form
creationDatetextFormat YYYY-MM-DD
statustextThe list of possible statuses includes
  • CREATED
  • LOCATION_DETAILS_ADDED
  • CONTACT_DETAILS_ADDED
  • BANK_INFORMATION_ADDED
  • SUBMITTED
  • LEGAL_INFORMATION_ADDED
  • ACTIVATED
  • DECLINED
expiredInDaysnumberNumber of days for token to expire
expirationDatetextToken expiration date in format YYYY-MM-DD

Example#

Request#

curl 'https://api-sandbox.sunbit.com/onboarding/api/v1/location/johns-store' \  -H 'sunbit-key: YOUR_KEY' \  -H 'sunbit-secret: YOUR_SECRET'
Response#
{  "location" : "johns-store",  "url" : "https://merchant-onboarding.sunbit.com/hwerityQas",  "creationDate" : "2019-12-19",  "status" : "LOCATION_DETAILS_ADDED",  "expiredInDays": 30,  "expirationDate": "2020-01-19"}

Errors#

Error CodeMessageDescription
401Unauthorizedsunbit-key and/or sunbit-secret do not match any alliance credentials
404Resource Not FoundLocation was not found
422State Not SupportedMerchant is operating in an unsupported State
500Internal Server ErrorSomething went wrong on Sunbit's side