Skip to main content
Contributor I
March 14, 2024
Solved

use api upload placed order

  • March 14, 2024
  • 2 replies
  • 146 views

{

  "data": {

    "type": "event",

    "attributes": {

      "properties": {

        "OrderId": "US20240223655bdeae000017",

        "OrderType":"Recurring Subscription Payment",

        "Items": [

          {

            "ProductID": "3312484937118110",

            "SKU": "USPSP95500",

            "ProductName": "Power Steering Pump with Pulley for Chevrolet Chevy 2001-2012 1.4L 1.6L",

            "Quantity": 1,

            "ItemPrice": 103.99,

            "RowTotal": 103.99,

            "ProductURL": "https://a-premium-test.com/product/Power-Steering-Pump-with-Pulley-for-2009-Chevrolet-Chevy-pPosn4gYXl",

            "ImageURL": "https://yt-prod-media-assets.s3.us-east-2.amazonaws.com/2022/item/image/PSP/USPSP95500/USPSP95500-20231216-1-USPSP95500_width_1600_height_1600.jpg",

            "Categories": [

              "Power Steering Pump"

            ],

            "Brand": "A-Premium"

          }

        ]

      },

      "time": "2024-02-23T08:56:01",

      "value": 103.99,

      "metric": {

        "data": {

          "type": "metric",

          "attributes": {

            "name": "Placed Order"

          }

        }

      },

      "profile": {

        "data": {

          "type": "profile",

          "id": "01GDDKASAP8TKDDA2GRZDSVP4H",

          "attributes": {

            "email": "rosetiger@gmail.com",

            "phone_number": "+15005550006",

            "external_id": "63f64a2b-c6bf-40c7-b81f-bed08162edbe",

            "first_name": "Sarah",

            "last_name": "Mason",

            "organization": "A-Premium",

            "location": {

              "address1": "89 E 42nd St",

              "address2": "1st floor",

              "city": "New York",

              "country": "United States",

              "region": "NY",

              "zip": "10017",

              "timezone": "America/New_York"

            }

          }

        }

      }

    }

  }

}

use json but response 202,can someone help me?

 

    This topic has been closed for replies.
    Best answer by KeviSunshine

    Hi @rod lee,

    You can consider 202 to be a valid response, meaning your request was valid and Klaviyo is processing it.

    Typically a `202` response means the server has received the request, validated it, and is now processing it but the processing isn’t finished yet. A `200` would typically imply that the request was received, valid, and processed.

    If you’re seeing 202, you should be seeing your changes reflected in Klaviyo’s UI. Can you check?

     

    Cheers,

    Kevin.

     

    P.S. be careful posting emails or names in a public forum like this. I would advise you to edit your post and remove any personal details!!

    2 replies

    KeviSunshine
    Expert Problem Solver III
    Expert Problem Solver III
    March 14, 2024

    Hi @rod lee,

    You can consider 202 to be a valid response, meaning your request was valid and Klaviyo is processing it.

    Typically a `202` response means the server has received the request, validated it, and is now processing it but the processing isn’t finished yet. A `200` would typically imply that the request was received, valid, and processed.

    If you’re seeing 202, you should be seeing your changes reflected in Klaviyo’s UI. Can you check?

     

    Cheers,

    Kevin.

     

    P.S. be careful posting emails or names in a public forum like this. I would advise you to edit your post and remove any personal details!!

    rod leeAuthor
    Contributor I
    March 15, 2024

    ok, I will check it.Thank you very much!