Przejdź do głównej zawartości

Zaktualizuj załącznik zamówienia

PUT
/api/v3/Orders/{orderId}/Attachments/{attachmentId}
curl --request PUT \
--url https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v3/Orders/1/Attachments/1 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "invoiceNumber": "example" }'

Zmienia metadane załącznika (np. typ, numer faktury).

orderId
wymagane
integer format: int64
attachmentId
wymagane
integer format: int64
object
invoiceNumber
string
nullable
Examplegenerated
{
"invoiceNumber": "example"
}

Success

Typ treściapplication/json
object
id
integer format: int64
orderId
integer format: int64
contentType
string
nullable
fileName
string
nullable
uri
string
nullable
bytesSize
integer format: int64
status
string
nullable
uploadType
string
nullable
invoiceNumber
string
nullable
ksef
object
number
string
nullable
Examplegenerated
{
"id": 1,
"orderId": 1,
"contentType": "example",
"fileName": "example",
"uri": "example",
"bytesSize": 1,
"status": "example",
"uploadType": "example",
"invoiceNumber": "example",
"ksef": {
"number": "example"
}
}

Bad Request

Typ treściapplication/json
object
type
string
nullable
title
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
key
additional properties
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}

Not Found

Typ treściapplication/json
object
type
string
nullable
title
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
key
additional properties
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}