POST api/Transaction/EditTransaction
Request Information
URI Parameters
None.
Body Parameters
CGTransactionName | Description | Type | Additional information |
---|---|---|---|
TransactionId | integer |
None. |
|
OrderId | integer |
None. |
|
Amount | decimal number |
None. |
|
ResponseText | string |
None. |
|
RawXml | string |
None. |
|
CardType | string |
None. |
|
CardHolderName | string |
None. |
|
CardNumber | string |
None. |
|
ExpiryDateStr | string |
None. |
|
DPSTxnRef | string |
None. |
|
TransactionFee | decimal number |
None. |
|
DateCreated | date |
None. |
|
DateCompleted | date |
None. |
|
BillingTokenId | integer |
None. |
|
DpsBillingId | string |
None. |
|
PassportId | string |
None. |
|
DotGolfDpsUserId | string |
None. |
|
RegionId | integer |
None. |
|
IsEdited | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "TransactionId": 1, "OrderId": 2, "Amount": 3.0, "ResponseText": "sample string 4", "RawXml": "sample string 5", "CardType": "sample string 6", "CardHolderName": "sample string 7", "CardNumber": "sample string 8", "ExpiryDateStr": "sample string 9", "DPSTxnRef": "sample string 10", "TransactionFee": 11.0, "DateCreated": "2024-11-26T17:18:22.4758403+00:00", "DateCompleted": "2024-11-26T17:18:22.4758403+00:00", "BillingTokenId": 1, "DpsBillingId": "sample string 14", "PassportId": "sample string 15", "DotGolfDpsUserId": "sample string 16", "RegionId": 17, "IsEdited": true }
application/xml, text/xml
Sample:
<CGTransaction xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DotGolf.Data"> <Amount>3</Amount> <BillingTokenId>1</BillingTokenId> <CardHolderName>sample string 7</CardHolderName> <CardNumber>sample string 8</CardNumber> <CardType>sample string 6</CardType> <DPSTxnRef>sample string 10</DPSTxnRef> <DateCompleted>2024-11-26T17:18:22.4758403+00:00</DateCompleted> <DateCreated>2024-11-26T17:18:22.4758403+00:00</DateCreated> <DotGolfDpsUserId>sample string 16</DotGolfDpsUserId> <DpsBillingId>sample string 14</DpsBillingId> <ExpiryDateStr>sample string 9</ExpiryDateStr> <IsEdited>true</IsEdited> <OrderId>2</OrderId> <PassportId>sample string 15</PassportId> <RawXml>sample string 5</RawXml> <RegionId>17</RegionId> <ResponseText>sample string 4</ResponseText> <TransactionFee>11</TransactionFee> <TransactionId>1</TransactionId> </CGTransaction>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
TransactionResponseName | Description | Type | Additional information |
---|---|---|---|
ResponseObject | CGTransaction |
None. |
|
Code | ResponseCode |
None. |
|
Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "ResponseObject": { "TransactionId": 1, "OrderId": 2, "Amount": 3.0, "ResponseText": "sample string 4", "RawXml": "sample string 5", "CardType": "sample string 6", "CardHolderName": "sample string 7", "CardNumber": "sample string 8", "ExpiryDateStr": "sample string 9", "DPSTxnRef": "sample string 10", "TransactionFee": 11.0, "DateCreated": "2024-11-26T17:18:22.4914447+00:00", "DateCompleted": "2024-11-26T17:18:22.4914447+00:00", "BillingTokenId": 1, "DpsBillingId": "sample string 14", "PassportId": "sample string 15", "DotGolfDpsUserId": "sample string 16", "RegionId": 17, "IsEdited": true }, "Code": 0, "Message": "sample string 1" }
application/xml, text/xml
Sample:
<TransactionResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DotGolf.CasualGolf.WebApi.Contracts"> <Code>None</Code> <Message>sample string 1</Message> <ResponseObject xmlns:d2p1="http://schemas.datacontract.org/2004/07/DotGolf.Data"> <d2p1:Amount>3</d2p1:Amount> <d2p1:BillingTokenId>1</d2p1:BillingTokenId> <d2p1:CardHolderName>sample string 7</d2p1:CardHolderName> <d2p1:CardNumber>sample string 8</d2p1:CardNumber> <d2p1:CardType>sample string 6</d2p1:CardType> <d2p1:DPSTxnRef>sample string 10</d2p1:DPSTxnRef> <d2p1:DateCompleted>2024-11-26T17:18:22.4914447+00:00</d2p1:DateCompleted> <d2p1:DateCreated>2024-11-26T17:18:22.4914447+00:00</d2p1:DateCreated> <d2p1:DotGolfDpsUserId>sample string 16</d2p1:DotGolfDpsUserId> <d2p1:DpsBillingId>sample string 14</d2p1:DpsBillingId> <d2p1:ExpiryDateStr>sample string 9</d2p1:ExpiryDateStr> <d2p1:IsEdited>true</d2p1:IsEdited> <d2p1:OrderId>2</d2p1:OrderId> <d2p1:PassportId>sample string 15</d2p1:PassportId> <d2p1:RawXml>sample string 5</d2p1:RawXml> <d2p1:RegionId>17</d2p1:RegionId> <d2p1:ResponseText>sample string 4</d2p1:ResponseText> <d2p1:TransactionFee>11</d2p1:TransactionFee> <d2p1:TransactionId>1</d2p1:TransactionId> </ResponseObject> </TransactionResponse>