Load

View as Markdown
Load a dump of an Offer Profile (obtained via the https://developer.ordergroove.com/reference/offer-profile-dump endpoint) and create a replica of the same setup. The dump can be modified before uploading if any changes are required (like updating the Product ID for a Sample SKU, or changing a discount). The request can be made for the same Merchant, or a different one. By using a different Merchant the Offer Profile setup can be moved across Merchants and environments. The new setup will always be created in an inactive state (the `live` bit on the Offer Profile will be `false`). New objects will be created and no existing premises, incentives, offers, or coupons will be reused. If a product is provided for a Sample SKU or Gift incentive, there must already be a valid product for that Merchant/Product Public ID.

Authentication

x-api-keystring
API Key authentication via header

Query parameters

preserve_offer_public_idsbooleanOptionalDefaults to false
Determines whether or not the offer public IDs should be preserved

Request

This endpoint expects an object.
RAW_BODYstringOptionalformat: "json"
This should be the output from a call to the dump endpoint (https://developer.ordergroove.com/reference/offer-profile-dump)

Response

201
namestring
public_idstring
weightintegerDefaults to 0
livebooleanDefaults to true
merchantstring
initial_couponobject
recurring_couponobject
offerslist of strings