• pet
    • store
    • user
    Platform
    cxp orchestration / Reference / REST API

    store

    Postman Collection
    OpenAPI
    GET

    Returns pet inventories by status

    Returns a map of status codes to quantities

    Request

    This request has no parameters.

    Responses

    successful operation

    application/json

    object
    GET/store/inventory
    1 2 3 curl --request GET \ --url 'https://petstore.swagger.io/v2/store/inventory' \ --header 'Accept: application/json'
    POST

    Place an order for a pet

    Request

    Request bodyapplication/json

    order placed for purchasing the pet

    id

    integer

    petId

    integer

    quantity

    integer

    shipDate

    string

    status

    string

    complete

    boolean

    Responses

    successful operation

    application/xml application/json

    Order
    POST/store/order
    1 2 3 4 5 6 7 8 9 10 11 12 curl --request POST \ --url 'https://petstore.swagger.io/v2/store/order' \ --header 'Accept: application/xml' \ --header 'Content-Type: application/json' \ --data '{ "id": 2154, "petId": 2154, "quantity": 2154, "shipDate": "<string>", "status": "placed", "complete": true }'
    200Response
    1 2 3 4 5 6 7 8 { "id": 2154, "petId": 2154, "quantity": 2154, "shipDate": "<string>", "status": "placed", "complete": true }
    GET

    Find purchase order by ID

    For valid response try integer IDs with value >= 1 and <= 10. Other values will generated exceptions

    Request

    Path parameters

    orderId

    integer

    Required

    Responses

    successful operation

    application/xml application/json

    Order
    GET/store/order/{orderId}
    1 2 3 curl --request GET \ --url 'https://petstore.swagger.io/v2/store/order/{orderId}' \ --header 'Accept: application/xml'
    200Response
    1 2 3 4 5 6 7 8 { "id": 2154, "petId": 2154, "quantity": 2154, "shipDate": "<string>", "status": "placed", "complete": true }
    DEL

    Delete purchase order by ID

    For valid response try integer IDs with positive integer value. Negative or non-integer values will generate API errors

    Request

    Path parameters

    orderId

    integer

    Required

    Responses

    Invalid ID supplied

    DEL/store/order/{orderId}
    1 2 curl --request DELETE \ --url 'https://petstore.swagger.io/v2/store/order/{orderId}'

    Rate this page: