swagger.json

Patch API V2

Version: 2
Description: The core API used to integrate with Patch's service
Contact: Developer Support (engineering@usepatch.com)

Paths

/v1/orders/{id}/cancel

Patch
Summary: Cancel an order
Tags: Orders
OperationId: cancelOrder
Description: Cancelling an order removes the associated offset allocation from an order. You will not be charged for cancelled orders. Only orders in the draft or placed state can be cancelled.
Parameters:

/v1/orders

Post
Summary: Creates an order
Tags: Orders
OperationId: createOrder
Description: Creates an order in the placed or draft, or reserved state.
Parameters:

/v1/orders/{uid}

Delete
Summary: Deletes a draft order
Tags: Orders
OperationId: deleteOrder
Description: Deletes an order that is in the draft state.
Parameters:

/v1/orders/{order_id}/line_items

Post
Summary: Creates an order line item
Tags: Order Line Items
OperationId: createOrderLineItem
Description: Creates a line item on an order that is in the draft state.
Parameters:

/v1/orders/{order_id}/line_items/{serial_number}

Delete
Summary: Deletes an order line item
Tags: Order Line Items
OperationId: deleteOrderLineItem
Description: Deletes a line item on an order that is in the draft state.
Parameters:

/v1/orders/{id}/place

Patch
Summary: Place an order
Tags: Orders
OperationId: placeOrder
Description: Placing an order confirms an order's allocation of offsets. Only orders that are in the draft state can be placed.
Parameters:

/v1/orders/{id}

Get
Summary: Retrieves an order
Tags: Orders
OperationId: retrieveOrder
Description: Retrieves a given order and its allocation offsets or negative emissions. You can only retrieve orders associated with the organization you are querying for.
Parameters:

/v1/projects

Get
Summary: Retrieves a list of projects
Tags: Projects
OperationId: retrieveProjects
Description: Retrieves a list of projects available for purchase on Patch's platform.
Parameters:

/v1/projects/{id}

Get
Summary: Retrieves a project
Tags: Projects
OperationId: retrieveProject
Description: Retrieves a project available on Patch's platform.
Parameters:

/v1/projects/technology_types

Get
Summary: Retrieves the list of technology_types
Tags: TechnologyTypes
OperationId: retrieveTechnologyTypes
Description: Retrieves a list of all technology_types.
Parameters: