Get paykey review details
client.Paykeys.Review.Get(ctx, id, query) (*PaykeyReviewGetResponse, error)
GET/v1/paykeys/{id}/review
Get paykey review details
package main
import (
"context"
"fmt"
"github.com/straddleio/straddle-go"
"github.com/straddleio/straddle-go/option"
)
func main() {
client := straddle.NewClient(
option.WithAPIKey("My API Key"),
)
review, err := client.Paykeys.Review.Get(
context.TODO(),
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
straddle.PaykeyReviewGetParams{
},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", review.Data)
}
{
"data": {
"paykey_details": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"config": {
"processing_method": "inline",
"sandbox_outcome": "standard"
},
"created_at": "2019-12-27T18:11:19.117Z",
"label": "label",
"paykey": "paykey",
"source": "bank_account",
"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"
},
"unblock_eligible": true
},
"verification_details": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"breakdown": {
"account_validation": {
"codes": [
"string"
],
"decision": "accept",
"reason": "reason"
},
"name_match": {
"codes": [
"string"
],
"decision": "accept",
"correlation_score": 0,
"customer_name": "customer_name",
"matched_name": "matched_name",
"names_on_account": [
"string"
],
"reason": "reason"
}
},
"created_at": "2019-12-27T18:11:19.117Z",
"decision": "accept",
"messages": {
"foo": "string"
},
"updated_at": "2019-12-27T18:11:19.117Z"
}
},
"meta": {
"api_request_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"api_request_timestamp": "2019-12-27T18:11:19.117Z"
},
"response_type": "object"
}Returns Examples
{
"data": {
"paykey_details": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"config": {
"processing_method": "inline",
"sandbox_outcome": "standard"
},
"created_at": "2019-12-27T18:11:19.117Z",
"label": "label",
"paykey": "paykey",
"source": "bank_account",
"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"
},
"unblock_eligible": true
},
"verification_details": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"breakdown": {
"account_validation": {
"codes": [
"string"
],
"decision": "accept",
"reason": "reason"
},
"name_match": {
"codes": [
"string"
],
"decision": "accept",
"correlation_score": 0,
"customer_name": "customer_name",
"matched_name": "matched_name",
"names_on_account": [
"string"
],
"reason": "reason"
}
},
"created_at": "2019-12-27T18:11:19.117Z",
"decision": "accept",
"messages": {
"foo": "string"
},
"updated_at": "2019-12-27T18:11:19.117Z"
}
},
"meta": {
"api_request_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"api_request_timestamp": "2019-12-27T18:11:19.117Z"
},
"response_type": "object"
}