This is a html view of the json schema please take the json schema as reference DOWNLOAD THE JSON SCHEMA

Address

Type: object

This is object used to describe account addresses details

Type: string

OpCo's organizatinal customer number that uniquely identifies its account.


Example:

"1234567"

Base Address

Type: object

billing address applied to all users in the same account.

Type: string

OpCo internal system's unique identifier for the address


Example:

"237564557868778"

Type: string

According to ISO 19060, this field contains one third of the address. In most cases this usually contains the whole addres though.


Example:

"Belleboslaan 17"

Type: string

According to ISO 19060, this field contains one third of the address. This is an optional field.

Type: string

According to ISO 19060, this field contains one third of the address. This is an optional field.

Type: string

City.


Example:

"Montesson"

Type: string

The ISO 3166-1 alpha-3 of the country


Example:

"FRA"

Type: string

Zip code.


Example:

"78360"

Type: string

department


Example:

"JURA"

Type: string

region


Example:

"Bretagne"


Base Address

Type: object

A common definition of an address

Type: string

OpCo internal system's unique identifier for the address


Example:

"237564557868778"

Type: string

According to ISO 19060, this field contains one third of the address. In most cases this usually contains the whole addres though.


Example:

"Belleboslaan 17"

Type: string

According to ISO 19060, this field contains one third of the address. This is an optional field.

Type: string

According to ISO 19060, this field contains one third of the address. This is an optional field.

Type: string

City.


Example:

"Montesson"

Type: string

The ISO 3166-1 alpha-3 of the country


Example:

"FRA"

Type: string

Zip code.


Example:

"78360"

Type: string

department


Example:

"JURA"

Type: string

region


Example:

"Bretagne"

DeliveryAddressExtension

Type: object

If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.

Type: object

Type: object

The following properties are required:

  • requestType

Type: object

This object is used to describe some technical meta information related to the event

Type: enum (of string)

The application source of this event

Must be one of:

  • "SPARK"
  • "OPCO"

Type: enum (of string)

The version of the json format event

Must be one of:

  • "v1"

Type: enum (of string)

The type of the request

Must be one of:

  • "CREATION_REQUEST"
  • "UPDATE_REQUEST"
  • "DELETION_REQUEST"

Type: string

Extra description about the address


Example:

"Building site #1"

Type: string

The address identifier from Spark system


Example:

"50169486938114"

Type: string

Company name, it might differ from the account name


Example:

"Easy Electric"

Type: string

Address contact's Phone number


Example:

"+330287345678"

Type: string

Contact's firstname.


Example:

"John"

Type: string

Contact's lastname.


Example:

"Doe"

Type: boolean Default: true

Determines whether addessLine1, addessLine2, zipCode, city and country fields are editable or not


Example:

false

Type: string

Optional indications or instructions about the delivery


Example:

"Please leave the parcel next the front door."

Type: string

Optional reference about the customer delivery


Example:

"Reference #123"

Type: boolean Default: false

a boolean to say if this address is the default one or not


Example:

false

Type: boolean Default: true

a boolean to say if the address is active and could be used as a delivery address for an order (e.g. if the address is not active, it means that the address is in validation on opcos side)


Example:

false

Type: boolean Default: false

a boolean to say if the address is to be deleted. Only used in events coming from OpCo. When deleted is set to true, address will be deleted from Spark system


Example:

false

Example:

{
    "eventHeader": {
        "source": "SPARK",
        "version": "v1",
        "requestType": "CREATION_REQUEST"
    },
    "isActive": false,
    "isDeleted": false,
    "addressName": "Building site #1",
    "companyName": "Easy Electric",
    "opCoAddressId": "12345654",
    "addressLine1": "Belleboslaan 17",
    "city": "Ajaccio",
    "country": "FRA",
    "postalCode": "20090",
    "department": "Corse",
    "region": "Corse"
}