customCurrency
post
/ccadmin/v1/webhook/customCurrency
This webhook is used for Custom currency Payments
Request
Supported Media Types
- application/json
Body Parameter
This webhook is used for Custom currency Payments
Root Schema : customCurrency_request
This webhook is used for Custom currency Payments
{
"loyaltyDetails":[
{
"programName":"programForFlyer",
"membershipId":"member0002",
"programId":"prg10002",
"status":"Enrolled"
},
{
"programName":"programForYoungster",
"membershipId":"member0001",
"programId":"prg10001",
"status":"Enrolled"
}
],
"orderId":"o30417",
"profile":{
"phoneNumber":"1234512345",
"id":"110072",
"email":"a@a.com"
},
"channel":"storefront",
"locale":"en",
"transactionId":"o30417-pg30418-1504691722253",
"transactionTimestamp":"2017-09-06T09:55:22+0000",
"transactionType":"0600",
"customProperties":{
"cust-prop2":"cust-prop2",
"cust-prop1":"cust-prop1"
},
"paymentId":"pg30418",
"gatewaySettings":{
"paymentMethodTypes":"loyaltyPoints"
},
"paymentMethod":"loyaltyPoints",
"shippingAddress":{
"lastName":"a",
"country":"US",
"firstName":"a",
"phoneNumber":"1234512345",
"address2":null,
"city":"cambridge",
"address1":"1 main st",
"postalCode":"02142",
"state":"MA",
"email":"a@a.com"
},
"siteId":"siteUS",
"currencyCode":"PTS",
"gatewayId":"demoLoyaltyPointsPaymentGateway"
}
- amount
-
Type:
stringamount. - billingAddress
-
Type:
objectbillingAddressAdditional Properties Allowed:billing address details - channel
-
Type:
stringchannel - currencyCode
-
Type:
stringThe three character currency code. - customProperties
-
Type:
objectcustomPropertiesAdditional Properties Allowed:{ "description":"key value pair of custom attributes", "type":"string" }key value pair of custom attributes - gatewayId
-
Type:
stringReflects the same gateway ID of the corresponding request. Mandatory attribute. - gatewaySettings
-
Type:
objectgatewaySettingsAdditional Properties Allowed:key value pair of gateway settings - locale
-
Type:
stringlocale - loyaltyDetails
-
Type:
arrayloyaltyDetailsAdditional Properties Allowed:profile loyalty programs - orderId
-
Type:
stringOrder Id - 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. - profile
-
Type:
objectprofileAdditional Properties Allowed:Basic profile information. - referenceInfo
-
Type:
objectreferenceInfoAdditional Properties Allowed: - referenceInfos
-
Type:
arrayreferenceInfosAdditional Properties Allowed: - shippingAddress
-
Type:
objectshippingAddressAdditional Properties Allowed:Default shipping address - siteId
-
Type:
stringsite associated with this request - 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. - transactionType
-
Type:
stringtype of transaction
Nested Schema : billingAddress
Type:
objectbilling address details
- address1
-
Type:
stringThe 1st line of address field - address2
-
Type:
stringThe 2nd line of address field - city
-
Type:
stringThe city of the customer - country
-
Type:
stringThe country of the customer -
Type:
stringThe email of the customer - firstName
-
Type:
stringThe first name of the customer - lastName
-
Type:
stringThe last name of customer - phoneNumber
-
Type:
integerThe phone number of the customer - postalCode
-
Type:
stringThe postal code - state
-
Type:
string
Nested Schema : customProperties
Type:
object-
Type:
stringkey value pair of custom attributes
key value pair of custom attributes
- membershipId
-
Type:
stringmemberShipId of customer. - programId
-
Type:
stringUnique id for loyalty program.
Nested Schema : gatewaySettings
Nested Schema : loyaltyDetails
Nested Schema : profile
Type:
objectBasic profile information.
-
Type:
stringThe email address - id
-
Type:
stringThe ID of the shopper profile that owns the order. - phoneNumber
-
Type:
stringPhone number.
Nested Schema : referenceInfo
Type:
object- amount
-
Type:
stringamount. - currencyCode
-
Type:
stringThe three character currency code. - hostTransactionId
-
Type:
stringThe transaction ID returned by the gateway - locale
-
Type:
stringlocale - merchantTransactionId
-
Type:
stringThe transaction ID returned by the merchant. Mandatory attribute.
Nested Schema : shippingAddress
Type:
objectDefault shipping address
- address1
-
Type:
stringAddress Line 1. - address2
-
Type:
stringAddress Line 2. - city
-
Type:
stringCity. - country
-
Type:
stringName of the country. -
Type:
string - firstName
-
Type:
stringFirst name. - lastName
-
Type:
stringThe last name of customer - phoneNumber
-
Type:
integerPhone number. - postalCode
-
Type:
stringPostal code. - state
-
Type:
stringState.
Nested Schema : items
Type:
object- membershipId
-
Type:
stringmembershipId of the profile. - programId
-
Type:
stringprogramId of Loyalty Program - programName
-
Type:
stringprogramName of Loyalty Program - status
-
Type:
stringstatus of Enrollment.
Nested Schema : items
Type:
object- amount
-
Type:
stringamount. - currencyCode
-
Type:
stringThe three character currency code. - hostTransactionId
-
Type:
stringThe transaction ID returned by the gateway - locale
-
Type:
stringlocale - merchantTransactionId
-
Type:
stringThe transaction ID returned by the merchant. Mandatory attribute.
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : customCurrency_response
- amount
-
Type:
stringamount. - authorizationResponse
-
Type:
objectauthorizationResponseAdditional Properties Allowed: - channel
-
Type:
stringRequired:truechannel - creditResponse
-
Type:
objectcreditResponseAdditional Properties Allowed: - currencyCode
-
Type:
stringRequired:trueThe three character currency code. - gatewayId
-
Type:
stringRequired:trueReflects the same gateway ID of the corresponding request. Mandatory attribute. - inquireBalanceResponse
-
Type:
objectinquireBalanceResponseAdditional Properties Allowed: - locale
-
Type:
stringRequired:truelocale - orderId
-
Type:
stringRequired:trueorder id - paymentId
-
Type:
stringRequired:trueReflects the same paymentId of the corresponding request. Mandatory attribute. - paymentMethod
-
Type:
stringRequired:trueReflects the same payment method of the corresponding request. Mandatory attribute. - siteId
-
Type:
stringRequired:truesite associated with this request - transactionId
-
Type:
stringRequired:trueReflects the same transaction ID of the corresponding request. Mandatory attribute. - transactionTimestamp
-
Type:
stringRequired:trueReflects the same transaction timestamp of the corresponding request. Mandatory attribute. - transactionType
-
Type:
stringRequired:truetransaction type - voidResponse
-
Type:
objectvoidResponseAdditional Properties Allowed:
Nested Schema : creditResponse
Type:
object- additionalProperties
-
Type:
objectadditionalPropertiesAdditional Properties Allowed:key value pair of additional attributes - customPaymentProperties
-
Type:
objectcustomPaymentPropertiesAdditional Properties Allowed:key value pair of custom attributes - hostTransactionId
-
Type:
stringThe transaction ID returned by the gateway - hostTransactionTimestamp
-
Type:
stringThe timestamp of the transaction. - merchantTransactionId
-
Type:
stringRequired:trueThe transaction ID returned by the merchant. Mandatory attribute. - merchantTransactionTimestamp
-
Type:
stringRequired:trueThe merchant timestamp of the transaction. Mandatory attribute. - responseCode
-
Type:
stringRequired:trueReturned code of response. Mandatory attribute. - responseDescription
-
Type:
stringThe description of the response. Optional attribute - responseReason
-
Type:
stringRequired:trueResponse reason. Optional attribute
Nested Schema : inquireBalanceResponse
Type:
object- additionalProperties
-
Type:
objectadditionalPropertiesAdditional Properties Allowed:key value pair of additional attributes - customPaymentProperties
-
Type:
objectcustomPaymentPropertiesAdditional Properties Allowed:key value pair of custom attributes - hostTransactionId
-
Type:
stringThe transaction ID returned by the gateway - hostTransactionTimestamp
-
Type:
stringThe timestamp of the transaction. - loyaltyPrograms
-
Type:
arrayloyaltyProgramsRequired:trueAdditional Properties Allowed: - merchantTransactionId
-
Type:
stringRequired:trueThe transaction ID returned by the merchant. Mandatory attribute. - merchantTransactionTimestamp
-
Type:
stringRequired:trueThe merchant timestamp of the transaction. Mandatory attribute. - responseCode
-
Type:
stringRequired:trueReturned code of response. Mandatory attribute. - responseDescription
-
Type:
stringThe description of the response. Optional attribute - responseReason
-
Type:
stringRequired:trueResponse reason. Optional attribute
Nested Schema : voidResponse
Type:
object- additionalProperties
-
Type:
objectadditionalPropertiesAdditional Properties Allowed:key value pair of additional attributes - customPaymentProperties
-
Type:
objectcustomPaymentPropertiesAdditional Properties Allowed:key value pair of custom attributes - hostTransactionId
-
Type:
stringThe transaction ID returned by the gateway - hostTransactionTimestamp
-
Type:
stringThe timestamp of the transaction. - merchantTransactionId
-
Type:
stringRequired:trueThe transaction ID returned by the merchant. Mandatory attribute. - merchantTransactionTimestamp
-
Type:
stringRequired:trueThe merchant timestamp of the transaction. Mandatory attribute. - responseCode
-
Type:
stringRequired:trueReturned code of response. Mandatory attribute. - responseDescription
-
Type:
stringThe description of the response. Optional attribute - responseReason
-
Type:
stringRequired:trueResponse reason. Optional attribute
Nested Schema : additionalProperties
Nested Schema : customPaymentProperties
Nested Schema : additionalProperties
Nested Schema : customPaymentProperties
Nested Schema : items
Type:
object- additionalProperties
-
Type:
objectadditionalPropertiesAdditional Properties Allowed:key value pair of additional attributes - loyaltyPointDetails
-
Type:
arrayloyaltyPointDetailsRequired:trueAdditional Properties Allowed: - membershipId
-
Type:
stringRequired:truemembershipId of the profile. - programId
-
Type:
stringRequired:trueprogramId of Loyalty Program - programName
-
Type:
stringRequired:trueprogramName of Loyalty Program
Nested Schema : additionalProperties
Nested Schema : loyaltyPointDetails
Nested Schema : items
Type:
object- additionalProperties
-
Type:
objectadditionalPropertiesAdditional Properties Allowed:key value pair of additional attributes - membershipType
-
Type:
stringRequired:truemembership type - pointsBalance
-
Type:
stringRequired:trueavailable points balance - pointsType
-
Type:
stringRequired:truepoints type
Nested Schema : additionalProperties
Nested Schema : additionalProperties
Nested Schema : customPaymentProperties
Example application/json
{
"transactionType":"0600",
"orderId":"o30417",
"paymentId":"pg30418",
"channel":"storefront",
"paymentMethod":"loyaltyPoints",
"siteId":"siteUS",
"locale":"en",
"inquireBalanceResponse":{
"hostTransactionTimestamp":"1504691722267",
"responseReason":"inquireBalanceResponseReason",
"customPaymentProperties":[
"5000addnl-property-key5",
"cust-prop2",
"5000addnl-property-key2",
"cust-prop1"
],
"responseDescription":"inquireBalanceResponseDescription",
"loyaltyPrograms":[
{
"loyaltyPointDetails":[
{
"membershipType":"blue",
"pointsBalance":"2000",
"pointsType":"bluePoints",
"additionalProperties":{
"propertyName1":"value1",
"propertyName2":"value2"
}
},
{
"membershipType":"red",
"pointsBalance":"6000",
"pointsType":"redPoints",
"additionalProperties":{
"propertyName4":"value4",
"propertyName3":"value3"
}
},
{
"membershipType":"green",
"pointsBalance":"6000",
"pointsType":"PTS",
"additionalProperties":{
"propertyName4":"value4",
"propertyName3":"value3"
}
}
],
"programName":"programForYoungster",
"membershipId":"member0001",
"additionalProperties":{
"propertyName5":"value5",
"validTill":"2029-11-26T15:57:55.631Z",
"propertyName6":"value6",
"validFrom":"2017-07-14T15:57:55.631Z"
},
"programId":"prg10001"
},
{
"loyaltyPointDetails":[
{
"membershipType":"silver",
"pointsBalance":"2000",
"pointsType":"rewardPoints",
"additionalProperties":{
"propertyName7":"value7",
"propertyName8":"value8"
}
},
{
"membershipType":"gold",
"pointsBalance":"6000",
"pointsType":"skyMiles",
"additionalProperties":{
"propertyName10":"value10",
"propertyName9":"value9"
}
}
],
"programName":"programForFlyer",
"membershipId":"member0002",
"additionalProperties":{
"validTill":"2030-12-26T15:57:55.631Z",
"propertyName12":"value12",
"propertyName11":"value11",
"validFrom":"2017-06-14T15:57:55.631Z"
},
"programId":"prg10002"
}
],
"merchantTransactionId":"MERCH-TX-1504691722267",
"hostTransactionId":"HOST-TX-1504691722267",
"additionalProperties":{
"5000addnl-property-key5":"5000payment-property-value5",
"5000addnl-property-key4":"5000payment-property-value4",
"5000addnl-property-key3":"5000payment-property-value3",
"cust-prop2":"cust-prop2",
"5000addnl-property-key2":"5000payment-property-value2",
"cust-prop1":"cust-prop1",
"5000addnl-property-key1":"5000payment-property-value1"
},
"responseCode":"5000",
"merchantTransactionTimestamp":"1504691722267"
},
"currencyCode":"PTS",
"transactionId":"o30417-pg30418-1504691722253",
"transactionTimestamp":"2017-09-06T09:55:22+0000",
"gatewayId":"demoLoyaltyPointsPaymentGateway"
}