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

    OrderPayment

    Order payment information with polymorphic payment sources

    {
        "id": "2e3b4f5a-6b7c-8d9e-0f1a-2b3c4d5e6f7a",
        "amount": 49.99,
        "currency": "USD",
        "source": {
            "object": "card",
            "name": "Jane Doe",
            "number": "4242424242424242",
            "expMonth": 1,
            "expYear": 2024,
            "brand": "VISA",
            "last4": "string",
            "billingAddress": {
                "city": "string",
                "state": "string",
                "postalCode": "string",
                "country": "string"
            }
        },
        "status": "PENDING",
        "createdAt": "2019-08-24T14:15:22Z"
    }
    Built with