PetstoreAPI Docs
Modern Petstore APIClassic Petstore APIBlog
Modern Petstore APIClassic Petstore APIBlog
    • Modern Pet Store API: A New Gold Standard for OpenAPI
    • Pet
      • Get Pet
        GET
      • Update Pet
        PUT
      • Delete Pet
        DELETE
      • Create Pet
        POST
      • List Pets
        GET
      • Upload Pet Image
        POST
    • Chat
      • Create Chat Completion
        POST
    • Payments
      • Pay Order
        POST
    • Store
      • List Inventory
        GET
      • Create Order
        POST
      • Get Order
        GET
      • Delete Order
        DELETE
      • Callback Example
        POST
    • User
      • Create User
      • Update User
      • Get User
      • Delete User
      • Login
      • Logout
    • Webhooks
      • Pet Adopted Event
      • New Pet Available Event
    • Schemas
      • Pet
      • PetCollection
      • User
      • OrderPayment
      • Bank Card
      • Bank Account
      • Category
      • Links
      • Order
      • ApiResponse
      • Tag
      • Error
    Modern Petstore APIClassic Petstore APIBlog
    Modern Petstore APIClassic Petstore APIBlog

    Error

    RFC 9457 Problem Details for HTTP APIs

    {
        "type": "https://petstoreapi.com/errors/not-found",
        "title": "Resource Not Found",
        "status": 404,
        "detail": "The requested pet with ID '123' was not found",
        "instance": "/v1/pets/123",
        "errors": [
            {
                "field": "string",
                "message": "string",
                "code": "string"
            }
        ]
    }
    Built with