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

User Request


This object describe a user request

Type: object

The following properties are required:

  • requestType
  • eventHeader
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


Must not be:

Type: enum (of string)

Must be one of:

  • "WARRANTY"
  • "CLAIM"
Type: object

The following properties are required:

  • contact
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: const
Specific value: "WARRANTY"
Type: object

The following properties are required:

  • warranty
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: const
Specific value: "CLAIM"
Type: object

The following properties are required:

  • claim
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: const
Specific value: "WARRANTY"
Type: object

Type: object

Type: array of object
No Additional Items

Each item of this array must be:

Type: object

Type: object

Type: enum (of string)

Must be one of:

  • "DEFECTIVE_ITEM"
  • "REPAIR_REQUEST"
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: const
Specific value: "CLAIM"
Type: object

Type: object

Type: array of object
No Additional Items

Each item of this array must be:

Type: object

Type: object

Type: enum (of string)

Must be one of:

  • "WRONG_PRODUCT"
  • "DAMAGED_ITEM"
  • "INCORRECT_DESCRIPTION"
  • "RECEIVED_FEWER_THAN_ORDERED"

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"
  • "SPARK_AX"
  • "OPCO"

Type: enum (of string)

The version of the json format event

Must be one of:

  • "v1"

Type: enum (of string)

Type of the request.

Must be one of:

  • "NEW_CUSTOMER_ONBOARDING"
  • "EXISTING_CUSTOMER_ONBOARDING"
  • "CONTACT"
  • "RESEND_USER_ACTIVATION_EMAIL"
  • "MARKETING_FORM"
  • "EVENT_REGISTRATION"
  • "WARRANTY"
  • "CLAIM"

Example:

"NEW_CUSTOMER_ONBOARDING"

Type: object

In Pilot This object is used to describe a warranty request.

Type: object

This object is used to describe the header of the warranty header.

No Additional Properties

Type: string

The unique identifier of the requested as generated by the master system.

Must be at least 1 characters long


Example:

"123456789"

Type: string

The claim or warranty unique identifier as generated by the OpCo system

Must be at least 1 characters long


Example:

"123456789"

Type: stringFormat: date

Is meant to be either the date requested by the customer for pickup or drop off to the branch for a return or requested by the OpCo for a reverse logistic.


Example:

"2023-10-01"

Type: object

Contains the logistic details.

No Additional Properties

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: const
Specific value: "DROP_OFF"
Type: object

The following properties are required:

  • dropOffFacilityId
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: const
Specific value: "PICK_UP"
Type: object

The following properties are required:

  • pickupAddress

Type: enum (of string)

This is the selected logistic method for the request.
- DROP_OFF when the customer is dropping off the product at a facility.
- PICK_UP when the customer is requesting a pickup from a specific address.

Must be one of:

  • "DROP_OFF"
  • "PICK_UP"

Type: string

The facility id used for drop off.

Must be at least 1 characters long


Example:

"1234567"

Address

Type: object

The address used for pickup.

No Additional Properties

Type: string

OpCo internal system's unique identifier for the address.

Must be at least 1 characters long


Example:

"237564557868778"

Type: string

The first line of the address. Should contain Street name, no, street type. Usually the whole address can fit on one line.

Must be at least 1 characters long


Example:

"235 Donaghy Ave"

Type: string

The second line of the address. Should complete the address with other details (e.g. floor number)

Must be at least 1 characters long


Example:

"1st floor"

Type: string

The third line of the address. Should complete the address with other information. e.g. Apartment no

Must be at least 1 characters long


Example:

"Apt 1"

Type: string

The postal code

Must be at least 1 characters long


Example:

"V7P 1E2"

Type: string

The city in which the street address is, and which is in the adminDevison(region)

Must be at least 1 characters long


Example:

"North Vancouver"

Type: string

The region in which the locality is, and which is in the country.

Must be at least 1 characters long


Example:

"BC"

Type: string

The department in which the locality is, and which is in the country.

Must be at least 1 characters long


Example:

"BC"

Type: string

The ISO 3166-1 alpha-3 of the country

Must be at least 3 characters long

Must be at most 3 characters long


Example:

"CAN"

Type: string

