{ "uuid": "0eaaca38-5691-481d-98ba-c28baa04364b", "lastMigration": 29, "name": "Negotiation API", "endpointPrefix": "sell/negotiation/v1", "latency": 0, "port": 3000, "hostname": "", "routes": [ { "uuid": "2e7cbcfb-2202-46b2-a646-a2e8fa886178", "documentation": "This method evaluates a seller's current listings and returns the set of IDs that are eligible for a seller-initiated discount offer to a buyer. A listing ID is returned only when one or more buyers have shown an "interest" in the listing. If any buyers have shown interest in a listing, the seller can initiate a "negotiation" with them by calling sendOfferToInterestedBuyers, which sends all interested buyers a message that offers the listing at a discount. For details about how to create seller offers to buyers, see Sending offers to buyers.", "method": "get", "endpoint": "find_eligible_items", "responses": [ { "uuid": "af4c11bd-4547-48a5-80ea-ac28e421cbfe", "body": "{\n \"eligibleItems\": [\n {\n \"listingId\": \"\"\n }\n ],\n \"href\": \"\",\n \"limit\": {{faker 'number.int' max=99999}},\n \"next\": \"\",\n \"offset\": {{faker 'number.int' max=99999}},\n \"prev\": \"\",\n \"total\": {{faker 'number.int' max=99999}}\n}", "latency": 0, "statusCode": 200, "label": "Success", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "0545f297-19f8-48d6-846c-53947e1c6b59", "body": "", "latency": 0, "statusCode": 204, "label": "No Content", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "0c9b01d9-40f9-4f49-968b-a6a616d59382", "body": "", "latency": 0, "statusCode": 400, "label": "Bad Request", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "959bbced-30e1-4f7f-9409-c8f430451650", "body": "", "latency": 0, "statusCode": 500, "label": "Internal Server Error", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "7810f19b-50c0-44cd-a351-0e89795f7c76", "documentation": "This method sends eligible buyers offers to purchase items in a listing at a discount. When a buyer has shown interest in a listing, they become "eligible" to receive a seller-initiated offer to purchase the item(s). Sellers use findEligibleItems to get the set of listings that have interested buyers. If a listing has interested buyers, sellers can use this method (sendOfferToInterestedBuyers) to send an offer to the buyers who are interested in the listing. The offer gives buyers the ability to purchase the associated listings at a discounted price. For details about how to create seller offers to buyers, see Sending offers to buyers.", "method": "post", "endpoint": "send_offer_to_interested_buyers", "responses": [ { "uuid": "c15e443e-0c59-4407-bed1-e72d4351c230", "body": "{\n \"offers\": [\n {\n \"allowCounterOffer\": {{faker 'datatype.boolean'}},\n \"buyer\": {\n \"maskedUsername\": \"\"\n },\n \"creationDate\": \"\",\n \"initiatedBy\": \"\",\n \"lastModifiedDate\": \"\",\n \"message\": \"\",\n \"offerDuration\": {\n \"unit\": \"\",\n \"value\": {{faker 'number.int' max=99999}}\n },\n \"offerId\": \"\",\n \"offerStatus\": \"\",\n \"offerType\": \"\",\n \"offeredItems\": [\n {\n \"discountPercentage\": \"\",\n \"listingId\": \"\",\n \"price\": {\n \"currency\": \"\",\n \"value\": \"\"\n },\n \"quantity\": {{faker 'number.int' max=99999}}\n }\n ],\n \"revision\": \"\"\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "Success", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "4365a8c0-2b7e-4856-9baf-e3f44a61ae60", "body": "", "latency": 0, "statusCode": 400, "label": "Bad Request", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "2746dc62-8209-435b-a553-bf461de77054", "body": "", "latency": 0, "statusCode": 409, "label": "Conflict", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "07c5d230-f29b-4c3b-8369-bcd241ca2bd6", "body": "", "latency": 0, "statusCode": 500, "label": "Internal Server Error", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" } ], "proxyMode": false, "proxyHost": "", "proxyRemovePrefix": false, "tlsOptions": { "enabled": false, "type": "CERT", "pfxPath": "", "certPath": "", "keyPath": "", "caPath": "", "passphrase": "" }, "cors": true, "headers": [], "proxyReqHeaders": [{ "key": "", "value": "" }], "proxyResHeaders": [{ "key": "", "value": "" }], "data": [], "folders": [], "rootChildren": [ { "type": "route", "uuid": "2e7cbcfb-2202-46b2-a646-a2e8fa886178" }, { "type": "route", "uuid": "7810f19b-50c0-44cd-a351-0e89795f7c76" } ] }