Get line items for a specific account.
Line Items for an Account include charges
to the account and payments
by the account holder. Results are paginated and sorted by line item effective date.
Path parameters
-
account_id string Required
ID of the Account
Query parameters
-
limit integer
The maximum number of line items to be returned. Defaults to 100.
-
starting_after string
Pass the value from the
paging
response body in your previous request. If not provided, the zero-indexed starting point will be used. Either starting_after or ending_before may be provided, but not both. -
ending_before string
Pass the value from the
paging
response body in your previous request. If not provided, the zero-indexed starting point will be used. Either starting_after or ending_before may be provided, but not both. -
line_item_status string
Line item status to filter by
Allowed values are: AUTHORIZED, DECLINED, INVALID, OFFSET, PENDING, POSTED, PROCESSING, RETRO_VALID, REVERSED, ROLLED, SETTLED, SPLIT_INVALID, SPLIT_VALID, VALID, or VOID -
line_item_type string
Line item type to filter by
Allowed values are: CHARGE, PAYMENT, CREDIT_OFFSET, DEBIT_OFFSET, MANUAL_FEE -
updated_at_after string(date-time)
Returns line items with an 'updated_at' date more recent (or equal) than the timestamp passed as a value. Due to format constraints, it is highly recommended to encodeURIComponent() the value before passing it as a query parameter
-
updated_at_before string(date-time)
Returns line items with an 'updated_at' date older (or equal) than the timestamp passed as a value. Due to format constraints, it is highly recommended to encodeURIComponent() the value before passing it as a query parameter
curl \
-X GET https://<your_environment_name>-uat-api.canopyservicing.com/accounts/can_52322/line_items \
-H "Authorization: Bearer $ACCESS_TOKEN"
{
"results": [
{
"account_id": 4,
"line_item_id": 2,
"effective_at": "2018-07-20T09:12:30+00:00",
"valid_at": "2022-09-30T09:12:30+00:00",
"created_at": "2018-06-20T09:12:30+00:00",
"updated_at": "2019-07-21T10:13:31+00:00",
"product_id": "li_4Yxb5",
"line_item_overview": {
"line_item_status": "VALID",
"line_item_type": "CHARGE",
"description": "Refund for invalid purchase",
"allocation": "INTEREST"
},
"line_item_summary": {
"original_amount_cents": 2484,
"balance_cents": 3600,
"principal_cents": 2400,
"interest_percent": 2.34,
"interest_balance_cents": 1100,
"am_interest_balance_cents": 0,
"deferred_interest_balance_cents": 200,
"am_deferred_interest_balance_cents": 0,
"am_fees_balance_cents": 0,
"total_interest_paid_to_date_cents": -16
},
"merchant_data": {
"name": "string",
"id": "string",
"mcc_code": "string",
"phone_number": "string"
},
"issuer_processor_details": {
"lithic": {
"last_four": 3324,
"transaction_token": "33xd08bc-d100-488y-bb93-f8a1f081ff0e",
"card_token": "c6cd08bc-c524-48f5-b64d-f79ec0810df4"
}
},
"external_fields": [
{
"key": "Globex Card Processing Account ID",
"value": "22445702-a389-431f-927d-07b8d0750787"
}
],
"line_item_relationships": [
{
"type": "PAYMENT_SPLIT",
"line_item_id": "can_8231",
"split_amount_cents": "PAYMENT_SPLIT",
"paid_down_line_item_id": "can_8231",
"paid_down_line_item_type": "LOAN",
"paid_down_line_item_parent_id": "can_8231"
}
]
}
],
"paging": {
"starting_after": "31mNprzLd2bKl6koVna68ARM",
"ending_before": "31mNprzLd2bKl6koVna68ARM",
"has_more": false
}
}