Skip to content

Instantly share code, notes, and snippets.

@amangale
Created August 19, 2019 08:47
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 amangale/2d91c8dc4eb95a1fdf34363b83cf901d to your computer and use it in GitHub Desktop.
Save amangale/2d91c8dc4eb95a1fdf34363b83cf901d to your computer and use it in GitHub Desktop.
Request response transcript with repo.CurrencyValue
http://localhost:4002/wallet/balance
{
"ETH": {
"confirmed": {
"amount": "988809859983430002",
"currency": {
"code": "ETH",
"currencyType": "crypto",
"divisibility": 18,
"name": "Ethereum"
}
},
"height": 4517007,
"unconfirmed": {
"amount": "0",
"currency": {
"code": "ETH",
"currencyType": "crypto",
"divisibility": 18,
"name": "Ethereum"
}
}
},
"TBCH": {
"confirmed": {
"amount": "0",
"currency": {
"code": "TBCH",
"currencyType": "crypto",
"divisibility": 8,
"name": "Bitcoin Cash"
}
},
"height": 585949,
"unconfirmed": {
"amount": "0",
"currency": {
"code": "TBCH",
"currencyType": "crypto",
"divisibility": 8,
"name": "Bitcoin Cash"
}
}
},
"TBTC": {
"confirmed": {
"amount": "0",
"currency": {
"code": "TBTC",
"currencyType": "crypto",
"divisibility": 8,
"name": "Bitcoin"
}
},
"height": 579618,
"unconfirmed": {
"amount": "0",
"currency": {
"code": "TBTC",
"currencyType": "crypto",
"divisibility": 8,
"name": "Bitcoin"
}
}
},
"TLTC": {
"confirmed": {
"amount": "0",
"currency": {
"code": "TLTC",
"currencyType": "crypto",
"divisibility": 8,
"name": "Litecoin"
}
},
"height": 1645467,
"unconfirmed": {
"amount": "0",
"currency": {
"code": "TLTC",
"currencyType": "crypto",
"divisibility": 8,
"name": "Litecoin"
}
}
},
"TZEC": {
"confirmed": {
"amount": "0",
"currency": {
"code": "TZEC",
"currencyType": "crypto",
"divisibility": 8,
"name": "Zcash"
}
},
"height": 545984,
"unconfirmed": {
"amount": "0",
"currency": {
"code": "TZEC",
"currencyType": "crypto",
"divisibility": 8,
"name": "Zcash"
}
}
}
}
===============================================================================
http://localhost:4002/ob/purchase
{
"shipTo": "Elwood Blues",
"address": "1060 W Addison",
"city": "Chicago",
"state": "Illinois",
"countryCode": "UNITED_STATES",
"postalCode": "60613",
"addressNotes": "",
"items": [{
"listingHash": "QmT7JEr39P3LmgUoTgzN8VWbrMbt3NkgtLYNDF8hxcUPeV",
"quantity": 1,
"options": [
{
"name": "Sizes",
"value": "Small"
},
{
"name": "Color",
"value": "Red"
}
],
"shipping": {
"name": "Worldwide",
"service": "Standard"
},
"memo": "thanks!",
"coupons": []
}],
"moderator": "",
"paymentCoin": "ETH"
}
{
"amount": {
"amount": "4049405570649999",
"currency": {
"code": "ETH",
"currencyType": "crypto",
"divisibility": 18,
"name": "Ethereum"
}
},
"orderId": "QmUm92zCropp3dmN6JPdFfm38mjN5XnXTGdAPEpdvMfyDe",
"paymentAddress": "0xC8Be18369A30918FE8Bb950A9496A8269992aa0c",
"vendorOnline": true
}
================================================================================
http://localhost:4002/ob/orderspend
{
"wallet": "ETH",
"address": "0xC8Be18369A30918FE8Bb950A9496A8269992aa0c",
"amount": {
"amount": "4049405570649999",
"currency": {
"code": "ETH",
"currencyType": "crypto",
"divisibility": 18,
"name": "Ethereum"
}
},
"orderId": "QmUm92zCropp3dmN6JPdFfm38mjN5XnXTGdAPEpdvMfyDe",
"feeLevel": "NORMAL",
"memo": "Yo"
}
{
"amount": {
"amount": "-4049405570649999",
"currency": {
"code": "ETH",
"currencyType": "crypto",
"divisibility": 18,
"name": "Ethereum"
}
},
"confirmedBalance": {
"amount": "984739454412780003",
"currency": {
"code": "ETH",
"currencyType": "crypto",
"divisibility": 18,
"name": "Ethereum"
}
},
"memo": "Yo",
"orderId": "QmUm92zCropp3dmN6JPdFfm38mjN5XnXTGdAPEpdvMfyDe",
"timestamp": "2019-06-07T11:08:39.29544019+05:30",
"txid": "9b17432bfb5cd23f64dd8714eb59743d2442ea9cacab9baa0ceec76edd239366",
"unconfirmedBalance": {
"amount": "0",
"currency": {
"code": "ETH",
"currencyType": "crypto",
"divisibility": 18,
"name": "Ethereum"
}
}
}
================================================================================
http://45.76.118.128:4002/ob/orderfulfillment
{
"orderId": "QmUm92zCropp3dmN6JPdFfm38mjN5XnXTGdAPEpdvMfyDe",
"physicalDelivery": [{
"shipper": "UPS",
"trackingNumber": "1Z204E38033894350812"
}]
}
{}
================================================================================
http://localhost:4002/ob/ordercompletion
{
"orderId": "QmUm92zCropp3dmN6JPdFfm38mjN5XnXTGdAPEpdvMfyDe",
"ratings": [{
"slug": "eth-2",
"overall": 3,
"quality": 4,
"description": 5,
"deliverySpeed": 5,
"customerService": 3,
"review": "This rocks!",
"anonymous": false
}]
}
{}
================================================================================
http://localhost:4002/ob/order/QmUm92zCropp3dmN6JPdFfm38mjN5XnXTGdAPEpdvMfyDe
{
"contract": {
"vendorListings": [
{
"slug": "eth-2",
"vendorID": {
"peerID": "QmYR5jZB9Yakiqh3UaMq1ecr7tkGz374VBqiLjYZ3LL8wK",
"handle": "",
"pubkeys": {
"identity": "CAESIO7BTnmj2mQhH95XwV8ycikiACx37t7OiysDwJF0tH15",
"bitcoin": "AloU6vDB/Oo0J7KRJvLJaTYOkftCvJb2KiT4ZrTF4uHD"
},
"bitcoinSig": "MEUCIQDEdh0xcd5yXqqWmCnDyZupFROmpQvQJLc20DJJuu+/4gIgYHF8EffgRBwT9La7uhL++7F/mNqV6erokIHEa6Xcafg="
},
"metadata": {
"version": 5,
"contractType": "PHYSICAL_GOOD",
"format": "FIXED_PRICE",
"expiry": "2037-12-31T05:00:00.000Z",
"acceptedCurrencies": [
"BTC",
"BCH",
"ZEC",
"LTC",
"ETH"
],
"pricingCurrency": {
"code": "USD",
"divisibility": 2,
"name": "",
"currencyType": ""
},
"language": "",
"escrowTimeoutHours": 1,
"priceModifier": 0
},
"item": {
"title": "ETH 2",
"description": "This is a listing example.",
"processingTime": "3 days",
"price": {
"currency": {
"code": "USD",
"divisibility": 2,
"name": "",
"currencyType": ""
},
"amount": "100"
},
"nsfw": false,
"tags": [
"vintage dress"
],
"images": [
{
"filename": "front",
"original": "QmNexx7SaJCVCjyGGG3j2k7fenn3iVhtWdm9RvKvT7GTLq",
"large": "QmfTKL3Z67mWKTKf9XKSCj1ptmDRaZLr5yjPS4JrVDgo5h",
"medium": "QmTJfeeapZwFM8EoZAuf16JsSJyxZtKaAR6hmWiMf4CTcF",
"small": "QmVsoT9iabv6GZhxhvtjSpQMJA6QyMivGTs6MmHJr6TBm9",
"tiny": "QmbjyAxYee4y3443kAMLcmRVwggZsRDKiyXnXus1qdJJWz"
}
],
"categories": [
"👚 Apparel & Accessories"
],
"grams": 0,
"condition": "New",
"options": [
{
"name": "Color",
"description": "Color of the dress.",
"variants": [
{
"name": "Red",
"image": {
"filename": "front",
"original": "QmNexx7SaJCVCjyGGG3j2k7fenn3iVhtWdm9RvKvT7GTLq",
"large": "QmfTKL3Z67mWKTKf9XKSCj1ptmDRaZLr5yjPS4JrVDgo5h",
"medium": "QmTJfeeapZwFM8EoZAuf16JsSJyxZtKaAR6hmWiMf4CTcF",
"small": "QmVsoT9iabv6GZhxhvtjSpQMJA6QyMivGTs6MmHJr6TBm9",
"tiny": "QmbjyAxYee4y3443kAMLcmRVwggZsRDKiyXnXus1qdJJWz"
}
},
{
"name": "Cream",
"image": {
"filename": "cream",
"original": "QmTEUnCjuQPj1ggj5UL5vJujkgBiNYY4jkteugnogiCJny",
"large": "QmNsFdsX2LNALG2WBxw6E6FTPZWgJcRAcLHnKdWczrCNf9",
"medium": "QmQaSzaoHzp8raZLtPEFyCjTnwfXvDGKdXFM83STDVWG43",
"small": "QmP3BVFuga7N4XEX8iU2MFYC7pc6mfTRQRrpZbKiVy2Csr",
"tiny": "QmU1cBgjyHpuzDYbEd4iDVuPzxgKM3CqhRhDJqkHWCKBXq"
}
},
{
"name": "Black",
"image": {
"filename": "black",
"original": "QmZsZ78FJwt281gfeUvGzDnsBW7WNjPWW3aJWDKskhpCRr",
"large": "QmXixGseetihe6vZiWcTw9N1pieok1YtRoxwvyd5d7jz6s",
"medium": "QmZydpAJoLsJWbP5vmh59W6bW1kuiCV34yD62hq28AtP7b",
"small": "QmcADxUo89ZsEAWiYsuUk7hrgjWDMKXL1CtoA9sTNrQFFP",
"tiny": "QmdA3Nmc8VnwSvt98Deo2RQztEiCsAkNLhron73bnBzARe"
}
}
]
},
{
"name": "Sizes",
"description": "Size of the dress.",
"variants": [
{
"name": "Small"
},
{
"name": "Medium"
},
{
"name": "Large"
},
{
"name": "Extra Large"
}
]
}
],
"skus": [
{
"variantCombo": [
0,
0
],
"productID": "dress-red-small",
"surcharge": {
"currency": {
"code": "USD",
"divisibility": 2,
"name": "",
"currencyType": ""
},
"amount": "0"
},
"quantity": 0
},
{
"variantCombo": [
0,
1
],
"productID": "dress-red-medium",
"surcharge": {
"currency": {
"code": "USD",
"divisibility": 2,
"name": "",
"currencyType": ""
},
"amount": "100"
},
"quantity": 0
},
{
"variantCombo": [
0,
2
],
"productID": "dress-red-large",
"surcharge": {
"currency": {
"code": "USD",
"divisibility": 2,
"name": "",
"currencyType": ""
},
"amount": "0"
},
"quantity": 0
},
{
"variantCombo": [
1,
0
],
"productID": "dress-cream-small",
"surcharge": {
"currency": {
"code": "USD",
"divisibility": 2,
"name": "",
"currencyType": ""
},
"amount": "0"
},
"quantity": 0
},
{
"variantCombo": [
1,
1
],
"productID": "dress-cream-medium",
"surcharge": {
"currency": {
"code": "USD",
"divisibility": 2,
"name": "",
"currencyType": ""
},
"amount": "0"
},
"quantity": 0
},
{
"variantCombo": [
1,
2
],
"productID": "dress-cream-large",
"surcharge": {
"currency": {
"code": "USD",
"divisibility": 2,
"name": "",
"currencyType": ""
},
"amount": "0"
},
"quantity": 0
},
{
"variantCombo": [
2,
0
],
"productID": "dress-black-small",
"surcharge": {
"currency": {
"code": "USD",
"divisibility": 2,
"name": "",
"currencyType": ""
},
"amount": "0"
},
"quantity": 0
},
{
"variantCombo": [
2,
1
],
"productID": "dress-black-medium",
"surcharge": {
"currency": {
"code": "USD",
"divisibility": 2,
"name": "",
"currencyType": ""
},
"amount": "0"
},
"quantity": 0
},
{
"variantCombo": [
2,
2
],
"productID": "dress-black-large",
"surcharge": {
"currency": {
"code": "USD",
"divisibility": 2,
"name": "",
"currencyType": ""
},
"amount": "0"
},
"quantity": 0
}
]
},
"shippingOptions": [
{
"name": "Worldwide",
"type": "FIXED_PRICE",
"regions": [
"ALL"
],
"services": [
{
"name": "Standard",
"price": {
"currency": {
"code": "USD",
"divisibility": 2,
"name": "",
"currencyType": ""
},
"amount": "0"
},
"estimatedDelivery": "3 days"
},
{
"name": "Express",
"price": {
"currency": {
"code": "USD",
"divisibility": 2,
"name": "",
"currencyType": ""
},
"amount": "100"
},
"estimatedDelivery": "3 days"
}
]
}
],
"taxes": [],
"coupons": [],
"moderators": [
"QmdEB7us3cUQx7pZqvXmS6gj5cAm8q4KwwtsLbQ2VyCGjA",
"Qmc6X28HFbeBRvFPWszhJPGnHUMtrxVK9fDK2zY1oF93cr",
"QmVqwhKVTiYGPH5P4YTaUJeb2ooaVGqWmELeLELLg1gsAQ"
],
"termsAndConditions": "These are my terms and conditions.",
"refundPolicy": "This is my refund policy."
}
],
"buyerOrder": {
"refundAddress": "0xd19d2917f96A5812e524C559B43c8193a62DB057",
"shipping": {
"shipTo": "Elwood Blues",
"address": "1060 W Addison",
"city": "Chicago",
"state": "Illinois",
"postalCode": "60613",
"country": "UNITED_STATES",
"addressNotes": ""
},
"buyerID": {
"peerID": "QmebUdrr6hv1FopFn6hcrhsJz6d4ka63mXaDskNpAAXKhU",
"handle": "",
"pubkeys": {
"identity": "CAESIASiVzL95tivhssn79+HYImkETp9HJEpBKMQuG+9hLj4",
"bitcoin": "A2i3iUv/tjyAOAuzONv70PVjb2kvvdRD5qwIXRe7RqZp"
},
"bitcoinSig": "MEUCIQC/dA+/VVomscV3+ZCUSivCQgzaw4mYd0rJfVh5PPqUQwIgQiEZM9rKFgcFU+zeSJejM52FjO6bh8COaY92cV73ff8="
},
"timestamp": "2019-06-07T05:25:13.450822887Z",
"items": [
{
"listingHash": "zb2rhWmZcF2beLnK2NUofALZdWg2pPkgppb2bvdCLUsPXDiXh",
"quantity": 0,
"quantity64": 1,
"options": [
{
"name": "Sizes",
"value": "Small"
},
{
"name": "Color",
"value": "Red"
}
],
"shippingOption": {
"name": "Worldwide",
"service": "Standard"
},
"memo": "thanks!",
"paymentAddress": ""
}
],
"payment": {
"method": "ADDRESS_REQUEST",
"moderator": "",
"amount": {
"currency": {
"code": "ETH",
"divisibility": 18,
"name": "Ethereum",
"currencyType": "crypto"
},
"amount": "4049405570649999"
},
"chaincode": "",
"address": "",
"redeemScript": ""
},
"ratingKeys": [
"AkrmdEPpjnuktgF3nWDDwJ4XgxBVsk1CmllDT7CYVsL+"
],
"alternateContactInfo": "",
"version": 2
},
"vendorOrderConfirmation": {
"orderID": "QmUm92zCropp3dmN6JPdFfm38mjN5XnXTGdAPEpdvMfyDe",
"timestamp": "2019-06-07T05:25:23.104144769Z",
"paymentAddress": "0xC8Be18369A30918FE8Bb950A9496A8269992aa0c",
"requestedAmount": {
"currency": {
"code": "ETH",
"divisibility": 18,
"name": "Ethereum",
"currencyType": "crypto"
},
"amount": "4049405570649999"
}
},
"vendorOrderFulfillment": [
{
"orderId": "QmUm92zCropp3dmN6JPdFfm38mjN5XnXTGdAPEpdvMfyDe",
"slug": "eth-2",
"timestamp": "2019-06-07T05:40:48.669957587Z",
"physicalDelivery": [
{
"shipper": "UPS",
"trackingNumber": "1Z204E38033894350812"
}
],
"ratingSignature": {
"metadata": {
"listingSlug": "eth-2",
"ratingKey": "AkrmdEPpjnuktgF3nWDDwJ4XgxBVsk1CmllDT7CYVsL+",
"listingTitle": "ETH 2",
"thumbnail": {
"tiny": "QmbjyAxYee4y3443kAMLcmRVwggZsRDKiyXnXus1qdJJWz",
"small": "QmVsoT9iabv6GZhxhvtjSpQMJA6QyMivGTs6MmHJr6TBm9",
"medium": "QmTJfeeapZwFM8EoZAuf16JsSJyxZtKaAR6hmWiMf4CTcF",
"large": "QmfTKL3Z67mWKTKf9XKSCj1ptmDRaZLr5yjPS4JrVDgo5h",
"original": "QmNexx7SaJCVCjyGGG3j2k7fenn3iVhtWdm9RvKvT7GTLq"
}
},
"signature": "ccvAbU+rp7bRc4+g0OWlXPj+bi+qlkebuj4P64EFqBXRtRjDK8deTzpmsqxJMsH9OI60ZwC6e1PMPicvxtSeDw=="
},
"note": ""
}
],
"buyerOrderCompletion": {
"orderId": "QmUm92zCropp3dmN6JPdFfm38mjN5XnXTGdAPEpdvMfyDe",
"timestamp": "2019-06-07T05:42:42.274615101Z",
"ratings": [
{
"ratingData": {
"ratingKey": "AkrmdEPpjnuktgF3nWDDwJ4XgxBVsk1CmllDT7CYVsL+",
"vendorID": {
"peerID": "QmYR5jZB9Yakiqh3UaMq1ecr7tkGz374VBqiLjYZ3LL8wK",
"handle": "",
"pubkeys": {
"identity": "CAESIO7BTnmj2mQhH95XwV8ycikiACx37t7OiysDwJF0tH15",
"bitcoin": "AloU6vDB/Oo0J7KRJvLJaTYOkftCvJb2KiT4ZrTF4uHD"
},
"bitcoinSig": "MEUCIQDEdh0xcd5yXqqWmCnDyZupFROmpQvQJLc20DJJuu+/4gIgYHF8EffgRBwT9La7uhL++7F/mNqV6erokIHEa6Xcafg="
},
"vendorSig": {
"metadata": {
"listingSlug": "eth-2",
"ratingKey": "AkrmdEPpjnuktgF3nWDDwJ4XgxBVsk1CmllDT7CYVsL+",
"listingTitle": "ETH 2",
"thumbnail": {
"tiny": "QmbjyAxYee4y3443kAMLcmRVwggZsRDKiyXnXus1qdJJWz",
"small": "QmVsoT9iabv6GZhxhvtjSpQMJA6QyMivGTs6MmHJr6TBm9",
"medium": "QmTJfeeapZwFM8EoZAuf16JsSJyxZtKaAR6hmWiMf4CTcF",
"large": "QmfTKL3Z67mWKTKf9XKSCj1ptmDRaZLr5yjPS4JrVDgo5h",
"original": "QmNexx7SaJCVCjyGGG3j2k7fenn3iVhtWdm9RvKvT7GTLq"
}
},
"signature": "ccvAbU+rp7bRc4+g0OWlXPj+bi+qlkebuj4P64EFqBXRtRjDK8deTzpmsqxJMsH9OI60ZwC6e1PMPicvxtSeDw=="
},
"buyerID": {
"peerID": "QmebUdrr6hv1FopFn6hcrhsJz6d4ka63mXaDskNpAAXKhU",
"handle": "",
"pubkeys": {
"identity": "CAESIASiVzL95tivhssn79+HYImkETp9HJEpBKMQuG+9hLj4",
"bitcoin": "A2i3iUv/tjyAOAuzONv70PVjb2kvvdRD5qwIXRe7RqZp"
},
"bitcoinSig": "MEUCIQC/dA+/VVomscV3+ZCUSivCQgzaw4mYd0rJfVh5PPqUQwIgQiEZM9rKFgcFU+zeSJejM52FjO6bh8COaY92cV73ff8="
},
"buyerName": "",
"buyerSig": "7L2wGNeUjVNhzyHy88ykY9EZQIS5XckqsPDlS1taFeTlVE0GM3ThS7aMHfTa7ri315O1bf5W3UPZcuKvgr3YDg==",
"timestamp": "2019-06-07T05:42:42.274765436Z",
"overall": 3,
"quality": 4,
"description": 5,
"deliverySpeed": 5,
"customerService": 3,
"review": "This rocks!"
},
"signature": "MEUCIQCCcZpbo7fKAZSpcbC8mH4dhzSlUsoF69gDFZgFSOEDBgIgAODyZsCB5iAcvJioxQjNc2ZfoW5ArdJhS+JKNQ9z2OQ="
}
]
},
"signatures": [
{
"section": "LISTING",
"signatureBytes": "8A2h7rdrBHHCxDYtTwj3h/yZ1ZnwTmPp9ZhgwYEEDZYhlD8gnOZPYKVC/4jm1gUGLtyMnJVwjEh/2SpGra/iBg=="
},
{
"section": "ORDER",
"signatureBytes": "6f/E+WrMzaHXwSjv78ycQrYeXmcF1LpQqIEZNGQeZIlKxYtTGL2ZxwAWt8S8ZM83/LF0fkD5aVFh0StK4oQ6DA=="
},
{
"section": "ORDER_CONFIRMATION",
"signatureBytes": "CtYg1+O6wlaZ0wpOJD/BYhocYNjvusGmQmDawsq2DLjm16I5YsvEFyHM5HAsKoc5hlW7tIXfXGHcByKe9s57BA=="
},
{
"section": "ORDER_FULFILLMENT",
"signatureBytes": "R3eeyT4BM/nXKZOVTaSKkyHKzi891xCpLQLhTI5diFGGTV1XvQREVmGn0Ww6Nunl/lhRhuwHJUtS9sltKJSVDw=="
},
{
"section": "ORDER_COMPLETION",
"signatureBytes": "/nfh2dVMvxjUMxtqHf5pBVixYTIwFZIeg49KJgZDMkfqEl1t8MygP6DU9PQV//zczOaMCqTkMpJdIpZqX9m0BA=="
}
]
},
"state": "COMPLETED",
"read": true,
"funded": true,
"unreadChatMessages": 0,
"paymentAddressTransactions": [
{
"txid": "9b17432bfb5cd23f64dd8714eb59743d2442ea9cacab9baa0ceec76edd239366",
"value": {
"currency": {
"code": "ETH",
"divisibility": 18,
"name": "Ethereum",
"currencyType": "crypto"
},
"amount": "4049405570649999"
},
"confirmations": 19,
"height": 4517099,
"timestamp": "2019-06-07T05:38:39.168881947Z"
}
]
}
================================================================================
http://45.76.118.128:4002/ob/order/QmUm92zCropp3dmN6JPdFfm38mjN5XnXTGdAPEpdvMfyDe
{
"contract": {
"vendorListings": [
{
"slug": "eth-2",
"vendorID": {
"peerID": "QmYR5jZB9Yakiqh3UaMq1ecr7tkGz374VBqiLjYZ3LL8wK",
"handle": "",
"pubkeys": {
"identity": "CAESIO7BTnmj2mQhH95XwV8ycikiACx37t7OiysDwJF0tH15",
"bitcoin": "AloU6vDB/Oo0J7KRJvLJaTYOkftCvJb2KiT4ZrTF4uHD"
},
"bitcoinSig": "MEUCIQDEdh0xcd5yXqqWmCnDyZupFROmpQvQJLc20DJJuu+/4gIgYHF8EffgRBwT9La7uhL++7F/mNqV6erokIHEa6Xcafg="
},
"metadata": {
"version": 5,
"contractType": "PHYSICAL_GOOD",
"format": "FIXED_PRICE",
"expiry": "2037-12-31T05:00:00.000Z",
"acceptedCurrencies": [
"BTC",
"BCH",
"ZEC",
"LTC",
"ETH"
],
"pricingCurrency": {
"code": "USD",
"divisibility": 2,
"name": "",
"currencyType": ""
},
"language": "",
"escrowTimeoutHours": 1,
"priceModifier": 0
},
"item": {
"title": "ETH 2",
"description": "This is a listing example.",
"processingTime": "3 days",
"price": {
"currency": {
"code": "USD",
"divisibility": 2,
"name": "",
"currencyType": ""
},
"amount": "100"
},
"nsfw": false,
"tags": [
"vintage dress"
],
"images": [
{
"filename": "front",
"original": "QmNexx7SaJCVCjyGGG3j2k7fenn3iVhtWdm9RvKvT7GTLq",
"large": "QmfTKL3Z67mWKTKf9XKSCj1ptmDRaZLr5yjPS4JrVDgo5h",
"medium": "QmTJfeeapZwFM8EoZAuf16JsSJyxZtKaAR6hmWiMf4CTcF",
"small": "QmVsoT9iabv6GZhxhvtjSpQMJA6QyMivGTs6MmHJr6TBm9",
"tiny": "QmbjyAxYee4y3443kAMLcmRVwggZsRDKiyXnXus1qdJJWz"
}
],
"categories": [
"👚 Apparel & Accessories"
],
"grams": 0,
"condition": "New",
"options": [
{
"name": "Color",
"description": "Color of the dress.",
"variants": [
{
"name": "Red",
"image": {
"filename": "front",
"original": "QmNexx7SaJCVCjyGGG3j2k7fenn3iVhtWdm9RvKvT7GTLq",
"large": "QmfTKL3Z67mWKTKf9XKSCj1ptmDRaZLr5yjPS4JrVDgo5h",
"medium": "QmTJfeeapZwFM8EoZAuf16JsSJyxZtKaAR6hmWiMf4CTcF",
"small": "QmVsoT9iabv6GZhxhvtjSpQMJA6QyMivGTs6MmHJr6TBm9",
"tiny": "QmbjyAxYee4y3443kAMLcmRVwggZsRDKiyXnXus1qdJJWz"
}
},
{
"name": "Cream",
"image": {
"filename": "cream",
"original": "QmTEUnCjuQPj1ggj5UL5vJujkgBiNYY4jkteugnogiCJny",
"large": "QmNsFdsX2LNALG2WBxw6E6FTPZWgJcRAcLHnKdWczrCNf9",
"medium": "QmQaSzaoHzp8raZLtPEFyCjTnwfXvDGKdXFM83STDVWG43",
"small": "QmP3BVFuga7N4XEX8iU2MFYC7pc6mfTRQRrpZbKiVy2Csr",
"tiny": "QmU1cBgjyHpuzDYbEd4iDVuPzxgKM3CqhRhDJqkHWCKBXq"
}
},
{
"name": "Black",
"image": {
"filename": "black",
"original": "QmZsZ78FJwt281gfeUvGzDnsBW7WNjPWW3aJWDKskhpCRr",
"large": "QmXixGseetihe6vZiWcTw9N1pieok1YtRoxwvyd5d7jz6s",
"medium": "QmZydpAJoLsJWbP5vmh59W6bW1kuiCV34yD62hq28AtP7b",
"small": "QmcADxUo89ZsEAWiYsuUk7hrgjWDMKXL1CtoA9sTNrQFFP",
"tiny": "QmdA3Nmc8VnwSvt98Deo2RQztEiCsAkNLhron73bnBzARe"
}
}
]
},
{
"name": "Sizes",
"description": "Size of the dress.",
"variants": [
{
"name": "Small"
},
{
"name": "Medium"
},
{
"name": "Large"
},
{
"name": "Extra Large"
}
]
}
],
"skus": [
{
"variantCombo": [
0,
0
],
"productID": "dress-red-small",
"surcharge": {
"currency": {
"code": "USD",
"divisibility": 2,
"name": "",
"currencyType": ""
},
"amount": "0"
},
"quantity": 0
},
{
"variantCombo": [
0,
1
],
"productID": "dress-red-medium",
"surcharge": {
"currency": {
"code": "USD",
"divisibility": 2,
"name": "",
"currencyType": ""
},
"amount": "100"
},
"quantity": 0
},
{
"variantCombo": [
0,
2
],
"productID": "dress-red-large",
"surcharge": {
"currency": {
"code": "USD",
"divisibility": 2,
"name": "",
"currencyType": ""
},
"amount": "0"
},
"quantity": 0
},
{
"variantCombo": [
1,
0
],
"productID": "dress-cream-small",
"surcharge": {
"currency": {
"code": "USD",
"divisibility": 2,
"name": "",
"currencyType": ""
},
"amount": "0"
},
"quantity": 0
},
{
"variantCombo": [
1,
1
],
"productID": "dress-cream-medium",
"surcharge": {
"currency": {
"code": "USD",
"divisibility": 2,
"name": "",
"currencyType": ""
},
"amount": "0"
},
"quantity": 0
},
{
"variantCombo": [
1,
2
],
"productID": "dress-cream-large",
"surcharge": {
"currency": {
"code": "USD",
"divisibility": 2,
"name": "",
"currencyType": ""
},
"amount": "0"
},
"quantity": 0
},
{
"variantCombo": [
2,
0
],
"productID": "dress-black-small",
"surcharge": {
"currency": {
"code": "USD",
"divisibility": 2,
"name": "",
"currencyType": ""
},
"amount": "0"
},
"quantity": 0
},
{
"variantCombo": [
2,
1
],
"productID": "dress-black-medium",
"surcharge": {
"currency": {
"code": "USD",
"divisibility": 2,
"name": "",
"currencyType": ""
},
"amount": "0"
},
"quantity": 0
},
{
"variantCombo": [
2,
2
],
"productID": "dress-black-large",
"surcharge": {
"currency": {
"code": "USD",
"divisibility": 2,
"name": "",
"currencyType": ""
},
"amount": "0"
},
"quantity": 0
}
]
},
"shippingOptions": [
{
"name": "Worldwide",
"type": "FIXED_PRICE",
"regions": [
"ALL"
],
"services": [
{
"name": "Standard",
"price": {
"currency": {
"code": "USD",
"divisibility": 2,
"name": "",
"currencyType": ""
},
"amount": "0"
},
"estimatedDelivery": "3 days"
},
{
"name": "Express",
"price": {
"currency": {
"code": "USD",
"divisibility": 2,
"name": "",
"currencyType": ""
},
"amount": "100"
},
"estimatedDelivery": "3 days"
}
]
}
],
"moderators": [
"QmdEB7us3cUQx7pZqvXmS6gj5cAm8q4KwwtsLbQ2VyCGjA",
"Qmc6X28HFbeBRvFPWszhJPGnHUMtrxVK9fDK2zY1oF93cr",
"QmVqwhKVTiYGPH5P4YTaUJeb2ooaVGqWmELeLELLg1gsAQ"
],
"termsAndConditions": "These are my terms and conditions.",
"refundPolicy": "This is my refund policy."
}
],
"buyerOrder": {
"refundAddress": "0xd19d2917f96A5812e524C559B43c8193a62DB057",
"shipping": {
"shipTo": "Elwood Blues",
"address": "1060 W Addison",
"city": "Chicago",
"state": "Illinois",
"postalCode": "60613",
"country": "UNITED_STATES",
"addressNotes": ""
},
"buyerID": {
"peerID": "QmebUdrr6hv1FopFn6hcrhsJz6d4ka63mXaDskNpAAXKhU",
"handle": "",
"pubkeys": {
"identity": "CAESIASiVzL95tivhssn79+HYImkETp9HJEpBKMQuG+9hLj4",
"bitcoin": "A2i3iUv/tjyAOAuzONv70PVjb2kvvdRD5qwIXRe7RqZp"
},
"bitcoinSig": "MEUCIQC/dA+/VVomscV3+ZCUSivCQgzaw4mYd0rJfVh5PPqUQwIgQiEZM9rKFgcFU+zeSJejM52FjO6bh8COaY92cV73ff8="
},
"timestamp": "2019-06-07T05:25:13.450822887Z",
"items": [
{
"listingHash": "zb2rhWmZcF2beLnK2NUofALZdWg2pPkgppb2bvdCLUsPXDiXh",
"quantity": 0,
"quantity64": 1,
"options": [
{
"name": "Sizes",
"value": "Small"
},
{
"name": "Color",
"value": "Red"
}
],
"shippingOption": {
"name": "Worldwide",
"service": "Standard"
},
"memo": "thanks!",
"paymentAddress": ""
}
],
"payment": {
"method": "ADDRESS_REQUEST",
"moderator": "",
"amount": {
"currency": {
"code": "ETH",
"divisibility": 18,
"name": "Ethereum",
"currencyType": "crypto"
},
"amount": "4049405570649999"
},
"chaincode": "",
"address": "",
"redeemScript": ""
},
"ratingKeys": [
"AkrmdEPpjnuktgF3nWDDwJ4XgxBVsk1CmllDT7CYVsL+"
],
"alternateContactInfo": "",
"version": 2
},
"vendorOrderConfirmation": {
"orderID": "QmUm92zCropp3dmN6JPdFfm38mjN5XnXTGdAPEpdvMfyDe",
"timestamp": "2019-06-07T05:25:23.104144769Z",
"paymentAddress": "0xC8Be18369A30918FE8Bb950A9496A8269992aa0c",
"requestedAmount": {
"currency": {
"code": "ETH",
"divisibility": 18,
"name": "Ethereum",
"currencyType": "crypto"
},
"amount": "4049405570649999"
},
"ratingSignatures": []
},
"vendorOrderFulfillment": [
{
"orderId": "QmUm92zCropp3dmN6JPdFfm38mjN5XnXTGdAPEpdvMfyDe",
"slug": "eth-2",
"timestamp": "2019-06-07T05:40:48.669957587Z",
"physicalDelivery": [
{
"shipper": "UPS",
"trackingNumber": "1Z204E38033894350812"
}
],
"ratingSignature": {
"metadata": {
"listingSlug": "eth-2",
"ratingKey": "AkrmdEPpjnuktgF3nWDDwJ4XgxBVsk1CmllDT7CYVsL+",
"listingTitle": "ETH 2",
"thumbnail": {
"tiny": "QmbjyAxYee4y3443kAMLcmRVwggZsRDKiyXnXus1qdJJWz",
"small": "QmVsoT9iabv6GZhxhvtjSpQMJA6QyMivGTs6MmHJr6TBm9",
"medium": "QmTJfeeapZwFM8EoZAuf16JsSJyxZtKaAR6hmWiMf4CTcF",
"large": "QmfTKL3Z67mWKTKf9XKSCj1ptmDRaZLr5yjPS4JrVDgo5h",
"original": "QmNexx7SaJCVCjyGGG3j2k7fenn3iVhtWdm9RvKvT7GTLq"
}
},
"signature": "ccvAbU+rp7bRc4+g0OWlXPj+bi+qlkebuj4P64EFqBXRtRjDK8deTzpmsqxJMsH9OI60ZwC6e1PMPicvxtSeDw=="
},
"note": ""
}
],
"signatures": [
{
"section": "LISTING",
"signatureBytes": "8A2h7rdrBHHCxDYtTwj3h/yZ1ZnwTmPp9ZhgwYEEDZYhlD8gnOZPYKVC/4jm1gUGLtyMnJVwjEh/2SpGra/iBg=="
},
{
"section": "ORDER",
"signatureBytes": "6f/E+WrMzaHXwSjv78ycQrYeXmcF1LpQqIEZNGQeZIlKxYtTGL2ZxwAWt8S8ZM83/LF0fkD5aVFh0StK4oQ6DA=="
},
{
"section": "ORDER_CONFIRMATION",
"signatureBytes": "CtYg1+O6wlaZ0wpOJD/BYhocYNjvusGmQmDawsq2DLjm16I5YsvEFyHM5HAsKoc5hlW7tIXfXGHcByKe9s57BA=="
},
{
"section": "ORDER_FULFILLMENT",
"signatureBytes": "R3eeyT4BM/nXKZOVTaSKkyHKzi891xCpLQLhTI5diFGGTV1XvQREVmGn0Ww6Nunl/lhRhuwHJUtS9sltKJSVDw=="
}
]
},
"state": "FULFILLED",
"read": false,
"funded": true,
"unreadChatMessages": 0,
"paymentAddressTransactions": [
{
"txid": "0x9b17432bfb5cd23f64dd8714eb59743d2442ea9cacab9baa0ceec76edd239366",
"value": {
"currency": {
"code": "ETH",
"divisibility": 18,
"name": "Ethereum",
"currencyType": "crypto"
},
"amount": "4049405570649999"
},
"confirmations": 9,
"height": 4517089,
"timestamp": "2019-06-07T05:38:41.225467683Z"
}
]
}
================================================================================
@placer14
Copy link

POST /ob/listing

{
    "slug": "ron-swanson-tshirt",
    "vendorID": {
        "peerID": "QmVisrQ9apmvTLnq9FSNKbP8dYvBvkP4AeeysHZg89oB9q",
        "pubkeys": {
            "identity": "CAESIBHz9BLX+9JlUN7cfPdaoh1QFN/a4gjJBzmVOZfSFD5G",
            "bitcoin": "Ai4YTSiFiBLqNxjV/iLcKilp4iaJCIvnatSf15EV25M2"
        },
        "bitcoinSig": "MEUCIQC7jvfG23aHIpPjvQjT1unn23PuKNSykh9v/Hc7v3vmoQIgMFI8BBtju7tAgpI66jKAL6PKWGb7jImVBo1DcDoNbpI="
    },
    "metadata": {
        "version": 1,
        "contractType": "PHYSICAL_GOOD",
        "format": "FIXED_PRICE",
        "expiry": "2038-01-19T03:14:07.000Z",
        "acceptedCurrencies": [
            "TBTC"
        ],
        "pricingCurrency": {
            "code": "TBTC",
            "divisibility": 8,
            "name": "A",
            "currencyType": "A"
        }
    },
    "item": {
        "title": "Ron Swanson Tshirt",
        "description": "Example item",
        "processingTime": "3 days",
        "tags": [
            "tshirts"
        ],
        "images": [
            {
                "filename": "image.jpg",
                "original": "QmUy4jh5mGNZvLkjies1RWM4YuvJh5o2FYopNPVYwrRVGV",
                "large": "QmUy4jh5mGNZvLkjies1RWM4YuvJh5o2FYopNPVYwrRVGV",
                "medium": "QmUy4jh5mGNZvLkjies1RWM4YuvJh5o2FYopNPVYwrRVGV",
                "small": "QmUy4jh5mGNZvLkjies1RWM4YuvJh5o2FYopNPVYwrRVGV",
                "tiny": "QmUy4jh5mGNZvLkjies1RWM4YuvJh5o2FYopNPVYwrRVGV"
            },
            {
                "filename": "image.jpg",
                "original": "QmUy4jh5mGNZvLkjies1RWM4YuvJh5o2FYopNPVYwrRVGV",
                "large": "QmUy4jh5mGNZvLkjies1RWM4YuvJh5o2FYopNPVYwrRVGV",
                "medium": "QmUy4jh5mGNZvLkjies1RWM4YuvJh5o2FYopNPVYwrRVGV",
                "small": "QmUy4jh5mGNZvLkjies1RWM4YuvJh5o2FYopNPVYwrRVGV",
                "tiny": "QmUy4jh5mGNZvLkjies1RWM4YuvJh5o2FYopNPVYwrRVGV"
            }
        ],
        "categories": [
            "tshirts"
        ],
        "grams": 14,
        "condition": "new",
        "options": [
            {
                "name": "Size",
                "description": "What size do you want your shirt?",
                "variants": [
                    {
                        "name": "Small",
                        "image": {
                            "filename": "image.jpg",
                            "original": "QmUy4jh5mGNZvLkjies1RWM4YuvJh5o2FYopNPVYwrRVGV",
                            "large": "QmUy4jh5mGNZvLkjies1RWM4YuvJh5o2FYopNPVYwrRVGV",
                            "medium": "QmUy4jh5mGNZvLkjies1RWM4YuvJh5o2FYopNPVYwrRVGV",
                            "small": "QmUy4jh5mGNZvLkjies1RWM4YuvJh5o2FYopNPVYwrRVGV",
                            "tiny": "QmUy4jh5mGNZvLkjies1RWM4YuvJh5o2FYopNPVYwrRVGV"
                        }
                    },
                    {
                        "name": "Large",
                        "image": {
                            "filename": "image.jpg",
                            "original": "QmUy4jh5mGNZvLkjies1RWM4YuvJh5o2FYopNPVYwrRVGV",
                            "large": "QmUy4jh5mGNZvLkjies1RWM4YuvJh5o2FYopNPVYwrRVGV",
                            "medium": "QmUy4jh5mGNZvLkjies1RWM4YuvJh5o2FYopNPVYwrRVGV",
                            "small": "QmUy4jh5mGNZvLkjies1RWM4YuvJh5o2FYopNPVYwrRVGV",
                            "tiny": "QmUy4jh5mGNZvLkjies1RWM4YuvJh5o2FYopNPVYwrRVGV"
                        }
                    }
                ]
            },
            {
                "name": "Color",
                "description": "What color do you want your shirt?",
                "variants": [
                    {
                        "name": "Red",
                        "image": {
                            "filename": "image.jpg",
                            "original": "QmUy4jh5mGNZvLkjies1RWM4YuvJh5o2FYopNPVYwrRVGV",
                            "large": "QmUy4jh5mGNZvLkjies1RWM4YuvJh5o2FYopNPVYwrRVGV",
                            "medium": "QmUy4jh5mGNZvLkjies1RWM4YuvJh5o2FYopNPVYwrRVGV",
                            "small": "QmUy4jh5mGNZvLkjies1RWM4YuvJh5o2FYopNPVYwrRVGV",
                            "tiny": "QmUy4jh5mGNZvLkjies1RWM4YuvJh5o2FYopNPVYwrRVGV"
                        }
                    },
                    {
                        "name": "Green",
                        "image": {
                            "filename": "image.jpg",
                            "original": "QmUy4jh5mGNZvLkjies1RWM4YuvJh5o2FYopNPVYwrRVGV",
                            "large": "QmUy4jh5mGNZvLkjies1RWM4YuvJh5o2FYopNPVYwrRVGV",
                            "medium": "QmUy4jh5mGNZvLkjies1RWM4YuvJh5o2FYopNPVYwrRVGV",
                            "small": "QmUy4jh5mGNZvLkjies1RWM4YuvJh5o2FYopNPVYwrRVGV",
                            "tiny": "QmUy4jh5mGNZvLkjies1RWM4YuvJh5o2FYopNPVYwrRVGV"
                        }
                    }
                ]
            }
        ],
        "skus": [
            {
                "variantCombo": [
                    0,
                    0
                ],
                "productID": "1",
                "quantity": 12,
                "surcharge": {
                    "currency": {
                        "code": "TBTC",
                        "divisibility": 8,
                        "name": "A",
                        "currencyType": "A"
                    },
                    "amount": "0"
                }
            },
            {
                "variantCombo": [
                    0,
                    1
                ],
                "productID": "2",
                "quantity": 44,
                "surcharge": {
                    "currency": {
                        "code": "TBTC",
                        "divisibility": 8,
                        "name": "A",
                        "currencyType": "A"
                    },
                    "amount": "0"
                }
            }
        ],
        "price": {
            "currency": {
                "code": "TBTC",
                "divisibility": 8,
                "name": "A",
                "currencyType": "A"
            },
            "amount": "2000"
        }
    },
    "shippingOptions": [
        {
            "name": "usps",
            "type": "FIXED_PRICE",
            "regions": [
                "ALL"
            ],
            "services": [
                {
                    "name": "standard",
                    "estimatedDelivery": "3 days",
                    "price": {
                        "currency": {
                            "code": "TBTC",
                            "divisibility": 8,
                            "name": "A",
                            "currencyType": "A"
                        },
                        "amount": "20"
                    }
                }
            ]
        }
    ],
    "taxes": [
        {
            "taxType": "Sales tax",
            "taxRegions": [
                "UNITED_STATES"
            ],
            "taxShipping": true,
            "percentage": 7
        }
    ],
    "coupons": [
        {
            "title": "Insider's Discount",
            "discountCode": "insider",
            "percentDiscount": 5
        }
    ],
    "termsAndConditions": "Sample Terms and Conditions",
    "refundPolicy": "Sample Refund policy"
}

response

{
    "slug": "ron-swanson-tshirt"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment