Skip to main content
POST
Create Company Credit Purchase

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

fields
string

Comma-separated list of fields to include in the response. Supports dot notation for nested projection (e.g. id,name,user.email,trips.route.id). Unknown fields are silently dropped.

Body

application/json

Create company credit purchase payload

amount
integer
required
cooperativeId
string<uuid>
required

Cooperative identifier

Example:

"0195e7a1-8b5c-7d3e-9f4a-2c6b8d0e1f3a"

Response

Created

Company credit purchase

companyCreditPurchaseId
string<uuid>
required
companyCreditAccountId
string<uuid>
required
organizationId
string<uuid>
required
companyId
string<uuid>
required
cooperativeId
string<uuid>
required

Cooperative identifier

Example:

"0195e7a1-8b5c-7d3e-9f4a-2c6b8d0e1f3a"

cooperative
object
required

Cooperative

code
string
required
amount
integer
required
createdAt
string<date-time>
required
updatedAt
string<date-time>
required
paymentId
string<uuid> | null

Payment identifier

Example:

null

purchasedByUserId
string<uuid> | null
createdBy
string<uuid> | null
updatedBy
string<uuid> | null
canceledAt
string<date-time> | null
creditedAt
string<date-time> | null
payment
object | null