Create a new usage rate card assignment

post/usage-rate-card-assignments
SecuritybearerAuth
Request
Request Body schema: application/json

New usage rate card assignment

assignmentLevel
required
string

Rate cards can be assigned at customer, site or product inventory levels - use the appropriate level to determine which fields are required.

usageRateCardId
required
integer <int64>

Usage rate card identifier

startDate
required
string <date>

Start date

endDate
string <date>

End date

customerId
required
integer <int64>

Customer identifier

assignmentType
string (UsageCardAssignmentType)
Default: "INVOICE"

Default is INVOICE only - ADDITIONAL rate card assignments are included in commission calculations. This field is required for CUSTOMER level rate card assignments - remove the field from your request to use the default value or specify a valid one from the options given.

Enum: "INVOICE" "ADDITIONAL"
Responses
200

OK

201

Created

400

Bad Request

401

Unauthorized

404

Not Found

412

Precondition Failed

500

Internal Server Error

501

Not Implemented Yet

Request samples
application/json
{
  • "assignmentLevel": "CUSTOMER",
  • "usageRateCardId": 1,
  • "startDate": "2019-08-24",
  • "endDate": "2019-08-24",
  • "customerId": 1,
  • "assignmentType": "INVOICE"
}
Response samples
application/json
{
  • "id": 1,
  • "assignmentLevel": "CUSTOMER",
  • "usageRateCardId": 1,
  • "startDate": "2019-08-24",
  • "endDate": "2019-08-24",
  • "customerId": 1,
  • "assignmentType": "INVOICE"
}