Create a paykey from a Quiltt token
/v1/bridge/quiltt
Creates a new paykey using a Quiltt token as the source. This endpoint allows you to create a secure payment token linked to a bank account authenticated through Quiltt.
Header Parameters
"Correlation-Id": optional string
"Idempotency-Key": optional string
"Request-Id": optional string
"Straddle-Account-Id": optional string
Body Parameters
Returns
Create a paykey from a Quiltt token
curl https://sandbox.straddle.com/v1/bridge/quiltt \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $STRADDLE_API_KEY" \
-d '{
"customer_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"quiltt_token": "quiltt_token"
}'
{
"data": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"config": {
"processing_method": "inline",
"sandbox_outcome": "standard"
},
"created_at": "2019-12-27T18:11:19.117Z",
"label": "Bank of America ****1234",
"paykey": "paykey",
"source": "straddle",
"status": "pending",
"updated_at": "2019-12-27T18:11:19.117Z",
"balance": {
"status": "pending",
"account_balance": 0,
"updated_at": "2019-12-27T18:11:19.117Z"
},
"bank_data": {
"account_number": "****1234",
"account_type": "checking",
"routing_number": "021000021"
},
"customer_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"expires_at": "2019-12-27T18:11:19.117Z",
"external_id": "external_id",
"institution_name": "Bank of America",
"metadata": {
"foo": "string"
},
"status_details": {
"changed_at": "2019-12-27T18:11:19.117Z",
"message": "Bank account sucesfully validated",
"reason": "insufficient_funds",
"source": "watchtower",
"code": "code"
}
},
"meta": {
"api_request_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"api_request_timestamp": "2019-12-27T18:11:19.117Z"
},
"response_type": "object"
}Returns Examples
{
"data": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"config": {
"processing_method": "inline",
"sandbox_outcome": "standard"
},
"created_at": "2019-12-27T18:11:19.117Z",
"label": "Bank of America ****1234",
"paykey": "paykey",
"source": "straddle",
"status": "pending",
"updated_at": "2019-12-27T18:11:19.117Z",
"balance": {
"status": "pending",
"account_balance": 0,
"updated_at": "2019-12-27T18:11:19.117Z"
},
"bank_data": {
"account_number": "****1234",
"account_type": "checking",
"routing_number": "021000021"
},
"customer_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"expires_at": "2019-12-27T18:11:19.117Z",
"external_id": "external_id",
"institution_name": "Bank of America",
"metadata": {
"foo": "string"
},
"status_details": {
"changed_at": "2019-12-27T18:11:19.117Z",
"message": "Bank account sucesfully validated",
"reason": "insufficient_funds",
"source": "watchtower",
"code": "code"
}
},
"meta": {
"api_request_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"api_request_timestamp": "2019-12-27T18:11:19.117Z"
},
"response_type": "object"
}