Skip to main content

Using our Vault API service

Payment credentials can be stored securely in the vault using the Vault API. Each set of stored credentials is referred to as a vault instrument.

A successful request to store credentials returns a synchronous response with a pending status and the corresponding vault id. The vault instrument's status is then updated asynchronously. Status updates are delivered via webhook, or can be retrieved using the relevant GET endpoint.

A vault instrument can be used to process payments once its status is active.

For information on modifying existing vault instruments, see Managing vault instruments.

note

Details on required fields and validation can be found in our Open API specification.


POST https://api.paytently.io/instruments

Request:​

curl --location 'https://sandbox.api.paytently.io/instruments'
--header 'Content-Type: application/json'
--header 'Authorization: Bearer token_here'
--data-raw '{
"type": "card",
"card": {
"number": "4242424242424242",
"expiry_month": "06",
"expiry_year": "28",
"name_on_card": "Bob Bobinson"

},
"urls":{
"webhook":"https://example.com/webhooks"
}
}'

Response:​

{
"id": "ins_12345",
"status": "pending"
}