Skip to content

Retrieving a list of transactions

Request

Security
bearerAuth(Required scopes: directbilling.transactions)
Path
serviceIdstring, = 8 characters(ServiceId)^[0-9a-f]{8}$required

Service ID

Query
filter[status]string(directbillingTransactionStatus)

Transaction status

Enum:"transaction_db_new""transaction_db_confirmed""transaction_db_payed""transaction_db_rejected"
filter[phoneNumber]string

Phone number from which the transaction was made

Example:filter[phoneNumber]=48123123123
filter[control]string

Control field from the partner's system

curl -i -X GET \
  'https://docs.simpay.pl/_mock/en/apis/directbilling/{serviceId}/transactions?filter%5Bstatus%5D=transaction_db_new&filter%5BphoneNumber%5D=48123123123&filter%5Bcontrol%5D=string' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

Bodyapplication/json
successbooleanrequired

Request status

Example:true
dataArray of objects(directbillingTransactionItem)required
Example:
[ { "id": "dc261d4f-31ef-4728-bfd6-97bbe2a5ef0a", "status": "transaction_db_payed", "value": 0.34, "value_netto": 0.24, "created_at": "2023-02-16T14:52:11+01:00", "updated_at": "2023-02-16T14:52:11+01:00" } ]
paginationobject(Pagination)required
Example:
{ "total": 1, "count": 1, "per_page": 15, "current_page": 1, "total_pages": 1, "links": { "next_page": null, "prev_page": null } }
Response
{ "success": true, "data": [ { … } ], "pagination": { "total": 1, "count": 1, "per_page": 15, "current_page": 1, "total_pages": 1, "links": { … } } }