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

OfferAction

Type: object

Internal This schema is used internally by Spark, not for OpCo integration.
Marketplace offer with the action on it

No Additional Properties
Examples:

{
    "action": "UPSERT",
    "offer": {
        "offerId": "2013",
        "lastUpdate": "2023-02-27T23:00:00Z",
        "offerInfo": {
            "isActive": true,
            "description": {
                "de-CH": "ein Text in Schweizerdeutsch",
                "fr-FR": "un texte en français"
            },
            "availableFrom": "2022-12-31T23:00:00Z",
            "availableTo": "2023-02-27T23:00:00Z"
        },
        "offerProduct": {
            "identifier": {
                "productId": "f721f482-f74c-491d-b5c1-74d2b114ed0f",
                "productCondition": "NEW",
                "leadtimeToShip": 1
            },
            "orderingDetail": {
                "quantitySteps": 2,
                "packingQuantity": 2,
                "minQuantity": 5,
                "maxQuantity": 20
            },
            "seller": {
                "sellerId": "2009",
                "sellerName": "Ampoules Cool",
                "sellerSKU": "S2016",
                "opcoSellerId": "shop-2009",
                "isPremium": true,
                "isProfessional": true
            }
        },
        "offerPrice": {
            "productPrices": {
                "price": {
                    "amount": 2845,
                    "scale": 2,
                    "currency": "EUR"
                },
                "priceAdditionalInfo": {
                    "de-CH": "ein Text in Schweizerdeutsch",
                    "fr-FR": "un texte en français"
                },
                "discountStartDate": "2023-01-26T23:00:00Z",
                "discountEndDate": "2023-02-26T23:00:00Z",
                "discountPrice": {
                    "amount": 2500,
                    "scale": 2,
                    "currency": "EUR"
                },
                "ecoTaxes": [
                    {
                        "code": "FR-DEEE",
                        "taxAmount": {
                            "amount": 100,
                            "scale": 2,
                            "currency": "EUR"
                        }
                    }
                ]
            },
            "shippingFees": {
                "minFeeAmount": {
                    "amount": 5,
                    "scale": 2,
                    "currency": "EUR"
                },
                "minAdditionalFeeAmount": {
                    "amount": 2,
                    "scale": 2,
                    "currency": "EUR"
                },
                "minShippingType": "STD",
                "minShippingZone": "FRA"
            }
        },
        "offerStock": {
            "quantity": 15,
            "unitOfMeasure": "TN",
            "deliveryPromiseRange": {
                "min": "P5D",
                "max": "P7D"
            }
        }
    }
}
{
    "action": "DELETE",
    "deletedOfferId": "2013"
}

Type: enum (of string)

Action defines if the offer has to be added/updated or deleted

Must be one of:

  • "UPSERT"
  • "DELETE"

Offer

Type: object

Offer to create or update

No Additional Properties

Type: string

Unique offer identifier assigned by Mirakl.

Must be at least 1 characters long


Example:

"2013"

Type: stringFormat: date-time

The last update date for this offer


Example:

"2023-02-27T23:00:00Z"

OfferInfo

Type: object

Offer info

No Additional Properties

Multilingual Object

Type: object

Offer description.


Example:

{
    "de-CH": "ein Text in Schweizerdeutsch",
    "fr-CH": "un texte en français suisse"
}

Each additional property must conform to the following schema

Type: string

Type: boolean Default: true

Indicates if the offer is active

Type: stringFormat: date-time

The date when the offer will be activated.


Example:

"2022-12-31T23:00:00Z"

Type: stringFormat: date-time

The date when the offer will be deactivated.


Example:

"2023-02-27T23:00:00Z"

OfferProduct

Type: object

Details of an Offer

No Additional Properties

Identifier

Type: object

Identifier

No Additional Properties

Type: string

Product identifier within the operator's system

Must be at least 1 characters long


Example:

"f721f482-f74c-491d-b5c1-74d2b114ed0f"

Type: enum (of string)

Offer condition code

Must be one of:

  • "NEW"

Example:

"NEW"

Type: integer Default: 1

The lead time to ship corresponding to the offer


Example:

1

OrderingDetail

Type: object

Ordering detail

No Additional Properties

Type: integer

Packing quantity of the product, if not present then the packing quantity is assumed to be equal to quantity steps


Example:

2

Type: integer Default: 1

Quantity steps of the product.


Example:

2

Type: integer Default: 1

The minimum order quantity customers must select to be able to place an order for that offer.


Example:

2

Type: integer

The maximum order quantity customers can select to be able to place an order for that offer.


Example:

20

Type: enum (of string) Default: "PCE"

The product measurement and the product unit in GS1 unit.

Must be one of:

  • "FOT"
  • "PCE"
  • "MTR"
  • "KGM"
  • "CMT"
  • "LTR"
  • "EA"
  • "MTK"
  • "PK"
  • "MTQ"
  • "TN"
  • "MLT"

Example:

"TN"

Seller

Type: object

