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
Item name
Description
Enabled/disabled
Accounting SKU
Accounting Income Account
External key value
Units string
Tax group ID #
Default number of times to recur
Default number of times to skip/free trial cycles
Service date type
Possible values: [none, starts_on_invoice_date, starts_on_first_of_this_month, starts_on_first_of_next_month, ends_before_invoice_date]
Service dates visibility
Possible values: [visible_to_merchant, visible_to_merchant_and_customers]
Revenue recognition method
Possible values: [none, ratable_daily, ratable_30_360, installment, sales_basis, completed_contract]
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
Responses
- 201
- 400
- 401
Object was created successfully
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
response
object
{
"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": 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
}