Download OpenAPI specification:Download
| Main Tags | Most Popular Pages |
|---|---|
|
➤
Welcome
➤ Prerequisites ➤ Access Token ➤ Updates ➤ APIs Developer Guide ➤ Appendix |
➤
Authentication
➤ Service Plans ➤ Account Management ➤ Billing Management ➤ Access Control ➤ Operator Logs ➤ Advanced Reports |
The Billing Module manages and stores billing information for users, providing a centralized view of all billing-related data and transactions.
Business applications can use this service API to get billings. An admin who has permission to manage the billing in his role can get billings.
| pageNo required | integer <int32> The page number to be retrieved. |
| records required | integer <int32> The total number of records to be retrieved in a page. |
| agreement-id | string The agreement ID for WorldPay and the customer ID for Stripe. |
| billing-type | string The billing type will contain ONLINE_BILLING | OFFLINE_BILLING | NO_BILLING | NO_BILLING_TRIAL. |
| user-email | string <= 255 characters The email address of the billable user. |
| enterprise-name | string <= 255 characters The name of the billable user's enterprise. |
| failed-payments | boolean True, if the online payment records that failed due to any technical reason will be displayed. |
| date-from | string <date-time> The date from which the billing will be retrieved. The value is expected to follow the ISO 8601 format. Following the format YYYY-MM-DD hh:mm:ss +00. As the values are for date fields, the hh:mm:ss +00 can be ignored. |
| asc | boolean True, if the parameter to order the result set is ascending. |
| autoreset | boolean True, if the billing will be auto reset. |
| payment-mode | string <= 255 characters The payment mode will contain MONTHLY | YEARLY. |
| payment-type | string <= 255 characters The payment type will contain PAY_REGULARLY | PAY_AS_YOU_GO. |
| service-plan-id | integer <int64> The ID of the service plan. |
| service-plan-name | string The name of the service plan. |
| sort-by | string A parameter to specify the sorting criteria for the result set. The parameter values include: created_on | performed_by | user_name | enterprise_name | service_plan_name | payment_type | user_amount | expiry_date. |
| date-to | string <date-time> Date until which the billing is to be retrieved. The value is expected to follow the ISO 8601 format. Following the format YYYY-MM-DD hh:mm:ss +00. As the values are for date fields, the hh:mm:ss +00 can be ignored. |
| transaction-id | string The transaction ID for WorldPay and the charge ID for Stripe. |
| transaction-type | string The transaction type will contain FIRST | RECURRENT. |
| user-name | string <= 255 characters The name of the billable user. |
| x-search-text | string |
| Authorization required | string Default: Bearer {access_token} The access token obtained as a result of first authenticating with a client certificate to receive a subject token, then exchange the subject token using the Token Exchange endpoint. The certificate must belong to a SigningHub Administrator authorized to perform this action. |
| Content-Type required | string Default: application/json |
| Accept required | string Default: application/json |
| x-forwarded-for | string Client IP address, typically set by reverse proxy or load balancer |
| Accept-Language | string Preferred language (e.g., en-US, ar-SA) |
| x-search-text | string Default: John A parameter that represents the search text, if required. This is optional and without it, the entire list is returned. Furthermore, the recommended value for the search text parameter is in Base64 encoded format or plain text. |
| x-total-records | string Default: 212 The total number of records found with the provided search criteria. |
[- {
- "id": 0,
- "user_id": 0,
- "enterprise_id": 0,
- "billing_details_id": 0,
- "is_deleted_enterprise": true,
- "user_email": "string",
- "user_name": "string",
- "performed_by": "string",
- "date": "2019-08-24T14:15:22Z",
- "currency_id": "string",
- "amount": "string",
- "user_amount": "string",
- "vat_amount": "string",
- "vat_number": "string",
- "payment_number": 0,
- "type": "string",
- "payment_type": "string",
- "duration": "string",
- "user_status": "string",
- "created_on": "2019-08-24T14:15:22Z",
- "enterprise_name": "string",
- "expiry_date": "2019-08-24T14:15:22Z",
- "service_plan_id": 0,
- "service_plan_name": "string"
}
]Business applications can use this service API to get the billing details. An admin who has permission to manage the billing in his role can get the billing details.
| id required | integer <int64> The billing ID. |
| Authorization required | string Default: Bearer {access_token} The access token obtained as a result of first authenticating with a client certificate to receive a subject token, then exchange the subject token using the Token Exchange endpoint. The certificate must belong to a SigningHub Administrator authorized to perform this action. |
| Content-Type required | string Default: application/json |
| Accept required | string Default: application/json |
| x-forwarded-for | string Client IP address, typically set by reverse proxy or load balancer |
| Accept-Language | string Preferred language (e.g., en-US, ar-SA) |
{- "billing_model": "string",
- "ipaddress": "string",
- "payment_number": 0,
- "reference_number": "string",
- "remarks": "string",
- "transaction_id": "string",
- "user_agent": "string",
- "vat_amount": "string",
- "vat_number": "string",
- "provider": "string",
- "type": "string"
}Business applications can use this service API to get the saved billing searches. An admin who has permission to manage the billing in his role can get the saved searches.
| Authorization required | string Default: Bearer {access_token} The access token obtained as a result of first authenticating with a client certificate to receive a subject token, then exchange the subject token using the Token Exchange endpoint. The certificate must belong to a SigningHub Administrator authorized to perform this action. |
| Content-Type required | string Default: application/json |
| Accept required | string Default: application/json |
| x-forwarded-for | string Client IP address, typically set by reverse proxy or load balancer |
| Accept-Language | string Preferred language (e.g., en-US, ar-SA) |
[- {
- "criteria": {
- "action_type": "string",
- "user_name": "string",
- "user_email": "string",
- "agreement_id": "string",
- "transaction_id": "string",
- "enterprise_name": "string",
- "service_plan_id": "string",
- "service_plan_name": "string",
- "billing_type": "string",
- "payment_type": "string",
- "payment_mode": "string",
- "date_from": "string",
- "date_to": "string"
}, - "id": 0,
- "default": true,
- "operator_name": "string",
- "search_name": "string"
}
]Business applications can use this service API to save a search filter. An admin who has permission to manage the billing in his role can save a search filter.
| Authorization required | string Default: Bearer {access_token} The access token obtained as a result of first authenticating with a client certificate to receive a subject token, then exchange the subject token using the Token Exchange endpoint. The certificate must belong to a SigningHub Administrator authorized to perform this action. |
| Content-Type required | string Default: application/json |
| Accept required | string Default: application/json |
| x-forwarded-for | string Client IP address, typically set by reverse proxy or load balancer |
| Accept-Language | string Preferred language (e.g., en-US, ar-SA) |
| action_type | string or null The action type. The possible values for “Action Type” are “WORLDPAY_RECURRENT_PAYMENT_FAILURE”, “WORLDPAY_AGREEMENT_TERMINATED” and “ALL_TRANSACTION” |
| agreement_id | string or null The agreement ID of the save search criteria. |
| billing_type | string or null The billing type of the account. The possible values for “Billing type” are “ONLINE_BILLING”, “OFFLINE_BILLING”, “NO_BILLING”, and “NO_BILLING_TRIAL”. |
| date_from | string or null The date from which to search onwards. |
| date_to | string or null The date up till which to search. |
| user_email | string or null The email address for the save search criteria. |
| enterprise_name | string or null The name of the enterprise for the save search criteria. |
| payment_mode | string or null The payment mode. The possible values for “Payment Mode” are “MONTHLY”, and “YEARLY”. |
| payment_type | string or null The payment type. The possible values for the “Payment Type” are “PAY_REGULARLY”, and “PAY_AS_YOU_GO”. |
| search_name | string or null The name of the save search. |
| service_plan_id | integer or null <int64> The service plan ID. |
| service_plan_name | string or null The name of the service plan. |
| transaction_id | string or null The transaction ID of the save search criteria. |
| user_name | string or null The name of the user. |
{- "action_type": "string",
- "agreement_id": "string",
- "billing_type": "string",
- "date_from": "string",
- "date_to": "string",
- "user_email": "string",
- "enterprise_name": "string",
- "payment_mode": "string",
- "payment_type": "string",
- "search_name": "string",
- "service_plan_id": 0,
- "service_plan_name": "string",
- "transaction_id": "string",
- "user_name": "string"
}{- "id": 0
}Business applications can use this service API to save a search filter. An admin who has permission to manage the billing in his role can update a search filter.
| id required | integer <int32> |
| Authorization required | string Default: Bearer {access_token} The access token obtained as a result of first authenticating with a client certificate to receive a subject token, then exchange the subject token using the Token Exchange endpoint. The certificate must belong to a SigningHub Administrator authorized to perform this action. |
| Content-Type required | string Default: application/json |
| Accept required | string Default: application/json |
| x-forwarded-for | string Client IP address, typically set by reverse proxy or load balancer |
| Accept-Language | string Preferred language (e.g., en-US, ar-SA) |
| action_type | string or null The action type. The possible values for “Action Type” are “WORLDPAY_RECURRENT_PAYMENT_FAILURE”, “WORLDPAY_AGREEMENT_TERMINATED” and “ALL_TRANSACTION” |
| agreement_id | string or null The agreement ID of the save search criteria. |
| billing_type | string or null The billing type of the account. The possible values for “Billing type” are “ONLINE_BILLING”, “OFFLINE_BILLING”, “NO_BILLING”, and “NO_BILLING_TRIAL”. |
| date_from | string or null The date from which to search onwards. |
| date_to | string or null The date up till which to search. |
| user_email | string or null The email address for the save search criteria. |
| enterprise_name | string or null The name of the enterprise for the save search criteria. |
| payment_mode | string or null The payment mode. The possible values for “Payment Mode” are “MONTHLY”, and “YEARLY”. |
| payment_type | string or null The payment type. The possible values for the “Payment Type” are “PAY_REGULARLY”, and “PAY_AS_YOU_GO”. |
| search_name | string or null The name of the save search. |
| service_plan_id | integer or null <int64> The service plan ID. |
| service_plan_name | string or null The name of the service plan. |
| transaction_id | string or null The transaction ID of the save search criteria. |
| user_name | string or null The name of the user. |
{- "action_type": "string",
- "agreement_id": "string",
- "billing_type": "string",
- "date_from": "string",
- "date_to": "string",
- "user_email": "string",
- "enterprise_name": "string",
- "payment_mode": "string",
- "payment_type": "string",
- "search_name": "string",
- "service_plan_id": 0,
- "service_plan_name": "string",
- "transaction_id": "string",
- "user_name": "string"
}{- "message": "string"
}Business applications can use this service API to delete the billing search filter. An admin who has permission to manage the billing in his role can delete the billing search filter.
| id required | integer <int64> The ID of the search filter. |
| Authorization required | string Default: Bearer {access_token} The access token obtained as a result of first authenticating with a client certificate to receive a subject token, then exchange the subject token using the Token Exchange endpoint. The certificate must belong to a SigningHub Administrator authorized to perform this action. |
| Content-Type required | string Default: application/json |
| Accept required | string Default: application/json |
| x-forwarded-for | string Client IP address, typically set by reverse proxy or load balancer |
| Accept-Language | string Preferred language (e.g., en-US, ar-SA) |
{- "message": "string"
}Business applications can use this service API to get user information. An admin who has permission to manage the billing in his role can get the user information.
| emailAddress | string |
| Authorization required | string Default: Bearer {access_token} The access token obtained as a result of first authenticating with a client certificate to receive a subject token, then exchange the subject token using the Token Exchange endpoint. The certificate must belong to a SigningHub Administrator authorized to perform this action. |
| Content-Type required | string Default: application/json |
| Accept required | string Default: application/json |
| x-forwarded-for | string Client IP address, typically set by reverse proxy or load balancer |
| Accept-Language | string Preferred language (e.g., en-US, ar-SA) |
[- {
- "id": 0,
- "enterprise_id": 0,
- "name": "string",
- "enterprise_name": "string",
- "dormant": true,
- "agreement_id": "string",
- "service_plan": {
- "id": 0,
- "name": "string",
- "monthly": true,
- "yearly": true,
- "price": 0,
- "yearly_price": 0,
- "payment_type": "string"
}
}
]Business applications can use this service API to get the transaction logs. An admin who has permission to manage the billing in his role can get the transaction logs.
| pageNo required | integer <int32> The page number to be retrieved. |
| records required | integer <int32> The total number of records to be retrieved in a page. |
string The email for the search criteria. | |
| user-name | string The username for the search criteria. |
| enterprise-name | string The name of the enterprise for the search criteria. |
| service-plan-id | integer <int32> The service plan ID for the search criteria. |
| service-plan-type | integer <int32> The type of service plan by which the account is to be searched. The possible values for “Service Plan Type” are “INDIVIDUAL”, “ENTERPRISE”, and “NONE”. |
| payment-type | string The payment type for the search criteria. The possible values for the “Payment Type” are “PAY_REGULARLY”, and “PAY_AS_YOU_GO”. |
| billing-type | string The billing type of the account. The possible values for “Billing type” are “1 = ONLINE_BILLING”, “2 = OFFLINE_BILLING”, “3 = NO_BILLING”, and “4 = NO_BILLING_TRIAL”. |
| reason | string The billing reason for the search criteria. |
| performed-by | string The “performed by” for the search criteria. |
| date_from | string The “From” date for the search criteria. |
| date-to | string The “To” date for the search criteria. |
| agreement-id | string The agreement id for the search criteria. |
| transaction-id | string The transaction id for the search criteria. |
| action-type | string The action type. The possible values for “Action Type” are “WORLDPAY_RECURRENT_PAYMENT_FAILURE”, and “WORLDPAY_AGREEMENT_TERMINATED”. |
| payment-type-criteria | string The payment type for the search criteria. |
| sort-column | string The column sort for the search criteria. |
| asc | boolean The asc flag for the search criteria. The default value of the asc flag is false. |
| x-search-text | string |
| Authorization required | string Default: Bearer {access_token} The access token obtained as a result of first authenticating with a client certificate to receive a subject token, then exchange the subject token using the Token Exchange endpoint. The certificate must belong to a SigningHub Administrator authorized to perform this action. |
| Content-Type required | string Default: application/json |
| Accept required | string Default: application/json |
| x-forwarded-for | string Client IP address, typically set by reverse proxy or load balancer |
| Accept-Language | string Preferred language (e.g., en-US, ar-SA) |
| x-total-records | string Default: 212 The total number of records found with the provided search criteria. |
[- {
- "id": 0,
- "created_on": "2019-08-24T14:15:22Z",
- "user_email": "string",
- "info_key": "string",
- "info_value": "string",
- "performed_by": "string",
- "reason": "string",
- "enterprise_id": 0,
- "enterprise_name": "string",
- "service_plan_name": "string",
- "service_plan_id": "string",
- "user_id": 0,
- "user_name": "string",
- "user_status": "string",
- "user_currency": "string",
- "paid": "string"
}
]Business applications can use this service API to get the transaction log details. An admin who has permission to manage the billing in his role can get the transaction log details.
| id required | integer <int64> The ID of the transaction log. |
| Authorization required | string Default: Bearer {access_token} The access token obtained as a result of first authenticating with a client certificate to receive a subject token, then exchange the subject token using the Token Exchange endpoint. The certificate must belong to a SigningHub Administrator authorized to perform this action. |
| Content-Type required | string Default: application/json |
| Accept required | string Default: application/json |
| x-forwarded-for | string Client IP address, typically set by reverse proxy or load balancer |
| Accept-Language | string Preferred language (e.g., en-US, ar-SA) |
{- "data": [
- { }
], - "Key": "string",
- "Value": "string",
- "Visible": true,
- "Order": 0,
- "certificate_base64": "string",
- "Type": "string",
- "processed_state": "string"
}Business applications can use this service API to export the billing data in an Excel file. An admin who has permission to manage the billing in his role can export the billing data.
| pageNo required | integer <int32> |
| records required | integer <int32> |
| agreement-id | string The agreement ID for WorldPay and the customer ID for Stripe. |
| billing-type | string The billing type will contain ONLINE_BILLING | OFFLINE_BILLING | NO_BILLING | NO_BILLING_TRIAL. |
| user-email | string <= 255 characters The email address of the billable user. |
| enterprise-name | string <= 255 characters The name of the billable user's enterprise. |
| failed-payments | boolean True, if the online payment records that failed due to any technical reason will be displayed. |
| date-from | string <date-time> The date from which the billing will be retrieved. The value is expected to follow the ISO 8601 format. Following the format YYYY-MM-DD hh:mm:ss +00. As the values are for date fields, the hh:mm:ss +00 can be ignored. |
| asc | boolean True, if the parameter to order the result set is ascending. |
| autoreset | boolean True, if the billing will be auto reset. |
| payment-mode | string <= 255 characters The payment mode will contain MONTHLY | YEARLY. |
| payment-type | string <= 255 characters The payment type will contain PAY_REGULARLY | PAY_AS_YOU_GO. |
| service-plan-id | integer <int64> The ID of the service plan. |
| service-plan-name | string The name of the service plan. |
| sort-by | string A parameter to specify the sorting criteria for the result set. The parameter values include: created_on | performed_by | user_name | enterprise_name | service_plan_name | payment_type | user_amount | expiry_date. |
| date-to | string <date-time> Date until which the billing is to be retrieved. The value is expected to follow the ISO 8601 format. Following the format YYYY-MM-DD hh:mm:ss +00. As the values are for date fields, the hh:mm:ss +00 can be ignored. |
| transaction-id | string The transaction ID for WorldPay and the charge ID for Stripe. |
| transaction-type | string The transaction type will contain FIRST | RECURRENT. |
| user-name | string <= 255 characters The name of the billable user. |
| x-search-text | string |
| Authorization required | string Default: Bearer {access_token} The access token obtained as a result of first authenticating with a client certificate to receive a subject token, then exchange the subject token using the Token Exchange endpoint. The certificate must belong to a SigningHub Administrator authorized to perform this action. |
| Content-Type required | string Default: application/json |
| Accept required | string Default: application/json |
| x-forwarded-for | string Client IP address, typically set by reverse proxy or load balancer |
| Accept-Language | string Preferred language (e.g., en-US, ar-SA) |
"string"Business applications can use this service API to add manual billing. An admin who has permission to manage the billing in his role can add manual billing.
| Authorization required | string Default: Bearer {access_token} The access token obtained as a result of first authenticating with a client certificate to receive a subject token, then exchange the subject token using the Token Exchange endpoint. The certificate must belong to a SigningHub Administrator authorized to perform this action. |
| Content-Type required | string Default: application/json |
| Accept required | string Default: application/json |
| x-forwarded-for | string Client IP address, typically set by reverse proxy or load balancer |
| Accept-Language | string Preferred language (e.g., en-US, ar-SA) |
| x-enterprise-id | string Default: 123 Provide an integer enterprise ID (for example, "1") to access that specified enterprise. |
| agreement_id | string or null |
| duration required | string non-empty |
| account_owner_email required | string [ 1 .. 255 ] characters |
| remarks required | string non-empty |
| sp_amount required | number <double> |
| service_plan_name required | string non-empty |
| price | number or null <double> |
| transaction_id required | string non-empty |
| user_currency required | string non-empty |
{- "agreement_id": "string",
- "duration": "string",
- "account_owner_email": "string",
- "remarks": "string",
- "sp_amount": 0,
- "service_plan_name": "string",
- "price": 0,
- "transaction_id": "string",
- "user_currency": "string"
}{- "billing_id": 0
}