Create From Item

Creates a subscription based on the properties of an item and order.

post/subscriptions/create_from_item/

Request

  • Base URL
    https://restapi.ordergroove.com
  • Auth
    • none
    • or API key in header x-api-key

Request body

itemstring required

Item ID

everyinteger required

Number of periods

every_periodinteger required

Type of period

offerstring

Offer ID

Response

200

customerstring
merchantstring
productstring
paymentstring
shipping_addressstring
offerstring
subscription_typestring
extra_dataobject
public_idstring
product_attributeunknown
quantityinteger
priceunknown
frequency_daysinteger
reminder_daysinteger
everyinteger
every_periodinteger
start_datestring
cancelledunknown
cancel_reasonunknown
cancel_reason_codeunknown
iterationunknown
sequenceunknown
session_idstring
merchant_order_idstring
customer_repunknown
clubunknown
createdstring
updatedstring
liveboolean

Example response

{
  "customer": "00026001",
  "merchant": "ac4f7938383a11e89ecbbc764e1107f2",
  "product": "0070000693",
  "payment": "070001bc02fd11e99542bc764e1043b0",
  "shipping_address": "66c25cd0564011e9abc5bc764e107990",
  "offer": "a748aa648ac811e8af3bbc764e106cf4",
  "subscription_type": "replenishment",
  "components": [
    {
      "product": "product_id_1"
    }
  ],
  "public_id": "607daa2accc811e88516bc764e106cf4",
  "quantity": 21,
  "frequency_days": 180,
  "reminder_days": 10,
  "every": 6,
  "every_period": 3,
  "start_date": "2018-12-27",
  "session_id": "ac4f7938383a11e89ecbbc764e1107f2.896371.1539022086",
  "merchant_order_id": "2906548",
  "created": "2018-10-10 15:09:21",
  "updated": "2019-04-04 11:28:39",
  "live": true
}

Changes

No recorded changes to this operation across all 1 revision of this API.