contract

This class provides RESTful services to access retrieve contract details.

Handler Class:

com.ibm.commerce.rest.contract.handler.ContractHandler

Method Summary

HTTP MethodPathDescription
GET/store/{storeId}/contract?q={q}Finds contracts by query. See each query for details on input and output.
GET/store/{storeId}/contract?q=byPaymentTermConditionIdFind contract by payment term and condition identifier.
GET/store/{storeId}/contract?q=eligibleFinds the contracts the current user is eligible to.
GET/store/{storeId}/contract/{contractId}Gets the contract details for a specific contract ID.

Method Details

GET /store/{storeId}/contract?q={q}

Finds contracts by query. See each query for details on input and output.

Handler Method:

findByQuery

Secure Call Mandatory:

false

Partial Authentication Allowed:

false

Parameters:
NameDescriptionParameter TypeData TypeRequiredAllow Multiple
storeIdThe store identifier.pathstringtrueN/A
qThe query name.querystringtruefalse
HTTP Status Codes:
HTTP Status CodeDescription
200The requested completed successfully.
400Bad request. Some of the inputs provided to the request aren't valid.
401Not authenticated. The user session isn't valid.
403The user isn't authorized to perform the specified request.
500Internal server error. Additional details will be contained on the server logs.

GET /store/{storeId}/contract?q=byPaymentTermConditionId

Find contract by payment term and condition identifier.

Handler Method:

byPaymentTermConditionId

Secure Call Mandatory:

false

Partial Authentication Allowed:

false

Parameters:
NameDescriptionParameter TypeData TypeRequiredAllow Multiple
storeIdThe store identifier.pathstringtrueN/A
profileNameProfile name. Profiles determine the subset of data to be returned by a query.querystringfalsefalse
qThe query name.querystringtruefalse
paymentTCIdPayment terms & conditions id. The payment Term & Condition identifier for this payment instruction.querystringtruefalse
changeableFlagqueryintegerfalsefalse
displayNamequerystringfalsefalse
mandatoryFlagqueryintegerfalsefalse
memberIdqueryintegerfalsefalse
nickNamequerystringfalsefalse
tcSequencequeryintegerfalsefalse
tradingIdqueryintegerfalsefalse
HTTP Status Codes:
HTTP Status CodeDescription
200The requested completed successfully.
400Bad request. Some of the inputs provided to the request aren't valid.
401Not authenticated. The user session isn't valid.
403The user isn't authorized to perform the specified request.
500Internal server error. Additional details will be contained on the server logs.
Response Data Type:

com.ibm.commerce.contract.beans.PaymentTCDataBean_IBM_PaymentTC_Detailed

GET /store/{storeId}/contract?q=eligible

Finds the contracts the current user is eligible to.

Handler Method:

findEligible

Secure Call Mandatory:

false

Partial Authentication Allowed:

false

Parameters:
NameDescriptionParameter TypeData TypeRequiredAllow Multiple
storeIdThe store identifier.pathstringtrueN/A
qThe query name.querystringtruefalse
HTTP Status Codes:
HTTP Status CodeDescription
200The requested completed successfully.
400Bad request. Some of the inputs provided to the request aren't valid.
401Not authenticated. The user session isn't valid.
403The user isn't authorized to perform the specified request.
500Internal server error. Additional details will be contained on the server logs.
Response Data Type:

com.ibm.commerce.order.beans.RequisitionListDataBean_IBM_Store_Summary


Example

Request:
GET /wcs/resources/store/10801/contract?q=eligible
HTTP Status Code:

200

Response:
{
	"contracts": {
		"10021": "Contract 1234"
	}
}

GET /store/{storeId}/contract/{contractId}

Gets the contract details for a specific contract ID.

Handler Method:

findByContractId

Secure Call Mandatory:

false

Partial Authentication Allowed:

false

Parameters:
NameDescriptionParameter TypeData TypeRequiredAllow Multiple
storeIdThe store identifier.pathstringtrueN/A
contractIdThe contract identifier.pathstringtrueN/A
profileNameProfile name. Profiles determine the subset of data to be returned by a query.querystringfalsefalse
HTTP Status Codes:
HTTP Status CodeDescription
200The requested completed successfully.
400Bad request. Some of the inputs provided to the request aren't valid.
401Not authenticated. The user session isn't valid.
403The user isn't authorized to perform the specified request.
500Internal server error. Additional details will be contained on the server logs.
Response Data Type:

com.ibm.commerce.contract.beans.ContractDataBean_IBM_Contract_Detailed


Example

Request:
GET /wcs/resources/store/10801/contract/10021?profileName=IBM_Contract_Usage&responseFormat=json
HTTP Status Code:

200

Response:
{
	"resultList": [
		{
			"name": "AuroraB2B Contract number 1234",
			"referenceNumber": "10021",
			"usage": 0
		}
	]
}

Data Type Details

com.ibm.commerce.contract.beans.ContractDataBean_IBM_Contract_Detailed

Properties:
NameData TypeRequired
usagestringfalse
ownerReferenceNumberstringfalse
minorVersionstringfalse
timeApprovedstringfalse
timeActivatedstringfalse
TCscom.ibm.commerce.contract.beans.ContractDataBean_IBM_Contract_Detailed.TCs arrayfalse
originstringfalse
storeXMLStringstringfalse
markForDeletestringfalse
accountIdstringfalse
storeXMLDefinitionstringfalse
namestringfalse
timeUpdatedstringfalse
dataBeanKeyReferenceNumberstringfalse
statestringfalse
contractLevelParticipantscom.ibm.commerce.contract.beans.ContractDataBean_IBM_Contract_Detailed.contractLevelParticipants arrayfalse
timeDeployedstringfalse
ownerstringfalse
referenceNumberstringfalse
commentsstringfalse
referredTradingAgreementIdstringfalse
timeCreatedstringfalse
familyIdstringfalse
majorVersionstringfalse

com.ibm.commerce.contract.beans.ContractDataBean_IBM_Contract_Detailed.contractLevelParticipants

Properties:
NameData TypeRequired
roleIdstringfalse
memberIdstringfalse
tcIdstringfalse
timeCreatedstringfalse
tradingIdstringfalse
informationstringfalse
timeUpdatedstringfalse
participantIdstringfalse

com.ibm.commerce.contract.beans.ContractDataBean_IBM_Contract_Detailed.TCs

Properties:
NameData TypeRequired
participantscom.ibm.commerce.contract.beans.ContractDataBean_IBM_Contract_Detailed.TCs.participants arrayfalse
priceListIdstringfalse
entireCatalogSelectedstringfalse
inclusionProductSetsinteger arrayfalse
mandatoryFlagstringfalse
XMLStringstringfalse
tcSubTypestringfalse
percentagePriceListIdsinteger arrayfalse
timeUpdatedstringfalse
productSetIdstringfalse
tcSequencestringfalse
policiescom.ibm.commerce.contract.beans.ContractDataBean_IBM_Contract_Detailed.TCs.policies arrayfalse
priceListIdsinteger arrayfalse
exclusionProductSetsinteger arrayfalse
referenceNumberstringfalse
entireCatalogAdjustmentstringfalse
changeableFlagstringfalse
timeCreatedstringfalse
tradingIdstringfalse

com.ibm.commerce.contract.beans.ContractDataBean_IBM_Contract_Detailed.TCs.participants

Properties:
NameData TypeRequired
roleIdstringfalse
memberIdstringfalse
tcIdstringfalse
timeCreatedstringfalse
tradingIdstringfalse
informationstringfalse
timeUpdatedstringfalse
participantIdstringfalse

com.ibm.commerce.contract.beans.ContractDataBean_IBM_Contract_Detailed.TCs.policies

Properties:
NameData TypeRequired
startDatestringfalse
propertiesstringfalse
ownerstringfalse
endDatestringfalse
typestringfalse
policyNamestringfalse
policyIdstringfalse
storeEntityIdstringfalse

com.ibm.commerce.contract.beans.PaymentTCDataBean_IBM_PaymentTC_Detailed

Properties:
NameData TypeRequired
PAttrValuescom.ibm.commerce.contract.beans.PaymentTCDataBean_IBM_PaymentTC_Detailed.PAttrValues arrayfalse
tradingIdstringfalse

com.ibm.commerce.contract.beans.PaymentTCDataBean_IBM_PaymentTC_Detailed.PAttrValues

Properties:
NameData TypeRequired
sequencestringfalse
changeablestringfalse
tcIdstringfalse
rfqResponseProductIdstringfalse
rfqProductIdstringfalse
PAttrValuestringfalse
encryptFlagstringfalse
referenceNumberstringfalse
attributeIdstringfalse
mandatorystringfalse
typestringfalse
orderItemIdstringfalse
correlationGroupstringfalse
unitIdstringfalse
operatorIdstringfalse

com.ibm.commerce.order.beans.RequisitionListDataBean_IBM_Store_Summary

Properties:
NameData TypeRequired
recordSetTotalstringfalse
recordSetCompleteIndicatorstringfalse
recordSetStartNumberstringfalse
resultListcom.ibm.commerce.order.beans.RequisitionListDataBean_IBM_Store_Summary.resultList arrayfalse
recordSetCountstringfalse

com.ibm.commerce.order.beans.RequisitionListDataBean_IBM_Store_Summary.resultList

Properties:
NameData TypeRequired
statusstringfalse
userRegistrationcom.ibm.commerce.order.beans.RequisitionListDataBean_IBM_Store_Summary.resultList.userRegistrationfalse
memberIdstringfalse
orderIdstringfalse
storeIdstringfalse
descriptionstringfalse
organizationIdstringfalse
lastUpdatestringfalse
commentstringfalse

com.ibm.commerce.order.beans.RequisitionListDataBean_IBM_Store_Summary.resultList.userRegistration

Properties:
NameData TypeRequired
middleNamestringfalse
lastNamestringfalse
firstNamestringfalse