Store Travel Address
POSThttps://api.ping.exchange/frontoffice/api/v1/travel/data
Collecting travel information and saving it in PingExchange, if given signature is valid.
- the supplier needs to initially submit their information in the
PingExchange
. - To transmit and save information in the
PingExchange
, it is essential to invoke this API.
Request
Header Parameters
- The resulting hash value is included as x-signature in the request header.
- Please be aware that currently, we exclusively offer support for
HMAC256
. - Generated hash value should be in
Hex
format.
Before calling this API, the originatorBeneficiary object should be converted into a JSON object (not indented, camelCase) and then encrypted using the HMAC SHA256
encryption algorithm with the shared key.
- application/json-patch+json
- application/json
- text/json
- application/*+json
Body
required
StoreAddress request.
-
The body object of this method comprises two primary sections:
-
originatorBeneficiary
andvaspId
.
originatorBeneficiary
object
required
Possible values: <= 255 characters
, Value must match regular expression ^[a-zA-Z0-9-.\s]*$
The Virtual Asset Provider ID.
Body
required
StoreAddress request.
-
The body object of this method comprises two primary sections:
-
originatorBeneficiary
andvaspId
.
originatorBeneficiary
object
required
Possible values: <= 255 characters
, Value must match regular expression ^[a-zA-Z0-9-.\s]*$
The Virtual Asset Provider ID.
Body
required
StoreAddress request.
-
The body object of this method comprises two primary sections:
-
originatorBeneficiary
andvaspId
.
originatorBeneficiary
object
required
Possible values: <= 255 characters
, Value must match regular expression ^[a-zA-Z0-9-.\s]*$
The Virtual Asset Provider ID.
Body
required
StoreAddress request.
-
The body object of this method comprises two primary sections:
-
originatorBeneficiary
andvaspId
.
originatorBeneficiary
object
required
Possible values: <= 255 characters
, Value must match regular expression ^[a-zA-Z0-9-.\s]*$
The Virtual Asset Provider ID.
Responses
- 204
- 400
No Content
Bad Request
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X POST 'https://api.ping.exchange/frontoffice/api/v1/travel/data' \
-H 'Content-Type: application/json-patch+json' \
--data-raw '{
"originatorBeneficiary": {
"originator": {
"customerId": "7f8c5d2a-6d4e-4f3b-bf7a-9a0e8c1cd2a9",
"name": "John Doe",
"physicalAddress": "123 Maple Street, Greenfield, CA 98765",
"walletAddress": "0x1aBcD23Ef4567aBCdeF890123456789aBCdEf012",
"documentNumber": "7644221063",
"dateOfBirth": "2000/01/01",
"placeOfBirth": "string"
},
"beneficiary": {
"customerId": "7f8c5d2a-6d4e-4f3b-bf7a-9a0e8c1cd2a9",
"name": "Jane Doe",
"walletAddress": "0x9876543210ABCDEF0123456789abcdefABCDEF01"
},
"originatorVASP": "string",
"assetId": "xcb",
"transactionId": "0x3f5ce5fbfe3e9af3971dd833d26ba9b5c936f0be2ff1a2b1e37a8d6ae7e8a6c4",
"amount": 1.05
},
"vaspId": "Ping"
}'