Create an item
POST/api/v3/item
The response/id value will be the item_id value for the newly created item.
Valid values for paycycle
evy
- Every billing cycledly
- Daily1wk
- Every week2wk
- Every other week116
- 1st and the 16th4wk
- Every four weeks8wk
- Every eight weeks30d
- Every 30 daysmon
- Monthly2mn
- Every other month12w
- Every twelve weeksqtr
- Quarterlysix
- Every six monthsyrl
- Yearly2yr
- Every 2 years3yr
- Every 3 years4yr
- Every 4 years5yr
- Every 5 years10y
- Every 10 years
Valid values for pricemodel
fla
- Flat Pricing (example: $X dollars every billing cycle)uni
- Unit Pricing (example: $X per unit every billing cycle)vol
- Volume Pricing (example: $X dollars every billing cycle, with different price levels depending on volume)tie
- Tiered Pricing (example: $X dollars every billing cycle for the first 10 units, then $Y dollars per month for the next 10 units, etc.)pas
- Pass-through from usage data (Pass-through pricing is for scenarios where the usage data and the pricing is already known)
Request
- application/json
Body
item_type string
Item type
name string
Item name
description string
Description
enabled boolean
Enabled/disabled
accounting_sku string
Accounting SKU
accounting_account_income string
Accounting Income Account
external_key string
External key value
units string
Units string
tax_group_id integer
Tax group ID #
expire_recurs integer
Default # of times to recur
trial_recurs integer
Default # of times to skip/free trial cycles
custom_1 string
Custom field value #1
custom_2 string
Custom field value #2
custom_3 string
Custom field value #3
Responses
- 201
- 400
- 401
Object was created successfully
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
code integer
status string
message stringnullable
details objectnullable
response
object
id integer
{
"code": 0,
"status": "string",
"message": "string",
"details": {},
"response": {
"id": 0
}
}
{
"code": 201,
"status": "OK",
"message": "",
"details": {},
"response": {
"id": 1234
}
}
Bad request
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
code integer
status string
message stringnullable
details objectnullable
response boolean
{
"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 integer
status string
message stringnullable
details objectnullable
response boolean
{
"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
}
Loading...