Get Refund Order Count

🔒

Requires read_order access scope. More access scope

The Get Refund Order Count retrieve the count of refund records based on specified filters.

This API is especially useful for:

  1. Getting quick statistics about refund operations
  2. Monitoring refund volumes by status
  3. Building dashboards with refund metrics

Request Parameters

Public Request Parameters

📘

Query Parameters

ParameterTypeRequiredDescriptionExample
order_idsarray[string]NoFilter by order IDs (max 10)["ord_123","ord_456"]
refund_order_idsarray[string]NoFilter by refund record IDs (max 20)["ref_123","ref_456"]
refund_statusesarray[string]NoFilter by status: pending, finished, failed["finished","failed"]
created_at_startstringNoFilter records created after (ISO 8601)"2025-01-01T00:00:00Z"
created_at_endstringNoFilter records created before (ISO 8601)"2025-01-31T23:59:59Z"
updated_at_startstringNoFilter records updated after (ISO 8601)"2025-01-15T00:00:00Z"
updated_at_endstringNoFilter records updated before (ISO 8601)"2025-01-15T23:59:59Z"

Response Explanation

Public Response Parameters

📘

Successful Response

ParameterTypeExampleDescription
codestring"success"API response status code
messagestring"Count retrieved"Response message
data.countint3215Total count of matching refund records

Error Response

FieldTypeExampleDescription
codestringInvalidParameterError http message
messagestringError message
Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!