The unique identifier of the return as generated by the master system.

Must be at least 1 characters long


Example:

"123456789"

ContactInfo

Type: object

Contact information of the facility.

No Additional Properties

Type: string

Phone number of the contact.

Must be at least 1 characters long


Example:

"+12345678910"

Type: stringFormat: email

The email of the contact. This is the identifier of the user on spark


Example:

"user@domain.com"

Type: string

The fax number of the contact.

Must be at least 1 characters long


Example:

"+12345678910"

Type: array

The list of contributors to the logistic issue.

Must contain a minimum of 1 items

No Additional Items

Each item of this array must be:

Type: object
No Additional Properties
Example:

[
    {
        "fullName": "John Smith",
        "email": "john.smith@mycompany.com"
    },
    {
        "fullName": "John Validator",
        "email": "john.validator@mycompany.com"
    }
]

Type: string

The full name of a contributor.

Must be at least 1 characters long


Example:

"John Smith"

Type: stringFormat: email

The email of a contributor. This is the identifier of the user on spark


Example:

"john.smith@mycompany.com"

Type: string

The phone number of a contributor.

Must be at least 1 characters long


Example:

"+1234567890"

Type: boolean Default: false

Indicates if the contributor is the creator of the return request.


Example:

true

Type: array

Array containing the details per each line.

Must contain a minimum of 1 items

No Additional Items

Each item of this array must be:

Type: object

The line of the logistic issue.

No Additional Properties

Type: string

The unique identifier of the sales order, as defined by the sales-order universal feed schema.

Must be at least 1 characters long


Example:

"1234567"

Type: string

The unique identifier of the sales order line, as defined by the sales-order universal feed schema.

Must be at least 1 characters long


Example:

"1234567"

Type: string

The unique identifier of the billing.

Must be at least 1 characters long


Example:

"1234567"

Type: string

The unique identifier of the billing line.

Must be at least 1 characters long


Example:

"1234567"

Type: object

The product subject to this request.

No Additional Properties

Type: string

The unique identifier of the product.

Must be at least 1 characters long


Example:

"1234567"

Type: string

The name of the product.

Must be at least 1 characters long


Example:

"Product Name"

Type: string

The name of the brand.

Must be at least 1 characters long


Example:

"Brand Name"

Type: string

From the list of reasons configured for the OpCo.

Must be at least 1 characters long


Example:

"DEFECTIVE_ITEM"

Type: array

The list of images of the product.

No Additional Items

Each item of this array must be:

Type: object

The image of the product.

No Additional Properties

Type: string

The name of the image.

Must be at least 1 characters long


Example:

"Image Name"

Type: stringFormat: uri

The URL of the image.


Example:

"https://example.com/image.jpg"

Type: string

A comment related to the product.

Must be at least 1 characters long


Example:

"Product Comment"

Type: array of object

Any additional information related to the product

No Additional Items

Each item of this array must be:

Type: object

A free key value pair field to add any details about the product

Multilingual Object

Type: object

The name or identifier for the additional information


Example:

{
    "en-GB": "Diameter",
    "fr-FR": "Diamètre"
}

Each additional property must conform to the following schema

Type: string

Multilingual Object

Type: object

The value for the named additional information


Example:

{
    "en-GB": "1.2 m",
    "fr-FR": "1.2 mètre"
}

Each additional property must conform to the following schema

Type: string

Type: enum (of string)

The status of the logistic issue line.
- REQUESTED when the return is requested by the customer.
- RETURNED when the line item is returned in full by the customer.
- DELETED when the line item is to be deleted

Must be one of:

  • "REQUESTED"
  • "RETURNED"
  • "DELETED"
  • "READY_FOR_COLLECTION"
  • "COMPLETE"
  • "PARTIALLY_RETURN"

Example:

"COMPLETE"

Type: integer

The requested quantity.

Value must be greater or equal to 0


Example:

10

Type: string

The unique identifier of the shipment associated with the return line item.

Must be at least 1 characters long


Example:

"1234567"

Type: object

In Pilot This object is used to describe a warranty request.

Type: object

This object is used to describe the header of the warranty header.

No Additional Properties

Type: string

