Get line items for a specific account.
| Time | Status | User Agent | |
|---|---|---|---|
| Make a request to see history. |
URL Expired
The URL for this request expired after 30 days.
account_id
string
required
ID of the Account
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
Comma-separated list of line item statuses to filter by (no whitespaces).
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
Comma-separated list of line item types to filter by (no whitespaces).
Allowed values are: CHARGE, PAYMENT, CREDIT_OFFSET, DEBIT_OFFSET, MANUAL_FEE
updated_at_after
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
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
effective_at_after
date-time
Returns line items with an 'effective_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
effective_at_before
date-time
Returns line items with an 'effective_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
min_original_amount_cents
integer
Returns line items with an original amount greater (or equal) than the provided amount.
max_original_amount_cents
integer
Returns line items with an original amount lower (or equal) than the provided amount.
search_parameters
string
Searches by line_item_id or description. Based on the input search parameter, the top responses from our API search, up to or less than the provided limit will be returned.
``200 Array of Line Items and their corresponding balances at their effective dates and times.
``401
Unauthorized.
``403
Forbidden.
``404
Line Items not found.
``429
Too many requests.
``default
Unexpected Error.
Updated about 1 year ago
ShellNodeRubyPHPPython
Bearer
Base URL
https://Contact sales to enable your sandbox/accounts/{account_id}/line_items
xxxxxxxxxx
curl --request GET \
--url https://contact/%20sales%20to%20enable%20your%20sandbox/accounts//line_items \
--header 'accept: application/json'
Click Try It! to start a request and see the response here! Or choose an example:
application/json
``200
Updated about 1 year ago