Appearance
/swap/list/{clientId}
Retrieves a list of client's swaps.
HTTP Request
GET https://api.q2open.io/v1/swap/list/{clientId}
Arguments
Parameter | Description |
---|---|
clientId | ID of client to retrieve swaps for. |
Returns
A dictionary with a data
property that contains an array of swap objects.
Example Request
shell
curl "https://api.q2open.io/v1/swap/list/566595c8ce88ccec69328566" \
-H "Authorization: Bearer dc220490-e6ee-11e5-8a94-e7385a8d929e" \
-G
Example Response
json
{
"data": [
{
"_id": "5b4cdadf8ea75a6602ff82bb",
"status": {
"type": "completed"
},
"auth": {
"_id": "5b4cdade36c0c10108a57405",
"status": {
"type": "verified"
}
},
"company": {
"_id": "5522f59264f5785929aa1c42",
"name": "Hulu",
"status": "operational",
"logo": {
"url": "https://s3.amazonaws.com/app-assets.unbill.io-primary/uploads/utility-provider-logos/a3c89f48378c84713fb31ce0e97bfa15.png",
"background": false
}
},
"paymentMethod": {
"_id": "5b296e67a15d4e0001174fc2",
"type": "card",
"name": "Demo User",
"status": "verified",
"card": {
"number": "XXXX7989",
"bin": "41474002",
"brand": "visa",
"type": "credit",
"expDate": "2023-06-01T12:00:00.000Z"
}
}
}
]
}