Testing a Simple Transaction in the Sandbox

Before you integrate the API with your checkout process, you can test a simple transaction.

To model and test a basic transaction, complete the following steps:

  1. Download Postman or another application that you can use to send requests.

  2. To store a transaction, use a POST method and the following URL. The transaction details are specified in the JSON that is attached to the request.

https://seller-transaction-api.sandbox.marketplace.taxamo.com/api/v3/seller/transactions

The transaction details are specified in the JSON that is attached to the request. For example:

"transaction": {

    "currency_code": "EUR",
    "buyer_name": "Kate Smith",
    "ship_to_address": {
      "street_name": "1 Main Street",
      "address_detail": "City West",
      "city": "Dublin",
      "postal_code": "PT1 2345",
      "country_code": "IE"
    },

    "transaction_lines": [
      {
        "product_class": "P",
        "quantity": 1,
        "description": "Coat",
        "amount": "62.99",
        "custom_id": "51315A00-DC44-408E-A575-8CE42A32AE1B",
        "ship_from_address": {
          "country_code": "CN"
        },
        "product_cn_code": "0810000000"
      }

    ]
  }
}
  1. Process the payment. This is outside of Taxamo.

  2. To confirm the transaction, use a POST method and the following URL:

https://seller-transaction-api.sandbox.marketplace.taxamo.com/api/v3/seller/transactions/{key}/confirm

where {key} is the identifier for the transaction that you want to confirm.



If you need further help, contact support at https://www.vertexinc.com/en-gb/support-services/taxamo-customer-support.

Did this page help you?