Rechercher un bon de commande par identifiant
Rechercher un bon de commande à l'aide de son identifiant.
GET https://petstore3.swagger.io/api/v3/store/order/{orderId}
Exemples
- API Key
- OAuth 2.0
cURL
GET "https://petstore3.swagger.io/api/v3/store/order/1" \
-H "accept: application/json" \
-H "api_key: <YOUR_API_KEY>"
cURL
GET "https://petstore3.swagger.io/api/v3/store/order/1" \
-H "accept: application/json" \
-H "Authorization: Bearer <YOUR_OAUTH_TOKEN>"
Réponses
| Code | Description |
|---|---|
| 200 | Opération réussie |
| 400 | Identifiant invalide fourni |
| 404 | Commande introuvable |
| default | Erreur inattendue |
Exemple de réponse
200: Opération réussie
Response
{
"id": 1,
"petId": 0,
"quantity": 0,
"shipDate": "2025-08-11T15:13:06.939Z",
"status": "placed",
"complete": false
}
Paramètres
Paramètres de chemin
| Nom | Type | Description |
|---|---|---|
orderId | entier | Identifiant du bon de commande à récupérer |