Numeral

App · 15 actions

Quote sales tax, look up exchange rates and read Numeral tax records.

Actions

ActionWhat it does
Calculate sales taxQuote sales tax for an order using its destination and line items.
Check the Numeral connectionCheck access and see whether the key is for test or production.
Create a tax customerCreate a customer for tax calculations and reporting.
Delete a recorded saleDelete a transaction recorded by mistake.
Delete a tax customerDelete a customer using their Numeral ID.
Get a daily exchange rateLook up the rate between two currencies on a past date.
Get a productRead the name and tax category for a product.
Get a recorded saleRead a tax transaction and its line items.
Get a tax customerLook up a customer by their Numeral ID or your own reference ID.
List productsRead up to 50 products and the cursor for the next page.
List refunds for a saleRead the refunds associated with a tax transaction.
Record a refundRecord a full or partial tax refund against a sale.
Record a saleRecord a paid order for tax reporting using its Numeral calculation.
Reverse a refundReverse a refund recorded by mistake.
Update a tax customerChange a customer’s name, email or tax exemption.

Calculate sales tax

Quote sales tax for an order using its destination and line items.

Inputs

Address line 1address_line_1textRequired
Street address.
Address line 2address_line_2text
Apartment or suite.
Address cityaddress_citytextRequired
City.
Address provinceaddress_provincetextRequired
State or province code.
Address postal codeaddress_postal_codetext
Postal code. Required for US and Canadian addresses.
Address countryaddress_countrytextRequired
Country of the destination address.One of: US, CA, AT, BE, BG, HR, CZ, DE, DK, EE, and 18 more.
Address typeaddress_typetextRequired
Kind of destination address.One of: shipping, billing.
CurrencycurrencytextRequired
Three-letter currency code for the order.
Tax includedtax_includedtrue/false
Whether line amounts already include tax.
Line itemsline_itemslistRequired
Order line items with amount in the currency’s smallest unit, quantity and product ID or fallback tax category.

Outputs

dataobject
The response from Numeral.
Example output
{
  "data": {
    "id": "example",
    "line_items": [
      {}
    ],
    "total_amount_excluding_tax": 1,
    "total_amount_including_tax": 1,
    "total_tax_amount": 1
  }
}

Check the Numeral connection

Check access and see whether the key is for test or production.

Inputs

None.

Outputs

dataobject
The response from Numeral.
Example output
{
  "data": {
    "api_version": "example",
    "env": "example",
    "status": "example",
    "timestamp": "example"
  }
}

Create a tax customer

Create a customer for tax calculations and reporting.

Inputs

EmailemailtextRequired
Customer email address.
Namenametext
Customer name.
Reference customer IDreference_customer_idtext
Your own ID for this customer.
Is tax exemptis_tax_exempttrue/false
Treat this customer as tax exempt.

Outputs

dataobject
The response from Numeral.
Example output
{
  "data": {
    "email": "example",
    "id": "example",
    "is_tax_exempt": true,
    "name": "example",
    "reference_customer_id": "example"
  }
}

Delete a recorded sale

Delete a transaction recorded by mistake. Use Record a refund to report a return.

Inputs

Transaction IDtransaction_idtextRequired
Numeral transaction ID.

Outputs

dataobject
The response from Numeral.
Example output
{
  "data": {
    "deleted_at": 1,
    "object": "example"
  }
}

Delete a tax customer

Delete a customer using their Numeral ID.

Inputs

Customer IDcustomer_idtextRequired
Numeral customer ID.

Outputs

dataobject
The response from Numeral.
Example output
{
  "data": {
    "deleted_at": 1,
    "object": "example"
  }
}

Get a daily exchange rate

Look up the rate between two currencies on a past date.

Inputs

DatedatedateRequired
Date of the exchange rate.
Base currencybase_currencytextRequired
Three-letter currency code to convert from.
Target currencytarget_currencytextRequired
Three-letter currency code to convert to.

Outputs

dataobject
The response from Numeral.
Example output
{
  "data": {
    "base_currency": "example",
    "date": "example",
    "rate": 1,
    "target_currency": "example"
  }
}

Get a product

Read the name and tax category for a product.

Inputs

Product IDproduct_idtextRequired
Product id.

Outputs

