Orders

Endpoints related to orders placed on a hub.

List Billing Orders

Requires the billing-services-manage capability.

SecuritybearerAuth and hubAuth
Request
query Parameters
sort
Array of strings

An array of sort values. To sort descending, put a - in front of the value, e.g. -id.

filter
object
object

In a list return, the data associated with the page number and size returned. 20 results per page, page 2 would be page[size]=20&page[number]=2

meta
Array of strings
Items Value: "due"
include
Array of strings
Items Value: "promo_codes"
Responses
200

Returns a list of Billing Orders.

default

General error response from the platform

get/v1/billing/orders
Response samples
application/json
{
  • "data": [
    ],
  • "includes": {
    }
}

Create Billing Order

Requires the billing-orders-manage capability.

SecuritybearerAuth and hubAuth
Request
query Parameters
meta
Array of strings
Items Value: "due"
include
Array of strings
Items Value: "promo_codes"
Request Body schema: application/json

Parameters for creating a new order

tier_plan_id
string

ID associated with the tier plan

support_plan_id
string

ID associated with the support plan

term_length
string

String that defines term length

Enum: "once" "monthly" "yearly"
promo_code
string

String that defines a promo code

Responses
201

Returns a Billing Order.

default

General error response from the platform

post/v1/billing/orders
Request samples
application/json
{
  • "tier_plan_id": "string",
  • "support_plan_id": "string",
  • "term_length": "once",
  • "promo_code": "string"
}
Response samples
application/json
{
  • "data": {
    },
  • "includes": {
    }
}

Get Billing Order

Requires the billing-services-manage capability.

SecuritybearerAuth and hubAuth
Request
path Parameters
orderId
required
string

The ID of the billing order.

query Parameters
meta
Array of strings
Items Value: "due"
include
Array of strings
Items Value: "promo_codes"
Responses
200

Returns a Billing Order

default

General error response from the platform

get/v1/billing/orders/{orderId}
Response samples
application/json
{
  • "data": {
    },
  • "includes": {
    }
}

Update Billing Order

Requires the billing-services-manage capability.

SecuritybearerAuth and hubAuth
Request
path Parameters
orderId
required
string

The ID of the billing order.

query Parameters
meta
Array of strings
Items Value: "due"
include
Array of strings
Items Value: "promo_codes"
Request Body schema: application/json
tier_plan_id
string

ID associated with the tier plan

support_plan_id
string

ID associated with the support plan

term_length
string

String that defines term length

Enum: "once" "monthly" "yearly"
promo_code
string

String that defines a promo code

Responses
200

Returns a Billing Order.

default

General error response from the platform

patch/v1/billing/orders/{orderId}
Request samples
application/json
{
  • "tier_plan_id": "string",
  • "support_plan_id": "string",
  • "term_length": "once",
  • "promo_code": "string"
}
Response samples
application/json
{
  • "data": {
    },
  • "includes": {
    }
}

Create Billing Order Job

Used to confirm a Billing Order.

Requires the billing-services-manage capability.

SecuritybearerAuth and hubAuth
Request
path Parameters
orderId
required
string

The ID of the requested Order

Request Body schema: application/json
action
required
string

The name of the action to perform

Value: "confirm"
Responses
202

Returns a Job Descriptor.

default

General error response from the platform

post/v1/billing/orders/{orderId}/tasks
Request samples
application/json
{
  • "action": "confirm"
}
Response samples
application/json
{
  • "data": {
    }
}