---
title: "Shipping Address Changed"
method: POST
path: "shipping_address.changed"
tags: ["Payments"]
---

# Shipping Address Changed

`POST shipping_address.changed` (webhook)

Sent while a buyer picks a shipping address on PayPal's page, for a purchase the seller prices. Whop calls the account's oldest enabled `https` webhook with this event and waits up to 4 seconds for the reply: a Money total for every line in `line_items`, tax and shipping included, or `{ "decline": true }`. A late, failed or invalid reply refuses the address, and the buyer picks another. The call isn't retried and has no test event

## Headers

- `webhook-id` string, required: A unique identifier for this webhook request
- `webhook-signature` string, required: The signature of the webhook request with the webhook version prepended
- `webhook-timestamp` string, required: The timestamp in seconds since the Unix epoch that the webhook was sent at on the server

## Payload

- object
  - `account_id` string, nullable: The account ID that this webhook event is associated with
  - `api_version` 'v1', required: The API version for this webhook
  - `api_version_date` string, nullable, required: The dated API version (Api-Version-Date) the payload is serialized to
  - `data` ShippingAddressChangedWebhookData, required
    - `amount` Money, required: The original total, before your price for this address.
      - `amount` string, required: The amount in major units, as an exact decimal string. For example, `"10.00"` is ten dollars. It is a string so that no float rounds it in transit.
      - `currency` string, required: Three-letter ISO 4217 currency code, lowercase.
      - `decimals` integer, required: How many decimal places the amount carries. This is the precision the charge itself runs at.
      - `display_decimals` integer, required: How many decimal places to SHOW. Usually equal to `decimals`, and deliberately not always: COP is charged in centavos but written in whole pesos, so it is `2` and `0`. Format the number in your own locale using this.
    - `checkout_session_id` string, nullable, required: The checkout session being priced, prefixed `chs_`, when the buyer is paying through one. `null` for a payment.
    - `line_items` ShippingAddressChangedWebhookLineItem[], required
      - `amount` Money, required: The line's original total, the same on every call for this purchase.
        - `amount` string, required: The amount in major units, as an exact decimal string. For example, `"10.00"` is ten dollars. It is a string so that no float rounds it in transit.
        - `currency` string, required: Three-letter ISO 4217 currency code, lowercase.
        - `decimals` integer, required: How many decimal places the amount carries. This is the precision the charge itself runs at.
        - `display_decimals` integer, required: How many decimal places to SHOW. Usually equal to `decimals`, and deliberately not always: COP is charged in centavos but written in whole pesos, so it is `2` and `0`. Format the number in your own locale using this.
      - `id` string, required: Identifies the line. Your reply names each line by this id, so send it back unchanged.
      - `quantity` number, required: How many of the variant this line holds.
      - `variant_id` string, nullable, required: The variant bought on this line, prefixed `plan_`.
    - `payment_id` string, nullable, required: The payment being priced, prefixed `pay_`. `null` when the buyer is paying through a checkout session: the payment is created only after they approve, at your price.
    - `shipping_address` ShippingAddressChangedWebhookAddress, required: The address the buyer picked. PayPal shares only these fields until the buyer approves.
      - `city` string, nullable, required: The city.
      - `country` string, nullable, required: The two-letter ISO 3166-1 country code.
      - `postal_code` string, nullable, required: The postal code.
      - `state` string, nullable, required: The state, province or region code.
  - `id` string, required: A unique ID for every single webhook request
  - `previous_attributes` object: For some `.updated` events, the old values of the payload fields that changed, keyed by field name. Omitted when no capture is available for the event
  - `timestamp` string, date-time, required: The timestamp in ISO 8601 format that the webhook was sent at on the server
  - `type` 'shipping_address.changed', required: The webhook event type

## Acknowledgement `200`

Your price for this address, or a decline.

- union
  - ShippingAddressChangedWebhookReply
    - `line_items` ShippingAddressChangedWebhookReplyLineItem[], required
      - `amount` Money, required: The line's total at this address, in the currency of `data.amount`. It includes tax unless you send `tax`, and shipping unless you send `shipping_options`.
        - `amount` string, required: The amount in major units, as an exact decimal string. For example, `"10.00"` is ten dollars. It is a string so that no float rounds it in transit.
        - `currency` string, required: Three-letter ISO 4217 currency code, lowercase.
        - `decimals` integer, required: How many decimal places the amount carries. This is the precision the charge itself runs at.
        - `display_decimals` integer, required: How many decimal places to SHOW. Usually equal to `decimals`, and deliberately not always: COP is charged in centavos but written in whole pesos, so it is `2` and `0`. Format the number in your own locale using this.
      - `id` string, required: The line's `id` from `data.line_items`, unchanged.
    - `shipping_options` ShippingAddressChangedWebhookReplyShippingOption[]
      - `amount` Money, required: What this option costs at this address, in the currency of `data.amount`. Zero for free shipping.
        - `amount` string, required: The amount in major units, as an exact decimal string. For example, `"10.00"` is ten dollars. It is a string so that no float rounds it in transit.
        - `currency` string, required: Three-letter ISO 4217 currency code, lowercase.
        - `decimals` integer, required: How many decimal places the amount carries. This is the precision the charge itself runs at.
        - `display_decimals` integer, required: How many decimal places to SHOW. Usually equal to `decimals`, and deliberately not always: COP is charged in centavos but written in whole pesos, so it is `2` and `0`. Format the number in your own locale using this.
      - `description` string, required: What the buyer sees for this option in PayPal, up to 127 characters.
      - `external_identifier` string, required: Your identifier for this option, unique within `shipping_options` and up to 127 characters. PayPal returns it to Whop when the buyer picks this option.
    - `tax` Money: The tax you charge at this address, in the currency of `data.amount`. PayPal shows it on its own Tax line, and the buyer pays it on top of the line totals. Leave it out to keep tax inside the line totals.
      - `amount` string, required: The amount in major units, as an exact decimal string. For example, `"10.00"` is ten dollars. It is a string so that no float rounds it in transit.
      - `currency` string, required: Three-letter ISO 4217 currency code, lowercase.
      - `decimals` integer, required: How many decimal places the amount carries. This is the precision the charge itself runs at.
      - `display_decimals` integer, required: How many decimal places to SHOW. Usually equal to `decimals`, and deliberately not always: COP is charged in centavos but written in whole pesos, so it is `2` and `0`. Format the number in your own locale using this.
  - object
    - `decline` true, required: Refuses this address; the buyer picks another.

---

[API](https://skmtc.dev/whop/apis/whop-api.md) - [All operations](https://skmtc.dev/whop/apis/whop-api/llms.txt) - [OpenAPI document](https://skmtc.dev/whop/apis/whop-api/revisions/b10d1ab093e8?raw)
