1. Store
Pet Store
  • Store API
    • Start your Apidog journey
    • Pet
      • List Pets
      • Create Pet
      • Get Pet
      • Update Pet
      • Delete Pet
      • Upload Pet Image
    • Chat
      • Pet Care AI Consultation
    • Store
      • Get Store Inventory
        GET
      • List all inventories
        GET
      • Create Order
        POST
      • Get Order
        GET
      • Cancel Order
        DELETE
      • Callback Example
        POST
    • Payments
      • Pay Order
    • User
      • Create User
      • Update User
      • Get User
      • Delete User Account
      • Create Authentication Token
    • Webhooks
      • Order Status Changed Event
      • Payment Succeeded Event
    • Websocket, Socket.IO & more
      • gRPC API
      • Other protocol API example
      • WebSocket example
      • Socket.IO example
      • Webhook example
      • GraphQL example
      • SSE example
      • SOAP example
    • Schemas
      • Pet
      • User
      • PetCollection
      • OrderPayment
      • Bank Card
      • Order
      • Bank Account
      • ApiResponse
      • Error
  • Admin API
    • Dashboard
      • Get Dashboard Stats
    • User Management
      • List Users
      • Get User Details
      • Update User Status
    • Order Management
      • List All Orders
      • Force Cancel Order
    • Audit Logs
      • Get Audit Log Details
    • Schemas
      • AuditLog
  1. Store

Create Order

POST
/orders
Create a new order for pet adoption. The order will be in PLACED status initially
and requires payment to proceed.
Authentication: Optional (anonymous orders allowed)

Request

Authorization
JWT Bearer
Add the parameter
Authorization
to Headers
Example:
Authorization: ********************
or
OAuth 2.0
Authorization Code
Add the parameter
Authorization
to Headers
,whose value is to concatenate the Token after the Bearer.
Example:
Authorization: Bearer ********************
Authorize URL: https://auth.petstoreapi.com/authorize
Token URL: https://auth.petstoreapi.com/token
Refresh URL: https://auth.petstoreapi.com/refresh
or
Body Params application/json

Examples

Responses

🟢201OK
application/json
Operation successful
Bodyapplication/json

🟠400BadRequest
🟠401Unauthorized
🟠403Forbidden
🟠404NotFound
🟠429TooManyRequests
🔴500InternalServerError
Request Request Example
Shell
JavaScript
Java
Swift
curl -X POST 'https://api.petstoreapi.com/v1/orders' \
  -H 'Content-Type: application/json' \
  -d '{
    "petId": 90180021,
    "quantity": 1,
    "shipDate": "2025-08-15",
    "status": "placed"
  }'
Response Response Example
201 - Success
{
    "id": "019b4139-1234-7abc-8def-123456789abc",
    "petId": "019b4132-70aa-764f-b315-e2803d882a24",
    "userId": "019b4138-e0af-70b9-8f0c-6ea97d495dfa",
    "status": "PLACED",
    "totalAmount": "150.00",
    "currency": "USD",
    "createdAt": "2025-12-21T13:56:23Z",
    "updatedAt": "2025-12-21T13:56:23Z"
}
Modified at 2026-05-13 03:16:01
Previous
List all inventories
Next
Get Order
Built with