Przejdź do głównej zawartości

Dodaj załącznik do zamówienia

POST
/api/v3/Orders/{orderId}/Attachments/{filename}
curl --request POST \
--url https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v3/Orders/1/Attachments/example \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/octet-stream' \
--data example

Wgrywa plik (np. fakturę PDF) jako załącznik zamówienia; w nagłówkach można przekazać typ załącznika oraz numer faktury i KSeF.

orderId
wymagane
integer format: int64
filename
wymagane
string
Upload-Type
string
Ksef-Number
string
Invoice-Number
string
string format: byte

Success

Typ treściapplication/json
object
id
integer format: int64
createdAt
string format: date-time
updatedAt
string format: date-time
payload
nullable
result
nullable
status
string
Dozwolone wartości: New InProgress Completed Failed
command
string
nullable
scope
string
nullable
scopeValue
string
nullable
silentMode
boolean
ajsChainId
string
nullable
ajsChainVisits
string
nullable
Example
{
"status": "New"
}