Update Customer Billing Address

Update customer billing address

SecurityBearer
Request
path Parameters
order_id
required
string

Order identifier

header Parameters
x-merchant
required
string non-empty

Merchant identifier.

Example: norce
x-channel
required
string non-empty

Channel identifier

Example: 1
Request Body schema: application/json

Billing address

type
string

The type of customer

Enum: "person" "organization"
givenName
string

Given name or first name.

familyName
string

Family name or last name.

careOf
string

Care of.

reference
string

Reference to the customer

organizationName
string

Name of the Organization

streetAddress
string

Address or street name, first line.

streetAddress2
string

Address or street name, second line.

postalCode
string

Postal code, zip or post code.

city
string

City.

region
string

State or region.

country
string^[A-Za-z]{2,2}$

Country. ISO 3166 alpha-2.

phone
string

Phone number.

email
string

E-mail address.

nationalIdentificationNumber
string

Number used to identify individuals. E.g. could be used for Personal identity number (personnummer) in Sweden.

organizationIdentificationNumber
string

Number used to identify organizations or legal persons. E.g. could be used for Corporate identity number. (organisationsnummer in Sweden)

object

Allows you to store any custom attributes for the address.

Responses
200

OK

400

Bad Request

401

Unauthorized

404

Not Found

500

Internal Server Error

put/api/v0/checkout/orders/{order_id}/customer/billing
Request samples
application/json
{
  • "type": "Person",
  • "givenName": "Rosalinainho",
  • "familyName": "Undulatsson",
  • "careOf": "Olleinho Jyckesson",
  • "reference": "string",
  • "organizationName": "Storm",
  • "streetAddress": "Adaptivevägen 18",
  • "streetAddress2": "Lgh 1203",
  • "postalCode": "955 60",
  • "city": "Boden",
  • "region": "Norrbotten",
  • "country": "SE",
  • "phone": "0753892233",
  • "email": "rosalinainho.undulatsson@example.com",
  • "nationalIdentificationNumber": "890201-3286",
  • "organizationIdentificationNumber": "212000-1355",
  • "attributes": {
    }
}
Response samples
application/json
{
  • "code": "order-not-found",
  • "message": "Order with id:{id} not found."
}
Copyright © Norce 2024. All right reserved.