Ordergroove
App · 26 actions
Manage Ordergroove subscriptions and upcoming orders: change frequency, dates, quantity and products, skip, send now or cancel.
Actions
| Action | What it does |
|---|---|
| Add a product to an order | Add a one-time product to the customer's order on a date, or make a new order for it if none matches. |
| Cancel a subscription | Cancel a subscription and its upcoming shipments. |
| Cancel an order | Cancel an upcoming order. |
| Change a subscription's frequency | Change how often a subscription places an order. |
| Change a subscription's product | Swap the product a live subscription sends. |
| Change a subscription's quantity | Change how many of the product each order of a subscription sends. |
| Change an item's quantity | Change how many of a product an order item sends. |
| Change an order's date | Move one upcoming order to another day. |
| Change the next order date | Move a subscription's next upcoming order to another date. |
| Create a subscription from an order item | Turn an item on an order into a subscription that repeats at the frequency you choose. |
| Get a customer | Get one customer by their ID in your store. |
| Get a product | Get one product with its price, default frequency and whether it can be subscribed to. |
| Get a subscription | Get one subscription with its product, quantity, frequency and status. |
| Get an order | Get one order with its status, place date and totals. |
| List addresses | List customers' shipping addresses, for one customer or the whole store. |
| List customers | List the store's subscribers. |
| List order items | List the items on orders: by order, by subscription or by product. |
| List orders | List orders, upcoming and past, for one customer or the whole store. |
| List payment methods | List customers' saved payment methods, for one customer or the whole store. |
| List products | List the store's products that can be subscribed to. |
| List subscriptions | List subscriptions, for one customer or the whole store. |
| Reactivate a subscription | Turn a cancelled subscription back on, with its frequency and start date. |
| Remove an item from an order | Remove an item from its order. |
| Send an order now | Place an upcoming order within the next 24 hours instead of on its date. |
| Skip a subscription in an order | Take one subscription's items out of an upcoming order and make its next order instead. |
| Update a subscription | Set a subscription's price, offer or extra data. |
Add a product to an order
Add a one-time product to the customer's order on a date, or make a new order for it if none matches.
Inputs
- Customer
customer_idtextRequired - The customer to add the product for.
- Shipping address
shipping_address_idtextRequired - One of the customer's addresses.
- Payment method
payment_idtextRequired - One of the customer's payment methods.
- Offer ID
offer_idtextRequired - The offer the item is added under, as on the customer's subscriptions.
- Product
product_idtextRequired - The product to add.
- Order date
place_datedateRequired - The date of the order to add it to.
- Quantity
quantitynumberRequired - How many to add.At least 1.
Outputs
dataobject- The response from Ordergroove.
Example output
{
"data": {
"extra_cost": "example",
"first_placed": "example",
"frozen": true,
"offer": "example",
"one_time": true,
"order": "example",
"order_updated": "example",
"price": "example",
"product": "example",
"public_id": "example",
"quantity": 1,
"subscription": "example",
"total_price": "example"
}
}Cancel a subscription
Cancel a subscription and its upcoming shipments. A prepaid subscription with orders left can't be cancelled.
Inputs
- Subscription
subscription_idtextRequired - The subscription to change.
- Cancel reason code
cancel_reason_codenumber - Your store's cancel reason code, such as 4.At least 0.
- Cancel reason details
cancel_reason_detailstext - More about why, such as Overstocked.
Outputs
dataobject- The response from Ordergroove.
Example output
{
"data": {
"cancel_reason": "example",
"cancel_reason_code": 1,
"cancelled": "example",
"created": "example",
"currency_code": "example",
"customer": "example",
"every": 1,
"every_period": 1,
"external_id": "example",
"extra_data": {},
"frequency_days": 1,
"live": true,
"merchant": "example",
"merchant_order_id": "example",
"offer": "example",
"payment": "example",
"price": "example",
"product": "example",
"public_id": "example",
"quantity": 1,
"reminder_days": 1,
"shipping_address": "example",
"start_date": "example",
"subscription_type": "example",
"updated": "example"
}
}Cancel an order
Cancel an upcoming order. Its subscriptions go on: the next order is made at their frequency.
Inputs
- Order
order_idtextRequired - The order to change.
Outputs
dataobject- The response from Ordergroove.
Example output
{
"data": {
"cancelled": "example",
"created": "example",
"currency_code": "example",
"customer": "example",
"discount_total": "example",
"locked": true,
"merchant": "example",
"order_merchant_id": "example",
"payment": "example",
"place": "example",
"public_id": "example",
"rejected_message": "example",
"shipping_address": "example",
"shipping_total": "example",
"status": 1,
"sub_total": "example",
"tax_total": "example",
"total": "example",
"tries": 1,
"type": 1,
"updated": "example"
}
}Change a subscription's frequency
Change how often a subscription places an order.
Inputs
- Subscription
subscription_idtextRequired - The subscription to change.
- Every
everynumberRequired - How many periods between orders: 4 with Weeks sends every 4 weeks.At least 1.
- Period
every_periodnumberRequired - The period between orders.One of:
1(Days),2(Weeks),3(Months).
Outputs
dataobject- The response from Ordergroove.
Example output
{
"data": {
"cancel_reason": "example",
"cancel_reason_code": 1,
"cancelled": "example",
"created": "example",
"currency_code": "example",
"customer": "example",
"every": 1,
"every_period": 1,
"external_id": "example",
"extra_data": {},
"frequency_days": 1,
"live": true,
"merchant": "example",
"merchant_order_id": "example",
"offer": "example",
"payment": "example",
"price": "example",
"product": "example",
"public_id": "example",
"quantity": 1,
"reminder_days": 1,
"shipping_address": "example",
"start_date": "example",
"subscription_type": "example",
"updated": "example"
}
}Change a subscription's product
Swap the product a live subscription sends. Past orders keep the old product; upcoming ones get the new one.
Inputs
- Subscription
subscription_idtextRequired - The subscription to change.
- New product
product_idtextRequired - The product to send instead.
Outputs
dataobject- The response from Ordergroove.
Example output
{
"data": {
"cancel_reason": "example",
"cancel_reason_code": 1,
"cancelled": "example",
"created": "example",
"currency_code": "example",
"customer": "example",
"every": 1,
"every_period": 1,
"external_id": "example",
"extra_data": {},
"frequency_days": 1,
"live": true,
"merchant": "example",
"merchant_order_id": "example",
"offer": "example",
"payment": "example",
"price": "example",
"product": "example",
"public_id": "example",
"quantity": 1,
"reminder_days": 1,
"shipping_address": "example",
"start_date": "example",
"subscription_type": "example",
"updated": "example"
}
}Change a subscription's quantity
Change how many of the product each order of a subscription sends. Prepaid subscriptions can't change quantity.
Inputs
- Subscription
subscription_idtextRequired - The subscription to change.
- Quantity
quantitynumberRequired - The new quantity.At least 1.
Outputs
dataobject- The response from Ordergroove.
Example output
{
"data": {
"cancel_reason": "example",
"cancel_reason_code": 1,
"cancelled": "example",
"created": "example",
"currency_code": "example",
"customer": "example",
"every": 1,
"every_period": 1,
"external_id": "example",
"extra_data": {},
"frequency_days": 1,
"live": true,
"merchant": "example",
"merchant_order_id": "example",
"offer": "example",
"payment": "example",
"price": "example",
"product": "example",
"public_id": "example",
"quantity": 1,
"reminder_days": 1,
"shipping_address": "example",
"start_date": "example",
"subscription_type": "example",
"updated": "example"
}
}Change an item's quantity
Change how many of a product an order item sends.
Inputs
- Item ID
item_idtextRequired - The order item to change, from List order items.
- Quantity
quantitynumberRequired - The new quantity.At least 1.
Outputs
dataobject- The response from Ordergroove.
Example output
{
"data": {
"extra_cost": "example",
"first_placed": "example",
"frozen": true,
"offer": "example",
"one_time": true,
"order": "example",
"order_updated": "example",
"price": "example",
"product": "example",
"public_id": "example",
"quantity": 1,
"subscription": "example",
"total_price": "example"
}
}Change an order's date
Move one upcoming order to another day. It places at your store's usual placement time that day.
Inputs
- Order
order_idtextRequired - The order to change.
- New date
placedateRequired - The new date.
Outputs
dataobject- The response from Ordergroove.
Example output
{
"data": {
"cancelled": "example",
"created": "example",
"currency_code": "example",
"customer": "example",
"discount_total": "example",
"locked": true,
"merchant": "example",
"order_merchant_id": "example",
"payment": "example",
"place": "example",
"public_id": "example",
"rejected_message": "example",
"shipping_address": "example",
"shipping_total": "example",
"status": 1,
"sub_total": "example",
"tax_total": "example",
"total": "example",
"tries": 1,
"type": 1,
"updated": "example"
}
}Change the next order date
Move a subscription's next upcoming order to another date.
Inputs
- Subscription
subscription_idtextRequired - The subscription to change.
- Next order date
order_datedateRequired - The new date of the next order. It must be in the future.
Outputs
dataobject- The response from Ordergroove.
Example output
{
"data": {
"cancel_reason": "example",
"cancel_reason_code": 1,
"cancelled": "example",
"created": "example",
"currency_code": "example",
"customer": "example",
"every": 1,
"every_period": 1,
"external_id": "example",
"extra_data": {},
"frequency_days": 1,
"live": true,
"merchant": "example",
"merchant_order_id": "example",
"offer": "example",
"payment": "example",
"price": "example",
"product": "example",
"public_id": "example",
"quantity": 1,
"reminder_days": 1,
"shipping_address": "example",
"start_date": "example",
"subscription_type": "example",
"updated": "example"
}
}Create a subscription from an order item
Turn an item on an order into a subscription that repeats at the frequency you choose.
Inputs
- Item ID
item_idtextRequired - The order item to subscribe to, from List order items.
- Every
everynumberRequired - How many periods between orders: 4 with Weeks sends every 4 weeks.At least 1.
- Period
every_periodnumberRequired - The period between orders.One of:
1(Days),2(Weeks),3(Months). - Offer ID
offer_idtext - The offer to subscribe under. Leave empty for the item's own offer.
Outputs
dataobject- The response from Ordergroove.
Example output
{
"data": {
"cancel_reason": "example",
"cancel_reason_code": 1,
"cancelled": "example",
"created": "example",
"currency_code": "example",
"customer": "example",
"every": 1,
"every_period": 1,
"external_id": "example",
"extra_data": {},
"frequency_days": 1,
"live": true,
"merchant": "example",
"merchant_order_id": "example",
"offer": "example",
"payment": "example",
"price": "example",
"product": "example",
"public_id": "example",
"quantity": 1,
"reminder_days": 1,
"shipping_address": "example",
"start_date": "example",
"subscription_type": "example",
"updated": "example"
}
}Get a customer
Get one customer by their ID in your store.
Inputs
- Customer
customer_idtextRequired - The customer to read: their ID in your store.
Outputs
dataobject- The response from Ordergroove.
Example output
{
"data": {
"created": "example",
"email": "example",
"first_name": "example",
"last_login": "example",
"last_name": "example",
"last_updated": "example",
"live": true,
"merchant": "example",
"merchant_user_id": "example",
"phone_number": "example",
"price_code": "example"
}
}Get a product
Get one product with its price, default frequency and whether it can be subscribed to.
Inputs
- Product
product_idtextRequired - The product to read: its product ID in your store.
Outputs
dataobject- The response from Ordergroove.
Example output
{
"data": {
"autoship_by_default": true,
"autoship_enabled": true,
"created": "example",
"detail_url": "example",
"discontinued": true,
"every": 1,
"every_period": 1,
"external_product_id": "example",
"image_url": "example",
"last_update": "example",
"live": true,
"name": "example",
"offer_profile": "example",
"prepaid_eligible": true,
"price": "example",
"product_type": "example",
"sku": "example"
}
}Get a subscription
Get one subscription with its product, quantity, frequency and status.
Inputs
- Subscription
subscription_idtextRequired - The subscription to read.
Outputs
dataobject- The response from Ordergroove.
Example output
{
"data": {
"cancel_reason": "example",
"cancel_reason_code": 1,
"cancelled": "example",
"created": "example",
"currency_code": "example",
"customer": "example",
"every": 1,
"every_period": 1,
"external_id": "example",
"extra_data": {},
"frequency_days": 1,
"live": true,
"merchant": "example",
"merchant_order_id": "example",
"offer": "example",
"payment": "example",
"price": "example",
"product": "example",
"public_id": "example",
"quantity": 1,
"reminder_days": 1,
"shipping_address": "example",
"start_date": "example",
"subscription_type": "example",
"updated": "example"
}
}Get an order
Get one order with its status, place date and totals.
Inputs
- Order
order_idtextRequired - The order to read.
Outputs
dataobject- The response from Ordergroove.
Example output
{
"data": {
"cancelled": "example",
"created": "example",
"currency_code": "example",
"customer": "example",
"discount_total": "example",
"locked": true,
"merchant": "example",
"order_merchant_id": "example",
"payment": "example",
"place": "example",
"public_id": "example",
"rejected_message": "example",
"shipping_address": "example",
"shipping_total": "example",
"status": 1,
"sub_total": "example",
"tax_total": "example",
"total": "example",
"tries": 1,
"type": 1,
"updated": "example"
}
}List addresses
List customers' shipping addresses, for one customer or the whole store.
Inputs
- Customer
customer_idtext - Only this customer's records.
- Active
livetrue/false - Only active addresses, or only inactive ones.
- Page size
page_sizenumber - How many addresses to return, up to 100.From 1 to 100. Default:
25. - Cursor
cursortext - The next_cursor of the previous page, to read the next one.
Outputs
dataobject- The response from Ordergroove.
Example output
{
"data": {
"next_cursor": "example",
"results": [
{
"address": "example",
"address2": "example",
"city": "example",
"company_name": "example",
"country_code": "example",
"created": "example",
"customer": "example",
"first_name": "example",
"label": "example",
"last_name": "example",
"live": true,
"phone": "example",
"public_id": "example",
"state_province_code": "example",
"updated": "example",
"zip_postal_code": "example"
}
]
}
}List customers
List the store's subscribers. Find one by email address.
Inputs
- Email
emailtext - Only the customer with this email address.
- Active
livetrue/false - Only active customers, or only inactive ones.
- Created since
created_sincedate and time - Only customers who signed up at or after this time.
- Updated since
updated_sincedate and time - Only customers changed at or after this time.
- Page size
page_sizenumber - How many customers to return, up to 100.From 1 to 100. Default:
25. - Cursor
cursortext - The next_cursor of the previous page, to read the next one.
Outputs
dataobject- The response from Ordergroove.
Example output
{
"data": {
"next_cursor": "example",
"results": [
{
"created": "example",
"email": "example",
"first_name": "example",
"last_login": "example",
"last_name": "example",
"last_updated": "example",
"live": true,
"merchant": "example",
"merchant_user_id": "example",
"phone_number": "example",
"price_code": "example"
}
]
}
}List order items
List the items on orders: by order, by subscription or by product.
Inputs
- Order
order_idtext - Only the items on this order.
- Subscription
subscription_idtext - Only this subscription's items.
- Product
product_idtext - Only items of this product.
- Order status
statusnumber - Only items on orders with this status.One of:
1(Unsent (upcoming)),3(Rejected),4(Cancelled),5(Placed successfully),6(Send now),9(Waiting for a batch response),10(Waiting for verification),11(Waiting to be placed),12(Failed before placement),13(Connection error during placement), and 6 more. - Page size
page_sizenumber - How many items to return, up to 100.From 1 to 100. Default:
25. - Cursor
cursortext - The next_cursor of the previous page, to read the next one.
Outputs
dataobject- The response from Ordergroove.
Example output
{
"data": {
"next_cursor": "example",
"results": [
{
"extra_cost": "example",
"first_placed": "example",
"frozen": true,
"offer": "example",
"one_time": true,
"order": "example",
"order_updated": "example",
"price": "example",
"product": "example",
"public_id": "example",
"quantity": 1,
"subscription": "example",
"total_price": "example"
}
]
}
}List orders
List orders, upcoming and past, for one customer or the whole store. Filter by subscription, status or dates.
Inputs
- Customer
customer_idtext - Only this customer's records.
- Subscription
subscription_idtext - Only orders with this subscription's items.
- Status
statusnumber - Only orders with this status.One of:
1(Unsent (upcoming)),3(Rejected),4(Cancelled),5(Placed successfully),6(Send now),9(Waiting for a batch response),10(Waiting for verification),11(Waiting to be placed),12(Failed before placement),13(Connection error during placement), and 6 more. - Place date from
place_fromdate - Only orders placed, or to be placed, on or after this date.
- Place date to
place_todate - Only orders placed, or to be placed, on or before this date.
- Created since
created_sincedate and time - Only orders created at or after this time.
- Updated since
updated_sincedate and time - Only orders changed at or after this time.
- Page size
page_sizenumber - How many orders to return, up to 100.From 1 to 100. Default:
25. - Cursor
cursortext - The next_cursor of the previous page, to read the next one.
Outputs
dataobject- The response from Ordergroove.
Example output
{
"data": {
"next_cursor": "example",
"results": [
{
"cancelled": "example",
"created": "example",
"currency_code": "example",
"customer": "example",
"discount_total": "example",
"locked": true,
"merchant": "example",
"order_merchant_id": "example",
"payment": "example",
"place": "example",
"public_id": "example",
"rejected_message": "example",
"shipping_address": "example",
"shipping_total": "example",
"status": 1,
"sub_total": "example",
"tax_total": "example",
"total": "example",
"tries": 1,
"type": 1,
"updated": "example"
}
]
}
}List payment methods
List customers' saved payment methods, for one customer or the whole store. Card numbers show only their last digits.
Inputs
- Customer
customer_idtext - Only this customer's records.
- Page size
page_sizenumber - How many payment methods to return, up to 100.From 1 to 100. Default:
25. - Cursor
cursortext - The next_cursor of the previous page, to read the next one.
Outputs
dataobject- The response from Ordergroove.
Example output
{
"data": {
"next_cursor": "example",
"results": [
{
"billing_address": "example",
"cc_exp_date": "example",
"cc_holder": "example",
"cc_number_ending": "example",
"cc_type": 1,
"created": "example",
"customer": "example",
"label": "example",
"last_updated": "example",
"live": true,
"payment_method": "example",
"public_id": "example"
}
]
}
}List products
List the store's products that can be subscribed to. Search by name, SKU or product ID.
Inputs
- Search
searchtext - Text to find in the product's name, SKU or product ID.
- Include discontinued
include_discontinuedtrue/false - Also list discontinued products.
- Page size
page_sizenumber - How many products to return, up to 100.From 1 to 100. Default:
25. - Cursor
cursortext - The next_cursor of the previous page, to read the next one.
Outputs
dataobject- The response from Ordergroove.
Example output
{
"data": {
"next_cursor": "example",
"results": [
{
"autoship_by_default": true,
"autoship_enabled": true,
"created": "example",
"detail_url": "example",
"discontinued": true,
"every": 1,
"every_period": 1,
"external_product_id": "example",
"image_url": "example",
"last_update": "example",
"live": true,
"name": "example",
"offer_profile": "example",
"prepaid_eligible": true,
"price": "example",
"product_type": "example",
"sku": "example"
}
]
}
}List subscriptions
List subscriptions, for one customer or the whole store. Filter by status, product or when they were created or changed.
Inputs
- Customer
customer_idtext - Only this customer's records.
- Active
livetrue/false - Only active subscriptions, or only inactive ones.
- Product
product_idtext - Only subscriptions to this product.
- Created on or after
created_fromdate - Only subscriptions created on or after this date.
- Updated since
updated_sincedate and time - Only subscriptions changed at or after this time.
- Page size
page_sizenumber - How many subscriptions to return, up to 100.From 1 to 100. Default:
25. - Cursor
cursortext - The next_cursor of the previous page, to read the next one.
Outputs
dataobject- The response from Ordergroove.
Example output
{
"data": {
"next_cursor": "example",
"results": [
{
"cancel_reason": "example",
"cancel_reason_code": 1,
"cancelled": "example",
"created": "example",
"currency_code": "example",
"customer": "example",
"every": 1,
"every_period": 1,
"external_id": "example",
"extra_data": {},
"frequency_days": 1,
"live": true,
"merchant": "example",
"merchant_order_id": "example",
"offer": "example",
"payment": "example",
"price": "example",
"product": "example",
"public_id": "example",
"quantity": 1,
"reminder_days": 1,
"shipping_address": "example",
"start_date": "example",
"subscription_type": "example",
"updated": "example"
}
]
}
}Reactivate a subscription
Turn a cancelled subscription back on, with its frequency and start date.
Inputs
- Subscription
subscription_idtextRequired - The subscription to change.
- Every
everynumberRequired - How many periods between orders: 4 with Weeks sends every 4 weeks.At least 1.
- Period
every_periodnumberRequired - The period between orders.One of:
1(Days),2(Weeks),3(Months). - Start date
start_datedateRequired - When the subscription becomes active again.
- Next order date
next_order_datedate - When the first order after reactivating is placed. Leave empty for the start date plus the frequency.
Outputs
dataobject- The response from Ordergroove.
Example output
{
"data": {
"cancel_reason": "example",
"cancel_reason_code": 1,
"cancelled": "example",
"created": "example",
"currency_code": "example",
"customer": "example",
"every": 1,
"every_period": 1,
"external_id": "example",
"extra_data": {},
"frequency_days": 1,
"live": true,
"merchant": "example",
"merchant_order_id": "example",
"offer": "example",
"payment": "example",
"price": "example",
"product": "example",
"public_id": "example",
"quantity": 1,
"reminder_days": 1,
"shipping_address": "example",
"start_date": "example",
"subscription_type": "example",
"updated": "example"
}
}Remove an item from an order
Remove an item from its order.
Inputs
- Item ID
item_idtextRequired - The order item to remove, from List order items.
Outputs
dataobject- The response from Ordergroove.
Example output
{
"data": {}
}Send an order now
Place an upcoming order within the next 24 hours instead of on its date.
Inputs
- Order
order_idtextRequired - The order to change.
Outputs
dataobject- The response from Ordergroove.
Example output
{
"data": {
"cancelled": "example",
"created": "example",
"currency_code": "example",
"customer": "example",
"discount_total": "example",
"locked": true,
"merchant": "example",
"order_merchant_id": "example",
"payment": "example",
"place": "example",
"public_id": "example",
"rejected_message": "example",
"shipping_address": "example",
"shipping_total": "example",
"status": 1,
"sub_total": "example",
"tax_total": "example",
"total": "example",
"tries": 1,
"type": 1,
"updated": "example"
}
}Skip a subscription in an order
Take one subscription's items out of an upcoming order and make its next order instead.
Inputs
- Order
order_idtextRequired - The order to change.
- Subscription
subscription_idtextRequired - The subscription to skip in this order.
Outputs
dataobject- The response from Ordergroove.
Example output
{
"data": {
"cancelled": "example",
"created": "example",
"currency_code": "example",
"customer": "example",
"discount_total": "example",
"locked": true,
"merchant": "example",
"order_merchant_id": "example",
"payment": "example",
"place": "example",
"public_id": "example",
"rejected_message": "example",
"shipping_address": "example",
"shipping_total": "example",
"status": 1,
"sub_total": "example",
"tax_total": "example",
"total": "example",
"tries": 1,
"type": 1,
"updated": "example"
}
}Update a subscription
Set a subscription's price, offer or extra data.
Inputs
- Subscription
subscription_idtextRequired - The subscription to change.
- Price
pricenumber - The subscription's price, such as 19.99.At least 0.
- Offer ID
offer_idtext - The public ID of the offer to move the subscription to.
- Extra data
extra_dataobject - Custom data to store on the subscription, as key and value pairs.
Outputs
dataobject- The response from Ordergroove.
Example output
{
"data": {
"cancel_reason": "example",
"cancel_reason_code": 1,
"cancelled": "example",
"created": "example",
"currency_code": "example",
"customer": "example",
"every": 1,
"every_period": 1,
"external_id": "example",
"extra_data": {},
"frequency_days": 1,
"live": true,
"merchant": "example",
"merchant_order_id": "example",
"offer": "example",
"payment": "example",
"price": "example",
"product": "example",
"public_id": "example",
"quantity": 1,
"reminder_days": 1,
"shipping_address": "example",
"start_date": "example",
"subscription_type": "example",
"updated": "example"
}
}