API V1 - POST funding instrument endpiont takes in 2 'type' parameters


#1

According to Twitter documentation,

_POST /accounts/:account_id/funding_instruments takes in 2 different ‘type’ parameters, one for credit card type and one for currency type.

I am a bit confused. Could you please advise?


#2

Hi @etam,

I think that is a bug in the documentation, if you take a look into EXAMPLE RESULT you can see that, related to USD or EUR is the field “currency”

`{
“data_type”: “funding_instrument”,
“data”: {
“start_time”: “2016-03-13T03:04:05Z”,
“description”: “(no payment method has been set up yet)”,
“credit_limit_local_micro”: 20000000,
“end_time”: null,
“cancelled”: false,
“id”: “hxhpi”,
“paused”: false,
“account_id”: “gq43rq”,
“reasons_not_able_to_fund”: [],
“currency”: “USD”,
“funded_amount_local_micro”: null,
“created_at”: “2016-03-15T09:09:31Z”,
“type”: “CREDIT_CARD”,
“able_to_fund”: true,
“updated_at”: “2016-03-15T09:09:31Z”,
“credit_remaining_local_micro”: null,
“deleted”: false
},
“request”: {
“params”: {
“start_time”: “2016-03-13T03:04:05Z”,
“credit_limit_local_micro”: 20000000,
“account_id”: “gq43rq”,
“currency”: “USD”,
“type”: “CREDIT_CARD”
}
}
}

So, the second one is “currency”`

Regards,


#3

Apologies, can confirm this is a documentation error we will fix (indeed the second type parameter should be “currency”)