POST https://spaces.nexudus.com/api/billing/tariffproducts
π Requires role "TariffProduct-Create"
Body parameters
TariffId: numberrequired
ProductId: numberrequired
Example request
POST https://spaces.nexudus.com/api/billing/tariffproducts
Content-Type: application/json
Authentication: Basic ZXhhbXBsZUBuZXh1ZHVzLmNvbTpFeGFtcGxlMTIzNA==
{
"TariffId": 12345678,
"ProductId": 12345678,
}
Example valid response
{
"Status": 200,
"WasSuccessful": true,
"Message": "Record 'Name of the record' has been succesfully created.",
"Value": {
"Id": 12354678
}
}
Example invalid response
{
"Status": 500,
"Message": "Name: may not be null or empty",
"Value": null,
"WasSuccessful": false,
"Errors": [
{
"AttemptedValue": null,
"Message": "may not be null or empty",
"PropertyName": "Name"
},
]
}
Update TariffProduct
Updates an existing tariffproduct.
PUT https://spaces.nexudus.com/api/billing/tariffproducts
PUT requests require ALL record properties to be submitted with every request. Any missing properties will be cleared or set to false.
π Requires role "TariffProduct-Edit"
Body parameters
Id: numberrequired The unique Id of the tariffproduct to update.
TariffId: numbercleared if missing
ProductId: numbercleared if missing
Example request
PUT https://spaces.nexudus.com/api/billing/tariffproducts
Content-Type: application/json
Authentication: Basic ZXhhbXBsZUBuZXh1ZHVzLmNvbTpFeGFtcGxlMTIzNA==
{
"Status": 200,
"WasSuccessful": true,
"Message": "Record 'Name of the record' has been succesfully updated.",
"Value": {
"Id": 12354678
}
}
Example invalid response
{
"Status": 500,
"Message": "Name: may not be null or empty",
"Value": null,
"WasSuccessful": false,
"Errors": [
{
"AttemptedValue": null,
"Message": "may not be null or empty",
"PropertyName": "Name"
},
]
}
{
"Status": 200,
"WasSuccessful": true,
"Message": "The record was deleted successfully.",
"Value": null,
"OpenInDialog": false,
"RedirectURL": null,
"JavaScript": null,
"Errors": null
}
Commands
Commands allow to perform actions against one or more tariffproduct records. Some commands accept only one record while others can run an action for a number of records at the same time. Each command has metadata with information about how it can be used and the amount of records, if any, it needs to run.
Get Commands
Get all commands available to run for tariffproduct records.
GET https://spaces.nexudus.com/api/billing/tariffproducts/commands
Example request
GET https://spaces.nexudus.com/api/billing/tariffproducts/commands
Content-Type: application/json
Authentication: Basic ZXhhbXBsZUBuZXh1ZHVzLmNvbTpFeGFtcGxlMTIzNA==
Comments
Please sign in to leave a comment.