Create in Order
Creates a subscription with its first shipment in an existing order (dictated by the ‘order’ field in the request). This will be tracked by OrderGroove as an ‘Impulse Upsell’ order.
Authentication
x-api-keystring
API Key authentication via header
Request
This endpoint expects an object.
merchant
Merchant ID
customer
Customer ID
product
Product ID
offer
Offer ID
order
Order ID
session_id
Session ID, obtained from og_session_id cookie
payment
Payment record ID
shipping_address
Shipping address record ID
quantity
Number of items
every
Number of periods
every_period
Type of period
price
Price of subscription. To be used with Price Lock.
extra_data
{“cat_name”: “Charlie”}
components
Multi Item Bundle components: [{“product”:“public_id_abc”, “quantity”: 2}], Legacy Bundle components: [{“product”:“public_id_abc”}]
Response
200
public_id
product_attribute
price
frequency_days
reminder_days
start_date
cancelled
cancel_reason_code
cancel_reason
merchant_order_id
subscription_type
components
created
updated
extra_data
live
Errors
403
Forbidden Error