ReferenceCredit
Book a credit movement
Applies the requested change to the credit account's balance and returns the account's movements, including the one just booked. Requires `Permissions.Credit.View`.
PUT
Bearerheader
AuthorizationBearer <token>OAuth 2.0 client credentials. Obtain a client id/secret from Winshop support ([email protected]), then POST to the token URL.
id*integerFormat
int32application/json- body
amount?|Format
decimalbarcode?|Length
length <= 50createdAt?|Format
date-timeid?|Format
int32lastModify?|Format
date-timenumber?|Length
length <= 50pinCode?|Length
length <= 10soldDate?|Format
date-timestatusId?|0 - vystavena, neaktivovaná 1 - aktivni 2 - dočasně deaktivovaná 3 - zrušená
Format
int32userId?|Format
int32validFrom?|Format
date-timevalidTo?|Format
date-timevalidity?|Format
int32note?string|nullapplication/json- response
[index: integer]?curl -X PUT 'https://<your-instance>/api/credit/0' \ -H 'Authorization: Bearer <access-token>' \ -H 'Content-Type: application/json' \ -d '{}'[ { "amount": 0, "cashRegisterId": 0, "createdAt": "2019-08-24T14:15:22Z", "creditId": 0, "deliveryNoteItemId": 0, "headerInternalId": 0, "id": 0, "isImported": true, "note": "string", "statusId": 0, "userId": 0 }]Get a credit account GET
Returns one credit account by `id`, with its current balance. Requires `Permissions.Credit.View`.
Get a credit account with its movements GET
Returns one credit account together with its movements in a single response, so a client does not have to call the two endpoints separately. Requires `Permissions.Credit.View`.