genericCardPayment
post
/ccadmin/v1/webhook/genericCardPayment
Integrates custom payment gateways that let your store accept card payment.
Request
Supported Media Types
- application/json
Body Parameter
Integrates custom payment gateways that let your store accept card payment.
Root Schema : genericCardPayment_request
Integrates custom payment gateways that let your store accept card payment.
- request
-
Type:
objectrequestAdditional Properties Allowed:
Nested Schema : request
Type:
object- amount
-
Type:
numberThe monetary amount. - billingAddress
-
Type:
objectbillingAddressAdditional Properties Allowed:The billing address. - cardDetails
-
Type:
objectcardDetailsAdditional Properties Allowed:The details of card used for transaction. - channel
-
Type:
stringThe channel of this payment. For example preview, agent, store - currencyCode
-
Type:
stringThe three character currency code. For example: USD. - gatewayId
-
Type:
stringThe name of the gateway. - gatewaySettings
-
Type:
objectgatewaySettingsAdditional Properties Allowed:{ "type":"string" }The settings of the gateway. - locale
-
Type:
stringThe locale of the request - orderId
-
Type:
stringId of the order - paymentId
-
Type:
stringThe Id of the payment group - paymentMethod
-
Type:
stringThe payment method is card. - profile
-
Type:
objectprofileAdditional Properties Allowed:The basic profile details. - referenceInfo
-
Type:
objectreferenceInfoAdditional Properties Allowed:{ "type":"string" }For void/refund transactions - shippingAddress
-
Type:
objectshippingAddressAdditional Properties Allowed:The shipping address - siteId
-
Type:
stringSite ID associated with this request - transactionId
-
Type:
stringTransaction id of payment transaction, generated by OCC. - transactionTimestamp
-
Type:
stringThe timestamp of the transaction. - transactionType
-
Type:
stringThe transaction type e.g. auth, void etc.
Nested Schema : billingAddress
Type:
objectThe billing address.
- address1
-
Type:
stringAddress snippet. - address2
-
Type:
stringAddress snippet. - address3
-
Type:
stringAddress snippet. - city
-
Type:
stringCity. - companyName
-
Type:
stringCompany name. - country
-
Type:
stringCountry. - county
-
Type:
stringCounty. -
Type:
stringEmail address. - faxNumber
-
Type:
stringFax number. - firstName
-
Type:
stringFirst name - jobTitle
-
Type:
stringJob title. - lastName
-
Type:
stringLast name. - middleName
-
Type:
stringMiddle name. - phoneNumber
-
Type:
stringPhone number. - postalCode
-
Type:
stringPostal code. - prefix
-
Type:
stringName prefix. - state
-
Type:
stringState. - suffix
-
Type:
stringName suffix.
Nested Schema : cardDetails
Type:
objectThe details of card used for transaction.
- cvv
-
Type:
stringCard Verification Value. - expirationMonth
-
Type:
stringTwo digit month when the credit card expires. - expirationYear
-
Type:
stringTwo or four digit year when the credit card expires. - holderName
-
Type:
stringThe name of the card holder. - number
-
Type:
stringThe credit card number. - type
-
Type:
stringThe type of the credit card e.g. Visa.
Nested Schema : gatewaySettings
Nested Schema : profile
Type:
objectThe basic profile details.
-
Type:
stringEmail associated with the profile. - id
-
Type:
stringThe profile id. - phoneNumber
-
Type:
stringPhone number associated to the profile.
Nested Schema : referenceInfo
Nested Schema : shippingAddress
Type:
objectThe shipping address
- address1
-
Type:
stringAddress snippet. - address2
-
Type:
stringAddress snippet. - address3
-
Type:
stringAddress snippet. - city
-
Type:
stringCity. - companyName
-
Type:
stringCompany name. - country
-
Type:
stringCountry. - county
-
Type:
stringCounty. -
Type:
stringEmail address. - faxNumber
-
Type:
stringFax number. - firstName
-
Type:
stringFirst name - jobTitle
-
Type:
stringJob title. - lastName
-
Type:
stringLast name. - middleName
-
Type:
stringMiddle name. - phoneNumber
-
Type:
stringPhone number. - postalCode
-
Type:
stringPostal code. - prefix
-
Type:
stringName prefix. - state
-
Type:
stringState. - suffix
-
Type:
stringName suffix.
Response
Supported Media Types
- application/json
200 Response
Integrates custom payment gateways that let your store accept card payment.
Body
The generic card payment response from external service
Root Schema : genericCardPayment_response
The generic card payment response from external service
- response
-
Type:
objectresponseAdditional Properties Allowed:
Nested Schema : response
Type:
object- additionalProperties
-
Type:
objectadditionalPropertiesAdditional Properties Allowed:{ "type":"string" }Key/value pairs for additional properties sent by the merchant - amount
-
Type:
numberThe monetary amount. - authorizationResponse
-
Type:
arrayauthorizationResponseAdditional Properties Allowed:This response is received incase the transactionType is AUTH. Only one of authorizationResponse/voidResponse/creditResponse will be present in 1 response. - channel
-
Type:
stringThe channel of this order. Echoed from request. - creditResponse
-
Type:
arraycreditResponseAdditional Properties Allowed:This response is recieved incase the transactionType is RFND. Only one of authorizationResponse/voidResponse/creditResponse will be present in 1 response. - currencyCode
-
Type:
stringThe three character currency code. For example: USD. - gatewayId
-
Type:
stringThe name of the gateway. - hostTransactionId
-
Type:
stringThe transaction ID returned by the gateway. - hostTransactionTimestamp
-
Type:
stringThe host timestamp of the transaction. Mandatory for generic payment type. - locale
-
Type:
stringThe locale echoed from request. Mandatory attribute. - orderId
-
Type:
stringId of the order. Echoed from request. Mandatory attribute. - paymentId
-
Type:
stringThe Id of the payment group. Mandatory attribute. - paymentMethod
-
Type:
stringThe payment method will be card. - transactionId
-
Type:
stringTransaction id of payment transaction, generated by OCC. Mandatory attribute. - transactionTimestamp
-
Type:
stringThe timestamp of the transaction. - transactionType
-
Type:
stringThe transaction type eg auth, void etc, echoed from request. Mandatory attribute. - voidResponse
-
Type:
arrayvoidResponseAdditional Properties Allowed:This response is recieved incase the transactionType is VOID. Only one of authorizationResponse/voidResponse/creditResponse will be present in 1 response.
Nested Schema : additionalProperties
Type:
object-
Type:
string
Key/value pairs for additional properties sent by the merchant
Nested Schema : creditResponse
Nested Schema : voidResponse
Nested Schema : items
Type:
object- additionalProperties
-
Type:
objectadditionalPropertiesAdditional Properties Allowed:{ "type":"string" }Key/value pairs for additional properties sent by the merchant - amount
-
Type:
numberThe monetary amount. Mandatory attribute. - gatewayId
-
Type:
stringReflects the same gateway ID of the corresponding request. Mandatory attribute. - hostTransactionId
-
Type:
stringThe transaction ID returned by the gateway - hostTransactionTimestamp
-
Type:
stringThe host timestamp of the transaction. - merchantTransactionId
-
Type:
stringThe transaction ID returned by the merchant. Mandatory attribute. - merchantTransactionTimestamp
-
Type:
stringThe merchant timestamp of the transaction. Mandatory attribute. - paymentId
-
Type:
stringReflects the same paymentId of the corresponding request. Mandatory attribute. - paymentMethod
-
Type:
stringReflects the same payment method of the corresponding request. Mandatory attribute. - responseCode
-
Type:
stringReturned code of response. Mandatory attribute. - responseDescription
-
Type:
stringThe description of the response. Mandatory attribute - responseReason
-
Type:
stringResponse reason. Mandatory attribute - transactionId
-
Type:
stringReflects the same transaction ID of the corresponding request. Mandatory attribute. - transactionTimestamp
-
Type:
stringReflects the same transaction timestamp of the corresponding request. Mandatory attribute.
Nested Schema : additionalProperties
Type:
object-
Type:
string
Key/value pairs for additional properties sent by the merchant
Nested Schema : items
Type:
object- additionalProperties
-
Type:
objectadditionalPropertiesAdditional Properties Allowed:{ "type":"string" }Key/value pairs for additional properties sent by the merchant - amount
-
Type:
numberThe monetary amount. Mandatory attribute. - gatewayId
-
Type:
stringReflects the same gateway ID of the corresponding request. Mandatory attribute. - hostTransactionId
-
Type:
stringThe transaction ID returned by the gateway - hostTransactionTimestamp
-
Type:
stringThe host timestamp of the transaction. - merchantTransactionId
-
Type:
stringThe transaction ID returned by the merchant. Mandatory attribute. - merchantTransactionTimestamp
-
Type:
stringThe merchant timestamp of the transaction. Mandatory attribute. - paymentId
-
Type:
stringReflects the same paymentId of the corresponding request. Mandatory attribute. - paymentMethod
-
Type:
stringReflects the same payment method of the corresponding request. Mandatory attribute. - responseCode
-
Type:
stringReturned code of response. Mandatory attribute. - responseDescription
-
Type:
stringThe description of the response. Mandatory attribute - responseReason
-
Type:
stringResponse reason. Mandatory attribute - transactionId
-
Type:
stringReflects the same transaction ID of the corresponding request. Mandatory attribute. - transactionTimestamp
-
Type:
stringReflects the same transaction timestamp of the corresponding request. Mandatory attribute.
Nested Schema : additionalProperties
Type:
object-
Type:
string
Key/value pairs for additional properties sent by the merchant