API Documentation

This document is a work in progress and your opinion helps us to improve. Please let us know what we can do better. Thanks! support@procurios.com

Webshop Promotions

A promotion is a special deal or discount designed to convince people to order products.

Accept header for requests to Webshop Promotions

application/vnd.procurios.webshop+json; version=1

Read BOGO promotions GET

URL: /l/webshop2_api/webshops/1/bogo

Scope:

Last used: Never

Read multiple "Buy one/get one" promotions

Parameters

Parameter Type Description
page int

The api will provide 100 results per page

ids array of uuid

Ids of bogo promotions to search for

Live testing disabled

Read BOGO promotions

Request

json

Response

jsonStatus: 200
[
    {
        "id": "a9084124-56dc-42bb-9069-291335959bb8",
        "title": "Bogo title",
        "titleInWebshop": "Webshop title",
        "validFrom": "1980-01-01 00:00:00",
        "validTo": "1990-12-31 00:00:00",
        "quantityInShoppingCart": 3,
        "quantityDiscounted": 2,
        "articleNumbers": [],
        "modifiedDateTime": "1985-03-04 00:00:00",
        "discountType": "percentage",
        "discountPercentage": {
            "amount": 1250,
            "precision": 2
        }
    },
    {
        "id": "4b81fbc2-e6a8-4eeb-a0f0-7ca6756e6449",
        "title": "Bogo title",
        "titleInWebshop": "Webshop title",
        "validFrom": "1980-01-01 00:00:00",
        "validTo": "1990-12-31 00:00:00",
        "quantityInShoppingCart": 3,
        "quantityDiscounted": 2,
        "articleNumbers": [],
        "modifiedDateTime": "1985-03-04 00:00:00",
        "discountType": "percentage",
        "discountPercentage": {
            "amount": 1250,
            "precision": 2
        }
    }
]

Read product set promotions GET

URL: /l/webshop2_api/webshops/1/productSet

Scope:

Last used: Never

Read multiple "Buy these together for a fixed price" promotions

Parameters

Parameter Type Description
page int

The api will provide 100 results per page

ids array of uuid

Ids of productset promotions to search for

Live testing disabled

Read product set promotions

Request

json

Response

jsonStatus: 200
[
    {
        "id": "ed126482-ef32-4c77-96bf-c10a667eb293",
        "title": "ProductSet title",
        "titleInWebshop": "Webshop title",
        "validFrom": "1980-01-01 00:00:00",
        "validTo": "1990-12-31 00:00:00",
        "price": {
            "amount": 15,
            "precision": 0
        },
        "articleNumberCounts": [],
        "modifiedDateTime": "1985-03-04 00:00:00"
    },
    {
        "id": "d90fdc95-ecc1-4b25-8020-314c7e339409",
        "title": "ProductSet title",
        "titleInWebshop": "Webshop title",
        "validFrom": "1980-01-01 00:00:00",
        "validTo": "1990-12-31 00:00:00",
        "price": {
            "amount": 15,
            "precision": 0
        },
        "articleNumberCounts": [],
        "modifiedDateTime": "1985-03-04 00:00:00"
    }
]

Read discount promotions GET

URL: /l/webshop2_api/webshops/1/promotion

Scope:

Last used: Never

Read multiple "This product is temporarily discounted" promotions

Parameters

Parameter Type Description
page int

The api will provide 100 results per page

ids array of int

Ids of productset promotions to search for

Live testing disabled

Read discount promotions

Request

json

Response

jsonStatus: 200
[
    {
        "id": 123,
        "title": "Promotion Title",
        "titleInWebshop": "Title in webshop",
        "validFrom": "1980-01-01 00:00:00",
        "validTo": "1985-03-03 00:00:00",
        "articleNumbers": [],
        "modifiedDateTime": "1982-02-03 00:00:00",
        "applicationType": "shipping",
        "discountType": "percentage",
        "discountPercentage": {
            "amount": 1250,
            "precision": 2
        }
    },
    {
        "id": 123,
        "title": "Promotion Title",
        "titleInWebshop": "Title in webshop",
        "validFrom": "1980-01-01 00:00:00",
        "validTo": "1985-03-03 00:00:00",
        "articleNumbers": [],
        "modifiedDateTime": "1982-02-03 00:00:00",
        "applicationType": "shipping",
        "discountType": "percentage",
        "discountPercentage": {
            "amount": 1250,
            "precision": 2
        }
    }
]