Skip to content
HisarPay

API reference

Objects

The objects the API returns, with every field. The endpoint pages link here.

Invoice

  • idstring (uuid)
  • object"invoice"
  • livemodeboolean
  • typestring

    Values:choicefixed

  • statusstring

    Values:pendingpartialpaidoverpaidexpiredcancelled

  • tokenstring· nullable
  • amountstring· nullable
  • paid_amountstring
  • remaining_amountstring· nullable
  • overpaid_amountstring
  • underpaid_amountstring
  • price_amountstring· nullable
  • price_currencystring· nullable
  • rate_usdstring· nullable
  • allowed_tokensarray<string>
  • network_feestring
  • fee_paid_by_customerboolean
  • commission_addedstring
  • order_idstring· nullable
  • descriptionstring· nullable
  • metadataobject
  • addressstring· nullable
  • payment_urlstring
  • success_urlstring· nullable
  • return_urlstring· nullable
  • callback_urlstring· nullable
  • payment_link_idnumber· nullable
  • customer_emailstring· nullable
  • payerobject· nullable

    What the payer entered on a payment link

    • namestring· nullable
    • notestring· nullable
  • expires_atstring
  • paid_atstring· nullable
  • created_atstring
  • paymentsarray<object>
    • idstring
    • txidstring
    • tokenstring
    • amountstring
    • fromstring· nullable
    • statusstring
    • confirmationsnumber
    • lateboolean
    • repricedobject· nullable
      • previous_amountstring
      • amountstring
      • rate_usdstring
    • usd_valuestring· nullable
    • block_numbernumber· nullable
    • block_timestring· nullable
    • simulatedboolean
    • created_atstring

Withdrawal

  • idstring
  • object"withdrawal"
  • statusstring

    Values:pending_reviewqueuedprocessingcompletedfailedrejected

  • sourcestring
  • tokenstring
  • amountstring
  • feestring
  • to_addressstring
  • idempotency_keystring· nullable
  • notestring· nullable
  • refund_ofstring· nullable

    The invoice this withdrawal pays back

  • txidstring· nullable
  • errorstring· nullable
  • failure_codestring· nullable

    Stable reason behind error while the withdrawal waits for review or after it failed

    Values:merchant_not_foundmerchant_suspendedmerchant_not_activemerchant_frozensecurity_lockaddress_lockpaid_transaction_foundpaid_by_handdestination_screenedsigner_per_tx_limitsigner_refusedbroadcast_rejectedfailed_on_chainpayout_errorrejected_in_review

  • created_atstring
  • completed_atstring· nullable

Report

  • idstring (uuid)
  • object"report"
  • livemodeboolean
  • kindstring
  • formatstring

    Values:csvxlsxpdf

  • langstring
  • statusstring

    Values:pendingprocessingreadyfailed

  • filtersobject
    • fromstring· nullable
    • tostring· nullable
    • statusarray<string>
  • row_countnumber· nullable
  • filenamestring· nullable
  • download_urlstring· nullable

    Authenticated with the same API key; set once status is ready.

  • created_atstring
  • completed_atstring· nullable
  • expires_atstring

    The file is deleted after this time.