# Mark Shipped POST https://photos.conventionphotography.com/api/orders/{id}/update-shipping ## Mark Shipped Updates order status to shipped after fulfillment. ### Endpoint `POST https://convention.photos/api/orders/{id}/update-shipping` ### Description Admin action to mark an order as shipped, triggering customer notifications and updating tracking. ### Path Parameters - **id**: Order ID ### Request Body ```json { "trackingNumber": "1Z999AA1234567890" } ``` ### Authentication Admin authentication required. Reference: https://docs.convention.photos/api-reference/cps-api/convention-photos/mark-shipped ## OpenAPI Specification ```yaml openapi: 3.1.0 info: title: Convention Photography System (CPS) version: 1.0.0 paths: /api/orders/{id}/update-shipping: post: operationId: mark-shipped summary: Mark Shipped description: >- ## Mark Shipped Updates order status to shipped after fulfillment. ### Endpoint `POST https://convention.photos/api/orders/{id}/update-shipping` ### Description Admin action to mark an order as shipped, triggering customer notifications and updating tracking. ### Path Parameters - **id**: Order ID ### Request Body ```json { "trackingNumber": "1Z999AA1234567890" } ``` ### Authentication Admin authentication required. tags: - subpackage_conventionPhotos parameters: - name: id in: path required: true schema: type: string responses: '200': description: Shipping status updated content: application/json: schema: $ref: >- #/components/schemas/convention.photos_markShipped_Response_200 servers: - url: https://photos.conventionphotography.com - url: https://convention.photos components: schemas: convention.photos_markShipped_Response_200: type: object properties: {} description: Empty response body title: convention.photos_markShipped_Response_200 ``` ## SDK Code Examples ```python import requests url = "https://photos.conventionphotography.com/api/orders/id/update-shipping" response = requests.post(url) print(response.json()) ``` ```javascript const url = 'https://photos.conventionphotography.com/api/orders/id/update-shipping'; const options = {method: 'POST'}; 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/id/update-shipping" req, _ := http.NewRequest("POST", 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/id/update-shipping") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.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.post("https://photos.conventionphotography.com/api/orders/id/update-shipping") .asString(); ``` ```php request('POST', 'https://photos.conventionphotography.com/api/orders/id/update-shipping'); echo $response->getBody(); ``` ```csharp using RestSharp; var client = new RestClient("https://photos.conventionphotography.com/api/orders/id/update-shipping"); var request = new RestRequest(Method.POST); IRestResponse response = client.Execute(request); ``` ```swift import Foundation let request = NSMutableURLRequest(url: NSURL(string: "https://photos.conventionphotography.com/api/orders/id/update-shipping")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "POST" 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() ```