Examples
Here you can find some examples of how to use
To tokenise cards from Channex you need to perform capture requests from secure.channex.io endpoint (if you want to test with Channex staging account it will be secure-staging.channex.io).
There are two Channex tokenisation profiles that should be used depending on which channex endpoint you use.
Request template
POST https://pci.channex.io/api/v1/capture?api_key=<API_KEY>&profile=<PROFILE>&method=get&url<SECURE_CHANNEX_ENDPOINT>
- API_KEY - your Channex PCI api_key
- PROFILE - tokenisation profile name
- SECURE_CHANNEX_ENDPOINT - url-encoded secure channex endpoint
All requests should contain an authentication header for Channex.
Here are the endpoints you might be interested in.
Receive bookings
Endpoint: /api/v1/bookings
Tokenisation profile: channex
Example: POST https://pci.channex.io/api/v1/capture?api_key=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&profile=channex&method=get&url=https%3A%2F%2Fsecure.channex.io%2Fapi%2Fv1%2Fbookings
Receive specific booking
Endpoint: /api/v1/bookings/:id
Tokenisation profile: channex_entity
Example: POST https://pci.channex.io/api/v1/capture?api_key=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&profile=channex_entity&method=get&url=https%3A%2F%2Fsecure.channex.io%2Fapi%2Fv1%2Fbookings%2Fc3f75a90-41a8-40eb-9f59-55dad5fccf3a
Receive booking_revisions
Endpoint: /api/v1/booking_revisions
Tokenisation profile: channex
Example: POST https://pci.channex.io/api/v1/capture?api_key=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&profile=channex&method=get&url=https%3A%2F%2Fsecure.channex.io%2Fapi%2Fv1%2Fbooking_revisions
Receive booking_revisions feed
Endpoint: /api/v1/booking_revisions/feed
Tokenisation profile: channex
Example: POST https://pci.channex.io/api/v1/capture?api_key=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&profile=channex&method=get&url=https%3A%2F%2Fsecure.channex.io%2Fapi%2Fv1%2Fbooking_revisions%2Ffeed
Receive specific booking_revision
Endpoint: /api/v1/booking_revisions/:id
Tokenisation profile: channex_entity
Example: POST https://pci.channex.io/api/v1/capture?api_key=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&profile=channex_entity&method=get&url=https%3A%2F%2Fsecure.channex.io%2Fapi%2Fv1%2Fbooking_revisions%2F7b727014-1d86-4419-98b6-2ac915881f45
Last modified 2yr ago