Core API
Orders
Order status
1 min
code examples curl location globoff 'https //api forter secure com/v2/status/{id}' \\ \ header 'accept application/json' \\ \ header 'content type application/json' \\ \ data '{ "additionalinformation" {}, "cartitems" \[ { "basicitemdata" { "discount" { "couponcodeused" "fathersday2015", "coupondiscountamount" {} }, "name" "white genericbrand handbag", "price" {}, "quantity" 1, "type" "tangible" }, "beneficiaries" \[ { "additionalverificationdocuments" { "documentsource" "uploaded file", "documenttype" "passport", "documentverificationserviceresponsepayload" {} }, "address" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" { "usedsaveddata" true } }, "bankaccount" { "paymentgatewaydata" {} }, "comments" {}, "cryptowallet" { "cryptowallettype" "external" }, "personaldetails" {}, "phone" \[ { "phone" "15557654321", "smsverified" { "sent" true, "verified" false } } ] } ], "deliverydetails" { "deliverymethod" "usps ground mail", "deliveryprice" {}, "deliverytype" "physical" }, "itemreturndata" { "posdetails" { "address" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" { "usedsaveddata" true } }, "cardentrymethod" "scanned", "cashierid" "fgh5e0rr48923d", "departmentid" "e0r4592356fds", "storebusinessunit" "full line", "storeid" "2356fdse0rr489", "storename" "union square", "workstationid" "923e5th5e0rr48" }, "returnstatuslog" {} }, "itemspecificdata" { "accommodation" { "accommodationaddress" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" { "usedsaveddata" true } }, "duration" { "enddate" "2014 11 15", "startdate" "2014 10 28" }, "location" {}, "numberofguests" 2, "rating" \[ { "score" "4 5", "source" "yelp", "type" "internal peers" } ], "type" "hotel" }, "cryptocurrency" {}, "digitalgoodsandservices" { "duration" { "enddate" "2014 11 15", "startdate" "2014 10 28" }, "webhosting" { "domains" \[] } }, "food" { "restaurantaddress" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" { "usedsaveddata" true } }, "tipamount" {} }, "gaming" { "gameitemamount" 1000, "gamename" "worldofsamplegamecrat" }, "physicalgoods" {}, "professionalservices" { "tipamount" {} }, "ticketsandevents" { "eventlocation" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" { "usedsaveddata" true } }, "eventname" "fifa world cup final" }, "transport" \[ { "driverdetails" { "availablefundsforwithdrawal" {}, "ratingasbuyer" { "score" "4 5", "source" "yelp", "type" "internal peers" }, "ratingasseller" { "score" "4 5", "source" "yelp", "type" "internal peers" }, "selleraccountcreationdate" 1415273168, "sellerlastloginip" { "ip" "10 0 0 128", "updatetimes" {} }, "sellerpersonaldetails" {}, "sellerregistrationip" { "ip" "10 0 0 128", "updatetimes" {} } }, "duration" { "starttime" 1412345911 }, "endpoint" { "address" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" {} }, "exactlocation" { "latitude" 32 07332, "longitude" 34 79675, "source" "mobile" }, "locationname" {}, "roughlocation" {}, "savedlocation" { "usedsaveddata" true } }, "locationattimeofreservation" { "address" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" {} }, "exactlocation" { "latitude" 32 07332, "longitude" 34 79675, "source" "mobile" }, "locationname" {}, "roughlocation" {}, "savedlocation" { "usedsaveddata" true } }, "startpoint" { "address" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" {} }, "exactlocation" { "latitude" 32 07332, "longitude" 34 79675, "source" "mobile" }, "locationname" {}, "roughlocation" {}, "savedlocation" { "usedsaveddata" true } }, "type" "air travel" } ] }, "seller" { "sellerdetails" { "availablefundsforwithdrawal" {}, "ratingasbuyer" { "score" "4 5", "source" "yelp", "type" "internal peers" }, "ratingasseller" { "score" "4 5", "source" "yelp", "type" "internal peers" }, "selleraccountcreationdate" 1415273168, "sellerlastloginip" { "ip" "10 0 0 128", "updatetimes" { "creationtime" 1448549922 } }, "sellerpersonaldetails" {}, "sellerregistrationip" { "ip" "10 0 0 128", "updatetimes" { "creationtime" 1448549922 } } } }, "shopifyadditionalitemdata" { "properties" {} } } ], "compensationstatus" { "itemstatus" \[ { "basicitemdata" { "discount" { "couponcodeused" "fathersday2015", "coupondiscountamount" {} }, "name" "white genericbrand handbag", "price" {}, "quantity" 1, "type" "tangible" }, "statusdata" { "compensationtypegranted" "refund", "reasoncategory" "changed my mind", "returnmethodgranted" "ship to warehouse", "statuslog" {}, "updatedstatus" "accepted by merchant" } } ], "merchantagentdata" {}, "shippingrefundedamount" {}, "statusdata" { "compensationtypegranted" "refund", "reasoncategory" "changed my mind", "returnmethodgranted" "ship to warehouse", "statuslog" {}, "updatedstatus" "accepted by merchant" }, "totalgrantedamount" {} }, "deliverystatusinfo" {}, "endpointlocation" { "address" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" { "usedsaveddata" true } }, "exactlocation" { "latitude" 32 07332, "longitude" 34 79675, "source" "mobile" }, "locationname" {}, "roughlocation" {}, "savedlocation" { "usedsaveddata" true } }, "eventtime" 1415287568000, "orderid" "2356fdse0rr489", "refundinformation" { "refundamount" {} }, "returnedcartitems" \[ { "basicitemdata" { "discount" { "couponcodeused" "fathersday2015", "coupondiscountamount" {} }, "name" "white genericbrand handbag", "price" {}, "quantity" 1, "type" "tangible" }, "beneficiaries" \[ { "additionalverificationdocuments" { "documentsource" "uploaded file", "documenttype" "passport", "documentverificationserviceresponsepayload" {} }, "address" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" { "usedsaveddata" true } }, "bankaccount" { "paymentgatewaydata" {} }, "comments" {}, "cryptowallet" { "cryptowallettype" "external" }, "personaldetails" {}, "phone" \[ { "phone" "15557654321", "smsverified" { "sent" true, "verified" false } } ] } ], "deliverydetails" { "deliverymethod" "usps ground mail", "deliveryprice" {}, "deliverytype" "physical" }, "itemreturndata" { "posdetails" { "address" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" { "usedsaveddata" true } }, "cardentrymethod" "scanned", "cashierid" "fgh5e0rr48923d", "departmentid" "e0r4592356fds", "storebusinessunit" "full line", "storeid" "2356fdse0rr489", "storename" "union square", "workstationid" "923e5th5e0rr48" }, "returnstatuslog" {} }, "itemspecificdata" { "accommodation" { "accommodationaddress" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" { "usedsaveddata" true } }, "duration" { "enddate" "2014 11 15", "startdate" "2014 10 28" }, "location" {}, "numberofguests" 2, "rating" \[ { "score" "4 5", "source" "yelp", "type" "internal peers" } ], "type" "hotel" }, "cryptocurrency" {}, "digitalgoodsandservices" { "duration" { "enddate" "2014 11 15", "startdate" "2014 10 28" }, "webhosting" { "domains" \[] } }, "food" { "restaurantaddress" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" { "usedsaveddata" true } }, "tipamount" {} }, "gaming" { "gameitemamount" 1000, "gamename" "worldofsamplegamecrat" }, "physicalgoods" {}, "professionalservices" { "tipamount" {} }, "ticketsandevents" { "eventlocation" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" { "usedsaveddata" true } }, "eventname" "fifa world cup final" }, "transport" \[ { "driverdetails" { "availablefundsforwithdrawal" {}, "ratingasbuyer" { "score" "4 5", "source" "yelp", "type" "internal peers" }, "ratingasseller" { "score" "4 5", "source" "yelp", "type" "internal peers" }, "selleraccountcreationdate" 1415273168, "sellerlastloginip" { "ip" "10 0 0 128", "updatetimes" {} }, "sellerpersonaldetails" {}, "sellerregistrationip" { "ip" "10 0 0 128", "updatetimes" {} } }, "duration" { "starttime" 1412345911 }, "endpoint" { "address" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" {} }, "exactlocation" { "latitude" 32 07332, "longitude" 34 79675, "source" "mobile" }, "locationname" {}, "roughlocation" {}, "savedlocation" { "usedsaveddata" true } }, "locationattimeofreservation" { "address" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" {} }, "exactlocation" { "latitude" 32 07332, "longitude" 34 79675, "source" "mobile" }, "locationname" {}, "roughlocation" {}, "savedlocation" { "usedsaveddata" true } }, "startpoint" { "address" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" {} }, "exactlocation" { "latitude" 32 07332, "longitude" 34 79675, "source" "mobile" }, "locationname" {}, "roughlocation" {}, "savedlocation" { "usedsaveddata" true } }, "type" "air travel" } ] }, "seller" { "sellerdetails" { "availablefundsforwithdrawal" {}, "ratingasbuyer" { "score" "4 5", "source" "yelp", "type" "internal peers" }, "ratingasseller" { "score" "4 5", "source" "yelp", "type" "internal peers" }, "selleraccountcreationdate" 1415273168, "sellerlastloginip" { "ip" "10 0 0 128", "updatetimes" { "creationtime" 1448549922 } }, "sellerpersonaldetails" {}, "sellerregistrationip" { "ip" "10 0 0 128", "updatetimes" { "creationtime" 1448549922 } } } }, "shopifyadditionalitemdata" { "properties" {} } } ], "updatedstatus" "sent", "updatedtotalamount" {}, "updatedtotaldiscount" { "couponcodeused" "fathersday2015", "coupondiscountamount" {} }, "verificationresults" { "external3dsvendorpayload" {} } }'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var raw = json stringify({ "additionalinformation" {}, "cartitems" \[ { "basicitemdata" { "discount" { "couponcodeused" "fathersday2015", "coupondiscountamount" {} }, "name" "white genericbrand handbag", "price" {}, "quantity" 1, "type" "tangible" }, "beneficiaries" \[ { "additionalverificationdocuments" { "documentsource" "uploaded file", "documenttype" "passport", "documentverificationserviceresponsepayload" {} }, "address" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" { "usedsaveddata" true } }, "bankaccount" { "paymentgatewaydata" {} }, "comments" {}, "cryptowallet" { "cryptowallettype" "external" }, "personaldetails" {}, "phone" \[ { "phone" "15557654321", "smsverified" { "sent" true, "verified" false } } ] } ], "deliverydetails" { "deliverymethod" "usps ground mail", "deliveryprice" {}, "deliverytype" "physical" }, "itemreturndata" { "posdetails" { "address" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" { "usedsaveddata" true } }, "cardentrymethod" "scanned", "cashierid" "fgh5e0rr48923d", "departmentid" "e0r4592356fds", "storebusinessunit" "full line", "storeid" "2356fdse0rr489", "storename" "union square", "workstationid" "923e5th5e0rr48" }, "returnstatuslog" {} }, "itemspecificdata" { "accommodation" { "accommodationaddress" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" { "usedsaveddata" true } }, "duration" { "enddate" "2014 11 15", "startdate" "2014 10 28" }, "location" {}, "numberofguests" 2, "rating" \[ { "score" "4 5", "source" "yelp", "type" "internal peers" } ], "type" "hotel" }, "cryptocurrency" {}, "digitalgoodsandservices" { "duration" { "enddate" "2014 11 15", "startdate" "2014 10 28" }, "webhosting" { "domains" \[] } }, "food" { "restaurantaddress" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" { "usedsaveddata" true } }, "tipamount" {} }, "gaming" { "gameitemamount" 1000, "gamename" "worldofsamplegamecrat" }, "physicalgoods" {}, "professionalservices" { "tipamount" {} }, "ticketsandevents" { "eventlocation" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" { "usedsaveddata" true } }, "eventname" "fifa world cup final" }, "transport" \[ { "driverdetails" { "availablefundsforwithdrawal" {}, "ratingasbuyer" { "score" "4 5", "source" "yelp", "type" "internal peers" }, "ratingasseller" { "score" "4 5", "source" "yelp", "type" "internal peers" }, "selleraccountcreationdate" 1415273168, "sellerlastloginip" { "ip" "10 0 0 128", "updatetimes" {} }, "sellerpersonaldetails" {}, "sellerregistrationip" { "ip" "10 0 0 128", "updatetimes" {} } }, "duration" { "starttime" 1412345911 }, "endpoint" { "address" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" {} }, "exactlocation" { "latitude" 32 07332, "longitude" 34 79675, "source" "mobile" }, "locationname" {}, "roughlocation" {}, "savedlocation" { "usedsaveddata" true } }, "locationattimeofreservation" { "address" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" {} }, "exactlocation" { "latitude" 32 07332, "longitude" 34 79675, "source" "mobile" }, "locationname" {}, "roughlocation" {}, "savedlocation" { "usedsaveddata" true } }, "startpoint" { "address" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" {} }, "exactlocation" { "latitude" 32 07332, "longitude" 34 79675, "source" "mobile" }, "locationname" {}, "roughlocation" {}, "savedlocation" { "usedsaveddata" true } }, "type" "air travel" } ] }, "seller" { "sellerdetails" { "availablefundsforwithdrawal" {}, "ratingasbuyer" { "score" "4 5", "source" "yelp", "type" "internal peers" }, "ratingasseller" { "score" "4 5", "source" "yelp", "type" "internal peers" }, "selleraccountcreationdate" 1415273168, "sellerlastloginip" { "ip" "10 0 0 128", "updatetimes" { "creationtime" 1448549922 } }, "sellerpersonaldetails" {}, "sellerregistrationip" { "ip" "10 0 0 128", "updatetimes" { "creationtime" 1448549922 } } } }, "shopifyadditionalitemdata" { "properties" {} } } ], "compensationstatus" { "itemstatus" \[ { "basicitemdata" { "discount" { "couponcodeused" "fathersday2015", "coupondiscountamount" {} }, "name" "white genericbrand handbag", "price" {}, "quantity" 1, "type" "tangible" }, "statusdata" { "compensationtypegranted" "refund", "reasoncategory" "changed my mind", "returnmethodgranted" "ship to warehouse", "statuslog" {}, "updatedstatus" "accepted by merchant" } } ], "merchantagentdata" {}, "shippingrefundedamount" {}, "statusdata" { "compensationtypegranted" "refund", "reasoncategory" "changed my mind", "returnmethodgranted" "ship to warehouse", "statuslog" {}, "updatedstatus" "accepted by merchant" }, "totalgrantedamount" {} }, "deliverystatusinfo" {}, "endpointlocation" { "address" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" { "usedsaveddata" true } }, "exactlocation" { "latitude" 32 07332, "longitude" 34 79675, "source" "mobile" }, "locationname" {}, "roughlocation" {}, "savedlocation" { "usedsaveddata" true } }, "eventtime" 1415287568000, "orderid" "2356fdse0rr489", "refundinformation" { "refundamount" {} }, "returnedcartitems" \[ { "basicitemdata" { "discount" { "couponcodeused" "fathersday2015", "coupondiscountamount" {} }, "name" "white genericbrand handbag", "price" {}, "quantity" 1, "type" "tangible" }, "beneficiaries" \[ { "additionalverificationdocuments" { "documentsource" "uploaded file", "documenttype" "passport", "documentverificationserviceresponsepayload" {} }, "address" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" { "usedsaveddata" true } }, "bankaccount" { "paymentgatewaydata" {} }, "comments" {}, "cryptowallet" { "cryptowallettype" "external" }, "personaldetails" {}, "phone" \[ { "phone" "15557654321", "smsverified" { "sent" true, "verified" false } } ] } ], "deliverydetails" { "deliverymethod" "usps ground mail", "deliveryprice" {}, "deliverytype" "physical" }, "itemreturndata" { "posdetails" { "address" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" { "usedsaveddata" true } }, "cardentrymethod" "scanned", "cashierid" "fgh5e0rr48923d", "departmentid" "e0r4592356fds", "storebusinessunit" "full line", "storeid" "2356fdse0rr489", "storename" "union square", "workstationid" "923e5th5e0rr48" }, "returnstatuslog" {} }, "itemspecificdata" { "accommodation" { "accommodationaddress" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" { "usedsaveddata" true } }, "duration" { "enddate" "2014 11 15", "startdate" "2014 10 28" }, "location" {}, "numberofguests" 2, "rating" \[ { "score" "4 5", "source" "yelp", "type" "internal peers" } ], "type" "hotel" }, "cryptocurrency" {}, "digitalgoodsandservices" { "duration" { "enddate" "2014 11 15", "startdate" "2014 10 28" }, "webhosting" { "domains" \[] } }, "food" { "restaurantaddress" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" { "usedsaveddata" true } }, "tipamount" {} }, "gaming" { "gameitemamount" 1000, "gamename" "worldofsamplegamecrat" }, "physicalgoods" {}, "professionalservices" { "tipamount" {} }, "ticketsandevents" { "eventlocation" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" { "usedsaveddata" true } }, "eventname" "fifa world cup final" }, "transport" \[ { "driverdetails" { "availablefundsforwithdrawal" {}, "ratingasbuyer" { "score" "4 5", "source" "yelp", "type" "internal peers" }, "ratingasseller" { "score" "4 5", "source" "yelp", "type" "internal peers" }, "selleraccountcreationdate" 1415273168, "sellerlastloginip" { "ip" "10 0 0 128", "updatetimes" {} }, "sellerpersonaldetails" {}, "sellerregistrationip" { "ip" "10 0 0 128", "updatetimes" {} } }, "duration" { "starttime" 1412345911 }, "endpoint" { "address" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" {} }, "exactlocation" { "latitude" 32 07332, "longitude" 34 79675, "source" "mobile" }, "locationname" {}, "roughlocation" {}, "savedlocation" { "usedsaveddata" true } }, "locationattimeofreservation" { "address" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" {} }, "exactlocation" { "latitude" 32 07332, "longitude" 34 79675, "source" "mobile" }, "locationname" {}, "roughlocation" {}, "savedlocation" { "usedsaveddata" true } }, "startpoint" { "address" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" {} }, "exactlocation" { "latitude" 32 07332, "longitude" 34 79675, "source" "mobile" }, "locationname" {}, "roughlocation" {}, "savedlocation" { "usedsaveddata" true } }, "type" "air travel" } ] }, "seller" { "sellerdetails" { "availablefundsforwithdrawal" {}, "ratingasbuyer" { "score" "4 5", "source" "yelp", "type" "internal peers" }, "ratingasseller" { "score" "4 5", "source" "yelp", "type" "internal peers" }, "selleraccountcreationdate" 1415273168, "sellerlastloginip" { "ip" "10 0 0 128", "updatetimes" { "creationtime" 1448549922 } }, "sellerpersonaldetails" {}, "sellerregistrationip" { "ip" "10 0 0 128", "updatetimes" { "creationtime" 1448549922 } } } }, "shopifyadditionalitemdata" { "properties" {} } } ], "updatedstatus" "sent", "updatedtotalamount" {}, "updatedtotaldiscount" { "couponcodeused" "fathersday2015", "coupondiscountamount" {} }, "verificationresults" { "external3dsvendorpayload" {} } }); var requestoptions = { method 'post', headers myheaders, body raw, redirect 'follow' }; fetch("https //api forter secure com/v2/status/{id}", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));require "uri" require "json" require "net/http" url = uri("https //api forter secure com/v2/status/{id}") https = net http new(url host, url port) https use ssl = true request = net http post new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" request body = json dump({ "additionalinformation" {}, "cartitems" \[ { "basicitemdata" { "discount" { "couponcodeused" "fathersday2015", "coupondiscountamount" {} }, "name" "white genericbrand handbag", "price" {}, "quantity" 1, "type" "tangible" }, "beneficiaries" \[ { "additionalverificationdocuments" { "documentsource" "uploaded file", "documenttype" "passport", "documentverificationserviceresponsepayload" {} }, "address" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" { "usedsaveddata" true } }, "bankaccount" { "paymentgatewaydata" {} }, "comments" {}, "cryptowallet" { "cryptowallettype" "external" }, "personaldetails" {}, "phone" \[ { "phone" "15557654321", "smsverified" { "sent" true, "verified" false } } ] } ], "deliverydetails" { "deliverymethod" "usps ground mail", "deliveryprice" {}, "deliverytype" "physical" }, "itemreturndata" { "posdetails" { "address" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" { "usedsaveddata" true } }, "cardentrymethod" "scanned", "cashierid" "fgh5e0rr48923d", "departmentid" "e0r4592356fds", "storebusinessunit" "full line", "storeid" "2356fdse0rr489", "storename" "union square", "workstationid" "923e5th5e0rr48" }, "returnstatuslog" {} }, "itemspecificdata" { "accommodation" { "accommodationaddress" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" { "usedsaveddata" true } }, "duration" { "enddate" "2014 11 15", "startdate" "2014 10 28" }, "location" {}, "numberofguests" 2, "rating" \[ { "score" "4 5", "source" "yelp", "type" "internal peers" } ], "type" "hotel" }, "cryptocurrency" {}, "digitalgoodsandservices" { "duration" { "enddate" "2014 11 15", "startdate" "2014 10 28" }, "webhosting" { "domains" \[] } }, "food" { "restaurantaddress" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" { "usedsaveddata" true } }, "tipamount" {} }, "gaming" { "gameitemamount" 1000, "gamename" "worldofsamplegamecrat" }, "physicalgoods" {}, "professionalservices" { "tipamount" {} }, "ticketsandevents" { "eventlocation" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" { "usedsaveddata" true } }, "eventname" "fifa world cup final" }, "transport" \[ { "driverdetails" { "availablefundsforwithdrawal" {}, "ratingasbuyer" { "score" "4 5", "source" "yelp", "type" "internal peers" }, "ratingasseller" { "score" "4 5", "source" "yelp", "type" "internal peers" }, "selleraccountcreationdate" 1415273168, "sellerlastloginip" { "ip" "10 0 0 128", "updatetimes" {} }, "sellerpersonaldetails" {}, "sellerregistrationip" { "ip" "10 0 0 128", "updatetimes" {} } }, "duration" { "starttime" 1412345911 }, "endpoint" { "address" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" {} }, "exactlocation" { "latitude" 32 07332, "longitude" 34 79675, "source" "mobile" }, "locationname" {}, "roughlocation" {}, "savedlocation" { "usedsaveddata" true } }, "locationattimeofreservation" { "address" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" {} }, "exactlocation" { "latitude" 32 07332, "longitude" 34 79675, "source" "mobile" }, "locationname" {}, "roughlocation" {}, "savedlocation" { "usedsaveddata" true } }, "startpoint" { "address" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" {} }, "exactlocation" { "latitude" 32 07332, "longitude" 34 79675, "source" "mobile" }, "locationname" {}, "roughlocation" {}, "savedlocation" { "usedsaveddata" true } }, "type" "air travel" } ] }, "seller" { "sellerdetails" { "availablefundsforwithdrawal" {}, "ratingasbuyer" { "score" "4 5", "source" "yelp", "type" "internal peers" }, "ratingasseller" { "score" "4 5", "source" "yelp", "type" "internal peers" }, "selleraccountcreationdate" 1415273168, "sellerlastloginip" { "ip" "10 0 0 128", "updatetimes" { "creationtime" 1448549922 } }, "sellerpersonaldetails" {}, "sellerregistrationip" { "ip" "10 0 0 128", "updatetimes" { "creationtime" 1448549922 } } } }, "shopifyadditionalitemdata" { "properties" {} } } ], "compensationstatus" { "itemstatus" \[ { "basicitemdata" { "discount" { "couponcodeused" "fathersday2015", "coupondiscountamount" {} }, "name" "white genericbrand handbag", "price" {}, "quantity" 1, "type" "tangible" }, "statusdata" { "compensationtypegranted" "refund", "reasoncategory" "changed my mind", "returnmethodgranted" "ship to warehouse", "statuslog" {}, "updatedstatus" "accepted by merchant" } } ], "merchantagentdata" {}, "shippingrefundedamount" {}, "statusdata" { "compensationtypegranted" "refund", "reasoncategory" "changed my mind", "returnmethodgranted" "ship to warehouse", "statuslog" {}, "updatedstatus" "accepted by merchant" }, "totalgrantedamount" {} }, "deliverystatusinfo" {}, "endpointlocation" { "address" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" { "usedsaveddata" true } }, "exactlocation" { "latitude" 32 07332, "longitude" 34 79675, "source" "mobile" }, "locationname" {}, "roughlocation" {}, "savedlocation" { "usedsaveddata" true } }, "eventtime" 1415287568000, "orderid" "2356fdse0rr489", "refundinformation" { "refundamount" {} }, "returnedcartitems" \[ { "basicitemdata" { "discount" { "couponcodeused" "fathersday2015", "coupondiscountamount" {} }, "name" "white genericbrand handbag", "price" {}, "quantity" 1, "type" "tangible" }, "beneficiaries" \[ { "additionalverificationdocuments" { "documentsource" "uploaded file", "documenttype" "passport", "documentverificationserviceresponsepayload" {} }, "address" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" { "usedsaveddata" true } }, "bankaccount" { "paymentgatewaydata" {} }, "comments" {}, "cryptowallet" { "cryptowallettype" "external" }, "personaldetails" {}, "phone" \[ { "phone" "15557654321", "smsverified" { "sent" true, "verified" false } } ] } ], "deliverydetails" { "deliverymethod" "usps ground mail", "deliveryprice" {}, "deliverytype" "physical" }, "itemreturndata" { "posdetails" { "address" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" { "usedsaveddata" true } }, "cardentrymethod" "scanned", "cashierid" "fgh5e0rr48923d", "departmentid" "e0r4592356fds", "storebusinessunit" "full line", "storeid" "2356fdse0rr489", "storename" "union square", "workstationid" "923e5th5e0rr48" }, "returnstatuslog" {} }, "itemspecificdata" { "accommodation" { "accommodationaddress" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" { "usedsaveddata" true } }, "duration" { "enddate" "2014 11 15", "startdate" "2014 10 28" }, "location" {}, "numberofguests" 2, "rating" \[ { "score" "4 5", "source" "yelp", "type" "internal peers" } ], "type" "hotel" }, "cryptocurrency" {}, "digitalgoodsandservices" { "duration" { "enddate" "2014 11 15", "startdate" "2014 10 28" }, "webhosting" { "domains" \[] } }, "food" { "restaurantaddress" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" { "usedsaveddata" true } }, "tipamount" {} }, "gaming" { "gameitemamount" 1000, "gamename" "worldofsamplegamecrat" }, "physicalgoods" {}, "professionalservices" { "tipamount" {} }, "ticketsandevents" { "eventlocation" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" { "usedsaveddata" true } }, "eventname" "fifa world cup final" }, "transport" \[ { "driverdetails" { "availablefundsforwithdrawal" {}, "ratingasbuyer" { "score" "4 5", "source" "yelp", "type" "internal peers" }, "ratingasseller" { "score" "4 5", "source" "yelp", "type" "internal peers" }, "selleraccountcreationdate" 1415273168, "sellerlastloginip" { "ip" "10 0 0 128", "updatetimes" {} }, "sellerpersonaldetails" {}, "sellerregistrationip" { "ip" "10 0 0 128", "updatetimes" {} } }, "duration" { "starttime" 1412345911 }, "endpoint" { "address" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" {} }, "exactlocation" { "latitude" 32 07332, "longitude" 34 79675, "source" "mobile" }, "locationname" {}, "roughlocation" {}, "savedlocation" { "usedsaveddata" true } }, "locationattimeofreservation" { "address" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" {} }, "exactlocation" { "latitude" 32 07332, "longitude" 34 79675, "source" "mobile" }, "locationname" {}, "roughlocation" {}, "savedlocation" { "usedsaveddata" true } }, "startpoint" { "address" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" {} }, "exactlocation" { "latitude" 32 07332, "longitude" 34 79675, "source" "mobile" }, "locationname" {}, "roughlocation" {}, "savedlocation" { "usedsaveddata" true } }, "type" "air travel" } ] }, "seller" { "sellerdetails" { "availablefundsforwithdrawal" {}, "ratingasbuyer" { "score" "4 5", "source" "yelp", "type" "internal peers" }, "ratingasseller" { "score" "4 5", "source" "yelp", "type" "internal peers" }, "selleraccountcreationdate" 1415273168, "sellerlastloginip" { "ip" "10 0 0 128", "updatetimes" { "creationtime" 1448549922 } }, "sellerpersonaldetails" {}, "sellerregistrationip" { "ip" "10 0 0 128", "updatetimes" { "creationtime" 1448549922 } } } }, "shopifyadditionalitemdata" { "properties" {} } } ], "updatedstatus" "sent", "updatedtotalamount" {}, "updatedtotaldiscount" { "couponcodeused" "fathersday2015", "coupondiscountamount" {} }, "verificationresults" { "external3dsvendorpayload" {} } }) response = https request(request) puts response read body import requests import json url = "https //api forter secure com/v2/status/{id}" payload = json dumps({ "additionalinformation" {}, "cartitems" \[ { "basicitemdata" { "discount" { "couponcodeused" "fathersday2015", "coupondiscountamount" {} }, "name" "white genericbrand handbag", "price" {}, "quantity" 1, "type" "tangible" }, "beneficiaries" \[ { "additionalverificationdocuments" { "documentsource" "uploaded file", "documenttype" "passport", "documentverificationserviceresponsepayload" {} }, "address" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" { "usedsaveddata" true } }, "bankaccount" { "paymentgatewaydata" {} }, "comments" {}, "cryptowallet" { "cryptowallettype" "external" }, "personaldetails" {}, "phone" \[ { "phone" "15557654321", "smsverified" { "sent" true, "verified" false } } ] } ], "deliverydetails" { "deliverymethod" "usps ground mail", "deliveryprice" {}, "deliverytype" "physical" }, "itemreturndata" { "posdetails" { "address" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" { "usedsaveddata" true } }, "cardentrymethod" "scanned", "cashierid" "fgh5e0rr48923d", "departmentid" "e0r4592356fds", "storebusinessunit" "full line", "storeid" "2356fdse0rr489", "storename" "union square", "workstationid" "923e5th5e0rr48" }, "returnstatuslog" {} }, "itemspecificdata" { "accommodation" { "accommodationaddress" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" { "usedsaveddata" true } }, "duration" { "enddate" "2014 11 15", "startdate" "2014 10 28" }, "location" {}, "numberofguests" 2, "rating" \[ { "score" "4 5", "source" "yelp", "type" "internal peers" } ], "type" "hotel" }, "cryptocurrency" {}, "digitalgoodsandservices" { "duration" { "enddate" "2014 11 15", "startdate" "2014 10 28" }, "webhosting" { "domains" \[] } }, "food" { "restaurantaddress" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" { "usedsaveddata" true } }, "tipamount" {} }, "gaming" { "gameitemamount" 1000, "gamename" "worldofsamplegamecrat" }, "physicalgoods" {}, "professionalservices" { "tipamount" {} }, "ticketsandevents" { "eventlocation" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" { "usedsaveddata" true } }, "eventname" "fifa world cup final" }, "transport" \[ { "driverdetails" { "availablefundsforwithdrawal" {}, "ratingasbuyer" { "score" "4 5", "source" "yelp", "type" "internal peers" }, "ratingasseller" { "score" "4 5", "source" "yelp", "type" "internal peers" }, "selleraccountcreationdate" 1415273168, "sellerlastloginip" { "ip" "10 0 0 128", "updatetimes" {} }, "sellerpersonaldetails" {}, "sellerregistrationip" { "ip" "10 0 0 128", "updatetimes" {} } }, "duration" { "starttime" 1412345911 }, "endpoint" { "address" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" {} }, "exactlocation" { "latitude" 32 07332, "longitude" 34 79675, "source" "mobile" }, "locationname" {}, "roughlocation" {}, "savedlocation" { "usedsaveddata" true } }, "locationattimeofreservation" { "address" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" {} }, "exactlocation" { "latitude" 32 07332, "longitude" 34 79675, "source" "mobile" }, "locationname" {}, "roughlocation" {}, "savedlocation" { "usedsaveddata" true } }, "startpoint" { "address" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" {} }, "exactlocation" { "latitude" 32 07332, "longitude" 34 79675, "source" "mobile" }, "locationname" {}, "roughlocation" {}, "savedlocation" { "usedsaveddata" true } }, "type" "air travel" } ] }, "seller" { "sellerdetails" { "availablefundsforwithdrawal" {}, "ratingasbuyer" { "score" "4 5", "source" "yelp", "type" "internal peers" }, "ratingasseller" { "score" "4 5", "source" "yelp", "type" "internal peers" }, "selleraccountcreationdate" 1415273168, "sellerlastloginip" { "ip" "10 0 0 128", "updatetimes" { "creationtime" 1448549922 } }, "sellerpersonaldetails" {}, "sellerregistrationip" { "ip" "10 0 0 128", "updatetimes" { "creationtime" 1448549922 } } } }, "shopifyadditionalitemdata" { "properties" {} } } ], "compensationstatus" { "itemstatus" \[ { "basicitemdata" { "discount" { "couponcodeused" "fathersday2015", "coupondiscountamount" {} }, "name" "white genericbrand handbag", "price" {}, "quantity" 1, "type" "tangible" }, "statusdata" { "compensationtypegranted" "refund", "reasoncategory" "changed my mind", "returnmethodgranted" "ship to warehouse", "statuslog" {}, "updatedstatus" "accepted by merchant" } } ], "merchantagentdata" {}, "shippingrefundedamount" {}, "statusdata" { "compensationtypegranted" "refund", "reasoncategory" "changed my mind", "returnmethodgranted" "ship to warehouse", "statuslog" {}, "updatedstatus" "accepted by merchant" }, "totalgrantedamount" {} }, "deliverystatusinfo" {}, "endpointlocation" { "address" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" { "usedsaveddata" true } }, "exactlocation" { "latitude" 32 07332, "longitude" 34 79675, "source" "mobile" }, "locationname" {}, "roughlocation" {}, "savedlocation" { "usedsaveddata" true } }, "eventtime" 1415287568000, "orderid" "2356fdse0rr489", "refundinformation" { "refundamount" {} }, "returnedcartitems" \[ { "basicitemdata" { "discount" { "couponcodeused" "fathersday2015", "coupondiscountamount" {} }, "name" "white genericbrand handbag", "price" {}, "quantity" 1, "type" "tangible" }, "beneficiaries" \[ { "additionalverificationdocuments" { "documentsource" "uploaded file", "documenttype" "passport", "documentverificationserviceresponsepayload" {} }, "address" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" { "usedsaveddata" true } }, "bankaccount" { "paymentgatewaydata" {} }, "comments" {}, "cryptowallet" { "cryptowallettype" "external" }, "personaldetails" {}, "phone" \[ { "phone" "15557654321", "smsverified" { "sent" true, "verified" false } } ] } ], "deliverydetails" { "deliverymethod" "usps ground mail", "deliveryprice" {}, "deliverytype" "physical" }, "itemreturndata" { "posdetails" { "address" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" { "usedsaveddata" true } }, "cardentrymethod" "scanned", "cashierid" "fgh5e0rr48923d", "departmentid" "e0r4592356fds", "storebusinessunit" "full line", "storeid" "2356fdse0rr489", "storename" "union square", "workstationid" "923e5th5e0rr48" }, "returnstatuslog" {} }, "itemspecificdata" { "accommodation" { "accommodationaddress" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" { "usedsaveddata" true } }, "duration" { "enddate" "2014 11 15", "startdate" "2014 10 28" }, "location" {}, "numberofguests" 2, "rating" \[ { "score" "4 5", "source" "yelp", "type" "internal peers" } ], "type" "hotel" }, "cryptocurrency" {}, "digitalgoodsandservices" { "duration" { "enddate" "2014 11 15", "startdate" "2014 10 28" }, "webhosting" { "domains" \[] } }, "food" { "restaurantaddress" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" { "usedsaveddata" true } }, "tipamount" {} }, "gaming" { "gameitemamount" 1000, "gamename" "worldofsamplegamecrat" }, "physicalgoods" {}, "professionalservices" { "tipamount" {} }, "ticketsandevents" { "eventlocation" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" { "usedsaveddata" true } }, "eventname" "fifa world cup final" }, "transport" \[ { "driverdetails" { "availablefundsforwithdrawal" {}, "ratingasbuyer" { "score" "4 5", "source" "yelp", "type" "internal peers" }, "ratingasseller" { "score" "4 5", "source" "yelp", "type" "internal peers" }, "selleraccountcreationdate" 1415273168, "sellerlastloginip" { "ip" "10 0 0 128", "updatetimes" {} }, "sellerpersonaldetails" {}, "sellerregistrationip" { "ip" "10 0 0 128", "updatetimes" {} } }, "duration" { "starttime" 1412345911 }, "endpoint" { "address" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" {} }, "exactlocation" { "latitude" 32 07332, "longitude" 34 79675, "source" "mobile" }, "locationname" {}, "roughlocation" {}, "savedlocation" { "usedsaveddata" true } }, "locationattimeofreservation" { "address" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" {} }, "exactlocation" { "latitude" 32 07332, "longitude" 34 79675, "source" "mobile" }, "locationname" {}, "roughlocation" {}, "savedlocation" { "usedsaveddata" true } }, "startpoint" { "address" { "address1" "235 montgomery st ", "city" "san francisco", "country" "us", "saveddata" {} }, "exactlocation" { "latitude" 32 07332, "longitude" 34 79675, "source" "mobile" }, "locationname" {}, "roughlocation" {}, "savedlocation" { "usedsaveddata" true } }, "type" "air travel" } ] }, "seller" { "sellerdetails" { "availablefundsforwithdrawal" {}, "ratingasbuyer" { "score" "4 5", "source" "yelp", "type" "internal peers" }, "ratingasseller" { "score" "4 5", "source" "yelp", "type" "internal peers" }, "selleraccountcreationdate" 1415273168, "sellerlastloginip" { "ip" "10 0 0 128", "updatetimes" { "creationtime" 1448549922 } }, "sellerpersonaldetails" {}, "sellerregistrationip" { "ip" "10 0 0 128", "updatetimes" { "creationtime" 1448549922 } } } }, "shopifyadditionalitemdata" { "properties" {} } } ], "updatedstatus" "sent", "updatedtotalamount" {}, "updatedtotaldiscount" { "couponcodeused" "fathersday2015", "coupondiscountamount" {} }, "verificationresults" { "external3dsvendorpayload" {} } }) headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("post", url, headers=headers, data=payload) print(response text) responses // example statusresponse { "message" "transaction #\ id status recieved", "status" "success" }// bad request (often missing a required parameter) // unauthorized (no valid api key provided) // not found (the requested item doesn't exist) // server error (something went wrong on forter's end)