Bills
Create bill
Bills
Create bill
Create bill
POST
/
bills
curl -X GET https://api.swervpay.co/api/v1/bills \
-H "Authorization: Bearer <TOKEN>" \
-H "Content-Type: application/json"
-d '{
"customer_id": "<CUSTOMER_ID>",
"amount": "<AMOUNT>",
"reference": "<REFERENCE>",
"biller_id": "<BILLER_ID>",
"item_id": "<ITEM_ID>",
"category": "<CATEGORY>",
}'
{
"account_name": "<string>",
"account_number": "<string>",
"amount": 123,
"bank_code": "<string>",
"bank_name": "<string>",
"bill": {
"bill_code": "<string>",
"bill_name": "<string>",
"item_code": "<string>",
"name": "<string>",
"token": "<string>"
},
"category": "<string>",
"charges": 123,
"created_at": "2023-11-07T05:31:56Z",
"detail": "<string>",
"fiat_rate": 123,
"id": "<string>",
"imad": "<string>",
"payment_method": "<string>",
"reference": "<string>",
"report": true,
"report_message": "<string>",
"session_id": "<string>",
"status": "<string>",
"trace_number": "<string>",
"type": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
}
curl -X GET https://api.swervpay.co/api/v1/bills \
-H "Authorization: Bearer <TOKEN>" \
-H "Content-Type: application/json"
-d '{
"customer_id": "<CUSTOMER_ID>",
"amount": "<AMOUNT>",
"reference": "<REFERENCE>",
"biller_id": "<BILLER_ID>",
"item_id": "<ITEM_ID>",
"category": "<CATEGORY>",
}'
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Response
200
application/json
OK
The response is of type object
.
Was this page helpful?
curl -X GET https://api.swervpay.co/api/v1/bills \
-H "Authorization: Bearer <TOKEN>" \
-H "Content-Type: application/json"
-d '{
"customer_id": "<CUSTOMER_ID>",
"amount": "<AMOUNT>",
"reference": "<REFERENCE>",
"biller_id": "<BILLER_ID>",
"item_id": "<ITEM_ID>",
"category": "<CATEGORY>",
}'
{
"account_name": "<string>",
"account_number": "<string>",
"amount": 123,
"bank_code": "<string>",
"bank_name": "<string>",
"bill": {
"bill_code": "<string>",
"bill_name": "<string>",
"item_code": "<string>",
"name": "<string>",
"token": "<string>"
},
"category": "<string>",
"charges": 123,
"created_at": "2023-11-07T05:31:56Z",
"detail": "<string>",
"fiat_rate": 123,
"id": "<string>",
"imad": "<string>",
"payment_method": "<string>",
"reference": "<string>",
"report": true,
"report_message": "<string>",
"session_id": "<string>",
"status": "<string>",
"trace_number": "<string>",
"type": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
}