credentials are sanitized
GET /api/v1/credentials/:id
Request
Headers
Route
GET /api/v1/credentials/2
Query Parameters
{}:
cURL
curl "http://localhost:3000/api/v1/credentials/2" -X GET \
-H "Accept: application/json" \
-H "X-Api-Token: QSCNy1dTM8WfGzUnKBZsZS3Mdc8j4jGaog" \
-H "X-Api-Email: user-188@example.com" \
-H "Content-Type: application/json" \
-H "Host: school.worksonmy.computer"
Response
Headers
Status
200 OK
Body
{
"created_at": "2019-10-31T22:02:46Z",
"credentials": {
"token": "*******zR4zd"
},
"confirmation_pending?": false,
"owner_id": 273,
"owner_type": "School",
"provider": "stripe_connect",
"uid": "acct_1BXx99ErRnFhPdvI",
"info": {
},
"extra": {
"extra_info": {
"default_currency": "USD",
"currencies_supported": [
"usd",
"gbp",
"eur"
]
}
},
"is_active": true,
"id": 2,
"meta": {
"class": "credential",
"url": null,
"name": "2",
"description": "",
"image_url": null
}
}