Modern PetstoreAPI Docs
HomeGuidesModern PetstoreAPI
Classic PetstoreAPI
HomeGuidesModern PetstoreAPI
Classic PetstoreAPI
  1. Store
  • Pet
    • Get Pet
      GET
    • Update Pet
      PUT
    • Delete Pet
      DELETE
    • Create Pet
      POST
    • List Pets
      GET
    • Upload Pet Image
      POST
  • Chat
    • Pet Care AI Consultation
      POST
  • Payments
    • Pay Order
      POST
  • Store
    • Get Store Inventory
      GET
    • List Inventory
      GET
    • Create Order
      POST
    • Get Order
      GET
    • Cancel Order
      DELETE
    • Callback Example
      POST
  • User
    • Create User
      POST
    • Update User
      PUT
    • Get User
      GET
    • Delete User Account
      DELETE
    • Create Authentication Token
      POST
  • Webhooks
    • Order Status Changed Event
    • Payment Succeeded Event
  • Schemas
    • Pet
    • PetCollection
    • User
    • OrderPayment
    • Bank Card
    • Bank Account
    • Category
    • Links
    • Order
    • ApiResponse
    • Tag
    • Error
HomeGuidesModern PetstoreAPI
Classic PetstoreAPI
HomeGuidesModern PetstoreAPI
Classic PetstoreAPI
  1. Store

Create Order

POST
https://api.petstoreapi.com/v1/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
deviceCode
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
Header Params

Body Params application/json

Examples

Responses

🟢201Created
application/json
Operation successful
Body

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
{
    "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-01-07 06:44:25
Previous
List Inventory
Next
Get Order
Built with