Numeral
App · 15 actions
Quote sales tax, look up exchange rates and read Numeral tax records.
Actions
| Action | What it does |
|---|---|
| Calculate sales tax | Quote sales tax for an order using its destination and line items. |
| Check the Numeral connection | Check access and see whether the key is for test or production. |
| Create a tax customer | Create a customer for tax calculations and reporting. |
| Delete a recorded sale | Delete a transaction recorded by mistake. |
| Delete a tax customer | Delete a customer using their Numeral ID. |
| Get a daily exchange rate | Look up the rate between two currencies on a past date. |
| Get a product | Read the name and tax category for a product. |
| Get a recorded sale | Read a tax transaction and its line items. |
| Get a tax customer | Look up a customer by their Numeral ID or your own reference ID. |
| List products | Read up to 50 products and the cursor for the next page. |
| List refunds for a sale | Read the refunds associated with a tax transaction. |
| Record a refund | Record a full or partial tax refund against a sale. |
| Record a sale | Record a paid order for tax reporting using its Numeral calculation. |
| Reverse a refund | Reverse a refund recorded by mistake. |
| Update a tax customer | Change 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 1
address_line_1textRequired - Street address.
- Address line 2
address_line_2text - Apartment or suite.
- Address city
address_citytextRequired - City.
- Address province
address_provincetextRequired - State or province code.
- Address postal code
address_postal_codetext - Postal code. Required for US and Canadian addresses.
- Address country
address_countrytextRequired - Country of the destination address.One of:
US,CA,AT,BE,BG,HR,CZ,DE,DK,EE, and 18 more. - Address type
address_typetextRequired - Kind of destination address.One of:
shipping,billing. - Currency
currencytextRequired - Three-letter currency code for the order.
- Tax included
tax_includedtrue/false - Whether line amounts already include tax.
- Line items
line_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
- Email
emailtextRequired - Customer email address.
- Name
nametext - Customer name.
- Reference customer ID
reference_customer_idtext - Your own ID for this customer.
- Is tax exempt
is_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 ID
transaction_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 ID
customer_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
- Date
datedateRequired - Date of the exchange rate.
- Base currency
base_currencytextRequired - Three-letter currency code to convert from.
- Target currency
target_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 ID
product_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 ID
transaction_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 ID
customer_idtextRequired - Numeral customer ID.
- ID type
id_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
- Cursor
cursortext - 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 ID
transaction_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 ID
transaction_idtextRequired - Numeral ID of the sale to refund.
- Refund type
refund_typetextRequired - Whether the refund is full or partial.One of:
full,partial. - Refund processed at
refund_processed_atdate and time - Date and time when the refund was made.
- Line items
line_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 ID
calculation_idtextRequired - ID from Calculate sales tax.
- Reference order ID
reference_order_idtextRequired - Your order ID.
- Transaction processed at
transaction_processed_atdate and time - Date and time when the order was paid.
- Metadata
metadataobject - 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 ID
refund_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 ID
customer_idtextRequired - Numeral customer ID.
- Email
emailtext - Customer email address.
- Name
nametext - Customer name.
- Reference customer ID
reference_customer_idtext - Your own ID for this customer.
- Is tax exempt
is_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"
}
}