You are reading the documentation for SDK v2, which is no longer the latest version. Switch to current
addShippingAddress
Endpoint for adding new shipping address for the current user. By default, it uses the addShippingAddressDefaultQuery GraphQL query
Signature
export declare function addShippingAddress(
context: SetupContext,
params: AddShippingAddressParams,
customQuery?: CustomQuery,
responseOptions?: ResponseOptions
): Promise<any>;Parameters
| Name | Required | Type | Description |
|---|---|---|---|
context | Required | SetupContext | Automatically injected context. Refer to SetupContext |
params | Required | AddShippingAddressParams | Address information and user version |
customQuery | Optional | CustomQuery | Custom queries included in the request |
responseOptions | Optional | ResponseOptions |
Returns
User information