Create a new counterparty
Segurança
TokenAuth
- Mock serverhttps://docs.ripple.com/_mock/pt-br/products/wallet/api-docs/palisade-api/palisade-api/v2/counterparties
- Sandbox server (uses TESTNET data, private keys and accounts)https://api.sandbox.palisade.co/v2/counterparties
- Palisade server (uses MAINNET data, private keys and accounts)https://api.palisade.co/v2/counterparties
curl -i -X POST \
https://docs.ripple.com/_mock/pt-br/products/wallet/api-docs/palisade-api/palisade-api/v2/counterparties \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"name": "Palisade",
"description": "A counterparty used by the treasury department",
"details": {
"type": "ORGANIZATION",
"individual": {
"firstName": "Joe",
"lastName": "Bloggs",
"address": {
"address1": "Flat B",
"address2": "10 Mayo Road",
"city": "London",
"state": "Greater London",
"postCode": "W1 1AA",
"country": "United Kingdom"
}
},
"organization": {
"legalName": "Palisade Financial",
"address": {
"address1": "Flat B",
"address2": "10 Mayo Road",
"city": "London",
"state": "Greater London",
"postCode": "W1 1AA",
"country": "United Kingdom"
}
},
"dApp": {}
}
}'The ID of the user who created this counterparty
Exemplo:"ce4918bf-a199-4ce2-85a3-d0d296855384"
The date and time the counterparty was created
Exemplo:"2022-03-29T10:22:22.420Z"
The ID of the user who updated this counterparty
Exemplo:"ce4918bf-a199-4ce2-85a3-d0d296855384"
The date and time the counterparty was updated
Exemplo:"2022-03-29T10:22:22.420Z"
The counterparty description
Exemplo:"A counterparty used by the treasury department"
Resposta
{ "id": "ce4918bf-a199-4ce2-85a3-d0d296855384", "createdBy": "ce4918bf-a199-4ce2-85a3-d0d296855384", "createdAt": "2022-03-29T10:22:22.420Z", "updatedBy": "ce4918bf-a199-4ce2-85a3-d0d296855384", "updatedAt": "2022-03-29T10:22:22.420Z", "name": "Palisade", "description": "A counterparty used by the treasury department", "details": { "type": "ORGANIZATION", "individual": { … }, "organization": { … }, "dApp": {} }, "addressCount": 5 }