On This Page
Example: Requesting an Pay-easy Sale Using the REST API
Request
{ "clientReferenceInformation": { "code": "sale1077", "reconciliationId":"payeasy123" }, "orderInformation": { "amountDetails": { "totalAmount": "600", "currency": "JPY", "taxAmount": "5" }, "billTo": { "firstName": "Tester", "lastName": "Doe", "country": "JP", "email": "[email protected]", "phoneNumber": "1234567891" }, "lineItems":[ { "productName" :"sega" }, { "productName" :"saturn" }, { "productName":"Console" } ] }, "paymentInformation": { "paymentType": { "name": "offline", "method": { "name": "payeasy" } } }, "merchantInformation": { "returnUrl": "https://www.example.org/feedback.php", "merchantDescriptor": { "name": "testdescription" } }, "recipientInformation": { "beneficiaryAddress": "13735 SE 184th PL RN 98058", "beneficiaryId": "ben_id", "beneficiaryName": "John Doe" }, "deviceInformation": { "ipAddress": "127.0.0.1" }, "buyerInformation": { "personalIdentification": [ { "id": "personal_Identification" } ], "mobilePhone": "8095803465", "language":"en" }, "consumerAuthenticationInformation": { "customerCardAlias": "hishriva" } }
Response to a Successful Request
{ "processorInformation": { "transactionId": "840012782", "rawStatus": "PENDING", "paymentUrl": "https://r2.paygate.de/econtext/S1125/I?tx=840012782&rs=YkcK0f8OKd836atFSL88KEuTCMMXtvjl&cs=3d244f6306310786500c1fa5257e4bfdf2a2b93bcd49614ebc6e10c1f4ac2e81" }, "reconciliationId": "payeasy123", "message": "Successful", "status": "PENDING", "id": "6523329019126743604730", "submitTimeUtc": "2022-06-14T08:54:17Z" }