Confirm an internal-credit send (atomic, idempotent)
curl --request POST \
--url https://api.pid.peridotvault.com/v1/fiat/transfers/{id}/confirm \
--cookie pid_access=const options = {method: 'POST', headers: {cookie: 'pid_access='}};
fetch('https://api.pid.peridotvault.com/v1/fiat/transfers/{id}/confirm', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pid.peridotvault.com/v1/fiat/transfers/{id}/confirm"
headers = {"cookie": "pid_access="}
response = requests.post(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.pid.peridotvault.com/v1/fiat/transfers/{id}/confirm"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("cookie", "pid_access=")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"id": "<string>",
"kind": "<string>",
"entryGroup": "<string>",
"grossIdr": "<string>",
"status": "created",
"createdAt": "2023-11-07T05:31:56Z",
"counterpartyPid": "<string>",
"feeIdr": "<string>",
"netIdr": "<string>"
}{
"statusCode": 400,
"message": [
"handle must be 3-20 chars: lowercase letters, numbers, underscore"
]
}{
"statusCode": 401,
"message": "Unauthorized"
}{
"statusCode": 404,
"message": "No Identity found"
}fiat
Confirm an internal-credit send (atomic, idempotent)
Posts sender-out + recipient-in + treasury-fee legs in one DB transaction. Re-confirming a posted intent returns the view.
POST
/
fiat
/
transfers
/
{id}
/
confirm
Confirm an internal-credit send (atomic, idempotent)
curl --request POST \
--url https://api.pid.peridotvault.com/v1/fiat/transfers/{id}/confirm \
--cookie pid_access=const options = {method: 'POST', headers: {cookie: 'pid_access='}};
fetch('https://api.pid.peridotvault.com/v1/fiat/transfers/{id}/confirm', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pid.peridotvault.com/v1/fiat/transfers/{id}/confirm"
headers = {"cookie": "pid_access="}
response = requests.post(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.pid.peridotvault.com/v1/fiat/transfers/{id}/confirm"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("cookie", "pid_access=")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"id": "<string>",
"kind": "<string>",
"entryGroup": "<string>",
"grossIdr": "<string>",
"status": "created",
"createdAt": "2023-11-07T05:31:56Z",
"counterpartyPid": "<string>",
"feeIdr": "<string>",
"netIdr": "<string>"
}{
"statusCode": 400,
"message": [
"handle must be 3-20 chars: lowercase letters, numbers, underscore"
]
}{
"statusCode": 401,
"message": "Unauthorized"
}{
"statusCode": 404,
"message": "No Identity found"
}Authorizations
JWT access token set by /auth/google/callback or /auth/refresh
Path Parameters
Response
Posted transfer view
fiat_issue | fiat_fee | fiat_transfer_in | fiat_transfer_out | fiat_adjust
Groups the legs of one logical movement
Available options:
created, posted, failed, cancelled