v1
latestOpenAPI 3.0.02026-07-132716.9 KBCreate classic upload URL(s)
Creates one or more URLs, each of which comes with a TTL (time-to-live) and can be used to upload a file. This variant requires both an SRN and an Information Type to be provided. The Information Type is used to identify the HMRC recipient of the files to be uploaded. Your HMRC contact will let you know if you need to use an Information Type.
Path parameters
Your organisation's unique SDES Reference Number (SRN). If you don't already have an SRN, it will be sent to you as part of registering to use the Secure Data Exchange Service (NB: this is separate to subscribing to this API).
The value indicates the HMRC recipient of the files to be uploaded. This will be sent to you as part of registering to use the Secure Data Exchange Service (NB: this is separate to subscribing to this API).
Headers
Specifies the response format and the version of the API to be used.
Specifies the format of the request body, which must be either XML or JSON. UTF-8 is the only valid character set.
Request body
Example request
[
{
"filename": "myfile.txt",
"metadata": [
{
"key": "reference",
"value": "B1234"
}
]
}
]Response
URL(s) created
Example response
[
{
"file": "myfile.txt",
"url": "https://www.hmrc-domain.com/6078e65d-0a4f-4ef9-8c88-ef4bb860419d"
}
]