Skip to main content
GET
/
v1
/
charges
Get All Charges
curl --request GET \
  --url https://api.sandbox.hit-pay.com/v1/charges \
  --header 'X-BUSINESS-API-KEY: <x-business-api-key>'
{
  "data": [
    {
      "id": "<string>",
      "currency": "<string>",
      "home_currency": "<string>",
      "exchange_rate": "<string>",
      "amount": 123,
      "fixed_fee": 123,
      "discount_fee": 123,
      "discount_fee_rate": 123,
      "remark": "<unknown>",
      "status": "<string>",
      "payment_method": {
        "name": "<string>",
        "display_logo": {
          "sm": "<string>",
          "md": "<string>",
          "lg": "<string>",
          "svg": "<string>",
          "svg_square": "<string>",
          "png_square": "<string>",
          "method": "<string>",
          "iconName": "<string>",
          "displayName": "<string>"
        },
        "method_logo": {
          "sm": "<string>",
          "md": "<string>",
          "lg": "<string>",
          "svg": "<string>",
          "svg_square": "<string>",
          "png_square": "<string>",
          "method": "<string>",
          "iconName": "<string>",
          "displayName": "<string>"
        },
        "data": {
          "brand": "<string>",
          "last4": "<string>",
          "country_code": "<string>",
          "country": "<string>"
        }
      },
      "customer_id": "<string>",
      "customer": {
        "name": "<string>",
        "email": "<string>",
        "phone_number": "<unknown>"
      },
      "payment_request_id": "<unknown>",
      "webhook_status": true,
      "order_reference_number": "<string>",
      "executor": {
        "id": "<string>",
        "display_name": "<string>",
        "email": "<string>"
      },
      "location": {
        "id": "<string>",
        "name": "<string>",
        "address": "<string>"
      },
      "channel": "<string>",
      "admin_fee": true,
      "closed_at": "<string>",
      "created_at": "<string>",
      "updated_at": "<string>"
    }
  ],
  "links": {
    "first": "<unknown>",
    "last": "<unknown>",
    "prev": "<unknown>",
    "next": "<string>"
  },
  "meta": {
    "path": "<string>",
    "per_page": 123,
    "next_cursor": "<string>",
    "prev_cursor": "<unknown>"
  }
}

Headers

X-BUSINESS-API-KEY
string
required
Example:

"b286daabf9921b5a01a4621f026c111e046f8911feba212996c92159b98427d"

Query Parameters

per_page
integer<int32>
default:25
cursor
string

The cursor parameter accepts a next_cursor value obtained from the previous response's meta object (meta.next_cursor). Use this parameter to fetch the next page of results when implementing pagination.

keywords
string

Search for fields: amount ,charge_id ,customer_email, remark

status
enum<string>

It's charge status

Available options:
succeeded,
failed,
refunded
location_ids
string<uuid>[]

The location ids

user_ids
string[]

The user's id, support both uuid and number id

statuses
enum<string>[]

It's charge status.

Available options:
success,
succeeded_manually,
pending,
failed,
refunded,
cancelled,
partially_refunded,
void
date_from
string

The from of created order

Example:

"2024-10-05"

date_to
string

The to of created order

Example:

"2024-10-05"

amount_from
number

The from of amount

Example:

100

amount_to
number

The to of amount

Example:

200

payment_request_id
string<uuid>

The payment request id

customer_id
string<uuid>

The customer id

Response

200 - application/json

Successful payment

data
object[]
required
meta
object
required