Retrieve Tax Payment Receipts

Once a user’s Quarterly Tax PaymentQuarterly Tax Payment - A non-reversible IRS tax payment that Abound submits. Quarterly tax payments are initiated by calling the Tax Payments API endpoint. is successfully received by the IRS, the status will change to done, and the receipt for the Quarterly Tax PaymentQuarterly Tax Payment - A non-reversible IRS tax payment that Abound submits. Quarterly tax payments are initiated by calling the Tax Payments API endpoint. (called the 1040ES) can be retrieved directly from the Quarterly Tax PaymentQuarterly Tax Payment - A non-reversible IRS tax payment that Abound submits. Quarterly tax payments are initiated by calling the Tax Payments API endpoint. object. The following demonstrates the request/response of GET /users/{userId}/taxPayments/{taxPaymentId} API call, showing the document object (representing the 1040ES receipt) attached to the response:

curl \
  --request GET \
  --url https://sandbox-api.withabound.com/v2/users/<<testUserId>>/taxPayments/<<testTaxPaymentId>> \
  --header 'Authorization: Bearer <<apiKey>>'
const { default: Abound, Environment } = require("@withabound/node-sdk");

const abound = new Abound({
  appId: "<<sandbox_app_id>>",
  appSecret: "<<sandbox_app_secret>>",
  environment: Environment.SANDBOX,
  apiVersion: "v2",
});

(async () => {
  const response = await abound.taxPayments.retrieve(
    "<<testUserId>>",
    "<<testTaxPaymentId>>"
  );

  console.log(response);
})();
import requests

url = "https://sandbox-api.withabound.com/v2/users/<<testUserId>>/taxPayments/<<testTaxPaymentId>>"

headers = {
    "Accept": "application/json",
    "Authorization": "Bearer <<apiKey>>"
}

response = requests.request("GET", url, headers=headers)

print(response.text)
// import com.squareup.okhttp.*;

OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("https://sandbox-api.withabound.com/v2/users/<<testUserId>>/taxPayments/<<testTaxPaymentId>>")
  .get()
  .addHeader("Accept", "application/json")
  .addHeader("Authorization", "Bearer <<apiKey>>")
  .build();

Response response = client.newCall(request).execute();
package main

import (
    "fmt"
    "net/http"
    "io/ioutil"
)

func main() {

    url := "https://sandbox-api.withabound.com/v2/users/<<testUserId>>/taxPayments/<<testTaxPaymentId>>"

    req, _ := http.NewRequest("GET", url, nil)

    req.Header.Add("Accept", "application/json")
    req.Header.Add("Authorization", "Bearer <<apiKey>>")

    res, _ := http.DefaultClient.Do(req)

    defer res.Body.Close()
    body, _ := ioutil.ReadAll(res.Body)

    fmt.Println(res)
    fmt.Println(string(body))

}
// using RestSharp;

var client = new RestClient("https://sandbox-api.withabound.com/v2/users/<<testUserId>>/taxPayments/<<testTaxPaymentId>>");
var request = new RestRequest(Method.GET);
request.AddHeader("Accept", "application/json");
request.AddHeader("Authorization", "Bearer <<apiKey>>");
IRestResponse response = client.Execute(request);
require 'uri'
require 'net/http'
require 'openssl'

url = URI("https://sandbox-api.withabound.com/v2/users/<<testUserId>>/taxPayments/<<testTaxPaymentId>>")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Accept"] = 'application/json'
request["Authorization"] = 'Bearer <<apiKey>>'

response = http.request(request)
puts response.read_body
{
  "data": {
    "taxPaymentId": "<<testTaxPaymentId>>",
    "status": "done",
    "amount": 154.66,
    "period": "Q2",
    "year": "2020",
    "entity": "IRS",
    "document": {
      "documentURL": "https://tax-documents-sandbox.s3.us-west-2.amazonaws.com/test62ae93bafa6310aa9952e8b3bf5796443111/Form_1040ES_Y2020-Q2.pdf?AWSAccessKeyId=AKIA6C6AUYYBZMXK74XQ&Expires=1629919919&Signature=FzjK06DpBKpzBqRf3vYNTK%2FcwAg%3D",
      "documentName": "2020 Q2 Federal Estimated Tax Payment",
      "type": "1040ES",
      "year": "2020",
    },
    "paymentMethodId": "<<testPaymentMethodId>>",
    "createdDate": "2020-08-18"
  }
}

Congratulations! You’ve completed the entire lifecycle of a Quarterly Tax PaymentQuarterly Tax Payment - A non-reversible IRS tax payment that Abound submits. Quarterly tax payments are initiated by calling the Tax Payments API endpoint. and provided a UserUser - A single end-user of your application. Each user has a unique userId, which should be stored in your database and used to make API requests on behalf of this individual. with proof of the Quarterly Tax PaymentQuarterly Tax Payment - A non-reversible IRS tax payment that Abound submits. Quarterly tax payments are initiated by calling the Tax Payments API endpoint. to the IRS.


Did this page help you?