{"openapi":"3.0.1","info":{"title":"Contact Management Service","description":"Contact Management Service","version":"1.0"},"servers":[{"url":"https://api.atlassian.com/"}],"security":[{"ASAP":[]}],"tags":[{"name":"Sales Contact","description":"Sales contact REST APIs to fetch customer contacts for provided quotes and entitlements."}],"paths":{"/api/v2/sales/contact/quote":{"get":{"operationId":"fetchContactsByQuotesV2","parameters":[{"in":"header","name":"X-transaction-account","required":true,"schema":{"type":"string"}},{"in":"query","name":"quotes","required":true,"schema":{"items":{"type":"string"},"type":"array","example":["uuid1","uuid2"]}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetByQuoteResponseDtoV2"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactManagementServiceErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactManagementServiceErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactManagementServiceErrorResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactManagementServiceErrorResponse"}}},"description":"Internal Server Error"}},"summary":"Fetch Quote Contacts For provided Quotes","tags":["Sales Contact"]}},"/api/v1/sales/contact/invoiceGroupIds":{"get":{"summary":"Fetch Customer Contacts For provided invoiceGroupIds","tags":["Sales Contact"],"operationId":"fetchContactsByInvoiceGroupIds","parameters":[{"in":"header","name":"X-transaction-account","required":true,"schema":{"type":"string"}},{"in":"query","name":"invoiceGroupIds","required":true,"schema":{"items":{"type":"string"},"type":"array"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetByBillingProfileResponseDto"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactManagementServiceErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactManagementServiceErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactManagementServiceErrorResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactManagementServiceErrorResponse"}}},"description":"Internal Server Error"}}}},"/api/v1/sales/contact/quote":{"get":{"tags":["Sales Contact"],"summary":"Fetch Customer Contacts and Quote Contacts For provided Quotes","operationId":"fetchContactsByQuotes","deprecated":true,"parameters":[{"name":"X-transaction-account","in":"header","required":true,"schema":{"type":"string"}},{"name":"quotes","in":"query","required":true,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetByQuoteResponseDto"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactManagementServiceErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactManagementServiceErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactManagementServiceErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactManagementServiceErrorResponse"}}}}}}},"/api/v1/sales/contact/entitlement":{"get":{"tags":["Sales Contact"],"summary":"Fetch Customer Contacts For provided Entitlements","operationId":"fetchContactsByEntitlements","deprecated":true,"parameters":[{"name":"X-transaction-account","in":"header","required":true,"schema":{"type":"string"}},{"name":"entitlements","in":"query","required":true,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetByEntitlementResponseDto"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactManagementServiceErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactManagementServiceErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactManagementServiceErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactManagementServiceErrorResponse"}}}}}}}},"components":{"schemas":{"GetByQuoteResponseDtoV2":{"additionalProperties":false,"properties":{"values":{"description":"List of quotes along with the corresponding contacts.","items":{"$ref":"#/components/schemas/QuoteRelationV2"},"type":"array"}},"type":"object"},"QuoteRelationV2":{"additionalProperties":false,"description":"List of quotes along with the corresponding contacts.","properties":{"QUOTE_CONTACT":{"items":{"type":"string"},"type":"array"},"resource":{"description":"ARI of Quote Resource.","type":"string"}},"type":"object"},"ContactManagementServiceErrorResponse":{"type":"object","properties":{"title":{"type":"string"},"reasonCode":{"type":"string"},"reasonDescription":{"type":"string"}},"additionalProperties":false},"GetByQuoteResponseDto":{"type":"object","properties":{"values":{"type":"array","description":"List of quotes along with the corresponding contacts.","items":{"$ref":"#/components/schemas/QuoteRelation"}}},"additionalProperties":false},"QuoteRelation":{"type":"object","properties":{"resource":{"type":"string"},"QUOTE_CONTACT":{"type":"array","items":{"type":"string"}},"CUSTOMER_CONTACT":{"type":"array","items":{"type":"string"}}},"additionalProperties":false,"description":"List of quotes along with the corresponding contacts."},"EntitlementRelation":{"type":"object","properties":{"resource":{"type":"string"},"CUSTOMER_CONTACT":{"type":"array","items":{"type":"string"}}},"additionalProperties":false,"description":"List of entitlements along with the corresponding contacts."},"GetByEntitlementResponseDto":{"type":"object","properties":{"values":{"type":"array","description":"List of entitlements along with the corresponding contacts.","items":{"$ref":"#/components/schemas/EntitlementRelation"}}},"additionalProperties":false},"GetByBillingProfileResponseDto":{"additionalProperties":false,"properties":{"values":{"description":"List of billingProfileIds along with the corresponding contacts.","items":{"$ref":"#/components/schemas/BillingProfileRelation"},"type":"array"}},"type":"object"},"BillingProfileRelation":{"additionalProperties":false,"description":"List of billingProfileIds along with the corresponding contacts.","properties":{"CUSTOMER_CONTACT":{"items":{"type":"string"},"type":"array"},"resource":{"type":"string"}},"type":"object"}},"securitySchemes":{"ASAP":{"type":"apiKey","name":"Authorization","in":"header"}}}}