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>"
}
}
}
}
]
}'