POST check/{siteId}/{checkId}/pay/cps

Request Information

URI Parameters

NameDescriptionTypeAdditional information
siteId

integer

Required

checkId

integer

Required

Body Parameters

SavedCardPaymentRequest
NameDescriptionTypeAdditional information
cardReference

globally unique identifier

None.

cpsCustomerProfileId

globally unique identifier

None.

cpsCompanyCode

string

None.

amount

decimal number

None.

tipAmount

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "cardReference": "def786b8-2e92-40d3-a119-b66ecc9371c3",
  "cpsCustomerProfileId": "c53d5264-f874-4e8d-a62b-5f47de5bf55f",
  "cpsCompanyCode": "sample string 3",
  "amount": 4.0,
  "tipAmount": 5.0
}

application/xml, text/xml

Sample:
<SavedCardPaymentRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Pay.Platform.Site.Core.Contracts.Requests">
  <amount>4</amount>
  <cardReference>def786b8-2e92-40d3-a119-b66ecc9371c3</cardReference>
  <cpsCompanyCode>sample string 3</cpsCompanyCode>
  <cpsCustomerProfileId>c53d5264-f874-4e8d-a62b-5f47de5bf55f</cpsCustomerProfileId>
  <tipAmount>5</tipAmount>
</SavedCardPaymentRequest>

Response Information

Resource Description

ApplyTenderPaymentResponse
NameDescriptionTypeAdditional information
PaymentId

integer

None.

Code

ErrorCode

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "PaymentId": 1,
  "Code": 0,
  "Message": ""
}

application/xml, text/xml

Sample:
<ApplyTenderPaymentResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Pay.Platform.Site.Core.Contracts.Responses">
  <Code>None</Code>
  <Message></Message>
  <PaymentId>1</PaymentId>
</ApplyTenderPaymentResponse>