Testing the API Integration
After you complete the configuration, you need to test it.
The test cases here are grouped together so you can test the features that you use. You may not need all of these or you may need more, depending on your implementation.
Caution
These test cases are suggested tests based on a typical installation. You also need to consider your own needs and create test cases to suit.
Connections
Name | Description |
---|---|
Connection and Authentication in the Sandbox | To confirm that the connection to the Sandbox environment is correct, verify that the correct x-marketplace-seller-token token has been used to connect to the correct endpoint. You must also configure the test credit card details to authenticate a valid request. |
Connection and Authentication in Production | To confirm that connection to the Production environment is correct, verify that the correct x-marketplace-seller-token token has been used to connect to the correct endpoint. You must also configure your credit card details to authenticate a valid request.See API Authentication. |
Transactions
After you create and confirm transactions using the API, you can view these in the dashboard in the Transaction List UI. To view it, go to TRANSACTIONS -> LIST.
If you click on a transaction, you can drill down to the details page where you can view the fields that are included in the transaction.
Name | Description |
---|---|
EU Tax Liability | Test that transactions for each EU country (where you expect Taxamo to have the liability) use the expected VAT rate. |
Confirmed and Stored Transactions | Test that the transactions are stored and confirmed by the service. |
IOSS | For transactions that are confirmed by the service and where Taxamo has the liability, the ioss_number field is returned in the response from the API. Ensure that this is received and captured by your system. The IOSS number needs to be provided to the parcel carrier. |
Shipping Locations | Test that the correct Ship to and Ship from country is provided in the transaction to the service. |
Price Inclusivity and Exclusivity | Test price inclusivity or exclusivity. You may include the VAT in the displayed amount on page on your site or not. Test one or both of the following as required: Test an order that where the price displayed includes the tax. Test an order where the price displayed does not include the tax. |
Custom IDs | Add your custom_id to the transaction to ensure your order reference is stored along with the transaction information. This ID is intended as a means for you to track the transaction in your system. |
Multiple Line Orders - Tax Liability Note: Multiple-line orders means an order with more than one transaction line. | Check an order with multiple lines that the VAT is added correctly. |
Multiple Line Orders - Transaction | Check an order with multiple lines is stored and confirmed in the service. |
Multiple Line Orders - Invoices | Check the order with multiple lines creates an email with invoice to your test buyer. |
Multiple Site Currencies | If your site allows sales in more than one currency, check that the appropriate currency code is sent in the transaction for each code. See Supported Countries and Currencies. |
Currency Codes | Check the price in another currency to ensure the correct currency code is passed. |
Invoices and Credit Notes
In the case of refunds, a credit note is issued against the original invoice.
Name | Description |
---|---|
Invoices or Credit Notes (Test Buyer) | Test that the invoices or credit notes are sent to the test buyer. |
Tax Liability
Information
You also test the tax liability for transactions in the Transactions test cases section.
Name | Description |
---|---|
Unsupported Countries | Test a country that the service does not support. For example, create a transaction that is shipped to a country outside the EU. Ensure that your system handles these transactions and they are not sent to the service. |
Taxamo is not Liable | Create an order where Taxamo is not liable. For example, a consignment of 160 EUR sent to Ireland. |
Shipping (Postage)
Name | Description |
---|---|
Shipping | Test an order that includes shipping, ensure shipping is added as product_class=S and is taxed appropriately. |
Shipping - Order Confirmation and Storage | Check the order with shipping is stored and confirmed by the service. |
Shipping - Line Item Descriptions | Check that the invoice includes shipping and the line item description displays as expected. |
Product Classification
Name | Description |
---|---|
Product Classification Codes | If you want to avail of reduced rates for applicable goods, you need to add a Product Code to your requests. See Configuring Product Codes. |
Refunds
See Configuring Refunds.
Name | Description |
---|---|
Partial Refund | Create a partial refund. Ensure the refund is confirmed in the service and a credit note is generated and received by your test buyer. |
Full Refund | Create a full refund. Ensure the refund is confirmed in the service and a credit note is generated and received by your test buyer. |
Error Testing
See Handling Errors.
Name | Description |
---|---|
Error Messages | Create an error to ensure that error messages are handled correctly. |
Billing
See Configuring Billing Information.
Name | Description |
---|---|
Sandbox Credit Card | Confirm that a test credit card has been selected on the billing page on the sandbox. |
Production Credit Card | Confirm that you have added your actual credit card details on the billing page in your production account. |
Updated over 1 year ago