Skip to main content
POST
/
v2
/
checkout
/
orders
/
order-update-callback
Receive updated order information via callback URL
curl --request POST \
  --url https://api-m.sandbox.paypal.com/v2/checkout/orders/order-update-callback \
  --header 'Content-Type: application/json' \
  --data '{
  "shipping_address": {
    "admin_area_2": "<string>",
    "admin_area_1": "<string>",
    "postal_code": "<string>",
    "country_code": "<string>"
  },
  "purchase_units": [
    {
      "reference_id": "<string>",
      "amount": {
        "currency_code": "<string>",
        "value": "<string>",
        "breakdown": {
          "item_total": {
            "currency_code": "<any>",
            "value": "<any>"
          },
          "shipping": {
            "currency_code": "<any>",
            "value": "<any>"
          },
          "handling": {
            "currency_code": "<any>",
            "value": "<any>"
          },
          "tax_total": {
            "currency_code": "<any>",
            "value": "<any>"
          },
          "insurance": {
            "currency_code": "<any>",
            "value": "<any>"
          },
          "shipping_discount": {
            "currency_code": "<any>",
            "value": "<any>"
          },
          "discount": {
            "currency_code": "<string>",
            "value": "<string>"
          }
        }
      },
      "payee": {
        "email_address": "<string>",
        "merchant_id": "<string>"
      },
      "payment_instruction": {
        "platform_fees": [
          {
            "amount": {
              "currency_code": "<any>",
              "value": "<any>"
            },
            "payee": {
              "email_address": "<string>",
              "merchant_id": "<string>"
            }
          }
        ],
        "disbursement_mode": "INSTANT",
        "payee_pricing_tier_id": "<string>",
        "payee_receivable_fx_rate_id": "<string>"
      },
      "description": "<string>",
      "custom_id": "<string>",
      "invoice_id": "<string>",
      "soft_descriptor": "<string>",
      "items": [
        {
          "name": "<string>",
          "unit_amount": {
            "currency_code": "<any>",
            "value": "<any>"
          },
          "tax": {
            "currency_code": "<any>",
            "value": "<any>"
          },
          "quantity": "<string>",
          "description": "<string>",
          "sku": "<string>",
          "url": "<string>",
          "category": "DIGITAL_GOODS",
          "image_url": "<string>",
          "upc": {
            "type": "UPC-A",
            "code": "<string>"
          },
          "billing_plan": {
            "billing_cycles": [
              "<any>"
            ],
            "setup_fee": {
              "currency_code": "<any>",
              "value": "<any>"
            },
            "name": "<string>"
          }
        }
      ],
      "shipping": {
        "name": {
          "full_name": "<string>"
        },
        "email_address": "<string>",
        "phone_number": {
          "country_code": "<string>",
          "national_number": "<string>"
        },
        "type": "SHIPPING",
        "options": [
          {
            "id": "<string>",
            "label": "<string>",
            "type": "SHIPPING",
            "amount": {
              "currency_code": "<any>",
              "value": "<any>"
            },
            "selected": true
          }
        ],
        "address": {
          "address_line_1": "<string>",
          "address_line_2": "<string>",
          "admin_area_2": "<string>",
          "admin_area_1": "<string>",
          "postal_code": "<string>",
          "country_code": "<string>"
        }
      },
      "supplementary_data": {
        "card": {
          "level_2": {
            "invoice_id": "<string>",
            "tax_total": {
              "currency_code": "<any>",
              "value": "<any>"
            }
          },
          "level_3": {
            "shipping_amount": {
              "currency_code": "<any>",
              "value": "<any>"
            },
            "duty_amount": {
              "currency_code": "<any>",
              "value": "<any>"
            },
            "discount_amount": {
              "currency_code": "<any>",
              "value": "<any>"
            },
            "shipping_address": {
              "address_line_1": "<string>",
              "address_line_2": "<string>",
              "admin_area_2": "<string>",
              "admin_area_1": "<string>",
              "postal_code": "<string>",
              "country_code": "<string>"
            },
            "ships_from_postal_code": "<string>",
            "line_items": [
              {
                "name": "<string>",
                "quantity": "<string>",
                "description": "<string>",
                "sku": "<string>",
                "url": "<string>",
                "image_url": "<string>",
                "upc": {
                  "type": "UPC-A",
                  "code": "<string>"
                },
                "billing_plan": {
                  "billing_cycles": [
                    "<any>"
                  ],
                  "setup_fee": {
                    "currency_code": "<any>",
                    "value": "<any>"
                  },
                  "name": "<string>"
                },
                "unit_amount": {
                  "currency_code": "<any>",
                  "value": "<any>"
                },
                "tax": {
                  "currency_code": "<any>",
                  "value": "<any>"
                },
                "commodity_code": "<string>",
                "discount_amount": {
                  "currency_code": "<any>",
                  "value": "<any>"
                },
                "total_amount": {
                  "currency_code": "<any>",
                  "value": "<any>"
                },
                "unit_of_measure": "<string>"
              }
            ]
          }
        },
        "risk": {
          "customer": {
            "ip_address": "<string>"
          }
        }
      }
    }
  ]
}'
{
  "id": "<string>",
  "purchase_units": {
    "reference_id": "<string>",
    "amount": {
      "currency_code": "<string>",
      "value": "<string>",
      "breakdown": {
        "item_total": {
          "currency_code": "<string>",
          "value": "<string>"
        },
        "shipping": {
          "currency_code": "<string>",
          "value": "<string>"
        },
        "handling": {
          "currency_code": "<string>",
          "value": "<string>"
        },
        "tax_total": {
          "currency_code": "<string>",
          "value": "<string>"
        },
        "insurance": {
          "currency_code": "<string>",
          "value": "<string>"
        },
        "shipping_discount": {
          "currency_code": "<string>",
          "value": "<string>"
        },
        "discount": {
          "currency_code": "<string>",
          "value": "<string>"
        }
      }
    },
    "shipping_options": [
      {
        "id": "<string>",
        "label": "<string>",
        "type": "SHIPPING",
        "amount": {
          "currency_code": "<string>",
          "value": "<string>"
        },
        "selected": true
      }
    ]
  }
}

Body

application/json

Shipping Options Callback request. This will be implemented by the merchants.

shipping_address
object
required

The portable international postal address. Maps to AddressValidationMetadata and HTML 5.1 Autofilling form controls: the autocomplete attribute.

purchase_units
Purchase Unit Request · object[]
required

An array of purchase units. At present only 1 purchase_unit is supported. Each purchase unit establishes a contract between a payer and the payee. Each purchase unit represents either a full or partial order that the payer intends to purchase from the payee.

Required array length: 1 element
shipping_option
object

The options that the payee or merchant offers to the payer to ship or pick up their items.

Response

The callback to merchant was successful.

Returns the updated shipping options for an order.

id
string

The ID of the order.

Required string length: 1 - 36
purchase_units
object

This would contain shipping option and amount data at purchase unit level.

I