POST /supplierinvoices/attach
multipart/form-data

Body

  • supplierInvoiceId string Required

    Unique identifier in Trukks system for the supplier invoice.

  • fileName string Required
  • contentType string Required
  • content string(binary) Required

Responses

  • 200 application/json

    Attachment was successful

    Hide response attribute Show response attribute object
    • message string
  • 400 application/json

    Invalid input

    Hide response attributes Show response attributes object
    • traceId string

      Internal ID. Please provide this ID when contacting support

    • message string

      Message describing the error

  • 401

    Access token is missing or invalid

  • 409 application/json

    Invoice with supplierId and supplierInvoiceNumber not found

    Hide response attributes Show response attributes object
    • traceId string

      Internal ID. Please provide this ID when contacting support

    • message string

      Message describing the error

  • 500 application/json

    Internal error

    Hide response attributes Show response attributes object
    • traceId string

      Internal ID. Please provide this ID when contacting support

    • message string

      Message describing the error

POST /supplierinvoices/attach
curl \
 --request POST 'https://partner.trukks.se/supplierinvoices/supplierinvoices/attach' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: multipart/form-data" \
 --form "supplierInvoiceId=string" \
 --form "fileName=string" \
 --form "contentType=string" \
 --form "content=@file"
Response examples (200)
{
  "message": "string"
}
Response examples (400)
{
  "traceId": "string",
  "message": "string"
}
Response examples (409)
{
  "traceId": "string",
  "message": "string"
}
Response examples (500)
{
  "traceId": "string",
  "message": "string"
}