Sales Refund as type is not accepted

Hi,

I am selling desktop app via Stripe and PayPal.

I wrote API to add all the transactions with correct VAT MOSS countries to
the FreeAgent.
I stumbled across one obstacle:

I am sending this request to explain the 8.99€, money out transaction:

POST https://api.freeagent.com/v2/bank_transaction_explanations

{
u ‘headers’: {
u ‘Content-Type’: u ‘application/json’,
u ‘Accept’: u ‘application/json’,
u ‘Authorization’: u ‘Bearer 0000000000000000’
}, u ‘json’: {
u ‘bank_transaction_explanation’: {
u ‘dated_on’: u ‘2016-04-16’,
u ‘description’: u ‘7NP2XXXXXXXF383922B / anonymous@gmail.com /
PL//OTHER/’,
u ‘ec_status’: u ‘EC VAT MOSS’,
u ‘gross_value’: u ‘-8.99’,
u ‘bank_transaction’: u
https://api.freeagent.com/v2/bank_transactions/86739488’,
u ‘place_of_supply’: u ‘Poland’,
u ‘entry_type’: u ‘Sales Refund’
}
}
}

Unfortunately, I am getting an error that “Sales Refund” is not valid base
entry type.

What am I doing wrong?

The name of your app (as registered in Dev Dashboard): Stripe Connection
Timestamps of your requests (in UTC): 11:30 UTC
Which environment are you querying? (production or sandbox)? production

Hi B,

You don’t need to pass in “entry_type” as a parameter - this field is built
from the “category” parameter (which is omitted in your request).

In your case, you would allocate the explanation to the “Sales” category
(001). See below:

{“bank_transaction_explanation”:
{
“dated_on”:“2016-04-16”,
“description”:“7NP2XXXXXXXF383922B / anonymous@gmail.com / PL//OTHER/”,
“ec_status”:“EC VAT MOSS”,
“gross_value”:“-8.99”,

“bank_transaction”:“https://api.freeagent.com/v2/bank_transactions/86739488”,
“place_of_supply”:“Poland”,
“category”:“https://api.freeagent.com/v2/categories/001
}
}

Hope this helps!

Thanks,

Roberto La Greca
Suport Engineer
FreeAgentOn Monday, 18 April 2016 09:15:09 UTC+1, b@hern.as wrote:

Hi,

I am selling desktop app via Stripe and PayPal.

I wrote API to add all the transactions with correct VAT MOSS countries to
the FreeAgent.
I stumbled across one obstacle:

I am sending this request to explain the 8.99€, money out transaction:

POST https://api.freeagent.com/v2/bank_transaction_explanations

{
u ‘headers’: {
u ‘Content-Type’: u ‘application/json’,
u ‘Accept’: u ‘application/json’,
u ‘Authorization’: u ‘Bearer 0000000000000000’
}, u ‘json’: {
u ‘bank_transaction_explanation’: {
u ‘dated_on’: u ‘2016-04-16’,
u ‘description’: u ‘7NP2XXXXXXXF383922B / anonymous@gmail.com /
PL//OTHER/’,
u ‘ec_status’: u ‘EC VAT MOSS’,
u ‘gross_value’: u ‘-8.99’,
u ‘bank_transaction’: u ’
https://api.freeagent.com/v2/bank_transactions/86739488’,
u ‘place_of_supply’: u ‘Poland’,
u ‘entry_type’: u ‘Sales Refund’
}
}
}

Unfortunately, I am getting an error that “Sales Refund” is not valid base
entry type.

What am I doing wrong?

The name of your app (as registered in Dev Dashboard): Stripe Connection
Timestamps of your requests (in UTC): 11:30 UTC
Which environment are you querying? (production or sandbox)? production