The seller which is making the offer.

No Additional Properties

Type: string

Unique identifier for the store providing this offer (assigned by Mirakl).

Must be at least 1 characters long


Example:

"2009"

Type: string

Name of the store providing this offer.

Must be at least 1 characters long


Example:

"Ampoules Cool"

Type: string

Seller ID, as known by the opCo.


Example:

"shop-2009"

Type: string

Shop's sku of the offer.


Example:

"S2016"

Type: boolean Default: false

Indicates if the store is premium or not


Example:

false

Type: boolean Default: false

Indicates if the store is professional or not


Example:

false

OfferPrice

Type: object

Information about the different prices of the offer.

No Additional Properties

ProductPrices

Type: object

Product price data of an offer

No Additional Properties

Price

Type: object

Original price of the product on this offer (without discount)

Type: integer

the actual unscaled amount


Example:

205987

Type: integer

the scale to be applied on the unscaled amount

Value must be greater or equal to 0


Example:

2

Type: string

the currency code following the ISO 4217 standard 3 letter in which the prices are being displayed


Example:

"EUR"

Multilingual Object

Type: object

Additional price information for the offer.


Example:

{
    "de-CH": "ein Text in Schweizerdeutsch",
    "fr-CH": "un texte en français suisse"
}

Each additional property must conform to the following schema

Type: string

Type: stringFormat: date-time

The start date of the discount period


Example:

"2023-01-26T23:00:00Z"

Type: stringFormat: date-time

The end date of the discount period.


Example:

"2023-02-26T23:00:00Z"

Price

Type: object

The discount price of the product if applicable.

Type: integer

the actual unscaled amount


Example:

205987

Type: integer

the scale to be applied on the unscaled amount

Value must be greater or equal to 0


Example:

2

Type: string

the currency code following the ISO 4217 standard 3 letter in which the prices are being displayed


Example:

"EUR"

Type: array

List of eco-contribution amounts and corresponding producer identifiers, if applicable.

No Additional Items

Each item of this array must be:

EcoTax

Type: object

Eco-contribution code and amount

Type: string

Code of the eco tax

Must be at least 1 characters long


Example:

"FR-DEEE"

Price

Type: object

Amount of the eco tax

Type: integer

the actual unscaled amount


Example:

205987

Type: integer

the scale to be applied on the unscaled amount

Value must be greater or equal to 0


Example:

2

Type: string

the currency code following the ISO 4217 standard 3 letter in which the prices are being displayed


Example:

"EUR"

Type: string

Tax code of the product.

Must be at least 1 characters long


Example:

"STANDARD_20%"

ShippingFees

Type: object

Shipping fees for this offer. The shipping fees are required only when the offer is active

No Additional Properties

Price

Type: object

Minimal shipping charges for the offer

Type: integer

the actual unscaled amount


Example:

205987

Type: integer

the scale to be applied on the unscaled amount

Value must be greater or equal to 0


Example:

2

Type: string

the currency code following the ISO 4217 standard 3 letter in which the prices are being displayed


Example:

"EUR"

Price

Type: object

Additional minimal shipping charges for the offer.

Type: integer

the actual unscaled amount


Example:

205987

Type: integer

the scale to be applied on the unscaled amount

Value must be greater or equal to 0


Example:

2

Type: string

the currency code following the ISO 4217 standard 3 letter in which the prices are being displayed


Example:

"EUR"

Type: string

Shipping method with the minimum shipping charges (code referenced by the operator).

Must be at least 1 characters long


Example:

"STD"

Type: string

Shipping zone with the minimum shipping charges (code referenced by the operator).

Must be at least 1 characters long


Example:

"FRA"

OfferStock

Type: object

Offer stock

No Additional Properties

Type: integer

Quantity related to the offer.


Example:

15

Type: enum (of string) Default: "PCE"

The product measurement and the product unit in GS1 unit.

Must be one of:

  • "FOT"
  • "PCE"
  • "MTR"
  • "KGM"
  • "CMT"
  • "LTR"
  • "EA"
  • "MTK"
  • "PK"
  • "MTQ"
  • "TN"
  • "MLT"

Example:

"TN"

Type: object

Minimum and maximum duration in which the product can be delivered to the customer. We use the dur-day and the dur-week of the durations into ISO 8601 ABNF standard https://datatracker.ietf.org/doc/html/rfc3339#appendix-A

Type: stringFormat: duration

The minimal duration that this product will take to be delivered to the customer. We use the dur-day and the dur-week of the durations into ISO 8601 ABNF standard https://datatracker.ietf.org/doc/html/rfc3339#appendix-A


Examples:

"P3D"
"P3W"

Type: stringFormat: duration

The maximal duration that this product will take to be delivered to the customer. We use the dur-day and the dur-week of the durations into ISO 8601 ABNF standard https://datatracker.ietf.org/doc/html/rfc3339#appendix-A


Examples:

"P5D"
"P5W"

Type: string

Offer id to delete in case of offer deletion