Nusii Api::V2::Line Item API
The Api::V2::LineItem API from Nusii — 3 operation(s) for api::v2::lineitem.
The Api::V2::LineItem API from Nusii — 3 operation(s) for api::v2::lineitem.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/nusii-com:nusii-com-api-v2-lineitem-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Nusii API v2 Api::V2::Line Item API
version: '2.0'
description: 'The Nusii proposal API. Authenticate with an API key (`Authorization: Token token=YOUR_API_KEY`) or an OAuth 2.0 bearer token. Narrative documentation lives at https://developer.nusii.com.'
servers:
- url: https://app.nusii.com
security:
- TokenAuth: []
- OAuthBearer: []
tags:
- name: Api::V2::LineItem
paths:
/api/v2/line_items/{id}:
delete:
summary: destroy
tags:
- Api::V2::LineItem
parameters:
- name: id
in: path
required: true
schema:
type: integer
responses:
'200':
description: returns http success
content:
application/vnd.api+json:
schema:
type: object
properties:
data:
type: object
properties:
id:
type: string
type:
type: string
attributes:
type: object
properties:
section_id:
type: integer
name:
type: string
position:
type: integer
cost_type:
type: string
recurring_type:
type: 'null'
per_type:
type: 'null'
choice_type:
type: string
quantity:
type: 'null'
updated_at:
type: string
created_at:
type: string
currency:
type: string
amount:
type: integer
amount_formatted:
type: string
amount_in_cents:
type: integer
maximum_amount_in_cents:
type: 'null'
maximum_amount_formatted:
type: 'null'
total_in_cents:
type: integer
total_formatted:
type: string
required:
- section_id
- name
- position
- cost_type
- recurring_type
- per_type
- choice_type
- quantity
- updated_at
- created_at
- currency
- amount
- amount_formatted
- amount_in_cents
- maximum_amount_in_cents
- maximum_amount_formatted
- total_in_cents
- total_formatted
required:
- id
- type
- attributes
required:
- data
'404':
description: returns not found on destroy
content:
application/vnd.api+json:
schema:
type: object
properties:
errors:
type: array
items:
type: object
properties:
source:
type: object
properties:
pointer:
type: string
required:
- pointer
detail:
type: string
required:
- source
- detail
required:
- errors
'422':
description: returns proposal locked error
content:
application/vnd.api+json:
schema:
type: object
properties:
error:
type: string
message:
type: string
required:
- error
- message
operationId: deleteApiV2LineItemsById
x-operation-id-source: derived
get:
summary: show
tags:
- Api::V2::LineItem
parameters:
- name: id
in: path
required: true
schema:
type: integer
- name: section_id
in: query
required: false
schema:
type: integer
responses:
'200':
description: returns http success
content:
application/vnd.api+json:
schema:
type: object
properties:
data:
type: object
properties:
id:
type: string
type:
type: string
attributes:
type: object
properties:
section_id:
type: integer
name:
type: string
position:
type: integer
cost_type:
type: string
recurring_type:
type: 'null'
per_type:
type: 'null'
choice_type:
type: string
quantity:
type: 'null'
updated_at:
type: string
created_at:
type: string
currency:
type: string
amount:
type: integer
amount_formatted:
type: string
amount_in_cents:
type: integer
maximum_amount_in_cents:
type: 'null'
maximum_amount_formatted:
type: 'null'
total_in_cents:
type: integer
total_formatted:
type: string
required:
- section_id
- name
- position
- cost_type
- recurring_type
- per_type
- choice_type
- quantity
- updated_at
- created_at
- currency
- amount
- amount_formatted
- amount_in_cents
- maximum_amount_in_cents
- maximum_amount_formatted
- total_in_cents
- total_formatted
required:
- id
- type
- attributes
required:
- data
'404':
description: returns not found on show
content:
application/vnd.api+json:
schema:
type: object
properties:
errors:
type: array
items:
type: object
properties:
source:
type: object
properties:
pointer:
type: string
required:
- pointer
detail:
type: string
required:
- source
- detail
required:
- errors
operationId: getApiV2LineItemsById
x-operation-id-source: derived
put:
summary: update
tags:
- Api::V2::LineItem
parameters:
- name: id
in: path
required: true
schema:
type: integer
responses:
'200':
description: returns http success
content:
application/vnd.api+json:
schema:
type: object
properties:
data:
type: object
properties:
id:
type: string
type:
type: string
attributes:
type: object
properties:
section_id:
type: integer
name:
type: string
position:
type: integer
cost_type:
type: string
recurring_type:
type: 'null'
per_type:
type: 'null'
choice_type:
type: string
quantity:
type: 'null'
updated_at:
type: string
created_at:
type: string
currency:
type: string
amount:
type: integer
amount_formatted:
type: string
amount_in_cents:
type: integer
maximum_amount_in_cents:
type: 'null'
maximum_amount_formatted:
type: 'null'
total_in_cents:
type: integer
total_formatted:
type: string
required:
- section_id
- name
- position
- cost_type
- recurring_type
- per_type
- choice_type
- quantity
- updated_at
- created_at
- currency
- amount
- amount_formatted
- amount_in_cents
- maximum_amount_in_cents
- maximum_amount_formatted
- total_in_cents
- total_formatted
required:
- id
- type
- attributes
required:
- data
'404':
description: returns not found on update
content:
application/vnd.api+json:
schema:
type: object
properties:
errors:
type: array
items:
type: object
properties:
source:
type: object
properties:
pointer:
type: string
required:
- pointer
detail:
type: string
required:
- source
- detail
required:
- errors
'422':
description: returns proposal locked error
content:
application/vnd.api+json:
schema:
type: object
properties:
errors:
type: array
items:
type: object
properties:
source:
type: object
properties:
pointer:
type: string
required:
- pointer
detail:
type: string
required:
- source
- detail
error:
type: string
message:
type: string
requestBody:
content:
application/x-www-form-urlencoded:
schema:
type: object
properties:
line_item:
type: object
properties:
choice_type:
type: string
maximum_amount:
type: string
cost_type:
type: string
name:
type: string
required:
- line_item
operationId: putApiV2LineItemsById
x-operation-id-source: derived
/api/v2/sections/{section_id}/line_items:
get:
summary: index
tags:
- Api::V2::LineItem
parameters:
- name: section_id
in: path
required: true
schema:
type: integer
responses:
'200':
description: returns http success
content:
application/vnd.api+json:
schema:
type: object
properties:
data:
type: array
items:
type: object
properties:
id:
type: string
type:
type: string
attributes:
type: object
properties:
section_id:
type: integer
name:
type: string
position:
type: integer
cost_type:
type: string
recurring_type:
type: 'null'
per_type:
type: 'null'
choice_type:
type: string
quantity:
type: 'null'
updated_at:
type: string
created_at:
type: string
currency:
type: string
amount:
type: integer
amount_formatted:
type: string
amount_in_cents:
type: integer
maximum_amount_in_cents:
type: 'null'
maximum_amount_formatted:
type: 'null'
total_in_cents:
type: integer
total_formatted:
type: string
required:
- section_id
- name
- position
- cost_type
- recurring_type
- per_type
- choice_type
- quantity
- updated_at
- created_at
- currency
- amount
- amount_formatted
- amount_in_cents
- maximum_amount_in_cents
- maximum_amount_formatted
- total_in_cents
- total_formatted
required:
- id
- type
- attributes
required:
- data
operationId: getApiV2SectionsBySectionIdLineItems
x-operation-id-source: derived
post:
summary: create
tags:
- Api::V2::LineItem
parameters:
- name: section_id
in: path
required: true
schema:
type: integer
requestBody:
content:
application/x-www-form-urlencoded:
schema:
type: object
properties:
line_item:
type: object
properties:
name:
type: string
maximum_amount:
type: string
cost_type:
type: string
amount:
type: string
required:
- name
required:
- line_item
responses:
'201':
description: ignores the maximum amount
content:
application/vnd.api+json:
schema:
type: object
properties:
data:
type: object
properties:
id:
type: string
type:
type: string
attributes:
type: object
properties:
section_id:
type: integer
name:
type: string
position:
type: integer
cost_type:
type: string
recurring_type:
type: 'null'
per_type:
type: 'null'
choice_type:
type: string
quantity:
type: 'null'
updated_at:
type: string
created_at:
type: string
currency:
type: string
amount:
type: integer
amount_formatted:
type: string
amount_in_cents:
type: integer
maximum_amount_in_cents:
type:
- integer
- 'null'
maximum_amount_formatted:
type:
- string
- 'null'
total_in_cents:
type: integer
total_formatted:
type: string
required:
- section_id
- name
- position
- cost_type
- recurring_type
- per_type
- choice_type
- quantity
- updated_at
- created_at
- currency
- amount
- amount_formatted
- amount_in_cents
- maximum_amount_in_cents
- maximum_amount_formatted
- total_in_cents
- total_formatted
required:
- id
- type
- attributes
required:
- data
'422':
description: returns proposal locked error
content:
application/vnd.api+json:
schema:
type: object
properties:
error:
type: string
message:
type: string
errors:
type: array
items:
type: object
properties:
source:
type: object
properties:
pointer:
type: string
required:
- pointer
detail:
type: string
required:
- source
- detail
operationId: postApiV2SectionsBySectionIdLineItems
x-operation-id-source: derived
/api/v2/sections/{section_id}/line_items/{id}:
put:
summary: update
tags:
- Api::V2::LineItem
parameters:
- name: id
in: path
required: true
schema:
type: integer
- name: section_id
in: path
required: true
schema:
type: integer
requestBody:
content:
application/x-www-form-urlencoded:
schema:
type: object
properties:
line_item:
type: object
properties:
name:
type: string
required:
- name
required:
- line_item
responses:
'200':
description: returns http success
content:
application/vnd.api+json:
schema:
type: object
properties:
data:
type: object
properties:
id:
type: string
type:
type: string
attributes:
type: object
properties:
section_id:
type: integer
name:
type: string
position:
type: integer
cost_type:
type: string
recurring_type:
type: 'null'
per_type:
type: 'null'
choice_type:
type: string
quantity:
type: 'null'
updated_at:
type: string
created_at:
type: string
currency:
type: string
amount:
type: integer
amount_formatted:
type: string
amount_in_cents:
type: integer
maximum_amount_in_cents:
type: 'null'
maximum_amount_formatted:
type: 'null'
total_in_cents:
type: integer
total_formatted:
type: string
required:
- section_id
- name
- position
- cost_type
- recurring_type
- per_type
- choice_type
- quantity
- updated_at
- created_at
- currency
- amount
- amount_formatted
- amount_in_cents
- maximum_amount_in_cents
- maximum_amount_formatted
- total_in_cents
- total_formatted
required:
- id
- type
- attributes
required:
- data
operationId: putApiV2SectionsBySectionIdLineItemsById
x-operation-id-source: derived
components:
securitySchemes:
TokenAuth:
type: apiKey
in: header
name: Authorization
description: 'API key authentication: `Authorization: Token token=YOUR_API_KEY`'
OAuthBearer:
type: http
scheme: bearer
description: OAuth 2.0 access token