dataobject
The response from Numeral.
Example output
{
  "data": {
    "created_at": 1,
    "product_category": "example",
    "reference_product_id": "example",
    "reference_product_name": "example",
    "testmode": true,
    "updated_at": 1
  }
}

Get a recorded sale

Read a tax transaction and its line items.

Inputs

Transaction IDtransaction_idtextRequired
Numeral transaction ID.

Outputs

dataobject
The response from Numeral.
Example output
{
  "data": {
    "calculation_id": "example",
    "id": "example",
    "line_items": [
      {}
    ],
    "reference_order_id": "example",
    "testmode": true,
    "transaction_processed_at": 1
  }
}

Get a tax customer

Look up a customer by their Numeral ID or your own reference ID.

Inputs

Customer IDcustomer_idtextRequired
Numeral customer ID.
ID typeid_typetext
Which kind of customer ID to look up.One of: id, reference_customer_id (Reference customer id).

Outputs

dataobject
The response from Numeral.
Example output
{
  "data": {
    "email": "example",
    "id": "example",
    "is_tax_exempt": true,
    "name": "example",
    "reference_customer_id": "example"
  }
}

List products

Read up to 50 products and the cursor for the next page.

Inputs

Cursorcursortext
Last product ID from the previous page.

Outputs

dataobject
The response from Numeral.
Example output
{
  "data": {
    "has_more": true,
    "last_product_id": "example",
    "products": [
      {
        "created_at": 1,
        "product_category": "example",
        "reference_product_id": "example",
        "reference_product_name": "example",
        "testmode": true,
        "updated_at": 1
      }
    ]
  }
}

List refunds for a sale

Read the refunds associated with a tax transaction.

Inputs

Transaction IDtransaction_idtextRequired
Numeral transaction ID.

Outputs

dataobject
The response from Numeral.
Example output
{
  "data": {
    "refunds": [
      {
        "id": "example",
        "line_items": [
          {}
        ],
        "refund_processed_at": 1,
        "testmode": true
      }
    ]
  }
}

Record a refund

Record a full or partial tax refund against a sale.

Inputs

Transaction IDtransaction_idtextRequired
Numeral ID of the sale to refund.
Refund typerefund_typetextRequired
Whether the refund is full or partial.One of: full, partial.
Refund processed atrefund_processed_atdate and time
Date and time when the refund was made.
Line itemsline_itemslist
For partial refunds, provide the refunded line items.

Outputs

dataobject
The response from Numeral.
Example output
{
  "data": {
    "id": "example",
    "line_items": [
      {}
    ],
    "refund_processed_at": 1,
    "testmode": true
  }
}

Record a sale

Record a paid order for tax reporting using its Numeral calculation.

Inputs

Calculation IDcalculation_idtextRequired
ID from Calculate sales tax.
Reference order IDreference_order_idtextRequired
Your order ID.
Transaction processed attransaction_processed_atdate and time
Date and time when the order was paid.
Metadatametadataobject
Additional text values to store with the sale.

Outputs

dataobject
The response from Numeral.
Example output
{
  "data": {
    "calculation_id": "example",
    "id": "example",
    "line_items": [
      {}
    ],
    "reference_order_id": "example",
    "testmode": true,
    "transaction_processed_at": 1
  }
}

Reverse a refund

Reverse a refund recorded by mistake.

Inputs

Refund IDrefund_idtextRequired
Numeral ID of the refund to reverse.

Outputs

dataobject
The response from Numeral.
Example output
{
  "data": {
    "id": "example",
    "line_items": [
      {}
    ],
    "refund_processed_at": 1,
    "testmode": true
  }
}

Update a tax customer

Change a customer’s name, email or tax exemption.

Inputs

Customer IDcustomer_idtextRequired
Numeral customer ID.
Emailemailtext
Customer email address.
Namenametext
Customer name.
Reference customer IDreference_customer_idtext
Your own ID for this customer.
Is tax exemptis_tax_exempttrue/false
Treat this customer as tax exempt.

Outputs

dataobject
The response from Numeral.
Example output
{
  "data": {
    "email": "example",
    "id": "example",
    "is_tax_exempt": true,
    "name": "example",
    "reference_customer_id": "example"
  }
}

On this page