{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-docs/sidebars.yaml","api-docs-apis/openapi.yaml":"api-docs-apis/openapi.yaml"},"props":{"metadata":{"markdoc":{"tagList":["replay-openapi","openapi-response-sample"]},"type":"markdown"},"seo":{"title":"Reefpay Docs","description":"Reefpay is the groundbreaking payment gateway that lets you integrate with the future of payments."},"dynamicMarkdocComponents":["openapi"],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"record-tax","__idx":0},"children":["Record tax"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tax_amount"]}," records how much of a transaction is tax. The gateway keeps it with the transaction and returns it on every read, so your reports can show the tax on each sale without a lookup in your own system."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"the-one-rule-that-matters","__idx":1},"children":["The one rule that matters"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["amount"]}," is the whole charge. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tax_amount"]}," says how much of it is tax."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The two are not added together. A 100.00 sale with 5.00 of tax is:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"amount\": 10500,\n  \"tax_amount\": 500\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The cardholder is charged 105.00. Sending ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"amount\": 10000, \"tax_amount\": 500"]}," charges them 100.00 and reports 5.00 of it as tax."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Both fields are integers in cents. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tax_amount"]}," is optional and runs from 0 to 99,999,999. A negative value returns ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["400"]}," with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["INVALID_REQUEST_DATA"]},"."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tax_amount"]}," is for reporting only."]}," The gateway does not check it against ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["amount"]},", so a value larger than the charge is accepted as sent. Make sure your own figures add up before you send them."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"before-you-start","__idx":2},"children":["Before you start"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["You can already create a transaction. See ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/payments/accept-a-card-payment"},"children":["Accept a card payment"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tax_amount"]}," works on every transaction you create: a card sale, a card authorization, an ACH sale and a payout."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"on-a-sale","__idx":3},"children":["On a sale"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Send ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tax_amount"]}," with the rest of the transaction."]},{"$$mdtype":"Tag","name":"ReplayOpenApi","attributes":{"descriptionFile":"api-docs-apis/openapi.yaml","operationId":"createTransaction","exampleKey":"saleWithTax","parameters":{},"options":{},"environments":{}},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["A sale can carry a tip and tax together. Both are parts of ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["amount"]},", and each is reported on its own. See ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/payments/add-a-tip"},"children":["Add a tip"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"on-an-authorization","__idx":4},"children":["On an authorization"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Send ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tax_amount"]}," when you authorize. The capture request has no ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tax_amount"]}," of its own, and the capture reports the value from the authorization it captures."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["So if the tax depends on the final total, work it out before you authorize. ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/payments/authorize-and-capture"},"children":["Authorize and capture"]}," covers the rest of that flow."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"what-comes-back","__idx":5},"children":["What comes back"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The response echoes ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tax_amount"]}," alongside ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["amount"]},", and so does every later read of the transaction, including ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /v1/transactions"]},"."]},{"$$mdtype":"Tag","name":"OpenApiResponseSample","attributes":{"descriptionFile":"api-docs-apis/openapi.yaml","operationId":"createTransaction","exampleKey":"saleWithTax","responseSamplesResolved":[{"lang":"json","title":"200 application/json","source":"{\n  \"id\": \"TRANSACTION-01KEW3J8QD2N5V7X4ZRB6TMC1P\",\n  \"reference_transaction_id\": null,\n  \"type\": \"SALE\",\n  \"result\": \"APPROVED\",\n  \"client_id\": \"CLIENT-01KFDKXMQ637EKEAY410MSQSXB\",\n  \"client_dba\": \"Acme Jewelry\",\n  \"integrations\": [\n    \"TSYS\"\n  ],\n  \"response_code\": \"00\",\n  \"response_description\": \"Approved\",\n  \"batch_id\": null,\n  \"is_settled\": false,\n  \"time_created\": \"2026-07-15T18:33:46Z\",\n  \"amount\": 10500,\n  \"tip\": 0,\n  \"tax_amount\": 500,\n  \"currency\": \"USD\",\n  \"payment_method\": {\n    \"type\": \"CARD\",\n    \"truncated_pan\": \"****-****-****-5439\",\n    \"payment_token\": \"CARD_TOKEN-01KFDKXMQ637EKEAY410MSQSXB\",\n    \"expiry\": {\n      \"month\": \"01\",\n      \"year\": \"2028\"\n    },\n    \"first_name\": \"John\",\n    \"last_name\": \"Doe\",\n    \"entry_method\": \"ECOMMERCE\",\n    \"auth_code\": \"123456\",\n    \"retrieval_reference_number\": \"000000603081\",\n    \"card_type\": \"UNKNOWN\",\n    \"card_brand\": \"Visa\",\n    \"cvv_result_code\": \"M\",\n    \"avs_result_code\": \"Y\",\n    \"avs_response\": \"Exact Match - Street address and postal code match\"\n  },\n  \"recurring\": false,\n  \"initiator\": \"CUSTOMER\",\n  \"network_transaction_id\": \"000000004271008\",\n  \"metadata\": {\n    \"order_id\": \"ORD-10457\",\n    \"sales_channel\": \"web\",\n    \"customer_reference\": \"cust-8891\"\n  }\n}"},{"lang":"json","title":"400 application/json","source":"{\n  \"error_code\": \"INVALID_REQUEST_DATA\",\n  \"error_message\": \"The API request contains invalid data.\",\n  \"details\": {\n    \"amount\": \"Invalid amount\",\n    \"payment_method.pan\": \"Malformed PAN\"\n  },\n  \"source\": {\n    \"system\": \"TSYS\",\n    \"code\": \"13\",\n    \"message\": \"Invalid amount\"\n  }\n}"},{"lang":"json","title":"401 application/json","source":"{\n  \"error_code\": \"NOT_AUTHENTICATED\",\n  \"error_message\": \"Access credentials missing or invalid.\",\n  \"details\": null,\n  \"source\": null\n}"},{"lang":"json","title":"403 application/json","source":"{\n  \"error_code\": \"UNAUTHORIZED_ACTION\",\n  \"error_message\": \"Requested action is unavailable or forbidden.\",\n  \"details\": null,\n  \"source\": null\n}"},{"lang":"json","title":"409 application/json","source":"{\n  \"error_code\": \"DUPLICATE_ACTION\",\n  \"error_message\": \"Transaction already canceled.\",\n  \"details\": null,\n  \"source\": {\n    \"system\": \"TSYS\",\n    \"code\": \"79\",\n    \"message\": \"Already reversed at switch\"\n  }\n}"},{"lang":"json","title":"429 application/json","source":"{\n  \"error_code\": \"TOO_MANY_REQUESTS\",\n  \"error_message\": \"Rate limit exceeded. Please reduce request frequency and retry using exponential backoff.\",\n  \"details\": null,\n  \"source\": {\n    \"system\": \"VERICHECK\",\n    \"code\": \"TN043\",\n    \"message\": \"RATE_LIMITER_THRESHOLD You have exceeded the transaction request limit for this company ID.Try again after some time?\"\n  }\n}"},{"lang":"json","title":"500 application/json","source":"{\n  \"error_code\": \"SYSTEM_ERROR\",\n  \"error_message\": \"Internal system error.\",\n  \"details\": null,\n  \"source\": {\n    \"system\": \"TSYS\",\n    \"code\": \"96\",\n    \"message\": \"System malfunction\"\n  }\n}"},{"lang":"json","title":"502 application/json","source":"{\n  \"error_code\": \"DOWNSTREAM_ERROR\",\n  \"error_message\": \"Downstream service returned invalid or unexpected response.\",\n  \"details\": null,\n  \"source\": {\n    \"system\": \"VERICHECK\",\n    \"code\": \"502\",\n    \"message\": \"Bad Gateway\"\n  }\n}"},{"lang":"json","title":"503 application/json","source":"{\n  \"error_code\": \"PROCESSOR_UNAVAILABLE\",\n  \"error_message\": \"Processor is temporarily unavailable.\",\n  \"details\": null,\n  \"source\": {\n    \"system\": \"TSYS\",\n    \"code\": \"96\",\n    \"message\": \"System malfunction\"\n  }\n}"}]},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tax_amount"]}," is ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["null"]}," when none was sent, never ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["0"]},"."]}," That covers:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["a transaction created without a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tax_amount"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["every transaction created before ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tax_amount"]}," existed"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["every refund and void"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Read ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["null"]}," as \"not recorded\", not as \"no tax\". A sale you sent with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"tax_amount\": 0"]}," comes back as ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["0"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"next-steps","__idx":6},"children":["Next steps"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/payments/add-a-tip"},"children":["Add a tip"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/payments/authorize-and-capture"},"children":["Authorize and capture"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/after-the-payment/find-and-report-on-transactions"},"children":["Find and report on transactions"]}]}]}]},"headings":[{"value":"Record tax","id":"record-tax","depth":1},{"value":"The one rule that matters","id":"the-one-rule-that-matters","depth":2},{"value":"Before you start","id":"before-you-start","depth":2},{"value":"On a sale","id":"on-a-sale","depth":2},{"value":"On an authorization","id":"on-an-authorization","depth":2},{"value":"What comes back","id":"what-comes-back","depth":2},{"value":"Next steps","id":"next-steps","depth":2}],"frontmatter":{"title":"Record tax","shortTitle":"Record tax","intro":"Declare how much of a charge is tax, so it comes back on the transaction and in your reports.","type":"how-to","seo":{"title":""}},"lastModified":"2026-10-22T22:42:16.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/docs/payments/record-tax","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}