---
title: "Create or replace shipping address"
method: POST
path: "/assistedSales/v1/opportunities/{opportunityId}/shipping"
tags: ["AppResellerOpportunities"]
---

# Create or replace shipping address

`POST /assistedSales/v1/opportunities/{opportunityId}/shipping`

## Request

- Base URL: `https://marketplace.appdirect.com/api`
- URL: `https://marketplace.appdirect.com/api/assistedSales/v1/opportunities/{opportunityId}/shipping`
- Auth: none declared
- TypeScript: <https://skmtc.dev/appdirect/apis/companies/docs/assistedSales/v1/opportunities/:opportunityId/shipping/post.ts> (a function with typed inputs; its response is checked against the schema)

Create or replace a shipping address for physical goods that require one on an opportunity. There is one shipping address per opportunity.

Required: Accept-Language header with Locale format. For example: en-US

## Path parameters

- `opportunityId` string, required

## Request body

- OpportunityShipping: Shipping information that applies to all physical goods on the opportunity
  - `sameAsBillingAddress` boolean: Whether customer requests to use billing address as shipping address. WARNING: Does not manage addresses; does not change shipping address to billing address, nor update shipping address if billing address changes.
  - `deliveryAddress` DeliveryAddress: The shipping address
    - `name` string: The recipient's name
    - `city` string: The city
    - `addressLine1` string: The address
    - `countryCode` string: Country code, in ISO-3166 format.
    - `subdivisionCode` string: Subdivision code. For example: state code or province code.
    - `postalCode` string: The postal code

## Response `200`

Shipping address created or replaced successfully

- OpportunityShipping: Shipping information that applies to all physical goods on the opportunity
  - `sameAsBillingAddress` boolean: Whether customer requests to use billing address as shipping address. WARNING: Does not manage addresses; does not change shipping address to billing address, nor update shipping address if billing address changes.
  - `deliveryAddress` DeliveryAddress: The shipping address
    - `name` string: The recipient's name
    - `city` string: The city
    - `addressLine1` string: The address
    - `countryCode` string: Country code, in ISO-3166 format.
    - `subdivisionCode` string: Subdivision code. For example: state code or province code.
    - `postalCode` string: The postal code

## Other responses

- `400`: Missing or invalid required parameter, or the vendor does not ship to the provided address
- `401`: Unauthorized
- `404`: No opportunity found with the given ID
- `409`: Conflict

## Changes

- **2026-11-06** `1fc240f06971`: 6 breaking, 20 info
  - the request's body type changed from no type to `object`
  - the response's body type changed from no type to `object` for status `200`
  - the response's body type changed from no type to `object` for status `400`
  - the response's body type changed from no type to `object` for status `401`
  - …22 more

[Operation history](https://skmtc.dev/appdirect/apis/companies/changes/assistedSales/v1/opportunities/:opportunityId/shipping/post.md)

---

[API](https://skmtc.dev/appdirect/apis/companies.md) - [All operations](https://skmtc.dev/appdirect/apis/companies/llms.txt) - [OpenAPI document](https://skmtc.dev/appdirect/apis/companies/revisions/1fc240f06971?raw)
