Retrieve invoice items

Request

Retrieves invoice items with a specified invoice ID.

Security
SecretApiKey or JWT
Path
idstring, <= 50 characters^[@~\-\.\w]+$required

ID of the resource.

Query
limitinteger, [ 0 .. 1000 ]

Limit the number of collection items to be returned. Use 0 to return an empty collection and still receive the count of matching items in Pagination-Total.

offsetinteger, [ 0 .. 1000 ]

Specifies the starting point within the collection of items to be returned.

expandstring

Expands a request to include embedded objects within the _embedded property of the response. This field accepts a comma-separated list of objects.

For more information, see Embedded resources.

curl -i -X GET \
  'https://www.rebilly.com/_mock/catalog/all/invoices/{id}/items?limit=0&offset=0&expand=string' \
  -H 'REB-APIKEY: YOUR_API_KEY_HERE'

Responses

Invoice items retrieved.

Bodyapplication/json
Array [
idstring, <= 50 charactersread-only

ID of the invoice item.

Example:"ii_0YVFDEQS2KCFTBN9HXWJFY55GV"
typestringrequired

Type of invoice item.

Enum:"debit""credit"
descriptionstring, <= 1000 characters

Description of the invoice item.

unitPricenumber, (double)required

Unit price of the invoice item.

quantityinteger

Quantity of the invoice item.

pricenumber, (double)read-only

Total price of the invoice item.

productIdstring or null, <= 50 characters

ID of the product.

Example:"prod_0YV7DES3WPC5J8JD8QTVNZBZNZ"
planIdstring or null, <= 50 charactersread-only

ID of the plan.

Example:"plan_0YV7DENSVGDBW9S71XZNNYYQ0X"
subscriptionIdstring or null, <= 50 charactersread-only

ID of the order.

Example:"sub_01HRF27SATGE4Z6PBJE6PD8328"
periodStartTimestring or null, (date-time)

Date and time when the billing period starts.

periodEndTimestring or null, (date-time)

Date and time when the billing period ends.

periodNumberinteger or null

Billing period number that is associated with the invoice item. For example, an invoice item for a service is included in billing period number 3. The invoice item is only applied to billing period number 3.

createdTimestring, (date-time)(CreatedTime)read-only

Date and time when the resource is created. This value is set automatically when the resource is created.

updatedTimestring, (date-time)(UpdatedTime)read-only

Date and time when the resource is updated. This value is set automatically when the resource is updated.

taxTaxItem (object) or nullread-only
One of:

Invoice item tax.

_embeddedobjectread-only

Embedded objects that are requested by the expand query parameter.

]
Response
[ { "id": "ii_0YVFDEQS2KCFTBN9HXWJFY55GV", "type": "debit", "description": "string", "unitPrice": 0.1, "quantity": 0, "price": 0.1, "productId": "prod_0YV7DES3WPC5J8JD8QTVNZBZNZ", "planId": "plan_0YV7DENSVGDBW9S71XZNNYYQ0X", "subscriptionId": "sub_01HRF27SATGE4Z6PBJE6PD8328", "periodStartTime": "2019-08-24T14:15:22Z", "periodEndTime": "2019-08-24T14:15:22Z", "periodNumber": 0, "createdTime": "2019-08-24T14:15:22Z", "updatedTime": "2019-08-24T14:15:22Z", "tax": {}, "_links": [], "_embedded": {} } ]