{"openapi":"3.0.3","info":{"title":"Adobe Journey Optimizer - API Triggered Campaigns (Photo LOB)","description":"Comprehensive Swagger specification for triggering unitary executions in AJO.","version":"1.0.0"},"servers":[{"description":"SwaggerHub API Auto Mocking","url":"https://virtserver.swaggerhub.com/cognizanttechnologys-62d/Photo_Experience_Platform/1.0.0"},{"url":"https://platform.adobe.io/ajo/im","description":"Adobe Experience Platform Production"}],"paths":{"/executions/unitary":{"post":{"summary":"Invoke API Triggered Campaign","operationId":"triggerPhotoCampaign","parameters":[{"name":"x-gw-ims-org-id","in":"header","required":true,"schema":{"type":"string"},"example":"5E16123F5245B2970A490D45@AdobeOrg"},{"name":"x-api-key","in":"header","required":true,"schema":{"type":"string"},"example":"x-api-key"},{"name":"x-sandbox-name","in":"header","required":true,"schema":{"type":"string"},"example":"walgreens-dev"},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"},"description":"Bearer [Access Token]"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriggerRequest"}}}},"responses":{"200":{"description":"Success - Campaign Triggered","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"}}},"example":{"requestId":"fae6cc60-4abd-11f1-bcdb-fd4d2697a26b"}}}},"400":{"description":"Bad Request - Validation or Schema Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"type":"http://ns.adobe.com/aep/errors/PHX-101-400","title":"Invalid Request","status":400,"detail":"The field 'campaignId' is required."}}}},"401":{"description":"Unauthorized - Invalid/Expired Token"},"403":{"description":"Forbidden - Insufficient Permissions"},"429":{"description":"Too Many Requests - Rate Limit Exceeded"},"500":{"description":"Internal Server Error"}}}}},"components":{"schemas":{"TriggerRequest":{"type":"object","required":["requestId","campaignId","recipients"],"properties":{"requestId":{"type":"string","format":"uuid"},"campaignId":{"type":"string"},"recipients":{"type":"array","items":{"$ref":"#/components/schemas/Recipient"}}}},"Recipient":{"type":"object","required":["type","userId","namespace"],"properties":{"type":{"type":"string","enum":["aep"]},"userId":{"type":"string"},"namespace":{"type":"string"},"channelData":{"type":"object","properties":{"emailAddress":{"type":"string","format":"email"}}},"context":{"$ref":"#/components/schemas/FullCampaignContext"}}},"FullCampaignContext":{"type":"object","properties":{"ADDRESS1":{"type":"string"},"ADDRESS2":{"type":"string"},"AFFILIATESTORE":{"type":"string"},"AID":{"type":"string"},"BASEIMAGEPATH":{"type":"string"},"BOOTSSUBTOTAL":{"type":"string"},"CAMPAIGNCODE":{"type":"string"},"CITY":{"type":"string"},"COUNTY":{"type":"string"},"CUSTEMAILADDR":{"type":"string"},"DISTRICT":{"type":"string"},"EID":{"type":"string"},"EMAIL":{"type":"string"},"EMAILADDR":{"type":"string"},"FIRSTNAME":{"type":"string"},"FREIGHT":{"type":"string"},"FULLCUSTOMERNAME":{"type":"string"},"INITOTAL":{"type":"string"},"INMOMENTSURVEY":{"type":"string"},"INTERSECTION":{"type":"string"},"LASTDIGITS":{"type":"string"},"LASTNAME":{"type":"string"},"ORDERDATE":{"type":"string"},"ORDERDATE1":{"type":"string"},"ORDERFREIGHT":{"type":"string"},"ORDERNUM":{"type":"string"},"PASSPORTURL":{"type":"string"},"PAYMENTMETHOD":{"type":"string"},"PHONE":{"type":"string"},"PHOTOINKJETREFILLINDICATOR":{"type":"string"},"PROMISEDATE":{"type":"string"},"PROMISEDDATE":{"type":"string"},"PROMISEDTTM":{"type":"string"},"REASONCD":{"type":"string"},"REFUNDAMOUNT":{"type":"string"},"SALESTAX":{"type":"string"},"SHIPCITY":{"type":"string"},"SHIPFIRSTNAME":{"type":"string"},"SHIPLASTNAME":{"type":"string"},"SHIPPINGCITY":{"type":"string"},"SHIPPINGDATE":{"type":"string"},"SHIPPINGFNAME":{"type":"string"},"SHIPPINGLNAME":{"type":"string"},"SHIPPINGMETHOD":{"type":"string"},"SHIPPINGSTATE":{"type":"string"},"SHIPPINGSTREET":{"type":"string"},"SHIPPINGZIP":{"type":"string"},"SHIPSTADDR":{"type":"string"},"SHIPSTATE":{"type":"string"},"SHIPZIPCODE":{"type":"string"},"SHIPZIPPLUS":{"type":"string"},"SHRCUSTOMERFIRSTNAME":{"type":"string"},"SHRCUSTOMERLASTNAME":{"type":"string"},"SHREMAILADDR":{"type":"string"},"STATE":{"type":"string"},"STORENBR":{"type":"string"},"SUBTOTAL":{"type":"string"},"TAX":{"type":"string"},"TEST":{"type":"string"},"TOTAL":{"type":"string"},"TOTALDISCOUNT":{"type":"string"},"TRACKINGNUM":{"type":"string"},"VENDORID":{"type":"string"},"VENDORNAME":{"type":"string"},"WAGAFFILIATEVENDOR":{"type":"string"},"ZIPCODE":{"type":"string"},"HOURS":{"type":"array","items":{"$ref":"#/components/schemas/HoursSchema"}},"HOURSLIST":{"type":"array","items":{"$ref":"#/components/schemas/HoursSchema"}},"PRODUCTLIST":{"type":"array","items":{"$ref":"#/components/schemas/ProductListSchema"}},"PRODUCTS":{"type":"array","items":{"$ref":"#/components/schemas/ProductsSimpleSchema"}}}},"HoursSchema":{"type":"object","properties":{"CLOSETIME":{"type":"string"},"NAME":{"type":"string"},"OPENTIME":{"type":"string"}}},"ProductListSchema":{"type":"object","properties":{"BOOTSPRDTPRICEB4DIS":{"type":"string"},"CARTID":{"type":"string"},"CREATEDTTM":{"type":"string"},"CREATEUSERID":{"type":"string"},"DOCPRDTQTY":{"type":"string"},"IMAGEID":{"type":"string"},"INITIALITEMQUANTITY":{"type":"string"},"ITEMINIFINALPRICE":{"type":"string"},"ITEMQUANTITY":{"type":"string"},"PRDTDISTTL":{"type":"string"},"PRDTDISTTLDOUBLE":{"type":"string"},"PRDTPRICEB4DIS":{"type":"string"},"PRDTPRICEB4DISDOUBLE":{"type":"string"},"PRDTPRICEBEFOREDIS":{"type":"string"},"PRODUCTID":{"type":"string"},"PRODUCTNAME":{"type":"string"},"UNITPRICE":{"type":"string"},"UNITPRICEDOUBLE":{"type":"string"},"UPDATEDTTM":{"type":"string"},"UPDATEUSERID":{"type":"string"}}},"ProductsSimpleSchema":{"type":"object","properties":{"ITEMQUANTITY":{"type":"string"},"PRDTPRICEB4DIS":{"type":"string"},"PRODUCTNAME":{"type":"string"},"PRODUCTSNAME":{"type":"string"},"TOTAL":{"type":"string"},"UNITPRICE":{"type":"string"}}},"ErrorResponse":{"type":"object","properties":{"type":{"type":"string"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"}}}}}}