Skip to main content

Documentation

Order Updated Webhook

The ORDER_UPDATED webhook is sent when an order is modified.

  • ORDER_UPDATED Webhook

  • {
        "id": "wh_66aa9af7675fcd38b0e6ff4b177d2ebf",
        "type": "ORDER_UPDATED",
        "data": {
            "id": "order_70cfe834559542f7878bfbeaa1321e17",
            "email": "johndoe@rapyd.net",
            "items": [{
                    "type": "sku",
                    "amount": 1050,
                    "parent": "sku_c73de1b03e758d9f536d352a0c7e0d26",
                    "currency": "USD",
                    "quantity": 1,
                    "description": "Deluxe Gamer's Chair"
                }, {
                    "type": "shipping",
                    "amount": 10,
                    "parent": "",
                    "currency": "USD",
                    "quantity": 1,
                    "description": "Shipping"
                }
            ],
            "amount": 1060,
            "status": "paid",
            "created": 1643715533,
            "payment": {
                "id": "payment_7d24de62aaf783f08a328b0a0fecf3e4",
                "mid": "",
                "paid": true,
                "order": null,
                "amount": 1060,
                "escrow": null,
                "status": "CLO",
                "address": null,
                "dispute": null,
                "fx_rate": 1,
                "invoice": "",
                "outcome": null,
                "paid_at": 1643719155,
                "refunds": null,
                "captured": true,
                "ewallets": [{
                        "amount": 1060,
                        "percent": 100,
                        "ewallet_id": "ewallet_c1943cfeda5f98247ab117e5d2648861",
                        "refunded_amount": 0
                    }
                ],
                "metadata": {},
                "refunded": false,
                "flow_type": "",
                "created_at": 1643718644,
                "error_code": "",
                "ewallet_id": "ewallet_c1943cfeda5f98247ab117e5d2648861",
                "expiration": 1644323444,
                "fixed_side": "",
                "is_partial": false,
                "description": "",
                "next_action": "not_applicable",
                "country_code": "US",
                "failure_code": "",
                "instructions": [],
                "payment_fees": null,
                "redirect_url": "https://sandboxcheckout.rapyd.net/3ds-payment?token=payment_7d24de62aaf783f08a328b0a0fecf3e4",
                "visual_codes": {},
                "cancel_reason": null,
                "currency_code": "USD",
                "group_payment": "",
                "receipt_email": "johndoe@rapyd.net",
                "textual_codes": {},
                "customer_token": "cus_d3ed65d5091a8398cc3651bcedec1201",
                "payment_method": "card_531e75e121d99dc23a0779d83c2de26d",
                "receipt_number": "",
                "transaction_id": "",
                "failure_message": "",
                "initiation_type": "customer_present",
                "original_amount": 1060,
                "refunded_amount": 0,
                "error_payment_url": "",
                "payment_method_data": {
                    "id": "card_531e75e121d99dc23a0779d83c2de26d",
                    "name": "Jeff Doe",
                    "type": "us_visa_card",
                    "image": "",
                    "last4": "1111",
                    "category": "card",
                    "metadata": {},
                    "acs_check": "unchecked",
                    "cvv_check": "unchecked",
                    "bin_details": {
                        "type": null,
                        "brand": null,
                        "country": null,
                        "bin_number": "411111"
                    },
                    "next_action": "not_applicable",
                    "webhook_url": "",
                    "expiration_year": "25",
                    "expiration_month": "12",
                    "fingerprint_token": "ocfp_e599f990674473ce6283b245e9ad2467",
                    "supporting_documentation": ""
                },
                "payment_method_type": "us_visa_card",
                "complete_payment_url": "",
                "remitter_information": {},
                "statement_descriptor": "Doc Team",
                "merchant_reference_id": "",
                "payment_method_options": {},
                "merchant_requested_amount": null,
                "merchant_requested_currency": null,
                "payment_method_type_category": "card"
            },
            "returns": [],
            "updated": 1643719155,
            "currency": "USD",
            "customer": "cus_d3ed65d5091a8398cc3651bcedec1201",
            "metadata": {},
            "tax_percent": 0,
            "upstream_id": "order_70cfe834559542f7878bfbeaa1321e17",
            "amount_returned": 0,
            "shipping_address": {
                "id": "address_946f3d3791b704410959e017def785f4",
                "zip": "12345",
                "city": "Anytown",
                "name": "John Doe",
                "state": "NY",
                "canton": "",
                "line_1": "",
                "line_2": "",
                "line_3": "",
                "country": "US",
                "district": "",
                "metadata": {},
                "created_at": 1643715533,
                "phone_number": "+14155551234"
            },
            "status_transitions": {
                "paid": 1643719155,
                "partial": 0,
                "pending": 1643718644,
                "canceled": 0,
                "returned": 0,
                "fulfilled": 0
            },
            "external_coupon_code": ""
        },
        "trigger_operation_id": "3a9b1c17-5bc2-41f4-8df0-16c193a409af",
        "status": "NEW",
        "created_at": 1643719155,
        "extended_timestamp": 1643719155939
    }