Requires the billing-services-manage
capability.
Returns a list of Billing Orders.
General error response from the platform
{- "data": [
- {
- "hub_id": "string",
- "creator": {
- "type": "account",
- "id": "651586fca6078e98982dbd90"
}, - "promo_code_id": "string",
- "term": {
- "start": "2021-01-30T08:30:00Z",
- "end": "2021-01-30T08:30:00Z",
- "renew": "once"
}, - "approved": true,
- "items": [
- {
- "id": "string",
- "service": {
- "support": {
- "id": "651586fca6078e98982dbd90",
- "name": "string",
- "price": 0
}, - "tier": {
- "id": "651586fca6078e98982dbd90",
- "name": "string",
- "price": {
- "mills": null,
- "term": null
}
}
}, - "description": "string",
- "price": {
- "mills": 0,
- "term": "once"
}, - "discount": {
- "id": "string",
- "amount": {
- "mills": 0,
- "term": "once"
}, - "expires": "2021-01-30T08:30:00Z"
}, - "net_price": 0
}
], - "total_price": 0,
- "events": {
- "expires": "2021-01-30T08:30:00Z"
}, - "state": {
- "changed": "2021-01-30T08:30:00Z",
- "error": {
- "message": "string",
- "time": "2021-01-30T08:30:00Z"
}
}
}
], - "includes": {
- "promo_codes": {
- "property1": {
- "code": "string",
- "expires": "2021-01-30T08:30:00Z",
- "credit": {
- "amount": {
- "mills": 0,
- "term": "once"
}, - "expires": {
- "interval": "months",
- "number": 2
}
}, - "state": {
- "changed": "2021-01-30T08:30:00Z",
- "error": {
- "message": "string",
- "time": "2021-01-30T08:30:00Z"
}
}
}, - "property2": {
- "code": "string",
- "expires": "2021-01-30T08:30:00Z",
- "credit": {
- "amount": {
- "mills": 0,
- "term": "once"
}, - "expires": {
- "interval": "months",
- "number": 2
}
}, - "state": {
- "changed": "2021-01-30T08:30:00Z",
- "error": {
- "message": "string",
- "time": "2021-01-30T08:30:00Z"
}
}
}
}
}
}
Requires the billing-orders-manage
capability.
Parameters for creating a new order
Returns a Billing Order.
General error response from the platform
{- "tier_plan_id": "string",
- "support_plan_id": "string",
- "term_length": "once",
- "promo_code": "string"
}
{- "data": {
- "id": "651586fca6078e98982dbd90",
- "hub_id": "651586fca6078e98982dbd90",
- "creator": {
- "id": "651586fca6078e98982dbd90",
- "type": "account"
}, - "promo_code_id": "string",
- "term": {
- "start": "2021-01-30T08:30:00Z",
- "end": "2021-01-30T08:30:00Z",
- "renew": "once"
}, - "approved": true,
- "items": [
- {
- "support": {
- "id": "651586fca6078e98982dbd90",
- "name": "string",
- "price": 0
}, - "tier": {
- "id": "651586fca6078e98982dbd90",
- "name": "string",
- "price": {
- "mills": 0,
- "term": "once"
}
}
}
], - "total_price": 0,
- "events": {
- "created": "2021-01-30T08:30:00Z",
- "updated": "2021-01-30T08:30:00Z",
- "deleted": "2021-01-30T08:30:00Z",
- "expires": "2021-01-30T08:30:00Z"
}, - "state": {
- "changed": "2021-01-30T08:30:00Z",
- "error": {
- "message": "string",
- "time": "2021-01-30T08:30:00Z"
}
}
}, - "includes": {
- "promo_codes": {
- "property1": {
- "code": "string",
- "expires": "2021-01-30T08:30:00Z",
- "credit": {
- "amount": {
- "mills": 0,
- "term": "once"
}, - "expires": {
- "interval": "months",
- "number": 2
}
}, - "state": {
- "changed": "2021-01-30T08:30:00Z",
- "error": {
- "message": "string",
- "time": "2021-01-30T08:30:00Z"
}
}
}, - "property2": {
- "code": "string",
- "expires": "2021-01-30T08:30:00Z",
- "credit": {
- "amount": {
- "mills": 0,
- "term": "once"
}, - "expires": {
- "interval": "months",
- "number": 2
}
}, - "state": {
- "changed": "2021-01-30T08:30:00Z",
- "error": {
- "message": "string",
- "time": "2021-01-30T08:30:00Z"
}
}
}
}
}
}
Requires the billing-services-manage
capability.
Returns a Billing Order
General error response from the platform
{- "data": {
- "hub_id": "string",
- "creator": {
- "type": "account",
- "id": "651586fca6078e98982dbd90"
}, - "promo_code_id": "string",
- "term": {
- "start": "2021-01-30T08:30:00Z",
- "end": "2021-01-30T08:30:00Z",
- "renew": "once"
}, - "approved": true,
- "items": [
- {
- "id": "string",
- "service": {
- "support": {
- "id": "651586fca6078e98982dbd90",
- "name": "string",
- "price": 0
}, - "tier": {
- "id": "651586fca6078e98982dbd90",
- "name": "string",
- "price": {
- "mills": 0,
- "term": "once"
}
}
}, - "description": "string",
- "price": {
- "mills": 0,
- "term": "once"
}, - "discount": {
- "id": "string",
- "amount": {
- "mills": 0,
- "term": "once"
}, - "expires": "2021-01-30T08:30:00Z"
}, - "net_price": 0
}
], - "total_price": 0,
- "events": {
- "expires": "2021-01-30T08:30:00Z"
}, - "state": {
- "changed": "2021-01-30T08:30:00Z",
- "error": {
- "message": "string",
- "time": "2021-01-30T08:30:00Z"
}
}
}, - "includes": {
- "promo_codes": {
- "property1": {
- "code": "string",
- "expires": "2021-01-30T08:30:00Z",
- "credit": {
- "amount": {
- "mills": 0,
- "term": "once"
}, - "expires": {
- "interval": "months",
- "number": 2
}
}, - "state": {
- "changed": "2021-01-30T08:30:00Z",
- "error": {
- "message": "string",
- "time": "2021-01-30T08:30:00Z"
}
}
}, - "property2": {
- "code": "string",
- "expires": "2021-01-30T08:30:00Z",
- "credit": {
- "amount": {
- "mills": 0,
- "term": "once"
}, - "expires": {
- "interval": "months",
- "number": 2
}
}, - "state": {
- "changed": "2021-01-30T08:30:00Z",
- "error": {
- "message": "string",
- "time": "2021-01-30T08:30:00Z"
}
}
}
}
}
}
Requires the billing-services-manage
capability.
Returns a Billing Order.
General error response from the platform
{- "tier_plan_id": "string",
- "support_plan_id": "string",
- "term_length": "once",
- "promo_code": "string"
}
{- "data": {
- "hub_id": "string",
- "creator": {
- "type": "account",
- "id": "651586fca6078e98982dbd90"
}, - "promo_code_id": "string",
- "term": {
- "start": "2021-01-30T08:30:00Z",
- "end": "2021-01-30T08:30:00Z",
- "renew": "once"
}, - "approved": true,
- "items": [
- {
- "id": "string",
- "service": {
- "support": {
- "id": "651586fca6078e98982dbd90",
- "name": "string",
- "price": 0
}, - "tier": {
- "id": "651586fca6078e98982dbd90",
- "name": "string",
- "price": {
- "mills": 0,
- "term": "once"
}
}
}, - "description": "string",
- "price": {
- "mills": 0,
- "term": "once"
}, - "discount": {
- "id": "string",
- "amount": {
- "mills": 0,
- "term": "once"
}, - "expires": "2021-01-30T08:30:00Z"
}, - "net_price": 0
}
], - "total_price": 0,
- "events": {
- "expires": "2021-01-30T08:30:00Z"
}, - "state": {
- "changed": "2021-01-30T08:30:00Z",
- "error": {
- "message": "string",
- "time": "2021-01-30T08:30:00Z"
}
}
}, - "includes": {
- "promo_codes": {
- "property1": {
- "code": "string",
- "expires": "2021-01-30T08:30:00Z",
- "credit": {
- "amount": {
- "mills": 0,
- "term": "once"
}, - "expires": {
- "interval": "months",
- "number": 2
}
}, - "state": {
- "changed": "2021-01-30T08:30:00Z",
- "error": {
- "message": "string",
- "time": "2021-01-30T08:30:00Z"
}
}
}, - "property2": {
- "code": "string",
- "expires": "2021-01-30T08:30:00Z",
- "credit": {
- "amount": {
- "mills": 0,
- "term": "once"
}, - "expires": {
- "interval": "months",
- "number": 2
}
}, - "state": {
- "changed": "2021-01-30T08:30:00Z",
- "error": {
- "message": "string",
- "time": "2021-01-30T08:30:00Z"
}
}
}
}
}
}
Used to confirm a Billing Order.
Requires the billing-services-manage
capability.
Returns a Job Descriptor.
General error response from the platform
{- "action": "confirm"
}
{- "data": {
- "action": "string",
- "job": {
- "id": "string",
- "accepted": true,
- "queue": "string",
- "schedule": "2021-01-30T08:30:00Z",
- "parallel": {
- "sub_queue": "string",
- "tasks": true
}, - "tasks": [
- {
- "caption": "string",
- "header": "string",
- "steps": [
- {
- "caption": "string",
- "description": "string",
- "started": "2021-01-30T08:30:00Z",
- "completed": "2021-01-30T08:30:00Z"
}
], - "input": {
- "property1": null,
- "property2": null
}
}
]
}
}
}