Skip to content

Edit Visit

Request

Security
BearerPartnerUser
Path
visit_idnumberrequired
Example:12345
record_idnumberrequired
Example:67890
Headers
Acceptstringrequired

e.g. application/vnd.api.v2+json

Example:application/vnd.api.v2+json
Content-Typestringrequired

application/json

Authorizationstringrequired

Bearer partner_token, User user_token

Body*/*required
attendancenumberrequired

Visit status (2 - The user confirmed the appointment, 1 - The user came, the services were provided, 0 - the user is waiting, -1 - the user did not show)

Example:1
commentstringrequired

A comment

Example:""
new_transactionsArray of objects

Array of objects of new commodity transactions

Example:
[ { "id": 12345, "amount": 100, "account_id": 23322 } ]
deleted_transaction_idsArray of objects

Array of instance IDs

Example:
[]
goods_transactionsArray of objects

Array of commodity transactions objects

Example:
[ { "id": 2168657, "title": "Vital Creme Shampoo Plus", "barcode": "123", "article": "120277", "amount": -1, "cost_per_unit": 15, "price": 15, "cost": 12, "operation_unit_type": 2, "master_id": 55436, "storage_id": 91303, "good_id": 232658, "discount": 20 } ]
servicesArray of objects

Array of objects with services

Example:
[ { "id": 389045, "title": "Hand massage (10 min)", "cost": 255, "cost_per_unit": 300, "discount": 15, "first_cost": 300, "record_id": 10403702 } ]
fast_paymentnumber

Quick payment 1 - cash, 2 - cashless, 129 - cash and print, 130 - cashless and print

Example:1
curl -i -X PUT \
  https://developer.alteg.io/_mock/en/b2b-v1/openapi/visits/12345/67890 \
  -H 'Accept: application/vnd.api.v2+json' \
  -H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
  -H 'Content-Type: */*' \
  -d '{
    "attendance": 1,
    "comment": "",
    "new_transactions": [
      {
        "id": 12345,
        "amount": 100,
        "account_id": 23322
      }
    ],
    "deleted_transaction_ids": [],
    "fast_payment": 1,
    "goods_transactions": [
      {
        "id": 2168657,
        "title": "Vital Creme Shampoo Plus",
        "barcode": "123",
        "article": "120277",
        "amount": -1,
        "cost_per_unit": 15,
        "price": 15,
        "cost": 12,
        "operation_unit_type": 2,
        "master_id": 55436,
        "storage_id": 91303,
        "good_id": 232658,
        "discount": 20
      }
    ],
    "services": [
      {
        "id": 389045,
        "title": "Hand massage (10 min)",
        "cost": 255,
        "cost_per_unit": 300,
        "discount": 15,
        "first_cost": 300,
        "record_id": 10403702
      }
    ]
  }'

Responses

OK

Response
No content