Paddle Billing
Search

Success responses

When a request is successful, Paddle returns a data object or array with a 2xx HTTP response code. List endpoints return a data array and metadata object with pagination information.

The Paddle API always returns requested entities in a data object or array. In most cases, it also returns a meta object with information about the request, including pagination information for list operations.

Success responses return a 2xx response code.

When there's an error, the API returns an error object instead. Errors return a 4xx or 5xx response code.

Get an entity

When you successfully get an entity, Paddle returns:

  • A data object with the requested entity.
  • A meta object with information about the request.

The response code is 200.

List entities

When you successfully list entities, Paddle returns:

  • A data array that includes a paginated list of requested entities.
  • A meta object that includes pagination information.

The response code is 200.

Create an entity

When you successfully create an entity, Paddle returns:

  • A data object with the created entity.
  • A meta object with information about the request.

All the fields against the new entity are returned, including any generated or calculated fields. If you omitted optional fields, Paddle returns those with the default values.

The response code is 201.

Request

POSThttps://api.paddle.com/customers

This example creates a customer with only the required fields.

Response

Paddle returns the new entity with all fields, not just those you included in your request. Generated fields, like the Paddle ID, are included.

Update an entity

When you successfully update an entity, Paddle returns:

  • A data object with the updated entity.
  • A meta object with information about the request.

All the fields against the updated entity are returned, including fields that you didn't change.

The response code is 200.

Request

This example archives a customer by changing the status field to archived.

Response

Paddle returns the updated entity with all fields, not just those you included in your request.

Related pages