Skip to content

Instantly share code, notes, and snippets.

@gje4
Created April 19, 2019 20:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gje4/07e22f5f349c383c77609fa81cbcc408 to your computer and use it in GitHub Desktop.
Save gje4/07e22f5f349c383c77609fa81cbcc408 to your computer and use it in GitHub Desktop.
{
"data":[
{
"type":"product",
"id":"6fe08392-f483-4763-98d8-bb37e42b6356",
"name":"Flight Deposit",
"slug":"flight-deposit",
"sku":"fdp",
"manage_stock":false,
"description":"Flight Deposit",
"price":[
{
"amount":12345,
"currency":"USD",
"includes_tax":false
}
],
"status":"live",
"commodity_type":"digital",
"meta":{
"timestamps":{
"created_at":"2019-04-12T13:50:34+00:00",
"updated_at":"2019-04-19T13:25:03+00:00"
},
"display_price":{
"with_tax":{
"amount":12345,
"currency":"USD",
"formatted":"$123.45"
},
"without_tax":{
"amount":12345,
"currency":"USD",
"formatted":"$123.45"
}
},
"stock":{
"level":0,
"availability":"out-stock"
}
},
"relationships":{
"custom-attribute-sets":{
"data":[
{
"type":"airport",
"id":"01ee3e97-f7c1-43be-9265-25b888f9bcf9"
}
]
}
}
}
],
"links":{
"current":"https://api.moltin.com/v2/products?page[limit]=100&page[offset]=0&include=flows",
"first":"https://api.moltin.com/v2/products?page[limit]=100&page[offset]=0&include=flows",
"last":null
},
"meta":{
"results":{
"total":1
},
"page":{
"limit":100,
"offset":0,
"current":1,
"total":1
}
},
"included":{
"custom-attribute-sets":[
{
"id":"01ee3e97-f7c1-43be-9265-25b888f9bcf9",
"type":"entry",
"airport-code":"BOS",
"name":"Logan",
"city":"Boston",
"state":"MA",
"country":"United States",
"meta":{
"timestamps":{
"created_at":"2019-04-19T19:47:19.881Z",
"updated_at":"2019-04-19T19:47:19.881Z"
}
},
"links":{
"self":"https://api.moltin.com/v2/flows/airport/entries/01ee3e97-f7c1-43be-9265-25b888f9bcf9"
}
}
]
}
}
ABOUT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment