application/json

Body

  • number string Required

    Unique identifier for the supplier.

  • name string Required
  • organizationalNumber string
  • city string
  • street string
  • postIndex string
  • country string
  • phone string
  • email string
  • website string
  • bankGiro string
  • postGiro string

Responses

  • 200 application/json

    Supplier successfully created

    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

    Supplier with same ID already exists

    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 /suppliers
curl \
 --request POST 'https://partner.trukks.se/supplierinvoices/suppliers' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"number":"string","name":"string","organizationalNumber":"string","city":"string","street":"string","postIndex":"string","country":"string","phone":"string","email":"string","website":"string","bankGiro":"string","postGiro":"string"}'
Request examples
{
  "number": "string",
  "name": "string",
  "organizationalNumber": "string",
  "city": "string",
  "street": "string",
  "postIndex": "string",
  "country": "string",
  "phone": "string",
  "email": "string",
  "website": "string",
  "bankGiro": "string",
  "postGiro": "string"
}
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"
}