mirror of
https://github.com/AnimeThemes/animethemes-api-docs.git
synced 2026-07-25 00:14:00 +02:00
title
| title |
|---|
| Transaction |
Transaction
A transaction API resource represents an invoice from or a payment to a billing service by AnimeThemes.
Fields
| Name | Type | Nullable | Description |
|---|---|---|---|
| id | Integer | No | The primary key of the resource |
| date | Date | No | The date that the transaction was made |
| service | Enum | No | The service that is billing AnimeThemes {Other, DigitalOcean, AWS, Hover, WalkerServers} |
| description | String | No | The short description of what the transaction is for |
| amount | Decimal | No | The amount of the transaction billed by or paid to the billing service by AnimeThemes |
| external_id | String | Yes | The identifier used by the service for the transaction, if applicable |
| created_at | Date | No | The date that the resource was created |
| updated_at | Date | No | The date that the resource was last modified |
| deleted_at | Date | Yes | The date that the resource was deleted |
Allowed Include Paths
None
Endpoints
The transaction destroy endpoint soft deletes a transaction and returns the deleted transaction resource.
The transaction force delete endpoint hard deletes a transaction and returns a confirmation message.
The transaction index endpoint displays a listing of transaction resources.
The transaction show endpoint returns a transaction resource.
The transaction store endpoint creates a new transaction and returns the new transaction resource.
The transaction update endpoint updates a transaction and returns the updated transaction resource.