Skip to main content
POST
/
dsf
/
tickets
/
requested-data
curl --request POST \
  --url https://panel.sendcloud.sc/api/v3/dsf/tickets/requested-data \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "request_id": 144,
  "comment": "Sales invoice",
  "attachments": [
    {
      "file_token": "4b08344f-8325-40df-8273-c0c31c412bb0"
    }
  ]
}
'
For the sales_data type, detailed sales data is expected, including item descriptions, quantities, prices, and tax rates. The data has to be passed as a valid JSON object under the sales_data key of the payload. A file object is expected for the following data_type’s: sales_invoice, purchase_invoice, claim_letter. Files are expected to be passed in the attachments array.

Authorizations

Authorization
string
header
required

Basic Authentication using API key and secrets is currently the main authentication mechanism.

Body

application/json
request_id
integer
required

The id of the requested data. You can get it from the /related-data GET endpoint

comment
string | null

Optional comment input from the user.

attachments
object[]

List of file tokens that will be uploaded as the requested-data. To generate the file tokens, use the Upload a file or Generate Documents endpoints.

sales_data
object[]

Detailed sales information for each item in the shipment. Required when data_type is sales_data. Pass force parameter if sales data has a large total amount.

force
boolean
default:false

Bypasses the maximum invoice amount validation (5000 EUR). Only use this when strictly necessary, as the validation exists to prevent erroneous invoices.

Response

Data was uploaded successfully.