PULL
Pull method allows you to send a request via PCI Proxy to a partner API endpoint in order to receive a response where the payload is filtered for credit card data and automatically tokenized. Just add the specified header parameters to your request and redirect your request to the
/v1/pull
endpoint. All the other headers and your payload will be kept and routed through PCI Proxy without modification.post
https://sandbox.pci-proxy.com
/v1/pull
PULL method - API request
The masked card number will be returned in the response as HTTP header
pci-proxy-masked-aliases AAABcHxr-sDssdexyrAAAfyXWIgaAF40=424242xxxxxx4242
Once a PULL Channel is added to your merchantId, simply redirect requests to it via PCI Proxy:
Pull reservations from Booking.com
Response
curl https://sandbox.pci-proxy.com/v1/pull \
-H 'x-cc-merchant-id: merchantId' \
-H 'pci-proxy-api-key: MfJag98oHh0rCiSXc8g3mCsqP8wrSer7' \
-H 'x-cc-url: https://secure-supply-xml.booking.com/hotels/xml/reservations' \
-d '<?xml version="1.0" encoding="UTF-8"?>
<request>
<username>providermachinelogin</username>
<password>********</password>
</request>'
<?xml version="1.0" encoding="UTF-8"?>
<reservations>
<reservation>
<booked_at>2016-06-01T11:57:22+00:00</booked_at>
<commissionamount>21.09</commissionamount>
<currencycode>EUR</currencycode>
<customer>
<address>Vista 2, 3º izq</address>
<cc_cvc>xC80dmLNReahfVnMNeW6DHt_</cc_cvc>
<cc_expiration_date>07/2018</cc_expiration_date>
<cc_name>John Doe</cc_name>
<cc_number>AAABcHxr-sDssdexyrAAAfyXWIgaAF40</cc_number>
<cc_type>Visa</cc_type>
<city>Madrid</city>
<company />
<countrycode>es</countrycode>
<dc_issue_number />
<dc_start_date />
<email>[email protected]</email>
<first_name>Juan</first_name>
<last_name>Valdez</last_name>
<remarks>Booker is travelling for business...</remarks>
<telephone>666 428 664</telephone>
<zip>28004</zip>
</customer>
<!-- remaining response has been truncated for better visability -->
</reservation>
</reservations>
The response from Booking.com is automatically filtered for credit card data. Located card data is now stored in our vaults in Switzerland while card tokens have been inserted into the payload.
Last modified 1yr ago