Bills

The Bills API provides endpoints to query bills, their activities, participants, and payments.

Get All Bills

GET /bills

Retrieves a paginated list of bills with filtering options.

Query Parameters

Parameter
Type
Description

page

number

Page number (min: 1, default: 1)

limit

number

Items per page (max: 100, default: 10)

creator

string

Filter by creator address

manager

string

Filter by manager address

status

string

Filter by status

coinType

string

Filter by coin type

search

string

Search bills (min: 3 chars)

sortBy

string

Sort field (CREATED_AT, TOTAL_AMOUNT, etc.)

sortOrder

string

Sort order (ASC/DESC)

Bill Status Types

  • INPROGRESS: Bill is active and accepting payments

  • PAID: Bill has received full payment

  • COMPLETED: Bill has been claimed

  • CANCELED: Bill has been cancelled

  • REJECTED: Bill has been rejected

  • REFUNDED: Bill has been refunded

  • PENDING: Bill is pending activation

Response

Get Bill by ID

Retrieves details of a specific bill.

Response

Get Bill Activities

Retrieves activities for a specific bill.

Query Parameters

Parameter
Type
Description

page

number

Page number (min: 1, default: 1)

limit

number

Items per page (max: 100, default: 10)

activityType

string

Filter by activity type

actor

string

Filter by actor address

startDate

string

Filter after date

endDate

string

Filter before date

Activity Types

  • CREATED

  • PAYMENT_MADE

  • PAID

  • COMPLETED

  • CANCELED

  • REJECTED

  • PAYMENT_REFUNDED

  • PAYMENT_CLAIMED

Response

Get Bill Participants

Retrieves participants of a specific bill.

Query Parameters

Parameter
Type
Description

page

number

Page number (min: 1, default: 1)

limit

number

Items per page (max: 100, default: 10)

paymentStatus

string

Filter by payment status (paid/partial/unpaid)

search

string

Search by address (min: 3 chars)

sortBy

string

Sort field

sortOrder

string

Sort order (ASC/DESC)

Response

Get Bill Payments

Retrieves payments made for a specific bill.

Query Parameters

Parameter
Type
Description

page

number

Page number (min: 1, default: 1)

limit

number

Items per page (max: 100, default: 10)

payer

string

Filter by payer address

status

string

Filter by status (COMPLETED/REFUNDED)

startDate

string

Filter after date

endDate

string

Filter before date

minAmount

number

Minimum amount

maxAmount

number

Maximum amount

Response

Get Account Bill Activities

Retrieves bill activities for a specific account.

Query Parameters

Same as Get Bill Activities

Get Account Bill Stats

Retrieves bill statistics for a specific account.

Response

Last updated