Tax document
api reference returns a pdf of the requested tax document in raw format using the document id returned from the tax document list docid\ t5k0qew58pettey4qlg2j call important only pull documents as needed if you want to pull a large number of documents, speak to your relationship manager the irs requires cross river to provide account holders with an irs form 1099 for earnings equal to or greater than $10 00, per taxpayer identification number (tin) should the customer have more than one account, the system generates a 1099 for each account if the earnings of all accounts total $10 00 or more { "name" "endpoint /core/v1/dda/accounts/{accountnumber}/tax documents/{id}", "method" "get", "url" "https //sandbox crbcos com/core/v1/dda/accounts/{accountnumber}/tax documents/{id}", "description" "", "tab" "examples", "examples" { "languages" \[ { "id" "gxsvkh6ku2vtj4t65tp6d", "language" "curl", "code" "curl location 'https //sandbox crbcos com/core/v1/dda/accounts/2203250853/tax documents/1f7e9138 9300 4c83 b911 715a53ff0f9d' \\\\\n header 'authorization bearer \<token>'", "customlabel" "" }, { "id" "nhsfnxcu1l sk4iizhwfg", "language" "nodejs", "code" "var https = require('follow redirects') https;\nvar fs = require('fs');\n\nvar options = {\n 'method' 'get',\n 'hostname' 'sandbox crbcos com',\n 'path' '/core/v1/dda/accounts/2203250853/tax documents/1f7e9138 9300 4c83 b911 715a53ff0f9d',\n 'headers' {\n 'authorization' 'bearer \<token>'\n },\n 'maxredirects' 20\n};\n\nvar req = https request(options, function (res) {\n var chunks = \[];\n\n res on(\\"data\\", function (chunk) {\n chunks push(chunk);\n });\n\n res on(\\"end\\", function (chunk) {\n var body = buffer concat(chunks);\n console log(body tostring());\n });\n\n res on(\\"error\\", function (error) {\n console error(error);\n });\n});\n\nreq end();", "customlabel" "" }, { "id" "6uhjy y2fpqrsdlln0a2t", "language" "python", "code" "import http client\n\nconn = http client httpsconnection(\\"sandbox crbcos com\\")\npayload = ''\nheaders = {\n 'authorization' 'bearer \<token>'\n}\nconn request(\\"get\\", \\"/core/v1/dda/accounts/2203250853/tax documents/1f7e9138 9300 4c83 b911 715a53ff0f9d\\", payload, headers)\nres = conn getresponse()\ndata = res read()\nprint(data decode(\\"utf 8\\"))", "customlabel" "" }, { "id" "hueubrcfjl2hqdbsp4dpm", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //sandbox crbcos com/core/v1/dda/accounts/2203250853/tax documents/1f7e9138 9300 4c83 b911 715a53ff0f9d\\")\n\nhttps = net http new(url host, url port)\nhttps use ssl = true\n\nrequest = net http get new(url)\nrequest\[\\"authorization\\"] = \\"bearer \<token>\\"\n\nresponse = https request(request)\nputs response read body\n", "customlabel" "" }, { "id" "a9v7tv5h rpj 1nxfio z", "language" "go", "code" "package main\n\nimport (\n \\"fmt\\"\n \\"net/http\"\n \\"io\\"\n)\n\nfunc main() {\n\n url = \\"https //sandbox crbcos com/core/v1/dda/accounts/2203250853/tax documents/1f7e9138 9300 4c83 b911 715a53ff0f9d\\"\n method = \\"get\\"\n\n client = \&http client {\n }\n req, err = http newrequest(method, url, nil)\n\n if err != nil {\n fmt println(err)\n return\n }\n req header add(\\"authorization\\", \\"bearer \<token>\\")\n\n res, err = client do(req)\n if err != nil {\n fmt println(err)\n return\n }\n defer res body close()\n\n body, err = io readall(res body)\n if err != nil {\n fmt println(err)\n return\n }\n fmt println(string(body))\n}", "customlabel" "" } ], "selectedlanguageid" "a9v7tv5h rpj 1nxfio z" }, "results" { "languages" \[ { "id" "6uf2p2j461olokqtka6jg", "language" "200", "customlabel" "", "code" "returns a pdf" } ], "selectedlanguageid" "6uf2p2j461olokqtka6jg" }, "request" { "pathparameters" \[ { "name" "accountnumber", "kind" "required", "type" "string", "description" "number of the customer's account that earns tax reportable income", "children" \[] }, { "name" "id", "kind" "required", "type" "string", "description" "the document id returned in a get tax documents query for the specific desired document ", "" "the document id returned in a get tax documents query for the specific desired document " } ], "queryparameters" \[], "headerparameters" \[], "bodydataparameters" \[], "formdataparameters" \[] }, "currentnewparameter" { "label" "path parameter", "value" "pathparameters" }, "response" \[ { "name" "pdf", "kind" "optional", "type" "string", "description" "the response contains the actual pdf of the requested tax document in raw format " } ], "hastryitout" false, "autogeneratedanchorslug" "endpoint corev1ddaaccountsaccountnumbertax documen", "legacyhash" "dxh1ny zq8h1hrfflmi o" }