GetTaxRegistrationDocument
Downloads your tax documents to the Amazon S3 bucket that you specify in your request.
Request Syntax
POST /GetTaxRegistrationDocument HTTP/1.1
Content-type: application/json
{
"destinationS3Location": {
"bucket": "string
",
"prefix": "string
"
},
"taxDocumentMetadata": {
"taxDocumentAccessToken": "string
",
"taxDocumentName": "string
"
}
}
URI Request Parameters
The request does not use any URI parameters.
Request Body
The request accepts the following data in JSON format.
- destinationS3Location
-
The Amazon S3 bucket that you specify to download your tax documents to.
Type: DestinationS3Location object
Required: No
- taxDocumentMetadata
-
The metadata for your tax document.
Type: TaxDocumentMetadata object
Required: Yes
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"destinationFilePath": "string",
"presignedS3Url": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
- destinationFilePath
-
The file path of the Amazon S3 bucket where you want to download your tax document to.
Type: String
Pattern:
^[\s\S]*$
- presignedS3Url
-
The Amazon S3 presigned URL of the tax registration document.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 200.
Pattern:
^https.*\S.*$
Errors
For information about the errors that are common to all actions, see Common Errors.
- InternalServerException
-
The exception thrown when an unexpected error occurs when processing a request.
HTTP Status Code: 500
- ValidationException
-
The exception when the input doesn't pass validation for at least one of the input parameters.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: