Postman PubSub Collection

Copy the JSON object below and follow the import instructions on the Postman Collections page to import this collection to your Postman workspace.

	
info	
_postman_id	"9368135e-364f-4d97-94f6-0583ef0f32b6"
name	"Example PUBSUB Collection"
schema	"https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
_exporter_id	"18011579"
_collection_link	"https://spoton.postman.co/workspace/My-Workspace-Enterprise-APIs~3c00463a-c30e-44fc-8eb3-40464b7ad6e3/collection/18011579-9368135e-364f-4d97-94f6-0583ef0f32b6?action=share&creator=18011579&source=collection_link"
item	
0	
name	"PubSub Auth"
event	
0	
listen	"test"
script	
exec	
0	"let response = pm.response.json();"
1	'pm.environment.set("auth_key", response.auth_key);'
type	"text/javascript"
request	
method	"POST"
header	
0	
key	"x-api-key"
value	"{{api_key}}"
type	"text"
url	
raw	"{{base_url}}auth/pubsub"
host	
0	"{{base_url}}auth"
path	
0	"pubsub"
response	[]
1	
name	"Create a Subscription"
event	
0	
listen	"test"
script	
exec	
0	""
type	"text/javascript"
request	
auth	
type	"bearer"
bearer	
0	
key	"token"
value	"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ2MSI6eyJ0eXBlIjoiaW50ZXJuYWwiLCJzZXJ2aWNlSWQiOiJhdXRoIiwiY2xhaW1zIjp7InVzZXJJZCI6IjAiLCJjb3Jwb3JhdGVJZHMiOlsiOSJdLCJ2ZW51ZUlkcyI6WyIxMTQiXSwidmVuZG9ySWRzIjpbIjkzNiJdfX0sImV4cCI6MTY3Mzk2NzQ4OSwiaWF0IjoxNjA5Mjc1MDE5LCJpc3MiOiJhdXRoIn0.g1l9HCOt7IXvGMY_KSHVVbck_jNY38_LC3q8T2UjkWY"
type	"string"
method	"POST"
header	
0	
key	"X-api-key"
type	"text"
value	"{{api_key}}"
1	
key	"Content-Type"
value	"application/json"
type	"text"
2	
key	"Accept"
value	"application/com.appetize.subscriber.v1.0+json"
type	"text"
3	
key	"Authorization"
value	"Bearer {{auth_token}}"
type	"text"
disabled	true
body	
mode	"raw"
raw	'{\n    "topics": [\n        "orders"\n    ],\n    "corporate_id": 2199,\n    "venue_ids": [\n            4673\n            \n    ],\n    "vendor_ids": [\n            75181,\n            75293,\n            85069\n    ]\n}'
options	
raw	
language	"json"
url	
raw	"{{base_url}}pubsub-subscriber/subscriptions"
host	
0	"{{base_url}}pubsub-subscriber"
path	
0	"subscriptions"
response	[]