Versions Compared

Key

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

...

Code Block
languagejson
{
    "data": [
        {
            "logo": "https://devdemo.tireconnect.ca/uploads/supplier/f386424d92a6d6982243f085b841f11f43c81132.jpg",
            "name": "ATD/NTD",
            "id": "ATD",
            "operating_countries": [
                "CA",
                "US"
            ],
            "operating_regions": [
                {
                    "country": "CA",
                    "states": [
                        "AB",
                        "MB",
                        "NL"
                    ]
                },
                {
                    "country": "US",
                    "states": [
                        "WA"
                    ]
                }
            ],
            "tf": true,
            "ordering_supported": true,
            "contact_phone": "3312342343",
            "address": {
                "address_line_1": "67 Rue Wellington",
                "address_line_2": null,
                "city": "Gatineau",
                "postal_code": "J8X 2H4",
                "state": "QC",
                "country": "CA"
            },
            "credentials": [
                {
                    "type": "input",
                    "mapping": "location:location_number",
                    "options": null,
                    "name": "location_number",
                    "label": "Location number",
                    "description": "Location number in ATD system",
                    "required": true,
                    "link": null,
                    "is_checked": false,
                    "attributes": [
                        {
                            "name": "name",
                            "value": "location_number"
                        }
                    ]
                },
                {
                    "type": "select",
                    "mapping": "ordering:fillkill",
                    "options": [
                        "Fill or Kill",
                        "Fill and Kill"
                    ],
                    "name": "fill_kill",
                    "label": "Fill Kill",
                    "description": "Default ordering behaviour",
                    "required": false,
                    "link": null,
                    "is_checked": false,
                    "attributes": [
                        {
                            "name": "name",
                            "value": "fill_kill"
                        }
                    ]
                },
                {
                    "type": "input",
                    "mapping": null,
                    "options": null,
                    "name": "account_number",
                    "label": "Account Number",
                    "description": "Account number in ATD system",
                    "required": true,
                    "link": null,
                    "is_checked": false,
                    "attributes": [
                        {
                            "name": "name",
                            "value": "account_number"
                        }
                    ]
                },
                {
                    "type": "input",
                    "mapping": "common:username",
                    "options": null,
                    "name": "username",
                    "label": "Username",
                    "description": "User Login(s)",
                    "required": true,
                    "link": null,
                    "is_checked": false,
                    "attributes": [
                        {
                            "name": "name",
                            "value": "username"
                        }
                    ]
                },
                {
                    "type": "checkbox",
                    "mapping": "ordering:always_default_delivery",
                    "options": null,
                    "name": "ADD",
                    "label": "ADD",
                    "description": "Defualt Delivery Option",
                    "required": true,
                    "link": null,
                    "is_checked": true,
                    "attributes": [
                        {
                            "name": "name",
                            "value": "ADD"
                        },
                        {
                            "name": "checked",
                            "value": "checked"
                        }
                    ]
                }
            ]
        }
    ],
    "meta": {
        "total": 1
    }
}

...

mapping
string

logo
string

Supplier’s logo

name
string

Supplier name

id
int

Supplier connection ID

operating_countries
array

List of supplier operating countries
deprecated

operating_countries
array

List of supplier countries with regions where supplier operating

country
string

Country

states
string

List of states

tf
boolean

Transaction Fee

ordering_supported
string

Mark of direct ordering support

contact_phone
string

Supplier contact phone

address
object

Supplier address

address_line_1
string

Address line 1

address_line_2
string

Address line 2

city
string

City

postal_code
string

Zip/postal code

state
string

State/province

country
string

Country

credentials
object

Object with credentials needed for supplier connection request

type
string

Field type

options
string

Available options to select

name
string

Field name

label
string

Field label

description
string

Field description

required
boolean

Field required or not

link
string

Link to supplier registration form

is_checked
boolean

In case field_type = checkbox it will show it’s initial state

attributes
array

Field attributes

...