The unique identifier of the requested as generated by the master system.

Must be at least 1 characters long


Example:

"123456789"

Type: string

The claim or warranty unique identifier as generated by the OpCo system

Must be at least 1 characters long


Example:

"123456789"

Type: stringFormat: date

Is meant to be either the date requested by the customer for pickup or drop off to the branch for a return or requested by the OpCo for a reverse logistic.


Example:

"2023-10-01"

Type: object

Contains the logistic details.

No Additional Properties

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: const
Specific value: "DROP_OFF"
Type: object

The following properties are required:

  • dropOffFacilityId
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: const
Specific value: "PICK_UP"
Type: object

The following properties are required:

  • pickupAddress

Type: enum (of string)

This is the selected logistic method for the request.
- DROP_OFF when the customer is dropping off the product at a facility.
- PICK_UP when the customer is requesting a pickup from a specific address.

Must be one of:

  • "DROP_OFF"
  • "PICK_UP"

Type: string

The facility id used for drop off.

Must be at least 1 characters long


Example:

"1234567"

Address

Type: object

The address used for pickup.

No Additional Properties

Type: string

OpCo internal system's unique identifier for the address.

Must be at least 1 characters long


Example:

"237564557868778"

Type: string

The first line of the address. Should contain Street name, no, street type. Usually the whole address can fit on one line.

Must be at least 1 characters long


Example:

"235 Donaghy Ave"

Type: string

The second line of the address. Should complete the address with other details (e.g. floor number)

Must be at least 1 characters long


Example:

"1st floor"

Type: string

The third line of the address. Should complete the address with other information. e.g. Apartment no

Must be at least 1 characters long


Example:

"Apt 1"

Type: string

The postal code

Must be at least 1 characters long


Example:

"V7P 1E2"

Type: string

The city in which the street address is, and which is in the adminDevison(region)

Must be at least 1 characters long


Example:

"North Vancouver"

Type: string

The region in which the locality is, and which is in the country.

Must be at least 1 characters long


Example:

"BC"

Type: string

The department in which the locality is, and which is in the country.

Must be at least 1 characters long


Example:

"BC"

Type: string

The ISO 3166-1 alpha-3 of the country

Must be at least 3 characters long

Must be at most 3 characters long


Example:

"CAN"

Type: string

The unique identifier of the return as generated by the master system.

Must be at least 1 characters long


Example:

"123456789"

ContactInfo

Type: object

Contact information of the facility.

No Additional Properties

Type: string

Phone number of the contact.

Must be at least 1 characters long


Example:

"+12345678910"

Type: stringFormat: email

The email of the contact. This is the identifier of the user on spark


Example:

"user@domain.com"

Type: string

The fax number of the contact.

Must be at least 1 characters long


Example:

"+12345678910"

Type: array

The list of contributors to the logistic issue.

Must contain a minimum of 1 items

No Additional Items

Each item of this array must be:

Type: object
No Additional Properties
Example:

[
    {
        "fullName": "John Smith",
        "email": "john.smith@mycompany.com"
    },
    {
        "fullName": "John Validator",
        "email": "john.validator@mycompany.com"
    }
]

Type: string

The full name of a contributor.

Must be at least 1 characters long


Example:

"John Smith"

Type: stringFormat: email

The email of a contributor. This is the identifier of the user on spark


Example:

"john.smith@mycompany.com"

Type: string

The phone number of a contributor.

Must be at least 1 characters long


Example:

"+1234567890"

Type: boolean Default: false

Indicates if the contributor is the creator of the return request.


Example:

true

Type: array

Array containing the details per each line.

Must contain a minimum of 1 items

No Additional Items

Each item of this array must be:

Type: object

The line of the logistic issue.

No Additional Properties

Type: string

The unique identifier of the sales order, as defined by the sales-order universal feed schema.

Must be at least 1 characters long


Example:

"1234567"

Type: string

The unique identifier of the sales order line, as defined by the sales-order universal feed schema.

Must be at least 1 characters long


Example:

"1234567"

Type: string

The unique identifier of the billing.

Must be at least 1 characters long


Example:

"1234567"

Type: string

The unique identifier of the billing line.

Must be at least 1 characters long


