v1

latestOpenAPI 3.0.2EULA2026-07-143221521.2 MB
Purchases

Update a purchase

Update a specific purchase. ⚠️ Endpoint is available only in the Enterprise interface.

put/purchases/{purchase_id}

Path parameters

purchase_idstring required

The unique ID of the purchase.

Headers

Accept-Languagestring

The unique ID of the language code by ISO 639-1.

Request body

Example request

{
  "purchase": {
    "purchase_id": "81eaeea13b8984a169c490a325",
    "customer_id": "8ea2591121e636086a4a9c0992",
    "store_id": "81eaeea13b8984a169c490a325",
    "external_purchase_id": "D67X202789",
    "payment_time": "2021-02-24 00:00:00",
    "items_count": 1,
    "purchase_items": [
      {
        "purchase_item_id": "84b757641df03b1529c2c7f66c",
        "product_id": "89b3b24b405f461c63d8fcaa0c",
        "product_name": "Apple Watch Ultra 2",
        "product_group_id": "82de12eb8b138791e678fd11c3",
        "product_group_name": "Smart watch",
        "product_brand_id": "82db62087b0f79a6e14e5747e7",
        "product_brand_name": "Apple",
        "purchase_item_type_id": "86e05affc7a7abefcd513ab400",
        "price": 1.99,
        "additional_properties": [
          {
            "property_record_id": "docasna_blokace_darce_do:8ea2591121e636086a4a9c0992",
            "property_id": "docasna_blokace_darce_do",
            "property_name": "Property #6",
            "last_change": "2023-02-02 00:00:00"
          }
        ]
      }
    ],
    "type_id": "86e05affc7a7abefcd513ab400",
    "total_price": 660,
    "currency_id": "8bed991c68a470e7aaeffbf048",
    "card_number": "1000000000016",
    "cashdesk_number": "2a",
    "last_change": "2021-01-17 00:00:00",
    "purchase_property_records": [
      {
        "property_record_id": "docasna_blokace_darce_do:8ea2591121e636086a4a9c0992",
        "property_id": "docasna_blokace_darce_do",
        "property_name": "Property #6",
        "last_change": "2023-02-02 00:00:00"
      }
    ]
  }
}

Response

No Content