Skip to content

Set my fields

PATCH/store/v1/customers/me/fields

    Set or clear some of the signed-in shopper's fields at once; the others stay. Every value is checked against its field's type and rules before any is saved. A field shoppers don't set is refused as unknown.

    Headers

    • X-Customer-Tokenstringrequired

      Customer session token

    • shop-api-versionYYYY-MM

      The version to answer in. Without it, your app’s pinned version, else the newest.

    Body

    • valuesobjectrequired

    Returns

    200 The fields after the change.

    Errors

    • 401unauthenticatedNo valid customer session.
    • 422validation_failedA value doesn't fit its field.