Contract Pricing
Return the list of Contract Pricing for given Org, only SysAdmin is authorized.
| page | integer <int64>   >= 1   Default:  1   | 
| per_page | integer <int64>   >= 1   Default:  200   | 
| order | string  Default:  "desc"  Enum: "asc" "desc"   The direction of the sort  | 
| org_id | Array of strings <uuid>   Array of Org IDs  | 
{- "contract_pricings": [
- {
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
 - "org_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
 - "currency": "SGD",
 - "is_active": true,
 - "total_price_tables": 1,
 - "is_valid_from": "2019-08-24T14:15:22Z",
 - "is_valid_to": "2021-08-24T14:15:22Z",
 - "created_at": "2019-08-24T14:15:22Z",
 - "version_rev": "0-OqQ6QSWl"
 
} 
], - "meta": {
- "page": 1,
 - "per_page": 200
 
} 
}Create Contract Pricing for given Org
| org_id required  | string <uuid>    | 
| currency required  | string   | 
| is_active | boolean  Default:  true   | 
required  | Array of objects (price-table)    | 
| is_valid_from required  | string <date-time>    | 
| is_valid_to | string <date-time>   Default:  "9999-01-01T00:00:00Z"   | 
{- "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",
 - "currency": "SGD",
 - "is_active": true,
 - "price_table": [
- {
- "code": "xxxx-xx",
 - "price": 120000,
 - "time_delta": 120
 
} 
], - "is_valid_from": "2019-08-24T14:15:22Z",
 - "is_valid_to": "9999-01-01T00:00:00Z"
 
}{- "contract_pricing": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
 - "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",
 - "currency": "SGD",
 - "is_active": true,
 - "price_table": [
- {
- "code": "xxxx-xx",
 - "price": 120000,
 - "time_delta": 120
 
} 
], - "total_price_tables": 1,
 - "is_valid_from": "2019-08-24T14:15:22Z",
 - "is_valid_to": "9999-01-01T00:00:00Z",
 - "created_at": "2019-08-24T14:15:22Z",
 - "version_seq": 0,
 - "version_rev": "0-OqQ6QSWl"
 
} 
}Only SysAdmin is authorized.
| contractPricingID required  | string  ID of the Contract Pricing to be read  | 
{- "contract_pricing": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
 - "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",
 - "currency": "SGD",
 - "is_active": true,
 - "price_table": [
- {
- "code": "xxxx-xx",
 - "price": 120000,
 - "time_delta": 120
 
} 
], - "total_price_tables": 1,
 - "is_valid_from": "2019-08-24T14:15:22Z",
 - "is_valid_to": "9999-01-01T00:00:00Z",
 - "created_at": "2019-08-24T14:15:22Z",
 - "version_seq": 0,
 - "version_rev": "0-OqQ6QSWl"
 
} 
}Only SysAdmin is authorized.
| contractPricingID required  | string  ID of the Contract Pricing to be deactivated  | 
| version_rev required  | string   | 
{- "version_rev": "0-RnVQTn5z"
 
}{- "message": "Successfully deactivated the Contract Pricing"
 
}Only SysAdmin is authorized.
| contractPricingID required  | string  ID of the Contract Pricing to be activated  | 
| version_rev required  | string   | 
{- "version_rev": "0-RnVQTn5z"
 
}{- "message": "Successfully activated the Contract Pricing"
 
}Get the current price by is_active = true and reverse sort by is_valid_from and id. Only SysAdmin is authorized.
| orgID required  | string  ID of the Org  | 
{- "contract_pricing": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
 - "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",
 - "currency": "SGD",
 - "is_active": true,
 - "price_table": [
- {
- "code": "xxxx-xx",
 - "price": 120000,
 - "time_delta": 120
 
} 
], - "total_price_tables": 1,
 - "is_valid_from": "2019-08-24T14:15:22Z",
 - "is_valid_to": "9999-01-01T00:00:00Z",
 - "created_at": "2019-08-24T14:15:22Z",
 - "version_seq": 0,
 - "version_rev": "0-OqQ6QSWl"
 
} 
}Return the list of Contract Pricing of its own Org, only OrgAdmin is authorized.
| page | integer <int64>   >= 1   Default:  1   | 
| per_page | integer <int64>   >= 1   Default:  200   | 
| order | string  Default:  "desc"  Enum: "asc" "desc"   The direction of the sort  | 
{- "contract_pricings": [
- {
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
 - "org_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
 - "currency": "SGD",
 - "is_active": true,
 - "total_price_tables": 1,
 - "is_valid_from": "2019-08-24T14:15:22Z",
 - "is_valid_to": "2021-08-24T14:15:22Z",
 - "created_at": "2019-08-24T14:15:22Z",
 - "version_rev": "0-OqQ6QSWl"
 
} 
], - "meta": {
- "page": 1,
 - "per_page": 200
 
} 
}Can only see the Contract Pricing of its own Org
| contractPricingID required  | string  ID of the Contract Pricing to be read  | 
{- "contract_pricing": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
 - "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",
 - "currency": "SGD",
 - "is_active": true,
 - "price_table": [
- {
- "code": "xxxx-xx",
 - "price": 120000,
 - "time_delta": 120
 
} 
], - "total_price_tables": 1,
 - "is_valid_from": "2019-08-24T14:15:22Z",
 - "is_valid_to": "9999-01-01T00:00:00Z",
 - "created_at": "2019-08-24T14:15:22Z",
 - "version_seq": 0,
 - "version_rev": "0-OqQ6QSWl"
 
} 
}Get the current price by is_active = true and reverse sort by is_valid_from and id
{- "contract_pricing": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
 - "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",
 - "currency": "SGD",
 - "is_active": true,
 - "price_table": [
- {
- "code": "xxxx-xx",
 - "price": 120000,
 - "time_delta": 120
 
} 
], - "total_price_tables": 1,
 - "is_valid_from": "2019-08-24T14:15:22Z",
 - "is_valid_to": "9999-01-01T00:00:00Z",
 - "created_at": "2019-08-24T14:15:22Z",
 - "version_seq": 0,
 - "version_rev": "0-OqQ6QSWl"
 
} 
}