Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

dealer_id
int

Dealer id

required

first_name
string

First name

required

last_name
string

Last name

required

email
string

Location email

required

additional_email
arraystring

Location additional email

optional

phone_number
string

Location phone number

required

postal_code
string

Location zip/postal code

required

country
string

Location country

required

province
string

Location province

required

latitude
decimal

Location latitude

required

longitude
decimal

Location longitude

required

external_id
string

Location external id

optional

language
array

Array with localised values for location

required

locale
string

Locale label

required

location_name
string

Location name

required

address_line_1
string

Address line 1

required

address_line_2
string

Address line 2

optional

city
string

Location city

required

is_active
boolean

Shows whether the location is active or not

required

...

Code Block
languagenone
curl --location 'https://devdemo.tireconnect.ca/api/account/v2/location/connection-request/create' \
--header 'accept: application/json' \
--header 'token: eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJwYXJ0bmVyIjoiNmFhNzJlODMtNjkzMS00YjBiLTkyY2UtYWMxODg5YTIyNjgwIiwiZXhwIjoxNzE2ODMwMjM5fQ.lzDKjnBlkPXPddNbhow0d_lQ8vPbnKQj9odYOv7eGwTnA1PEO0XPCdJJx8ZTAMepcGu2Kp1eq9fbYcrHw56v2X6Gp4oAxxHX8SE98g3-0gchoyH1-khv89WsVizHgLMC276l0fIYzUX8wkuo6H4UAhFCI_7oVJ9HLuMtFjyNVRw' \
--header 'Content-Type: application/json' \
--data-raw '{
   "supplier_cid":"ATD",
   "location_id":1,
   "first_name":"John",
   "last_name":"Doe",
   "email":"john@doe.com",
   "phone":"1 888 792-7072",
   "note":"Some note about connection request",
   "credentials":[
      {
         "name":"location_number",
         "value":"1"
      },
      {
         "name":"fill_kill",
         "value":"Fill or Kill"
      },
      {
         "name":"account_number",
         "value":"3"
      },
      {
         "name":"username",
         "value":"4"
      }
   ]
}'

...

Connection request creationPending: User created CR (location/connection-request/create)

PendingPending: User resubmitted edited CR (location/connection-request/resubmit)

...