Example:

"1234567"

Type: object

The product subject to this request.

No Additional Properties

Type: string

The unique identifier of the product.

Must be at least 1 characters long


Example:

"1234567"

Type: string

The name of the product.

Must be at least 1 characters long


Example:

"Product Name"

Type: string

The name of the brand.

Must be at least 1 characters long


Example:

"Brand Name"

Type: string

From the list of reasons configured for the OpCo.

Must be at least 1 characters long


Example:

"DEFECTIVE_ITEM"

Type: array

The list of images of the product.

No Additional Items

Each item of this array must be:

Type: object

The image of the product.

No Additional Properties

Type: string

The name of the image.

Must be at least 1 characters long


Example:

"Image Name"

Type: stringFormat: uri

The URL of the image.


Example:

"https://example.com/image.jpg"

Type: string

A comment related to the product.

Must be at least 1 characters long


Example:

"Product Comment"

Type: array of object

Any additional information related to the product

No Additional Items

Each item of this array must be:

Type: object

A free key value pair field to add any details about the product

Multilingual Object

Type: object

The name or identifier for the additional information


Example:

{
    "en-GB": "Diameter",
    "fr-FR": "Diamètre"
}

Each additional property must conform to the following schema

Type: string

Multilingual Object

Type: object

The value for the named additional information


Example:

{
    "en-GB": "1.2 m",
    "fr-FR": "1.2 mètre"
}

Each additional property must conform to the following schema

Type: string

Type: enum (of string)

The status of the logistic issue line.
- REQUESTED when the return is requested by the customer.
- RETURNED when the line item is returned in full by the customer.
- DELETED when the line item is to be deleted

Must be one of:

  • "REQUESTED"
  • "RETURNED"
  • "DELETED"
  • "READY_FOR_COLLECTION"
  • "COMPLETE"
  • "PARTIALLY_RETURN"

Example:

"COMPLETE"

Type: integer

The requested quantity.

Value must be greater or equal to 0


Example:

10

Type: string

The unique identifier of the shipment associated with the return line item.

Must be at least 1 characters long


Example:

"1234567"

Type: object

Type: string

User's email.


Example:

"geert@electracontractors.be"

Type: string

User's title.


Example:

"Dhr."

Type: string

User's firstname.


Example:

"Geert"

Type: string

User's lastname.


Example:

"Corijn"

Type: string

In Pilot User's middle name.


Example:

"Van"

Type: object

Type: string

OpCo's organizatinal customer number that uniquely identifies its account. In the case of OpCo organised with a regional model or commercial organisation this should be suffix by '{orgId}'. if the accountId is 13563 and the orgId is OVIA so this field should contains 13563OVIA

Must be at least 1 characters long


Examples:

"1234567"
"1234567_OVIA"

Type: string

VAT number or Siret number.

Must be at least 1 characters long


Example:

"GM4837192941"

Type: string

Name of the organizational customer.

Must be at least 1 characters long


Example:

"Independent Electric"

Type: string

Optional field, needed by OpCo organised with a regional model or commercial organisation. It can be used to filter or route based on the orgId.

Must be at least 1 characters long


Examples:

"org123"
"SNE"

Type: array

Must contains the information about the formId setup in CMS if the requestType is equals to MARKETINGFORM. SPARK will use the predefined key FORMID, example: FORM_ID = MARKETING-EVENT-1-REGISTRATION

No Additional Items

Each item of this array must be:

AdditionalInformation

Type: object

Object representing an additional information of the request.

No Additional Properties

Type: string

Name of the additional information

Must be at least 1 characters long


Examples:

"message"
"companyName"

Type: string

Value of the additional information

Must be at least 1 characters long


Example:

"Super Elec"

SalesRepresentative

Type: object

The sales representative information.

No Additional Properties

Type: string

firstname of the sale representative

Must be at least 1 characters long


Example:

"John"

Type: string

lastname of the sale representative

Must be at least 1 characters long


Example:

"Doe"

Type: string

phone number of the sale representative

Must be at least 1 characters long


Example:

"0683906389"

Type: string

email of the sale representative

Must be at least 1 characters long


Example:

"john.doe@standelec.com"