Skip to main content

Domain

Definition of a domain

type Domain {
id: Int!
description: String!
url: String!
protocol: DomainProtocol!
shop: String
defaultMarket: Market
availableMarkets: [Market!]!
}

Fields

id ● Int!

The id of the domain

description ● String!

A description of the domain

url ● String!

The url of the domain

protocol ● DomainProtocol!

Valid protocol for the domain

shop ● String

The shop this domain belongs to

defaultMarket ● Market

Default market for this domain

availableMarkets ● [Market!]!

Markets available for this domain

Example

{
"defaultMarket": {
"currency": {
"code": "USD",
"rate": 11.355,
"prefix": "$"
},
"allowedCountries": [
{
"phonePrefix": "+46"
}
],
"labels": [
{
"language": "EN",
"value": "String"
}
]
},
"availableMarkets": []
}