Skip to content

Instantly share code, notes, and snippets.

@legendpeng
Created April 12, 2018 18:51
Show Gist options
  • Save legendpeng/5403dfe2f8a6fec1fd09928cdc568943 to your computer and use it in GitHub Desktop.
Save legendpeng/5403dfe2f8a6fec1fd09928cdc568943 to your computer and use it in GitHub Desktop.
sample guest response
{
"checkoutSessionId": "787665312",
"lineItems": [
{
"itemId": "123041233154",
"title": "Huda Beauty Lipstick Matte Liquid Waterproof Lip Stick Gloss Makeup 9 Colors Lξ",
"variationId": "423473181809",
"variationTitle": "Color: BOMBSHELL",
"summary": {
"shippingCost": {
"value": 0,
"currency": "USD"
}
},
"imageUrl": "https://i.ebayimg.com/images/g/DRUAAOSwo9ZauCWc/s-l96.png",
"image": {
"title": "Huda Beauty Lipstick Matte Liquid Waterproof Lip Stick Gloss Makeup 9 Colors Lξ",
"imageId": "DRUAAOSwo9ZauCWc",
"imageIdType": "ZOOM_GUID",
"URL": "https://i.ebayimg.com/images/g/DRUAAOSwo9ZauCWc/s-l96.png"
},
"price": {
"value": 4.99,
"currency": "USD"
},
"seller": {
"sellerId": "giantdeal"
},
"quantity": 1,
"lineItemId": "BId-{\"ItemId\":123041233154};EId-{\"VariationId\":423473181809};Domain-ebay;LId-420002",
"availableQuantity": 4,
"logistics": [
{
"selected": true,
"logisticsId": "420005",
"name": "Economy SpeedPAK from China/Hong Kong/Taiwan",
"logisticsType": "SHIP_TO_HOME",
"cost": {
"value": 0,
"currency": "USD"
},
"estimate": "Apr 25 – May 10",
"minDeliveryEstimate": "2018-04-25T07:00:00.000Z",
"maxDeliveryEstimate": "2018-05-10T07:00:00.000Z"
}
]
}
],
"shippingAddress": {
"addressId": "6708621037021",
"contactName": "*",
"addressLine1": "*",
"addressLine2": "*",
"stateOrProvince": "CA",
"city": "El Cajon",
"country": "US",
"postalCode": "92020",
"email": "*",
"phoneNumber": "*",
"firstName": "*",
"lastName": "*"
},
"paymentInstrument": {
"paymentInstrumentId": "*",
"paymentInstrumentDetails": {
"accountType": "CC",
"subType": "VISA",
"accountId": "x-5001",
"label": "Visa",
"type": "PAYMENT_CARD",
"fundingSourceId": "TC_872681825",
"selected": true,
"billingAddress": {
"contactName": "*",
"addressLine1": "*",
"addressLine2": "*",
"stateOrProvince": "CA",
"city": "El Cajon",
"country": "US",
"postalCode": "92020",
"phoneNumber": "*",
"firstName": "*",
"lastName": "*"
}
},
"billingAddress": {
"contactName": "*",
"addressLine1": "*",
"addressLine2": "*",
"stateOrProvince": "CA",
"city": "El Cajon",
"country": "US",
"postalCode": "92020",
"phoneNumber": "*",
"firstName": "*",
"lastName": "*"
},
"selected": true,
"fundingSourceDetails": [
{
"accountType": "CC",
"subType": "VISA",
"accountId": "x-5001",
"label": "Visa",
"type": "PAYMENT_CARD",
"fundingSourceId": "TC_872681825",
"selected": true,
"billingAddress": {
"contactName": "*",
"addressLine1": "*",
"addressLine2": "*",
"stateOrProvince": "CA",
"city": "El Cajon",
"country": "US",
"postalCode": "92020",
"phoneNumber": "*",
"firstName": "*",
"lastName": "*"
}
}
]
},
"availablePaymentMethods": [
{
"paymentMethodId": "PAYPAL",
"selected": false,
"available": true,
"paymentDetailsComplete": false,
"integrationUrls": {
"paypalLoginUrl": "{ebaySignin}?SignInAuthRedirect3&guestId=AQACAAAAUOu%2B6dCYowljWisF3gjQ5Avg1H8PVlS7E61gtzL31lIs452264t3sI7vue2AZuvebOB1XYvy6VueZNNtrpWE%2FxKXmMRJfGtfTRQKx7q0BOHU&ru={ru}&idp=104&fl=9&returnError=true&taid=1005&idpDisplay={idpDisplay}&idpData=idp_authorize_uri%3Dhttps%3A%2F%2Fwww.paypal.com%2Fwebapps%2Fhelios%26action%3Dlogin%26cart_id%3D6UG19323T8947461X%26client_id%3DZjI5ZTI0NmY0ZDY2Y2JlNjkwYWY3MDkwMjZiYTRkYzg%253D%26redirect_uri%3D%26hideRM%3Dtrue%26locale%3Den-US"
}
},
{
"paymentMethodId": "CC",
"selected": true,
"available": true,
"paymentDetailsComplete": true,
"paymentInstruments": [
{
"paymentInstrumentId": "*",
"paymentInstrumentDetails": {
"accountType": "CC",
"subType": "VISA",
"accountId": "x-5001",
"label": "Visa",
"type": "PAYMENT_CARD",
"fundingSourceId": "TC_872681825",
"selected": true,
"billingAddress": {
"contactName": "*",
"addressLine1": "*",
"addressLine2": "*",
"stateOrProvince": "CA",
"city": "El Cajon",
"country": "US",
"postalCode": "92020",
"phoneNumber": "*",
"firstName": "*",
"lastName": "*"
}
},
"billingAddress": {
"contactName": "*",
"addressLine1": "*",
"addressLine2": "*",
"stateOrProvince": "CA",
"city": "El Cajon",
"country": "US",
"postalCode": "92020",
"phoneNumber": "*",
"firstName": "*",
"lastName": "*"
},
"selected": true,
"fundingSourceDetails": [
{
"accountType": "CC",
"subType": "VISA",
"accountId": "x-5001",
"label": "Visa",
"type": "PAYMENT_CARD",
"fundingSourceId": "TC_872681825",
"selected": true,
"billingAddress": {
"contactName": "*",
"addressLine1": "*",
"addressLine2": "*",
"stateOrProvince": "CA",
"city": "El Cajon",
"country": "US",
"postalCode": "92020",
"phoneNumber": "*",
"firstName": "*",
"lastName": "*"
}
}
]
}
]
}
],
"orderDetails": {
"purchaseOrderId": "210000156755778",
"purchasedLineItems": [
{
"itemId": "123041233154",
"transactionId": "1938433413002",
"variationId": "423473181809",
"paymentStatus": "PURCHASED"
}
],
"purchaseStatus": "PURCHASED"
},
"pricingSummary": {
"priceSubtotal": {
"value": 4.99,
"currency": "USD"
},
"shippingCost": {
"value": 0,
"currency": "USD"
},
"tax": {
"value": 0,
"currency": "USD"
},
"deduction": {
"value": 0,
"currency": "USD"
},
"importCharge": {
"value": 0,
"currency": "USD"
},
"discount": {
"value": 0,
"currency": "USD"
},
"total": {
"value": 4.99,
"currency": "USD"
}
},
"smePromotions": [],
"allShippingAddresses": [
{
"addressId": "6708621037021",
"contactName": "*",
"addressLine1": "*",
"addressLine2": "*",
"stateOrProvince": "CA",
"city": "El Cajon",
"country": "US",
"postalCode": "92020",
"email": "*",
"phoneNumber": "*",
"firstName": "*",
"lastName": "*"
},
{
"addressId": "707f519d-edf5-4b62-94c4-8937dfdd9abe",
"contactName": "*",
"addressLine1": "*",
"addressLine2": "*",
"stateOrProvince": "CA",
"city": "El Cajon",
"country": "US",
"postalCode": "92020",
"phoneNumber": "*",
"firstName": "*",
"lastName": "*",
"phoneIso2Code": "US",
"phoneCallingCode": "1"
}
],
"roiTrackings": [
{
"url": "https://ad.doubleclick.net/ddm/activity/src=8229061;type=sales;cat=8aiyq5sv;ord=1938433413002?"
},
{
"url": "https://as.chango.com/conv/i?conversion_id=10688&cost=4.99&quantity=1&u1=bin-fp&u2=123041233154&u3=26395&u4=0&u5=&u6=1773082035&u7=TYPE_OF_USER&u8=4.99&u9=ROI_TRACKER_PLACEMENT_ID"
},
{
"url": "https://smrtpxl.advertising.com/I?spid=123&Ty=Type_of_User&Si=0&Re=4.99&RO=ROI_Tracker_Placement_ID&Qu=1&Or=4.99&It=123041233154&Ha=1773082035&Ev=bin-fp&Ca=26395&CG="
},
{
"url": "https://secure.33across.com/ps/?pid=225&event=buynow&cat2=26395"
},
{
"url": "https://ads.ebay.com/roverext/13/0/18?pixelID=123&eid=sell&cat=26395&item_id=123041233154&quantity=1&total_amount=4.99&oras=1410541218&type=BIN-FP"
},
{
"url": "https://www.googleadservices.com/pagead/conversion/964478042/?label=PTWBCL2Hm1YQ2ojzywM&guid=ON&script=0&value=&Type=BIN-FP"
},
{
"url": "https://api.nanigans.com/event.php?app_id=43830&type=purchase&name=bin_fp&user_id=&oracle_id=1773082035&sku=123041233154&tcat=26395&value=4.99&qty=1&roi=[ROI_tracker_placement_id]&revenue=4.99&user_type=[type_of_user]"
},
{
"url": "https://d.turn.com/r/dd/id/L21rdC85NS9jaWQvMjg0MzkzODcvdC8y/cat/[0/dpuid/[provider_user_id]/kv/binPrice=4.99,itemTitle=[value],btp=[value],ls=[value],crm=[value],hasKids=[value],isMarried=[value],lp=[value],tcat=[value],aid=[value],bread=[value],meta=[value],css=[value],eic=[value],btf=[value],keyword=[value],tps=[value],gender=[value],userID=[value],lb=[value],itemID=[value],eid=[value]&Type=BinFP"
},
{
"url": "https://googleads.g.doubleclick.net/pagead/viewthroughconversion/1005566788/?value=0&guid=ON&data=ecomm_pagetype=transaction;category=26395;category_2=0;ecomm_prodid=123041233154;item_id=;type=BIN-FP&script=0"
},
{
"url": "https://pixel.mathtag.com/event/img?mt_id=453196&mt_adid=122938&v1=4.99&v2=1&v3=0&s1=bin-fp&s2=&s3=26395"
},
{
"url": "https://api.nanigans.com/event.php?app_id=44407&type=purchase&name=bin_fp&user_id=&oracle_id=1773082035&sku=123041233154&tcat=26395&value=4.99&qty=1&roi=[ROI_tracker_placement_id]&revenue=4.99&user_type=[type_of_user]"
},
{
"url": "https://www.googleadservices.com/pagead/conversion/1005566788/?value=&label=Yq8MCOytkQgQxPa-3wM&guid=ON&type=BIN-FP&script=0"
},
{
"url": "https://www.googleadservices.com/pagead/conversion/963784165/?label=PGa8CJjnn1YQ5dvIywM&guid=ON&script=0&value=&Type=BIN-FP"
},
{
"url": "https://www.facebook.com/tr?ev=6021611496188&cd[value]=1&cd[currency]=USD&noscript=1&cd[item_id]=123041233154&cd[trx_id]=1938433413002&type=BinFP"
},
{
"url": "https://www.facebook.com/tr/?id=775033202546050&ev=Purchase&cd[value]=4.99&cd[currency]=USD&cd[order_id]=123041233154-1938433413002&cd[content_type]=product&cd[content_ids]=123041233154"
},
{
"url": "https://pixel.quantserve.com/pixel/p-uE6N88uXG2_sp.gif?labels=_fp.channel.0,_fp.event.Purchase+Confirmation&revenue=4.99&type=BinFP"
},
{
"url": "https://ad.doubleclick.net/ddm/activity/src=4656348;type=invmedia;cat=q3dc5zok;u1=0;u2=26395;u3=4.99;u4=104100;ord=1?&Type=BinFP"
},
{
"url": "https://pixel.mathtag.com/event/img?mt_id=711993&mt_adid=138196&v1=26395&v2=&v3=&s1=4.99&s2=104100&s3=&Type=BinFp"
},
{
"url": "https://stat.dealtime.com/pixel/20180412104100-BIN-FP?ROI_EvnTyp=ROI&ROI_SrvPgTyp=ROICHKO&ROI_MrcID=446528&ROI_OrdAmn=4.99&ROI_CtgID=26395&ROI_OrdID=1938433413002&ROI_OrgHttpRfr=&ROI_FrgMrcID=&ROI_MrcAggID=&ROI_VOTFUsrID=&ROI_OrdCrr="
},
{
"url": "https://adfarm.mediaplex.com/ad/bk/9656-55147-1801-6?BIN-FP=1&mpuid=1773082035;123041233154;1938433413002"
},
{
"url": "https://stags.bluekai.com/site/15445?phint=tx_type=bin-fp&phint=site=0&phint=qty=1&phint=ord=4.99&phint=meta=26395&phint=tcat=0&phint=item=123041233154&phint=bid=1773082035&phint=sid=1410541218"
},
{
"url": "https://ad.doubleclick.net/ddm/activity/src=5417731;type=invmedia;cat=obwksaj0;dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;ord=1?;TagType=BinFP"
},
{
"url": "https://srv.main.ebayrtm.com/clk?RtmCnv&;src=903474;type=bin_fp;cat=26395;qty=1;cost=0.00;u=1773082035;tran=123041233154;kv1=123041233154;kv2=0;kv3=1410541218;kv4=123041233154:1938433413002;ord=123041233154:1938433413002?"
},
{
"url": "https://secure.adnxs.com/px?id=687370&order_id=1938433413002&value=4.99&t=2"
},
{
"url": "https://api.adsymptotic.com/api/s/trackconversion?_pid=12376&_psign=a6d174e8ff2ca80bb2182d211e491123&_aid=3958&_lbl=CT&_pc_ev_tp=thankyoupage_ebay_new&_pc_ev_spd=4.99&_pc_ev_ct=26395&_pc_ev_tx_id=1938433413002&_pc_ev_cr=USD"
},
{
"url": "https://secure.adnxs.com/px?id=753657&seg=6119347&order_id=1938433413002&value=4.99&t=2"
},
{
"url": "https://rover.ebay.com/roverroi/1/711-518-1801-6?siteId=0&tranType=BIN-FP&BIN-FP=1&rcb=0&mpuid=1773082035;123041233154;1938433413002;"
},
{
"url": "https://api.jetlore.com/track.png?access_token=929520b3d35b94331550bcf51ca78017cfb28d0476731e8ad33804548f22e3b4&action=binFP&id=1773082035&pid=123041233154&count=1&price=4.99&category1=26395&category2=0"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment