updateGateway
put
/ccadmin/v1/merchant/paymentGateways
Update Gateway. Update the payment gateway setup based on request parameters.
Request
Supported Media Types
- application/json
Body Parameter
Root Schema : updateGateway_request
{
"gatewayName":"cybersource",
"merchantId":"CCommerce",
"paymentGateway":{
"firstname":"John",
"sopCredentials":{
"agent":{
"secretKey":"asd234",
"accessKey":"345hjx",
"sopURL":"https://testsecureacceptance.cybersource.com/silent/pay",
"profileId":"Test123",
"repositoryId":"SOP-B",
"applicationName":"agent",
"expirationDate":"2016-08-14T11:54:30.207Z"
},
"storefront":{
"secretKey":"asdfg",
"accessKey":"rtyhj",
"sopURL":"https://testsecureacceptance.cybersource.com/silent/pay",
"profileId":"Test111",
"repositoryId":"SOP-A",
"applicationName":"storefront",
"expirationDate":"2017-01-28T11:54:30.207Z"
}
},
"soapCredential":{
"transactionSecurityKey":"as23K9Iud0",
"profileId":"admin1",
"expirationDate":"2015-03-10T11:54:30.207Z"
},
"ignoreAVS":true,
"enabled":true,
"username":"JohnD",
"lastname":"D"
}
}
- gatewayName
-
Type:
stringRequired:trueGateway Name. - merchantId
-
Type:
stringCyberSource Merchant ID. - paymentGateway
-
Type:
objectpaymentGatewayAdditional Properties Allowed:Payment gateway details.
Nested Schema : paymentGateway
Type:
objectPayment gateway details.
- enabled
-
Type:
booleanIs the setup enabled? - firstname
-
Type:
stringFirst Name. - ignoreAVS
-
Type:
booleanA flag to tell the Cybersource whether to ignore the AVS results. - lastname
-
Type:
stringLast Name. - soapCredential
-
Type:
objectsoapCredentialAdditional Properties Allowed:SOAP Credential information. - sopCredentials
-
Type:
objectsopCredentialsAdditional Properties Allowed:SOP credential information. - username
-
Type:
stringCyberSource Username.
Nested Schema : soapCredential
Type:
objectSOAP Credential information.
- expirationDate
-
Type:
stringKey expiration date. - hasTransactionSecurityKey
-
Type:
booleanA flag indicating if transaction security key is present to validate signature. - profileId
-
Type:
stringSOAP Profile ID. - repositoryId
-
Type:
stringID for the SOAP Credential. - soapURL
-
Type:
stringCyberSource SOAP URL. - transactionSecurityKey
-
Type:
stringTransaction Security key.
Nested Schema : sopCredentials
Type:
objectSOP credential information.
- agent
-
Type:
objectagentAdditional Properties Allowed:SOP credential information to be used by agent. - storefront
-
Type:
objectstorefrontAdditional Properties Allowed:SOP credential information to be used by storefront.
Nested Schema : agent
Type:
objectSOP credential information to be used by agent.
- accessKey
-
Type:
stringSOP access key for agent. - expirationDate
-
Type:
stringKey expiration date for SOP Credentials of agent. - hasAccessKey
-
Type:
booleanA flag indicating if access key is present for agent. - hasSecretKey
-
Type:
booleanA flag indicating if secret key is present to generate signature for agent. - profileId
-
Type:
stringSOP Profile ID to be used by agent. - repositoryId
-
Type:
stringRepository ID of SOP Credential of agent. - secretKey
-
Type:
stringSOP secret key for agent. - sopURL
-
Type:
stringCyberSource SOP URL to be used by agent.
Nested Schema : storefront
Type:
objectSOP credential information to be used by storefront.
- accessKey
-
Type:
stringSOP access key for storefront. - expirationDate
-
Type:
stringKey expiration date for SOP Credentials of storefront. - hasAccessKey
-
Type:
booleanA flag indicating if access key is present for storefront. - hasSecretKey
-
Type:
booleanA flag indicating if secret key is present to generate signature for storefront. - profileId
-
Type:
stringSOP Profile ID to be used by storefront. - repositoryId
-
Type:
stringRepository ID of SOP Credential of storefront. - secretKey
-
Type:
stringSOP secret key for storefront. - sopURL
-
Type:
stringCyberSource SOP URL to be used by storefront.
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : updateGateway_response
- merchantId
-
Type:
stringCyberSource Merchant ID. - paymentGateways
-
Type:
arraypaymentGatewaysAdditional Properties Allowed:Payment gateway details. - repositoryId
-
Type:
stringrepository ID of the Merchant.
Nested Schema : paymentGateways
Nested Schema : items
Type:
object- enabled
-
Type:
booleanIs the setup enabled? - firstname
-
Type:
stringFirst Name. - ignoreAVS
-
Type:
booleanA flag to tell the Cybersource whether to ignore the AVS results. - lastname
-
Type:
stringLast Name. - repositoryId
-
Type:
stringRepository ID for the payment gateway. - soapCredential
-
Type:
objectsoapCredentialAdditional Properties Allowed:SOAP Credential information. - sopCredentials
-
Type:
objectsopCredentialsAdditional Properties Allowed:SOP credential information. - type
-
Type:
stringType of the payment gateway. - username
-
Type:
stringCyberSource Username.
Nested Schema : soapCredential
Type:
objectSOAP Credential information.
- expirationDate
-
Type:
stringKey expiration date. - profileId
-
Type:
stringSOAP Profile ID. - repositoryId
-
Type:
stringID for the SOAP Credential. - transactionSecurityKey
-
Type:
stringTransaction Security key.
Nested Schema : sopCredentials
Type:
objectSOP credential information.
- agent
-
Type:
objectagentAdditional Properties Allowed:SOP credential information for agent. - storefront
-
Type:
objectstorefrontAdditional Properties Allowed:SOP credential information for storefront.
Nested Schema : agent
Type:
objectSOP credential information for agent.
- expirationDate
-
Type:
stringKey expiration date. - hasAccessKey
-
Type:
booleanA flag indicating if access key is present. - hasSecretKey
-
Type:
booleanA flag indicating if secret key is present to generate signature. - profileId
-
Type:
stringSOP Profile ID for agent profile. - repositoryId
-
Type:
stringID for the SOP Credential. - sopURL
-
Type:
stringCyberSource SOP URL for agent.
Nested Schema : storefront
Type:
objectSOP credential information for storefront.
- expirationDate
-
Type:
stringKey expiration date. - hasAccessKey
-
Type:
booleanA flag indicating if access key is present. - hasSecretKey
-
Type:
booleanA flag indicating if secret key is present to generate signature. - profileId
-
Type:
stringSOP Profile ID for storefront profile. - repositoryId
-
Type:
stringID for the SOP Credential. - sopURL
-
Type:
stringCyberSource SOP URL for storefront.
Example application/json
{
"merchantId":"oraclecc",
"paymentGateways":[
{
"clientId":"Test113",
"production":false,
"captureType":"PlaceOrder",
"hasSecretKey":true,
"repositoryId":"PP-A",
"type":"PayPal",
"supportedTypes":[
"paypalCheckout"
],
"enabled":true
},
{
"firstname":"John",
"sopCredentials":{
"agent":{
"hasAccessKey":true,
"sopURL":"https://testsecureacceptance.cybersource.com/silent/pay",
"profileId":"Test123",
"hasSecretKey":true,
"repositoryId":"SOP-B",
"applicationName":"agent",
"expirationDate":"2016-08-14T11:54:30.207Z"
},
"storefront":{
"hasAccessKey":true,
"sopURL":"https://testsecureacceptance.cybersource.com/silent/pay",
"profileId":"Test111",
"hasSecretKey":true,
"repositoryId":"SOP-A",
"applicationName":"storefront",
"expirationDate":"2017-01-28T11:54:30.207Z"
}
},
"soapCredential":{
"transactionSecurityKey":"g9TNb1l8rlJnk+JJ/tqvVlUM5Xr76Rez2u81gzO0KasKwOfVdVeiwTDYa82bipayslV+tQaILGD74QqHyWWJWN1rVTMSgt3VzaRRTzX/5gF2S+qElnojrjXloEPXvML/weqDwqwic9IiiTlgyEmKWNsBpNokUkL2krQ9N4RimshVo3KNk9bSOzKMbKJoikNWVQzlevvpF7Pa7zWDM7QpqwrA59V1V6LBMNhrzZuKlrKyVX61BogsYPvhCofJZYlY3WtVMxKC3dXNpFFPNf/mAXZL6oSWeiOuNeWgQ9e8wv/B6oPCrCJz0iKJOWDISYpY2wGk2iRSQvaStD03hGKayA==",
"profileId":"CS-A",
"repositoryId":"SOAP-A",
"expirationDate":"2020-05-20T11:54:30.207Z"
},
"repositoryId":"CS-A",
"ignoreAVS":true,
"type":"CyberSource",
"supportedTypes":[
"card"
],
"enabled":true,
"username":"UserA",
"lastname":"X"
}
],
"repositoryId":"Merchant-A"
}
Default Response
The error response
Body
Root Schema : errorModel
Type:
object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - errors
-
Type:
arrayerrorsAdditional Properties Allowed:An optional list of errors if multiple errors were encountered - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code - type
-
Type:
stringThe URI to the HTTP state code definition
Nested Schema : errors
Nested Schema : items
Type:
object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code
Examples
Sample Request:
{
"gatewayName": "cybersource",
"merchantId": "CCommerce",
"paymentGateway": {
"firstname": "John",
"sopCredentials": {
"agent": {
"secretKey": "asd234",
"accessKey": "345hjx",
"sopURL": "https://testsecureacceptance.cybersource.com/silent/pay",
"profileId": "Test123",
"repositoryId": "SOP-B",
"applicationName": "agent",
"expirationDate": "2016-08-14T11:54:30.207Z"
},
"storefront": {
"secretKey": "asdfg",
"accessKey": "rtyhj",
"sopURL": "https://testsecureacceptance.cybersource.com/silent/pay",
"profileId": "Test111",
"repositoryId": "SOP-A",
"applicationName": "storefront",
"expirationDate": "2017-01-28T11:54:30.207Z"
}
},
"soapCredential": {
"transactionSecurityKey": "as23K9Iud0",
"profileId": "admin1",
"expirationDate": "2015-03-10T11:54:30.207Z"
},
"ignoreAVS": true,
"enabled": true,
"username": "JohnD",
"lastname": "D"
}
}
Sample Response Payload returned by endpoint:
{
"merchantId": "oraclecc",
"paymentGateways": [
{
"clientId": "Test113",
"production": false,
"captureType": "PlaceOrder",
"hasSecretKey": true,
"repositoryId": "PP-A",
"type": "PayPal",
"supportedTypes": ["paypalCheckout"],
"enabled": true
},
{
"firstname": "John",
"sopCredentials": {
"agent": {
"hasAccessKey": true,
"sopURL": "https://testsecureacceptance.cybersource.com/silent/pay",
"profileId": "Test123",
"hasSecretKey": true,
"repositoryId": "SOP-B",
"applicationName": "agent",
"expirationDate": "2016-08-14T11:54:30.207Z"
},
"storefront": {
"hasAccessKey": true,
"sopURL": "https://testsecureacceptance.cybersource.com/silent/pay",
"profileId": "Test111",
"hasSecretKey": true,
"repositoryId": "SOP-A",
"applicationName": "storefront",
"expirationDate": "2017-01-28T11:54:30.207Z"
}
},
"soapCredential": {
"transactionSecurityKey": "g9TNb1l8rlJnk+JJ/tqvVlUM5Xr76Rez2u81gzO0KasKwOfVdVeiwTDYa82bipayslV+tQaILGD74QqHyWWJWN1rVTMSgt3VzaRRTzX/5gF2S+qElnojrjXloEPXvML/weqDwqwic9IiiTlgyEmKWNsBpNokUkL2krQ9N4RimshVo3KNk9bSOzKMbKJoikNWVQzlevvpF7Pa7zWDM7QpqwrA59V1V6LBMNhrzZuKlrKyVX61BogsYPvhCofJZYlY3WtVMxKC3dXNpFFPNf/mAXZL6oSWeiOuNeWgQ9e8wv/B6oPCrCJz0iKJOWDISYpY2wGk2iRSQvaStD03hGKayA==",
"profileId": "CS-A",
"repositoryId": "SOAP-A",
"expirationDate": "2020-05-20T11:54:30.207Z"
},
"repositoryId": "CS-A",
"ignoreAVS": true,
"type": "CyberSource",
"supportedTypes": ["card"],
"enabled": true,
"username": "UserA",
"lastname": "X"
}
],
"repositoryId": "Merchant-A"
}