# Get Single Order GET https://photos.conventionphotography.com/api/orders/{orderNumber} ## Get Single Order Retrieves detailed information for a specific order. ### Endpoint `GET https://convention.photos/api/orders/{orderNumber}` ### Description Fetches complete order details including customer info, photos, status, and shipping information. ### Path Parameters - **orderNumber**: The unique order identifier (e.g., "ASDAR26-0072") ### Response Returns JSON object with full order details. ### Authentication Admin authentication required. Reference: https://docs.convention.photos/api-reference/cps-api/convention-photos/get-single-order ## OpenAPI Specification ```yaml openapi: 3.1.0 info: title: Convention Photography System (CPS) version: 1.0.0 paths: /api/orders/{orderNumber}: get: operationId: get-single-order summary: Get Single Order description: >- ## Get Single Order Retrieves detailed information for a specific order. ### Endpoint `GET https://convention.photos/api/orders/{orderNumber}` ### Description Fetches complete order details including customer info, photos, status, and shipping information. ### Path Parameters - **orderNumber**: The unique order identifier (e.g., "ASDAR26-0072") ### Response Returns JSON object with full order details. ### Authentication Admin authentication required. tags: - subpackage_conventionPhotos parameters: - name: orderNumber in: path required: true schema: type: string responses: '200': description: Order details content: application/json: schema: $ref: >- #/components/schemas/convention.photos_getSingleOrder_Response_200 servers: - url: https://photos.conventionphotography.com - url: https://convention.photos components: schemas: convention.photos_getSingleOrder_Response_200: type: object properties: {} description: Empty response body title: convention.photos_getSingleOrder_Response_200 ``` ## SDK Code Examples ```python import requests url = "https://photos.conventionphotography.com/api/orders/orderNumber" response = requests.get(url) print(response.json()) ``` ```javascript const url = 'https://photos.conventionphotography.com/api/orders/orderNumber'; const options = {method: 'GET'}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://photos.conventionphotography.com/api/orders/orderNumber" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby require 'uri' require 'net/http' url = URI("https://photos.conventionphotography.com/api/orders/orderNumber") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body ``` ```java import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.get("https://photos.conventionphotography.com/api/orders/orderNumber") .asString(); ``` ```php request('GET', 'https://photos.conventionphotography.com/api/orders/orderNumber'); echo $response->getBody(); ``` ```csharp using RestSharp; var client = new RestClient("https://photos.conventionphotography.com/api/orders/orderNumber"); var request = new RestRequest(Method.GET); IRestResponse response = client.Execute(request); ``` ```swift import Foundation let request = NSMutableURLRequest(url: NSURL(string: "https://photos.conventionphotography.com/api/orders/orderNumber")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "GET" let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ```