Retrieve a list of claims. The claims can be filtered by fields such as id. The claims can also be sorted or paginated.
Request Request Example
JavaScript
Shell
Java
Swift
curl--location-g--request GET '{{BASE_URL}}/admin/claims'
Response Response Example
200 - Example 1
Request
Authorization
or
or
or
Query Params
fields
stringÂ
fields
optional
Comma-separated fields that should be included in the returned data. if a field is prefixed with + it will be added to the default fields, using - will remove it from the default fields. without prefix it will replace the entire default fields.
offset
numberÂ
offset
optional
The number of items to skip when retrieving a list.
limit
numberÂ
limit
optional
Limit the number of items returned in the list.
order
stringÂ
order
optional
The field to sort the data by. By default, the sort order is ascending. To change the order to descending, prefix the field name with -.
$ne
array[string]
optional
Filter by values not equal to this parameter.
Example:
["","",""]
$gt
array[string]
optional
Filter by values greater than this parameter. Useful for numbers and dates only.
Example:
["","",""]
$gte
array[string]
optional
Filter by values greater than or equal to this parameter. Useful for numbers and dates only.
Example:
["","",""]
$lt
array[string]
optional
Filter by values less than this parameter. Useful for numbers and dates only.
Example:
["","",""]
$lte
array[string]
optional
Filter by values less than or equal to this parameter. Useful for numbers and dates only.
Example:
["","",""]
$like
array[string]
optional
Apply a like filter. Useful for strings only.
Example:
["","",""]
$re
array[string]
optional
Apply a regex filter. Useful for strings only.
Example:
["","",""]
$ilike
array[string]
optional
Apply a case-insensitive like filter. Useful for strings only.
Example:
["","",""]
$fulltext
array[string]
optional
Filter to apply on full-text properties.
Example:
["","",""]
$exists
array[string]
optional
Filter by whether a value for this parameter exists (not null).
Example:
["","",""]
$and
array [object]Â
$and
optional
Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters.
Example:
["","",""]
$or
array [object]Â
$or
optional
Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters.
Example:
["","",""]
$in
array[string]
optional
Filter by values in this array.
Example:
["","",""]
$nin
array[string]
optional
Filter by values not in this array.
Example:
["","",""]
$overlap
array[string]
optional
Filter arrays that have overlapping values with this parameter.
Example:
["","",""]
$contains
array[string]
optional
Filter arrays that contain some of the values of this parameter.
Example:
["","",""]
$contained
array[string]
optional
Filter arrays that contain all values of this parameter.
Example:
["","",""]
$eq
array[string]
optional
Example:
["","",""]
$not
array[string]
optional
Example:
["","",""]
q
stringÂ
q
optional
The claim's q.
id
optional
One of
The claim's ID.
order_id
optional
One of
The claim's order id.
status
optional
One of
The claim's status.
Responses
🟢200OK
application/json
OK
Body
The paginated list of claims.
limit
numberÂ
limit
required
The maximum number of items returned.
offset
numberÂ
offset
required
The number of items skipped before retrieving the returned items.
count
numberÂ
count
required
The total number of items.
claims
array[object (AdminClaim) {20}]Â
required
The list of claims.
return
object (AdminReturn)Â
required
The return's details.
order
object (AdminOrder)Â
required
The order's details.
id
stringÂ
id
required
The claim's ID.
order_id
stringÂ
order_id
required
The ID of the order associated with the claim.
claim_items
array[object (BaseClaimItem) {10}]Â
required
The order items targetted by the claim.
additional_items
array[object (BaseClaimItem) {10}]Â
required
The outbound or new items of the claim.
return_id
stringÂ
return_id
optional
The ID of the associated return.
no_notification
booleanÂ
no_notification
optional
Whether the customer should be notified about changes in the claim.
refund_amount
numberÂ
refund_amount
optional
The amount to be refunded.
display_id
numberÂ
display_id
required
The claim's display ID.
shipping_methods
array[object (AdminOrderShippingMethod) {22}]Â
optional
The claim's shipping methods.
metadata
objectÂ
optional
The claim's metadata, used to store custom key-value pairs.
created_at
string <date-time>
created_at
required
The claim's creation date.
updated_at
string <date-time>
updated_at
required
The claim's update date.
order_version
stringÂ
order_version
required
The version of the order when the claim is applied.
created_by
stringÂ
created_by
optional
The ID of the user that created the claim.
canceled_at
string <date-time>
canceled_at
required
The date the claim was canceled.
deleted_at
string <date-time>
deleted_at
optional
The date the claim was deleted.
transactions
array[object (BaseOrderTransaction) {9}]Â
optional
The claim's transactions.
type
enum<string>Â
required
The claim's type.
Allowed values:
replacerefund
estimate_count
numberÂ
estimate_count
optional
The estimated count retrieved from the PostgreSQL query planner, which may be inaccurate.