Querying for items
GET/api/v3/item
Available query parameter values for filtering:
- item_id
- name
- external_key
- accounting_sku
- item_type
- custom_1
- custom_2
- custom_3
Valid values for item_type
service
(for Services)discount
(for Discounts)
Request
Query Parameters
item_type:EQUALS:service
item_id:ASC
2
8
Responses
- 200
- 400
- 401
Object was fetched successfully
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
Array [
]
response
object[]
Item ID #
Item type
Item name
Description
Enabled/disabled
Accounting SKU
Accounting Income Account
External key value
Units string
Units string pluralized
Tax group ID #
Tax group name
Default number of times to recur
Default number of times to skip/free trial cycles
Unique token
Default pricing tierset ID #
Date/time the item was created
Date/time the item was last updated
Custom field value #1
Custom field value #2
Custom field value #3
Custom field value #4
Custom field value #5
Custom field value #6
Custom field value #7
Custom field value #8
Custom field value #9
Custom field value #10
Custom field value #11
Custom field value #12
Custom field value #13
Custom field value #14
Custom field value #15
Custom field value #16
Custom field value #17
Custom field value #18
Custom field value #19
Custom field value #20
{
"code": 0,
"status": "string",
"message": "string",
"details": {},
"response": [
{
"item_id": 0,
"item_type": "string",
"name": "string",
"description": "string",
"enabled": true,
"accounting_sku": "string",
"accounting_account_income": "string",
"external_key": "string",
"units": "string",
"units_plural": "string",
"tax_group_id": 0,
"tax_group_name": "string",
"expire_recurs": 0,
"trial_recurs": 0,
"token": "string",
"tierset_id": 0,
"write_datetime": "string",
"mod_datetime": "string",
"custom_1": "string",
"custom_2": "string",
"custom_3": "string",
"custom_4": "string",
"custom_5": "string",
"custom_6": "string",
"custom_7": "string",
"custom_8": "string",
"custom_9": "string",
"custom_10": "string",
"custom_11": "string",
"custom_12": "string",
"custom_13": "string",
"custom_14": "string",
"custom_15": "string",
"custom_16": "string",
"custom_17": "string",
"custom_18": "string",
"custom_19": "string",
"custom_20": "string"
}
]
}
{
"code": 200,
"status": "OK",
"message": "",
"response": [
{
"item_id": 1,
"item_type": "service",
"tierset_id": 1,
"name": "My Test Service Plan",
"description": "This is a ChargeOver test item.",
"units": "",
"accounting_sku": null,
"external_key": null,
"token": "d56c047651ec",
"custom_1": "",
"custom_2": "",
"custom_3": "",
"write_datetime": "2014-12-02 18:46:48",
"mod_datetime": "2014-12-02 18:46:48",
"units_plural": "",
"tiersets": [
{
"tierset_id": 1,
"setup": 0,
"base": 10.95,
"paycycle": "mon",
"pricemodel": "fla",
"write_datetime": "2014-12-02 18:46:48",
"mod_datetime": "2014-12-02 18:46:48",
"setup_formatted": "$ 0.00",
"base_formatted": "$ 10.95",
"pricemodel_desc": "Flat Pricing (e.g. $X dollars per month)",
"tiers": []
}
]
}
]
}
Bad request
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
{
"code": 0,
"status": "string",
"message": "string",
"details": {},
"response": true
}
{
"code": 400,
"status": "Error",
"message": "Missing or invalid parameter.",
"details": {},
"response": false
}
Authentication error
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
{
"code": 0,
"status": "string",
"message": "string",
"details": {},
"response": true
}
{
"code": 401,
"status": "Error",
"message": "Invalid or incorrect authorization [Missing (basic) authorization header.]",
"details": {},
"response": false
}