POST api/v1/Basket/AuthorizePayment
Request Information
URI Parameters
None.
Body Parameters
AppleInfoName | Description | Type | Additional information |
---|---|---|---|
AppleToken | AppleToken |
None. |
|
importo | integer |
None. |
|
basketId | string |
None. |
|
sessionId | string |
None. |
|
string |
None. |
||
userKey | string |
None. |
|
ipAddress | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "appleToken": { "paymentData": { "data": "sample string 1", "signature": "sample string 2", "header": { "publicKeyHash": "sample string 1", "ephemeralPublicKey": "sample string 2", "transactionId": "sample string 3" }, "version": "sample string 3" }, "transactionIdentifier": "sample string 1", "paymentMethod": { "network": "sample string 1", "type": "sample string 2", "displayName": "sample string 3" } }, "importo": 1, "basketId": "sample string 2", "sessionId": "sample string 3", "email": "sample string 4", "userKey": "sample string 5", "ipAddress": "sample string 6" }
text/plain
Sample:
{"appleToken":{"paymentData":{"data":"sample string 1","signature":"sample string 2","header":{"publicKeyHash":"sample string 1","ephemeralPublicKey":"sample string 2","transactionId":"sample string 3"},"version":"sample string 3"},"transactionIdentifier":"sample string 1","paymentMethod":{"network":"sample string 1","type":"sample string 2","displayName":"sample string 3"}},"importo":1,"basketId":"sample string 2","sessionId":"sample string 3","email":"sample string 4","userKey":"sample string 5","ipAddress":"sample string 6"}
application/xml, text/xml
Sample:
<AppleInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ePrice.MarketPlaceApi.Models.ApplePay"> <AppleToken> <paymentData> <data>sample string 1</data> <header> <ephemeralPublicKey>sample string 2</ephemeralPublicKey> <publicKeyHash>sample string 1</publicKeyHash> <transactionId>sample string 3</transactionId> </header> <signature>sample string 2</signature> <version>sample string 3</version> </paymentData> <paymentMethod> <displayName>sample string 3</displayName> <network>sample string 1</network> <type>sample string 2</type> </paymentMethod> <transactionIdentifier>sample string 1</transactionIdentifier> </AppleToken> <basketId>sample string 2</basketId> <email>sample string 4</email> <importo>1</importo> <ipAddress>sample string 6</ipAddress> <sessionId>sample string 3</sessionId> <userKey>sample string 5</userKey> </AppleInfo>
application/x-www-form-urlencoded
Sample:
Sample not available.
application/octet-stream
Sample:
{"AppleToken":{"paymentData":{"data":"sample string 1","signature":"sample string 2","header":{"publicKeyHash":"sample string 1","ephemeralPublicKey":"sample string 2","transactionId":"sample string 3"},"version":"sample string 3"},"transactionIdentifier":"sample string 1","paymentMethod":{"network":"sample string 1","type":"sample string 2","displayName":"sample string 3"}},"importo":1,"basketId":"sample string 2","sessionId":"sample string 3","email":"sample string 4","userKey":"sample string 5","ipAddress":"sample string 6"}
Response Information
Resource Description
EsitoCdcAutoName | Description | Type | Additional information |
---|---|---|---|
Chiave | globally unique identifier |
None. |
|
FormVerifiedByVisa | string |
None. |
|
IsVbV | boolean |
None. |
|
AuthorizationCode | string |
None. |
|
Autorizzata | boolean |
None. |
|
BankTransactionId | string |
None. |
|
Errori | Collection of Errore |
None. |
|
ErrorCode | string |
None. |
|
ErrorDescription | string |
None. |
|
ErrorDescriptionFrontEnd | string |
None. |
|
Result | boolean |
None. |
|
ShopId | integer |
None. |
|
IdPiattaforma | integer |
None. |
|
importo | decimal number |
None. |
|
Messaggio | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "chiave": "5dd6ba3b-3f83-4b43-9db6-3936c466818a", "formVerifiedByVisa": "sample string 2", "isVbV": true, "authorizationCode": "sample string 4", "autorizzata": true, "bankTransactionId": "sample string 6", "errori": [ { "message": "sample string 1", "longMessage": "sample string 2", "errorCode": "sample string 3", "severity": 0 }, { "message": "sample string 1", "longMessage": "sample string 2", "errorCode": "sample string 3", "severity": 0 } ], "errorCode": "sample string 7", "errorDescription": "sample string 8", "errorDescriptionFrontEnd": "sample string 9", "result": true, "shopId": 11, "idPiattaforma": 12, "importo": 13.0, "messaggio": "(Warning) sample string 3 - sample string 1\r\n(Warning) sample string 3 - sample string 1" }
text/plain
Sample:
{"chiave":"5dd6ba3b-3f83-4b43-9db6-3936c466818a","formVerifiedByVisa":"sample string 2","isVbV":true,"authorizationCode":"sample string 4","autorizzata":true,"bankTransactionId":"sample string 6","errori":[{"message":"sample string 1","longMessage":"sample string 2","errorCode":"sample string 3","severity":0},{"message":"sample string 1","longMessage":"sample string 2","errorCode":"sample string 3","severity":0}],"errorCode":"sample string 7","errorDescription":"sample string 8","errorDescriptionFrontEnd":"sample string 9","result":true,"shopId":11,"idPiattaforma":12,"importo":13.0,"messaggio":"(Warning) sample string 3 - sample string 1\r\n(Warning) sample string 3 - sample string 1"}
application/xml, text/xml
Sample:
<EsitoCdcAuto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ePrice.Pagamenti"> <ErrorCode>sample string 7</ErrorCode> <ErrorDescription>sample string 8</ErrorDescription> <ErrorDescriptionFrontEnd>sample string 9</ErrorDescriptionFrontEnd> <Errori> <Errore> <ErrorCode>sample string 3</ErrorCode> <LongMessage>sample string 2</LongMessage> <Message>sample string 1</Message> <Severity>Warning</Severity> </Errore> <Errore> <ErrorCode>sample string 3</ErrorCode> <LongMessage>sample string 2</LongMessage> <Message>sample string 1</Message> <Severity>Warning</Severity> </Errore> </Errori> <IdPiattaforma>12</IdPiattaforma> <Result>true</Result> <ShopId>11</ShopId> <importo>13</importo> <AuthorizationCode>sample string 4</AuthorizationCode> <Autorizzata>true</Autorizzata> <BankTransactionId>sample string 6</BankTransactionId> <Chiave>5dd6ba3b-3f83-4b43-9db6-3936c466818a</Chiave> <FormVerifiedByVisa>sample string 2</FormVerifiedByVisa> <IsVbV>true</IsVbV> </EsitoCdcAuto>
application/octet-stream
Sample:
{"Chiave":"5dd6ba3b-3f83-4b43-9db6-3936c466818a","FormVerifiedByVisa":"sample string 2","IsVbV":true,"AuthorizationCode":"sample string 4","Autorizzata":true,"BankTransactionId":"sample string 6","Errori":[{"Message":"sample string 1","LongMessage":"sample string 2","ErrorCode":"sample string 3","Severity":0},{"Message":"sample string 1","LongMessage":"sample string 2","ErrorCode":"sample string 3","Severity":0}],"ErrorCode":"sample string 7","ErrorDescription":"sample string 8","ErrorDescriptionFrontEnd":"sample string 9","Result":true,"ShopId":11,"IdPiattaforma":12,"importo":13.0,"Messaggio":"(Warning) sample string 3 - sample string 1\r\n(Warning) sample string 3 - sample string 1"}
text/javascript, application/javascript, application/json-p
Sample:
({"chiave":"5dd6ba3b-3f83-4b43-9db6-3936c466818a","formVerifiedByVisa":"sample string 2","isVbV":true,"authorizationCode":"sample string 4","autorizzata":true,"bankTransactionId":"sample string 6","errori":[{"message":"sample string 1","longMessage":"sample string 2","errorCode":"sample string 3","severity":0},{"message":"sample string 1","longMessage":"sample string 2","errorCode":"sample string 3","severity":0}],"errorCode":"sample string 7","errorDescription":"sample string 8","errorDescriptionFrontEnd":"sample string 9","result":true,"shopId":11,"idPiattaforma":12,"importo":13.0,"messaggio":"(Warning) sample string 3 - sample string 1\r\n(Warning) sample string 3 - sample string 1"});