The endpoint and http method information that returns the billing information are given below.
NOTE: We should determine which subscriber_no field to send in the request according to the response from the GetProductDetailByProductId service.
Example: If the response returns like this:
"subscriber_number_label": "Gsm",
"subscriber_number_key_size_order": "1",
The phone number must be entered in the subscriber_no1 field. (5301201245)
HTTP Method | URL |
---|---|
POST | /v1/InvoicePayment/GetInvoicesByProductAndSubscriber |
Params | Type | Mandatory | Description |
---|---|---|---|
product_oid | string | Evet | Institution ID |
subscriber_no1 | string | Evet | It varies according to the invoice type (Example: GSM , Contract No , TCKN) |
subscriber_no2 | string | Hayır | It varies according to the invoice type (Example: GSM , Contract No , TCKN) |
subscriber_no3 | string | Hayır | It varies according to the invoice type (Example: GSM , Contract No , TCKN) |
Params | Type |
---|---|
status | integer |
code | string |
message | string |
payload | object |
bill_term | string |
subscriber_nos | string |
subscriber_no1 | string |
subscriber_no2 | string |
subscriber_no3 | string |
product_oid | string |
expense_amount | decimal |
expense_firm_amount | decimal |
partial_payment_allowed | string |
invoice_date | string |
bill_due_date | string |
invoice_type | string |
inv_payment_transaction_query_oid | string |
subscriber_name | string |
bill_no | string |
invoice_amount | decimal |
payment_order_no | string |
expense_dealer_amount | decimal |
REQUEST (POST):
{
"product_oid": "8064fb0c-c556-4104-8fe4-9779c6dc3721",
"subscriber_no1": "5344999977",
"subscriber_no2": "",
"subscriber_no3": ""
}
RESPONSE:
{
"status": 0,
"code": "100",
"message": null,
"payload": [
{
"bill_term": "03/2023",
"subscriber_nos": "5344999977",
"subscriber_no1": "5344999977",
"subscriber_no2": "",
"subscriber_no3": "",
"product_oid": "8064fb0c-c556-4104-8fe4-9779c6dc3721",
"expense_amount": "0.00",
"expense_firm_amount": "1.00",
"partial_payment_allowed": "0",
"invoice_date": "20230410",
"bill_due_date": "10-04-2023",
"invoice_type": null,
"inv_payment_transaction_query_oid": "31C7D03C-9820-4998-9491-1998F2F416C5",
"subscriber_name": "BA****TO**** ",
"bill_no": "20231550127451",
"invoice_amount": "168.25",
"payment_order_no": "1",
"expense_dealer_amount": "0.00"
}
]
}