Aktualisiert einen bestehenden Warenkorb

Request

PUT https://api.mittwald.de/v1/carts/{cartIdentifier}

Pfad-Parameter

Parametername Wert Beschreibung Weiteres
cartIdentifier string

Warenkorb ID

Pflichtangabe

Request-Body

The request body takes a complete Cart resource, containing the following writable properties:

{
    "_id": "string",
    "billingAddress": {
        "city": "string",
        "company": "string",
        "country": "string",
        "emailAddress": "email",
        "fax": "string",
        "firstName": "string",
        "houseNumber": "string",
        "lastName": "string",
        "salutation": "string",
        "street": "string",
        "title": "string",
        "zip": "string"
    },
    "contactPerson": {
        "city": "string",
        "company": "string",
        "country": "string",
        "emailAddress": "email",
        "fax": "string",
        "firstName": "string",
        "houseNumber": "string",
        "lastName": "string",
        "salutation": "string",
        "street": "string",
        "title": "string",
        "zip": "string"
    },
    "contractPartner": {
        "city": "string",
        "company": "string",
        "country": "string",
        "emailAddress": "email",
        "fax": "string",
        "firstName": "string",
        "houseNumber": "string",
        "lastName": "string",
        "salutation": "string",
        "street": "string",
        "title": "string",
        "zip": "string"
    },
    "databasePartitionPercentage": "number",
    "items": [
        {
            "articleNumber": "integer"
        }
    ],
    "jwt": "string",
    "mysqlVersion": "string",
    "newsletter": "boolean",
    "note": "string",
    "offer": "number",
    "os": "string",
    "paymentSettings": {},
    "promotionCode": "string",
    "recommendedAccount": "string",
    "software": "string"
}

Properties

Name Typ Beschreibung Weiteres
_id string Optional
billingAddress object Contact Optional
billingAddress.city string
billingAddress.company string Optional
billingAddress.country string

iso country short code (ISO 3166-1 alpha-2)

billingAddress.emailAddress email
billingAddress.fax string Optional
billingAddress.firstName string
billingAddress.houseNumber string
billingAddress.lastName string
billingAddress.salutation string

Mögliche Werte sind:

  • Herr
  • Frau
  • Mr.
  • Ms.
billingAddress.street string
billingAddress.title string Optional
billingAddress.zip string of integer
contactPerson object Contact Optional
contactPerson.city string
contactPerson.company string Optional
contactPerson.country string

iso country short code (ISO 3166-1 alpha-2)

contactPerson.emailAddress email
contactPerson.fax string Optional
contactPerson.firstName string
contactPerson.houseNumber string
contactPerson.lastName string
contactPerson.salutation string

Mögliche Werte sind:

  • Herr
  • Frau
  • Mr.
  • Ms.
contactPerson.street string
contactPerson.title string Optional
contactPerson.zip string of integer
contractPartner object Contact Optional
contractPartner.city string
contractPartner.company string Optional
contractPartner.country string

iso country short code (ISO 3166-1 alpha-2)

contractPartner.emailAddress email
contractPartner.fax string Optional
contractPartner.firstName string
contractPartner.houseNumber string
contractPartner.lastName string
contractPartner.salutation string

Mögliche Werte sind:

  • Herr
  • Frau
  • Mr.
  • Ms.
contractPartner.street string
contractPartner.title string Optional
contractPartner.zip string of integer
databasePartitionPercentage number

The database partition ratio. Must be between 20 & 80 %.

Optional
items[] array Optional
items[].articleNumber integer Optional
jwt string

Set a new jwt for this cart.

Optional
mysqlVersion string

The MySQL-Version to use for the order.

Optional
newsletter boolean Optional
note string

Store a customer note for the order.

Optional
offer number Optional
os string

The operating system to install for the order.

Optional
paymentSettings object PaymentSettings Optional
promotionCode string Optional
recommendedAccount string

The recommended account for this order.

Optional
software string

The software to install for the order.

Optional

Response

Diese Operation kann mit den folgenden HTTP-Statuscodes antworten:

Statuscode Beschreibung Ressource
200 OK

Der Warenkorb

Cart

Explore this API

cartIdentifier

Warenkorb ID

cart

Der neue Warenkorb

Request Content-Type
Response Content-Type
Try it out!