WinShopAPI docs
ReferenceDocumentsClaimsCustomer

Update a customer claim

Updates the customer claim header and the items sent in the body. Pass `removeItemsNotInRequest=true` to also delete the items the body leaves out. Requires `Permissions.ClaimCustomer.Update`.

PUT
/api/documents/claims/customer/{documentId}

Authorization

Bearer
headerAuthorizationBearer <token>

OAuth 2.0 client credentials. Obtain a client id/secret from Winshop support ([email protected]), then POST to the token URL.

Path Parameters

documentId*integer
Formatint32

Query Parameters

removeItemsNotInRequest?boolean|null

Request Body

application/json
  1. body
id?|

Row id of the document. Read-only; the server assigns it.

Formatint32
internalNumber?|

Internal document number, unique within the document type and reserved when the document is created. Read-only.

Formatint32
items?array<>|

The document's items. Null when the document was loaded without them.

createdAt?|
Formatdate-time
dateOfCreation?|
Formatdate-time
dateOfProcessing?|
Formatdate-time
deliveryDate?|
Formatdate-time
documentStateId?|
Formatint32
documentStateUserId?|
Formatint32
foreignExchangeRate?|
Formatdecimal
formNumber?|
Lengthlength <= 150
isCancellation?boolean|null
isLocked?boolean|null
isPrinted?boolean|null
isProcessed?boolean|null
lastModify?|
Formatdate-time
lockOwner?|
Lengthlength <= 80
note?string|null
paymentTypeId?|
Formatint32
totalNumberOfItems?|
Formatint32
totalNumberOfPieces?|
Formatdecimal
totalPrice?|
Formatdecimal
totalPriceWoVat?|
Formatdecimal
totalStockPrice?|
Formatdecimal
totalStockPriceWoVat?|
Formatdecimal
userId?|
Formatint32
address?|
Lengthlength <= 80
bank?|
Lengthlength <= 50
bankAccountNumber?|
Lengthlength <= 50
bankCode?|
Lengthlength <= 50
branchId?|
Formatint32
currencyId?|
Formatint32
customerId?|
Formatint32
deliveryAddressId?|
Formatint32
email?|
Lengthlength <= 80
ibanCode?|
Lengthlength <= 35
isConfirmed?boolean|null
name?|
Lengthlength <= 80
phone?|
Lengthlength <= 20
receivingWarehouseId?|
Formatint32
soldDate?|
Formatdate-time
solutionMethodId?|
Formatint32
swiftCode?|
Lengthlength <= 20
transportDriverId?|
Formatint32
warehouseId?|
Formatint32

Response Body

application/json
  1. response
id?|

Row id of the document. Read-only; the server assigns it.

Formatint32
internalNumber?|

Internal document number, unique within the document type and reserved when the document is created. Read-only.

Formatint32
items?array<>|

The document's items. Null when the document was loaded without them.

createdAt?|
Formatdate-time
dateOfCreation?|
Formatdate-time
dateOfProcessing?|
Formatdate-time
deliveryDate?|
Formatdate-time
documentStateId?|
Formatint32
documentStateUserId?|
Formatint32
foreignExchangeRate?|
Formatdecimal
formNumber?|
Lengthlength <= 150
isCancellation?boolean|null
isLocked?boolean|null
isPrinted?boolean|null
isProcessed?boolean|null
lastModify?|
Formatdate-time
lockOwner?|
Lengthlength <= 80
note?string|null
paymentTypeId?|
Formatint32
totalNumberOfItems?|
Formatint32
totalNumberOfPieces?|
Formatdecimal
totalPrice?|
Formatdecimal
totalPriceWoVat?|
Formatdecimal
totalStockPrice?|
Formatdecimal
totalStockPriceWoVat?|
Formatdecimal
userId?|
Formatint32
address?|
Lengthlength <= 80
bank?|
Lengthlength <= 50
bankAccountNumber?|
Lengthlength <= 50
bankCode?|
Lengthlength <= 50
branchId?|
Formatint32
currencyId?|
Formatint32
customerId?|
Formatint32
deliveryAddressId?|
Formatint32
email?|
Lengthlength <= 80
ibanCode?|
Lengthlength <= 35
isConfirmed?boolean|null
name?|
Lengthlength <= 80
phone?|
Lengthlength <= 20
receivingWarehouseId?|
Formatint32
soldDate?|
Formatdate-time
solutionMethodId?|
Formatint32
swiftCode?|
Lengthlength <= 20
transportDriverId?|
Formatint32
warehouseId?|
Formatint32
curl -X PUT 'https://<your-instance>/api/documents/claims/customer/0' \  -H 'Authorization: Bearer <access-token>' \  -H 'Content-Type: application/json' \  -d '{}'
{  "id": 0,  "internalNumber": 0,  "items": [    {      "id": 0,      "internalNumber": 0,      "item": 0,      "productId": 0,      "variants": [        {          "colorId": 0,          "dimensionId": 0,          "id": 0,          "itemId": 0,          "lengthId": 0,          "quantity": 0,          "sizeId": 0,          "price": 0,          "priceWoVat": 0        }      ],      "barcode": "string",      "batchId": 0,      "claimReason": 0,      "createdAt": "2019-08-24T14:15:22Z",      "faultDescription": "string",      "faultTypId": 0,      "lastModify": "2019-08-24T14:15:22Z",      "note": "string",      "packagePrice": 0,      "quantity": 0,      "quantityCoefficient": 0,      "recyclingFee": 0,      "recyclingFeeId": 0,      "royalty": 0,      "royaltyId": 0,      "serviceId": 0,      "solutionDescription": "string",      "solutionTypeId": 0,      "statusId": 0,      "stockPrice": 0,      "unitId": 0,      "userId": 0,      "variantId": 0,      "vatRate": 0,      "claimPrice": 0,      "commissionStockIntakeInternalNumber": 0,      "deliveryNoteItemId": 0,      "headerInternalId": 0,      "isCancellation": true,      "isPartialCancellation": true,      "orderItemId": 0,      "originalInvoiceInternalNumber": 0,      "posId": 0,      "price": 0,      "priceWoVat": 0,      "priceWoVatIssued": 0,      "quantityIssued": 0,      "stockIntakeInternalNumber": 0,      "unitIdIssued": 0    }  ],  "createdAt": "2019-08-24T14:15:22Z",  "dateOfCreation": "2019-08-24T14:15:22Z",  "dateOfProcessing": "2019-08-24T14:15:22Z",  "deliveryDate": "2019-08-24T14:15:22Z",  "documentStateId": 0,  "documentStateUserId": 0,  "foreignExchangeRate": 0,  "formNumber": "string",  "isCancellation": true,  "isLocked": true,  "isPrinted": true,  "isProcessed": true,  "lastModify": "2019-08-24T14:15:22Z",  "lockOwner": "string",  "note": "string",  "paymentTypeId": 0,  "totalNumberOfItems": 0,  "totalNumberOfPieces": 0,  "totalPrice": 0,  "totalPriceWoVat": 0,  "totalStockPrice": 0,  "totalStockPriceWoVat": 0,  "userId": 0,  "address": "string",  "bank": "string",  "bankAccountNumber": "string",  "bankCode": "string",  "branchId": 0,  "currencyId": 0,  "customerId": 0,  "deliveryAddressId": 0,  "email": "string",  "ibanCode": "string",  "isConfirmed": true,  "name": "string",  "phone": "string",  "receivingWarehouseId": 0,  "soldDate": "2019-08-24T14:15:22Z",  "solutionMethodId": 0,  "swiftCode": "string",  "transportDriverId": 0,  "warehouseId": 0}