dambel

دمبل

shevron
ورود | ثبت نام

API Docs / payments / payment resource



Payment Resource

Represents a payment transaction, including its type, amount, status, and associations.


Schema

FieldTypeDescriptionExample
idintUnique identifier for the payment123
user_idintID of the user who made the payment123
typestringType of payment (see below)"deposit"
amountnumberAmount of the payment100.0
descriptionstringDescription of the payment"Subscription fee"
payable_typestringType of the payable resource (e.g., App\\Models\\Gym)"App\Models\Gym"
payable_idintID of the payable resource456
metaobjectAdditional metadata (if any){ ... }
is_doneboolWhether the payment is completedtrue
created_atstringCreation timestamp (ISO 8601 format)"2025-01-01 00:00:00"

Type

The type field can be one of the following:

  • deposit
  • income
  • purchase
  • withdrawal
  • commission

Example

{
  "id": 123,
  "user_id": 123,
  "type": "deposit",
  "amount": 100.0,
  "description": "Subscription fee",
  "payable_type": "App\\Models\\Gym",
  "payable_id": 456,
  "meta": {},
  "is_done": true,
  "created_at": "2025-01-01 00:00:00"
}
footer wave
logo

دمبل، دنیای هوشمند ورزش و تغذیه

LinkedinInstagramXYoutube