{"openapi":"3.1.0","info":{"title":"Orders API","version":"1.0.0"},"paths":{"/rest/api/v1/orders":{"post":{"operationId":"orders_createOrder","summary":"Create Order","tags":["orders"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOrderRequest"}}}},"security":[{"x-api-key":[]}]}},"/rest/api/v1/orders/{orderId}/placements":{"post":{"operationId":"orders_addPlacements","summary":"Add Placements","tags":["orders"],"parameters":[{"name":"orderId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddPlacementsRequest"}}}},"security":[{"x-api-key":[]}]}},"/rest/api/v1/orders/{orderId}/launch":{"post":{"operationId":"orders_launchOrder","summary":"Launch Order","tags":["orders"],"parameters":[{"name":"orderId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderResponse"}}}}},"security":[{"x-api-key":[]}]}},"/rest/api/v1/orders/{orderId}":{"get":{"operationId":"orders_getOrder","summary":"Get Order","tags":["orders"],"parameters":[{"name":"orderId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderResponse"}}}}},"security":[{"x-api-key":[]}]},"delete":{"operationId":"orders_deleteOrder","summary":"Delete Order","tags":["orders"],"parameters":[{"name":"orderId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Orders_deleteOrder_Response_200"}}}}},"security":[{"x-api-key":[]}]}},"/rest/api/v1/orders/{orderId}/placements/{placementId}":{"get":{"operationId":"orders_getPlacement","summary":"Get Placement","tags":["orders"],"parameters":[{"name":"orderId","in":"path","required":true,"schema":{"type":"string"}},{"name":"placementId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacementResponse"}}}}},"security":[{"x-api-key":[]}]},"delete":{"operationId":"orders_removePlacement","summary":"Remove Placement","tags":["orders"],"parameters":[{"name":"orderId","in":"path","required":true,"schema":{"type":"string"}},{"name":"placementId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderResponse"}}}}},"security":[{"x-api-key":[]}]}},"/rest/api/v1/orders/{orderId}/placements/{placementId}/approve":{"post":{"operationId":"orders_approvePlacement","summary":"Approve Placement","tags":["orders"],"parameters":[{"name":"orderId","in":"path","required":true,"schema":{"type":"string"}},{"name":"placementId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacementResponse"}}}}},"security":[{"x-api-key":[]}]}},"/rest/api/v1/orders/{orderId}/placements/{placementId}/reject":{"post":{"operationId":"orders_rejectPlacement","summary":"Reject Placement","tags":["orders"],"parameters":[{"name":"orderId","in":"path","required":true,"schema":{"type":"string"}},{"name":"placementId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacementResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RejectPlacementRequest"}}}},"security":[{"x-api-key":[]}]}},"/rest/api/v1/orders/{orderId}/placements/{placementId}/concern":{"get":{"operationId":"orders_getConcern","summary":"Get Concern","tags":["orders"],"parameters":[{"name":"orderId","in":"path","required":true,"schema":{"type":"string"}},{"name":"placementId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConcernResponse"}}}}},"security":[{"x-api-key":[]}]},"post":{"operationId":"orders_raiseConcern","summary":"Raise Concern","tags":["orders"],"parameters":[{"name":"orderId","in":"path","required":true,"schema":{"type":"string"}},{"name":"placementId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConcernResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RaiseConcernRequest"}}}},"security":[{"x-api-key":[]}]}},"/rest/api/v1/orders/{orderId}/placements/{placementId}/concern/messages":{"post":{"operationId":"orders_addConcernMessage","summary":"Add Concern Message","tags":["orders"],"parameters":[{"name":"orderId","in":"path","required":true,"schema":{"type":"string"}},{"name":"placementId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConcernResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddConcernMessageRequest"}}}},"security":[{"x-api-key":[]}]}}},"tags":[{"name":"orders"}],"servers":[{"url":"https://api.respona.com","description":"Respona Public API"}],"components":{"schemas":{"PlacementRequestQualityTier":{"type":"string","enum":["DR_20","DR_30","DR_40","DR_50","DR_60"],"description":"Minimum domain-authority band for the placement. DR_20 = Starter (DR 20+), DR_30 = Standard (DR 30+), DR_40 = Authority (DR 40+), DR_50 = Power (DR 50+), DR_60 = Elite (DR 60+).","title":"PlacementRequestQualityTier"},"PlacementRequest":{"type":"object","properties":{"requested_url":{"type":"string","description":"URL the placed backlink should point to."},"requested_anchor":{"type":"string"},"quality_tier":{"$ref":"#/components/schemas/PlacementRequestQualityTier","description":"Minimum domain-authority band for the placement. DR_20 = Starter (DR 20+), DR_30 = Standard (DR 30+), DR_40 = Authority (DR 40+), DR_50 = Power (DR 50+), DR_60 = Elite (DR 60+)."},"content_guidelines":{"type":"string"},"domain_specifications":{"type":"string"}},"required":["requested_url","quality_tier"],"title":"PlacementRequest"},"CreateOrderRequest":{"type":"object","properties":{"placements":{"type":"array","items":{"$ref":"#/components/schemas/PlacementRequest"}},"title":{"type":"string","description":"Optional order title (max 255 chars). Defaults to \"New order\" when omitted."}},"required":["placements"],"title":"CreateOrderRequest"},"OrderResponseStatus":{"type":"string","enum":["DRAFT","LAUNCHED","IN_PROGRESS","COMPLETED","REJECTED","REFUNDED"],"description":"Current order status. One of: DRAFT, LAUNCHED, IN_PROGRESS, COMPLETED, REJECTED, REFUNDED.","title":"OrderResponseStatus"},"PlacementResponseStatus":{"type":"string","enum":["DRAFT","ORDERED","PENDING_APPROVAL","REJECTED","IN_PROGRESS","APPROVED","LIVE","REFUNDED"],"description":"Current placement status. One of: DRAFT, ORDERED, PENDING_APPROVAL, REJECTED, IN_PROGRESS, APPROVED, LIVE, REFUNDED.","title":"PlacementResponseStatus"},"PlacementResponseQualityTier":{"type":"string","enum":["DR_20","DR_30","DR_40","DR_50","DR_60"],"description":"Minimum domain-authority band for the placement. DR_20 = Starter (DR 20+), DR_30 = Standard (DR 30+), DR_40 = Authority (DR 40+), DR_50 = Power (DR 50+), DR_60 = Elite (DR 60+).","title":"PlacementResponseQualityTier"},"PlacementResponseConcernStatus":{"type":"string","enum":["RAISED","IN_REVIEW","RESOLVED"],"description":"Overlay status of an open concern on this placement (RAISED / IN_REVIEW). Omitted when no concern is active.","title":"PlacementResponseConcernStatus"},"PriceBreakdownLineView":{"type":"object","properties":{"code":{"type":"string","description":"Price-line code. Order level: PLACEMENTS_SUBTOTAL. Placement level: BASE_DR_20 / BASE_DR_30 / BASE_DR_40 / BASE_DR_50 / BASE_DR_60 (base price for the quality band), CONTENT_GUIDELINES_20PCT (+20% when content guidelines are supplied), DOMAIN_SPECIFICATIONS_20PCT (+20% when domain specifications are supplied)."},"amount":{"type":"integer","format":"int64"}},"required":["code","amount"],"title":"PriceBreakdownLineView"},"PlacementResponse":{"type":"object","properties":{"placement_id":{"type":"string"},"number":{"type":"string","description":"Human-facing sequential placement number. Assigned at launch - omitted while the order is a draft."},"status":{"$ref":"#/components/schemas/PlacementResponseStatus","description":"Current placement status. One of: DRAFT, ORDERED, PENDING_APPROVAL, REJECTED, IN_PROGRESS, APPROVED, LIVE, REFUNDED."},"requested_url":{"type":"string"},"requested_anchor":{"type":"string"},"publisher_url":{"type":"string","description":"URL where the link was actually published. Omitted until the placement is live."},"quality_tier":{"$ref":"#/components/schemas/PlacementResponseQualityTier","description":"Minimum domain-authority band for the placement. DR_20 = Starter (DR 20+), DR_30 = Standard (DR 30+), DR_40 = Authority (DR 40+), DR_50 = Power (DR 50+), DR_60 = Elite (DR 60+)."},"content_guidelines":{"type":"string"},"domain_specifications":{"type":"string"},"price":{"type":"integer","format":"int64","description":"Placement price in integer USD cents (1 credit = 1 cent)."},"domain_rating":{"type":"integer","description":"Domain Rating of the proposed publisher domain. Omitted until a domain is proposed."},"domain_traffic":{"type":"integer","format":"int64","description":"Monthly organic traffic of the proposed publisher domain. Omitted until a domain is proposed."},"approved_at":{"type":"string","description":"When the proposed domain was approved (RFC 3339 UTC). Omitted until approved."},"rejected_count":{"type":"integer","description":"How many proposed domains the client has rejected for this placement."},"rejection_limit":{"type":"integer","description":"Rejection budget. On the (rejection_limit)-th reject the placement auto-refunds."},"concern_status":{"$ref":"#/components/schemas/PlacementResponseConcernStatus","description":"Overlay status of an open concern on this placement (RAISED / IN_REVIEW). Omitted when no concern is active."},"price_breakdown":{"type":"array","items":{"$ref":"#/components/schemas/PriceBreakdownLineView"}}},"required":["placement_id","status","requested_url","requested_anchor","quality_tier","price","rejected_count","rejection_limit","price_breakdown"],"title":"PlacementResponse"},"OrderResponse":{"type":"object","properties":{"order_id":{"type":"string"},"title":{"type":"string","description":"Order title. Defaults to \"New order\" when none was supplied on creation."},"number":{"type":"string","description":"Human-facing sequential order number. Assigned at launch - omitted while the order is a draft."},"status":{"$ref":"#/components/schemas/OrderResponseStatus","description":"Current order status. One of: DRAFT, LAUNCHED, IN_PROGRESS, COMPLETED, REJECTED, REFUNDED."},"placements":{"type":"array","items":{"$ref":"#/components/schemas/PlacementResponse"}},"price":{"type":"integer","format":"int64","description":"Order price in integer USD cents (1 credit = 1 cent)."},"price_breakdown":{"type":"array","items":{"$ref":"#/components/schemas/PriceBreakdownLineView"}},"created_at":{"type":"string"},"updated_at":{"type":"string"},"launched_at":{"type":"string"},"credits_charged":{"type":"integer","format":"int64"}},"required":["order_id","title","status","placements","price","price_breakdown","created_at","updated_at"],"title":"OrderResponse"},"AddPlacementsRequest":{"type":"object","properties":{"placements":{"type":"array","items":{"$ref":"#/components/schemas/PlacementRequest"}}},"required":["placements"],"title":"AddPlacementsRequest"},"Orders_deleteOrder_Response_200":{"type":"object","properties":{},"description":"Empty response body","title":"Orders_deleteOrder_Response_200"},"RejectPlacementRequest":{"type":"object","properties":{"reason":{"type":"string","description":"Why the proposed domain is being rejected."}},"required":["reason"],"title":"RejectPlacementRequest"},"ConcernResponseStatus":{"type":"string","enum":["RAISED","IN_REVIEW","RESOLVED"],"description":"Concern lifecycle status. One of: RAISED, IN_REVIEW, RESOLVED.","title":"ConcernResponseStatus"},"ConcernResponseAreasItems":{"type":"string","enum":["TARGET_URL","ANCHOR","CONTENT","PUBLISHER_DOMAIN","OTHER"],"title":"ConcernResponseAreasItems"},"ConcernMessageViewAuthorType":{"type":"string","enum":["CLIENT","RESPONA_TEAM"],"description":"Who authored the message. One of: CLIENT, RESPONA_TEAM.","title":"ConcernMessageViewAuthorType"},"ConcernMessageView":{"type":"object","properties":{"author_type":{"$ref":"#/components/schemas/ConcernMessageViewAuthorType","description":"Who authored the message. One of: CLIENT, RESPONA_TEAM."},"body":{"type":"string"},"created_at":{"type":"string"}},"required":["author_type","body","created_at"],"title":"ConcernMessageView"},"ConcernResponse":{"type":"object","properties":{"status":{"$ref":"#/components/schemas/ConcernResponseStatus","description":"Concern lifecycle status. One of: RAISED, IN_REVIEW, RESOLVED."},"areas":{"type":"array","items":{"$ref":"#/components/schemas/ConcernResponseAreasItems"},"description":"Aspects of the placement the concern is about."},"messages":{"type":"array","items":{"$ref":"#/components/schemas/ConcernMessageView"}},"created_at":{"type":"string"},"updated_at":{"type":"string"}},"required":["status","areas","messages","created_at","updated_at"],"title":"ConcernResponse"},"RaiseConcernRequestAreasItems":{"type":"string","enum":["TARGET_URL","ANCHOR","CONTENT","PUBLISHER_DOMAIN","OTHER"],"title":"RaiseConcernRequestAreasItems"},"RaiseConcernRequest":{"type":"object","properties":{"areas":{"type":"array","items":{"$ref":"#/components/schemas/RaiseConcernRequestAreasItems"},"description":"Which aspect(s) of the placement the concern is about. One or more of: TARGET_URL, ANCHOR, CONTENT, PUBLISHER_DOMAIN, OTHER."},"message":{"type":"string","description":"The concern description. Non-blank."}},"required":["areas","message"],"title":"RaiseConcernRequest"},"AddConcernMessageRequest":{"type":"object","properties":{"message":{"type":"string","description":"The message to append to the concern thread. Non-blank."}},"required":["message"],"title":"AddConcernMessageRequest"}},"securitySchemes":{"x-api-key":{"type":"apiKey","in":"header","name":"x-api-key","description":"Server-to-server API key. Never embed in a browser or mobile client."}}}}