Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Next »

Get invoice item by invoice number

Resource information

Response format(s)

JSON

Requires authentication?

Yes using API key

Request Header

Name

Value

Content-Type

application/json

x-api-key

S93Hrwp5w7J9kJRBfFgjAcexLTKvLHBY

Returns

Returns invoice item detail

Response

Field

Type

Description

InvoiceNumber

string

Invoice Number

Quantity

decimal(18,6)

Total

decimal(18,6)

Total amount payable

IssuedDate

DateTime

Date time utc format

DueDate

DateTime

Date time utc format

PaidDate

DateTime

Date time utc format

Type

string

Type Of Invoice

TypeDescription

string

SubTotal

decimal(18,6)

Sub Total

TotalFee

decimal(18,6)

Total Fee

TotalReceivable

decimal(18,6)

Total Receivable

CurrenyCode

string

Currency code of Sell Order

CurrencySymbolic

string

TaxPercent

decimal(18,6)

Tax Percentage

TaxAmount

decimal(18,6)

Tax Amount

Status

string

StatusDescription

string

CreatedTime

DateTime

Date time utc format

UpdatedTime

DateTime

Date time utc format

CurrentPage

int

TotalPage

int

TotalRow

int

ItemsPerPage

int

Response Items

Field

Type

Description

DeviceName

string

Name of Device

Vintage

int

CountryCode

string

Quantity

decimal(18,6)

UnitPrice

decimal(18,6)

TotalPrice

decimal(18,6)

Description

string

Request

GET /rehash/v1/invoices/INV-REAP-2023-07-12-00028

Response

Success:

{
  "Data": 
  {
    "Fees": 0,
    "Tax": 8,
    "TaxPercentage": 0.08,
    "Receiver": {
      "CompanyName": "REDEX Pte. Ltd.",
      "RegistrationNumber": "201834016K",
      "Address": "Blk 71 Ayer Rajah Crescent",
      "BankName": "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"
    },
    "Items": [
      {
        "DeviceName": "T-RECSolar VNTSTK3R2",
        "Vintage": 2023,
        "CountryCode": "VN",
        "Quantity": 10,
        "UnitPrice": 10,
        "TotalPrice": 100,
        "Description": null
      },
    ],
    "InvoiceNumber": "INV-REAP-2023-07-12-00028",
    "Quantity": 10,
    "Total": 108,
    "IssuedDate": "2023-07-12T07:34:49.3535469",
    "DueDate": "2023-07-21T23:59:59.9999999",
    "PaidDate": "2023-07-12T07:43:25",
    "Type": "Trading",
    "TypeDescription": null,
    "SubTotal": 100,
    "TotalFee": 0,
    "TotalReceivable": 0,
    "CreatedTime": "2023-07-12T07:34:49.743",
    "UpdatedTime": "2023-07-12T07:43:55.193",
    "CurrencyCode": "USD",
    "CurrencySymbolic": "$",
    "TaxPercent": 0,
    "TaxAmount": 0,
    "Status": "Paid",
    "StatusDescription": "Paid",
  }
  "StatusCode": 200,
  "Message": "Success"
}

Error:

{
  "Data": null,
  "StatusCode": 404,
  "Message": "Not Found"
}
  • No labels