Skip to content

Instantly share code, notes, and snippets.

View godfern's full-sized avatar

Godfrey Fernandes godfern

View GitHub Profile
{
"error": {
"message": "Something went wrong!"
},
"__DEBUG__LOG": [{
"name": "REQUEST",
"message": "HTTP request completed succesfully",
"options": {
"uri": "http://10.24.1.184:80/v2/enrich/11661862817966301",
"headers": {
{
"has_more": true,
"items": [
{
"id": "C-233654941",
"enrichment_error": true
},
{
"id": "C-233749077",
"enrichment_error": true
var fbfLiteSchema = require('../schema/fbf-lite-schema.js');
var fbfLiteError = require("../errors/fbf-lite-error.js");
module.exports = {
base:{
input: {
constructPayload: (payload, listing_id) => {
return payload.map(item => {
return {
bin_id: item.binId,
{
"error": {
"message": "Failed to update the address",
"details": {
"headers": {
"date": "Thu, 26 Mar 2020 10:38:12 GMT",
"content-type": "application/json",
"connection": "close",
"x-e-id": "10.50.242.38",
"x-elb-id": "10.50.242.38",
"options": {
"uri": "http://10.24.0.104:80/v3/enrich/6ae6265f-3621-4c3b-a1e3-cca93c491975",
"method": "GET",
"headers": {
"X-VIEW-ID": "sd.fbf_lite.pick_list_shipments",
"X-CLIENT-ID": "sp.sd",
"X-SELLER-ID": "mfxvubci5gowcddq",
"x-transaction-id": "",
"x-action-by": "auyksn1mnx5c1rx5",
"X-LOCATION-ID": "LOC368fbc2953204010ac8b337f6e92eb44",
@godfern
godfern / gist:a972293f717e04e24cdb7a0e5ff20864
Last active April 8, 2020 08:16
Drop ship orders in packed_in_progress", "packed", "rts_oms_in_progress", "rts_oms_done",
{
"name": "REQUEST",
"message": "HTTP request completed succesfully",
"options": {
"uri": "http://10.24.2.131:80/order_items/search",
"method": "POST",
"body": {
"filter": {
"seller_id": "lwpsvxuxjfd7gimk",
"states": ["packed_in_progress", "packed", "rts_oms_in_progress", "rts_oms_done", "to_dispatch"],
"options": {
"uri": "http://10.24.1.64:80/consignments/456053/qc_tickets",
"method": "GET",
"qs": { "page_no": "1", "page_size": "10" },
"headers": {
"X-SELLER-ID": "mfxvubci5gowcddq",
"x-transaction-id": "",
"x-action-by": "auyksn1mnx5c1rx5",
"X-LOCATION-ID": "",
"x-requester-ip": "127.0.0.1",
curl --location --request PUT 'http://10.24.1.250/instances' \
--header 'Content-Type: application/json' \
--data-raw '{
"seller_id": "auyksn1mnx5c1rx5",
"type_reference_id": "SFX",
"type_value": true,
"comments": "",
"from_date": "",
"thru_date": ""
}'
curl --location --request GET 'http://10.24.3.10:10000/v3/sellers/wsb4fr1q8ifc2po7 ?include=profile%2C%2Ccontacts%2Crating%2Cstate%2Ctier&metadata=DROP_SHIPMENT_ENABLED%2CMULTI_PART_SHIPMENT_ENABLED%2Credirect_state,FBF_LITE_SELLER,SFX&documents=' \
--header 'Content-Type: application/json' \
--header 'z-clientId: sp.slm' \
--header 'z-timestamp: 1587648719662' \
--header 'z-requestId: SHTF8MPVYUZHGB63,SHTF8MPVYUZHGB63,SHTF8MPVRCUUHRWH,SHTF8MPVRCUUHRWH,SHTF8MPVHAGF7MZK,SHTF8MPVHAGF7MZK,SHTF8MPVQUZZC8HP,SHTF8MPVQUZZC8HP,TOPF4FEGBAEC7VH2_1587648719662' \
--header 'x-transaction-id: ' \
--header 'x-action-by: auyksn1mnx5c1rx5' \
--header 'X-LOCATION-ID: ' \
--header 'x-requester-ip: 127.0.0.1' \
--header 'x-account-id: ACC13601406963044612' \
{
"our_chapel": {
"weekly_announcements": [
{
"title": "weekly anoucements one",
"date": "2020-03-12T20:14:20.258Z"
},
{
"title": "weekly anoucements two",
"date": "2020-03-13T20:14:20.258Z"