Solid Commerce Docs
PUT/v1/orders/{id}/address

PUT /v1/orders/{id}/address

Scopes: orders:orders:write

Requires scope: orders:orders:write.

Parameters

NameInTypeRequiredDescription
idpathinteger<int64>yes

Request body

FieldTypeRequiredDescription
first_namestringno
last_namestringno
companystringno
address1stringno
address2stringno
citystringno
statestringno
zipstringno
countrystringno
phonestringno
emailstringno

Response (200)

FieldTypeRequiredDescription
idinteger<int64>no
messagestringno

Examples

import { SolidCommerceClient } from '@solidcommerce/sdk';

const client = new SolidCommerceClient({
  apiKey: process.env.SOLIDCOMMERCE_API_KEY!,
});

const { data, error } = await client.raw.PUT('/v1/orders/{id}/address', {
  // params: { path: { id: '...' }, query: { limit: 25 } },
  // body: { /* request body */ },
});

if (error) throw error;
console.log(data);