Update a goods issued note
const url = 'https://api.sancho-wms.pl/v1/goodsIssuedNotes.update';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"id":1,"integrationId":1,"values":{"kind":"external","subject":null,"warehouse":{"id":1,"name":"example","code":"example"},"operator":{"id":1,"name":"example"},"issueDate":"example","operationDate":"example","documentSymbol":"example","manualNumber":1,"currency":"example","exchangeRate":{"rate":1,"units":1,"date":"2026-04-15","sourceId":1},"note":"example","items":[{"lineId":null,"productId":1,"productCode":"example","productName":"example","quantity":1,"unit":"example","priceNet":1,"pricePrecision":2,"quantityPrecision":4,"valueNet":null,"allocations":[]}],"relatedDocuments":[],"source":null},"tags":[{"lineIndex":1,"identifiers":[{"id":"example","note":"example","tags":[{"id":1,"code":"example","note":"example","type":"qr","productId":1,"productKey":"example","productName":"example"}]}]}],"status":"draft","expectedSavedAt":"example","expectedModifiedAt":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.sancho-wms.pl/v1/goodsIssuedNotes.update \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "id": 1, "integrationId": 1, "values": { "kind": "external", "subject": null, "warehouse": { "id": 1, "name": "example", "code": "example" }, "operator": { "id": 1, "name": "example" }, "issueDate": "example", "operationDate": "example", "documentSymbol": "example", "manualNumber": 1, "currency": "example", "exchangeRate": { "rate": 1, "units": 1, "date": "2026-04-15", "sourceId": 1 }, "note": "example", "items": [ { "lineId": null, "productId": 1, "productCode": "example", "productName": "example", "quantity": 1, "unit": "example", "priceNet": 1, "pricePrecision": 2, "quantityPrecision": 4, "valueNet": null, "allocations": [] } ], "relatedDocuments": [], "source": null }, "tags": [ { "lineIndex": 1, "identifiers": [ { "id": "example", "note": "example", "tags": [ { "id": 1, "code": "example", "note": "example", "type": "qr", "productId": 1, "productKey": "example", "productName": "example" } ] } ] } ], "status": "draft", "expectedSavedAt": "example", "expectedModifiedAt": "example" }'A key with goodsIssuedNote:annotate but not goodsIssuedNote:update writes nothing to the ERP: the document stays as it stands and a draft stays a draft, while the tags, picks, storage locations and links Sancho keeps beside it are saved. The integration must grant goodsIssuedNote:update for every save.
Authorizations
Dział zatytułowany „Authorizations”Request Bodyrequired
Dział zatytułowany „Request Bodyrequired”object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
Responses
Dział zatytułowany „Responses”Successful response
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
Example
{ "result": { "type": "goodsIssuedNote", "kind": "external", "status": "draft", "subject": { "countryCode": null, "status": "draft", "vatTransactionKind": null, "taxIdCountry": null, "currency": null, "kind": "counterparty" }, "recipient": { "countryCode": null, "status": "draft", "vatTransactionKind": null, "taxIdCountry": null, "currency": null, "kind": "counterparty" }, "note": null, "items": [ { "lineId": null, "pricePrecision": 2, "quantityPrecision": 4, "pkwiu": null } ], "customFields": {}, "customFieldsMeta": {}, "relatedDocuments": [], "snapshotSavedAt": null, "placementsAppliedAt": null, "modifiedAt": null, "modifiedBy": null, "tags": null, "integrationType": "comarch-optima" }, "warnings": [ { "stage": "placements" } ]}Bad request
The error information
object
The error message
The error code
An array of issues that were responsible for the error
object
Example
{ "code": "BAD_REQUEST", "message": "Bad request", "issues": []}Unauthorized
The error information
object
The error message
The error code
An array of issues that were responsible for the error
object
Example
{ "code": "UNAUTHORIZED", "message": "Unauthorized", "issues": []}Payment required
The error information
object
The error message
The error code
An array of issues that were responsible for the error
object
Example
{ "code": "PAYMENT_REQUIRED", "message": "Payment required", "issues": []}Forbidden
The error information
object
The error message
The error code
An array of issues that were responsible for the error
object
Example
{ "code": "FORBIDDEN", "message": "Forbidden", "issues": []}Not found
The error information
object
The error message
The error code
An array of issues that were responsible for the error
object
Example
{ "code": "NOT_FOUND", "message": "Not found", "issues": []}Conflict
The error information
object
The error message
The error code
An array of issues that were responsible for the error
object
Example
{ "code": "CONFLICT", "message": "Conflict", "issues": []}Unprocessable content
The error information
object
The error message
The error code
An array of issues that were responsible for the error
object
Example
{ "code": "UNPROCESSABLE_CONTENT", "message": "Unprocessable content", "issues": []}Too many requests
The error information
object
The error message
The error code
An array of issues that were responsible for the error
object
Example
{ "code": "TOO_MANY_REQUESTS", "message": "Too many requests", "issues": []}Internal server error
The error information
object
The error message
The error code
An array of issues that were responsible for the error
object
Example
{ "code": "INTERNAL_SERVER_ERROR", "message": "Internal server error", "issues": []}Service unavailable
The error information
object
The error message
The error code
An array of issues that were responsible for the error
object
Example
{ "code": "SERVICE_UNAVAILABLE", "message": "Service unavailable", "issues": []}