Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Get all invoices item by invoice number

Resource information

Response format(s)

JSON

Requires authentication?

Yes using API key

Request Header

Name

Value

X-Api-Key

S93Hrwp5w7J9kJRBfFgjAcexLTKvLHBY

Authorization

Bearer [access_token]

Accept-Account

a5c574c9-fe95-4983-f738-08db81308328

Parameters

StatusesinvoiceNumber

  • array[string]

  • query

Filter the items by statuses

  • Unpaid

  • Paid

  • Expired

  • Cancelled

  • Sending

  • Refunded

  • PaidFail

Types

  • array[string]

  • query

Filter the items by types

  • Trading

  • Retirement

  • DeListing

TransactionType

  • string

  • query

Filter the items by transaction type

  • AccountsPayable

  • AccountsReceivable

Search

  • string

  • query

Enter search data that can be used to search on each items. You can search by:

  • Invoice Number

CurrentPage

  • numeric

  • query

Request field for pagination. The Page that you wish to view

ItemPerPage

  • numeric

  • query

The total items that return in the response

OrderBy

  • string

  • query

Sorting field, Default sorting is get all items sort by CreatedDate Desc

Values:

  • CreatedDate

  • To Be Updated

IsDecending

  • boolean

  • query

Used in OrderBy

default: false

Returns

Returns all invoices item detail

Request

Status
colourGreen
titleGET
/rehash/v1/invoices

Request

Code Block?Statuses=Paid&Statuses=Sending&Types=Trading&TransactionType=AccountsPayable

/INV-REAP-2023-07-12-00028

Response

Success:

Code Block
languagejson
{
  "Data": 
  {
    "CurrentPageFees": 10,
    "TotalPageTax": 2407.06,
    "PageSizeTaxPercentage": 50,
0.08,
    "Payer": {
      "TotalRowCompanyName": 100,"REDEX Pte. Ltd.",
      "ResultsRegistrationNumber": [
    { "201834016K",
      "Address": "Blk 71 Ayer Rajah Crescent",
      "InvoiceNumberBankName": "INV-REAP-2023-07-13-00001"Oversea-Chinese Banking Corporation Limited",
      "PaymentType": "SwiftCode",
      "PaymentTypeDescription": "Outside US",
      "Currency": "USD",
      "BankAccountNumber": "601278732201",
      "ACHRoutingNumber": null,
      "BankAccountName": "Oversea-Chinese Banking Corporation Limited",
      "BankAccountType": "Checking",
      "BankAccountTypeDescription": "Checking",
      "SwiftCode": "OCBCSGSGXXX"
    },
    "Payee": {
      "CompanyName": "YENLE REGISTRANT SG",
      "RegistrationNumber": "17052023",
      "Address": "103 Amoy Street",
      "BankName": "DBS Bank Ltd Singapore",
      "PaymentType": "Aba",
      "PaymentTypeDescription": "Inside US",
      "Currency": "USD",
      "BankAccountNumber": "07267352811241212",
      "ACHRoutingNumber": "011000015",
      "BankAccountName": "axsxs avfvd",
      "BankAccountType": "Checking",
      "BankAccountTypeDescription": "Checking",
      "SwiftCode": null
    },
    "Items": [
      {
        "BusinessAccountName": "YENLE REGISTRANT SG",
        "AssetName": "T-RECSolar VNTSTK3R2",
        "Vintage": 2023,
        "FuelType": "Solar",
        "CountryCode": "VN",
        "CountryName": "Viet Nam",
        "Quantity": 90,
 10,
        "UnitPrice": 10,
        "TotalPrice": 100,
        "Description": null
      },
    ],
    "InvoiceNumber": "INV-REAP-2023-07-12-00028",
    "BusinessAccountName": null,
    "Quantity": 150,
    "Total": 12405495.2925,
      "IssuedDate": "2023-07-13T0312T07:34:49:46.16564853535469",
 
    "DueDate": "2023-07-22T2321T23:59:59.9999999",

     "PaidDate": null,
 "2023-07-12T07:43:25",
    "Type": "Trading",
 
    "TypeDescription": "Trading"null,
      "SubTotal": 11765088.3191,
 
    "TotalFee": 27.88650,
      "TotalReceivable": 1240.28350,
 
    "CreatedTime": "2023-07-13T0312T07:34:49:46.43743",
 
    "UpdatedTime": "2023-07-13T0312T07:5043:2255.88193",
      "WhiteLabelName": "REDEX"null,

     "CurrencyCode": "USD",
      "CurrencySymbolic": "$",
 
    "CurrencyDisplayFormat": "{CurrencyCode} {Symbolic}{Value}",
 
    "TaxPercent": 0.08,
 
    "TaxAmount": 91.870,
 
    "FeeCodeNumber": null,

     "Status": "UnpaidPaid",
      "StatusDescription": "UnpaidPaid",
      "ClientStatus": "UnpaidPaid"
   
  }
    ]
  },
  "StatusCode": 200,
  "Message": "Success"
}

Error:

Code Block
{
  "Data": null,
  "StatusCode": 400404,
  "Message": "BadNot requestFound"
}