younifyd
Menu

Update customer addresses

Update customer addresses

PATCH/ordermanagement/v1/orders/{order_id}/customer-details

Use it in a workflow

  1. Add a step and choose the Klarna connector.
  2. Pick the Update customer addresses action (under Order Management).
  3. Fill in the fields below, then reference the result from later steps as {{updateCustomerAddresses.response.data}}.

Request

Path parameters

order_idstringrequired

Order id

Headers

Klarna-Idempotency-Keystring

This header will guarantee the idempotency of the operation. The key should be unique and is recommended to be a UUID version 4. Retries of requests are safe to be applied in case of errors such as network errors, socket errors and timeouts. Input values of the operation are disregarded when evaluating the idempotency of the operation, only the key matters.

Request body

Enter the body as JSON in the step's Body field.

shipping_addressobject

Shipping address for the capture.

attentionstring

'Attn.' - optional parameter.

citystring

City.

countrystring

Country. ISO 3166 alpha-2.

emailstring

E-mail address.

family_namestring

Family name.

given_namestring

Given name.

organization_namestring

Organization name (if applicable). Only applicable for B2B customers.

phonestring

Phone number.

postal_codestring

Postcode. Validation according to [Universal Postal Union addressing system](https://www.upu.int/en/activities/addressing/postal-addressing-systems-in-member-countries.html).

regionstring

State/Region. Required for US.

street_addressstring

First line of street address. Validation according to [Universal Postal Union addressing system](https://www.upu.int/en/activities/addressing/postal-addressing-systems-in-member-countries.html)

street_address2string

Second line of street address.

titlestring

Title.

json
{
  "shipping_address": {
    "attention": "John Smith",
    "city": "New York",
    "country": "US",
    "email": "test.sam@test.com",
    "family_name": "Andersson",
    "given_name": "Adam",
    "organization_name": "Klarna",
    "phone": "1-555-555-5555",
    "postal_code": "10024-3941",
    "region": "US-NY",
    "street_address": "509 Amsterdam Ave",
    "street_address2": "Floor 22 / Flat 2"
  }
}

Response

Returns 204 with a string. Read it in later steps with {{updateCustomerAddresses.response.data.<field>}}.

Need more? See the Klarna guide for connection setup and behaviour shared by every action.