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

OnBehalfActivity

Type: object

Internal This schema is used internally by Spark, not for OpCo integration.
Object representing a record of an action that an associate took on behalf of a user.


Example:

{
    "opcoId": "BEL-CEBEO",
    "associateEmail": "john.doe@sonepar.com",
    "accountId": "account-id",
    "action": "PLACE_ORDER",
    "userId": "user-id",
    "occurredAt": "2021-08-14T12:17:47.720Z"
}

Type: string

the opco identifier


Example:

"BEL-CEBEO"

Type: string

the email of the associate user, it represents his unique identifier.


Example:

"jhon.doe@sonepar.com"

Type: string

A unique identifier of the account for which the associate works on behalf of its users.


Example:

"account-id"

Type: string

unique identifier of the user for which the associate work on behalf of.


Example:

"user-id"

Type: enum (of string)

The action that an associate did on behalf of a user.

Must be one of:

  • "PLACE_ORDER"
  • "CREATE_CART"
  • "UPDATE_CART"
  • "DELETE_CART"
  • "CREATE_USER"
  • "UPDATE_USER"

Example:

"PLACE_ORDER"

Type: stringFormat: date-time

The date when the action took place


Example:

"2021-10-12T08:30:22.804Z"