[beta] Create an electric purchase transaction.

Create an electric charging purchase transaction, measured in kilowatt hours.

Rate limit: 100 requests/min (learn more about rate limits here).

To use this endpoint, select Write Fuel Purchase under the Fuel & Energy category when creating or editing an API token. Learn More.

Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

Request payload for creating a new electric charging purchase transaction.

discount
object

The amount of money discounted from the gross price of the charging transaction in the currency of the country where the transaction occurred.

string

Samsara ID of the driver.

string
required

The amount of energy delivered in kilowatt hours, as a decimal string greater than 0.

string

Name of the charging network or operator. For example: ChargePoint, Electrify America.

string
length ≤ 255

The integration provider. For example: Customer, ChargePoint Integration

string
required

The full street address of the charger, as it might be recognized by Google Maps (example: 1 De Haro St, San Francisco, CA 94107, United States). Alternatively, exact latitude/longitude can be provided (example: 40.748441, -73.985664).

transactionPrice
object
required

The gross price of the charging transaction in the currency of the country where the transaction occurred.

string
required
length between 1 and 32
^[a-zA-Z0-9\-]+$

The charging transaction reference. This is the transaction identifier, such as the receipt or charging session number.

string
required

The time of the charging transaction in RFC 3339 format. Timezone must be specified. For example, 2022-07-13T14:20:50.52-07:00 is a time in Pacific Daylight Time.

string

Samsara ID of the vehicle that was charged.

Responses

Language
Credentials
Bearer
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json