Get associated line items
get/api/v1/pipelines/records/{recordId}/line-itemsRetrieve a list of line items associated with the given pipeline record.
Code snippet
curl -X 'GET' \
'https://{yourdomain}/api/v1/pipelines/records/{recordId}/line-items' \
-H 'accept: text/plain; x-api-version=1.0' \
-H 'x-api-key: {your API key}'
Path parameters
| recordIdintegerRequired | The unique identifier of the pipeline record whose line items you want to retrieve. |
Example response
200 Success
{
"data": [
{
"productId": 101,
"name": "Premium Software License",
"listPrice": 800,
"salesPrice": 1200,
"quantity": 1,
"discount": 10,
"tax": {
"id": 1,
"value": "Standard Tax"
},
"term": 12,
"sellingType": {
"id": 1,
"value": "Subscription"
},
"subscriptionType": {
"id": 1,
"value": "Term based"
},
"chargeType": {
"id": 1,
"value": "Recurring"
},
"billingFrequency": {
"id": 1,
"value": "Monthly"
},
"discountType": {
"id": 1,
"value": "Amount"
},
"totalPrice": 1080
}
]
}