Setting a specific rebill price on an expense

Hi,

I’m trying to import some expenses using the FreeAgent API but I want to
rebill items at a specific price (currency tied to the project). In the
FreeAgent gui, I can do exactly this but I can’t see how to do this via the
API,

Can someone help me? Or point me at some documentation?

Thanks,

Dan

Hi David,

Thanks for getting back to me,

Presumably based on the expenses GUI in freeagent, the other type options
are markup and cost?On Friday, 6 February 2015 13:11:10 UTC, David Jones wrote:

Hi Dan,

Thanks for your message and apologies for the delayed response.

I’ve had a tinker with the API and it looks like our documentation is
missing one very important parameter when trying to rebill expenses.
To rebill an expense at a specific price, you need to set “rebill_type” as
“price” and “rebill_factor” at the price you wish to rebill the expense.

For example, here’s the POST request needed to rebill a £500 expense at
£550:

POST https://api.sandbox.freeagent.com/v2/expenses

{ “expense”:
{
“user”:“https://api.freeagent.com/v2/users/794”,
“project”:“https://api.freeagent.com/v2/projects/3125”,
“category”:“https://api.freeagent.com/v2/categories/268”,
“dated_on”:“2015-02-06”,
“gross_value”:“-500.00”,
“description”:“My Expense”,
“rebill_factor”:“550”,
“sales_tax_rate”:“0”,
“rebill_type”:“price”
}
}

I’ll look at getting the documentation updated but I hope this helps in
the meantime.

Kind regards,
Dave J

On 2 February 2015 at 15:21, Dan Jenkins <d...@nimbleape.com <javascript:> wrote:

Hi,

I’m trying to import some expenses using the FreeAgent API but I want to
rebill items at a specific price (currency tied to the project). In the
FreeAgent gui, I can do exactly this but I can’t see how to do this via the
API,

Can someone help me? Or point me at some documentation?

Thanks,

Dan


You received this message because you are subscribed to the Google Groups
“FreeAgent API” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to freeagent_ap...@googlegroups.com <javascript:>.
To post to this group, send email to freeag...@googlegroups.com
<javascript:>.
Visit this group at http://groups.google.com/group/freeagent_api.
For more options, visit https://groups.google.com/d/optout.


David Jones
Senior Support Engineer

FreeAgent

Hi Dan,

Yes, that’s right. The options for rebill_type are “cost”, “markup” and
“price”.
As promised, I’ll take a look at the documentation to avoid confusion for
other API users.

Thanks again for your patience!On 9 February 2015 at 09:42, Dan Jenkins dan@nimbleape.com wrote:

Hi David,

Thanks for getting back to me,

Presumably based on the expenses GUI in freeagent, the other type options
are markup and cost?

On Friday, 6 February 2015 13:11:10 UTC, David Jones wrote:

Hi Dan,

Thanks for your message and apologies for the delayed response.

I’ve had a tinker with the API and it looks like our documentation is
missing one very important parameter when trying to rebill expenses.
To rebill an expense at a specific price, you need to set “rebill_type”
as “price” and “rebill_factor” at the price you wish to rebill the expense.

For example, here’s the POST request needed to rebill a £500 expense at
£550:

POST https://api.sandbox.freeagent.com/v2/expenses

{ “expense”:
{
“user”:“https://api.freeagent.com/v2/users/794”,
“project”:“https://api.freeagent.com/v2/projects/3125”,
“category”:“https://api.freeagent.com/v2/categories/268”,
“dated_on”:“2015-02-06”,
“gross_value”:“-500.00”,
“description”:“My Expense”,
“rebill_factor”:“550”,
“sales_tax_rate”:“0”,
“rebill_type”:“price”
}
}

I’ll look at getting the documentation updated but I hope this helps in
the meantime.

Kind regards,
Dave J

On 2 February 2015 at 15:21, Dan Jenkins d...@nimbleape.com wrote:

Hi,

I’m trying to import some expenses using the FreeAgent API but I want to
rebill items at a specific price (currency tied to the project). In the
FreeAgent gui, I can do exactly this but I can’t see how to do this via the
API,

Can someone help me? Or point me at some documentation?

Thanks,

Dan


You received this message because you are subscribed to the Google
Groups “FreeAgent API” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to freeagent_ap...@googlegroups.com.
To post to this group, send email to freeag...@googlegroups.com.
Visit this group at http://groups.google.com/group/freeagent_api.
For more options, visit https://groups.google.com/d/optout.


David Jones
Senior Support Engineer

FreeAgent


You received this message because you are subscribed to the Google Groups
“FreeAgent API” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to freeagent_api+unsubscribe@googlegroups.com.
To post to this group, send email to freeagent_api@googlegroups.com.
Visit this group at http://groups.google.com/group/freeagent_api.
For more options, visit https://groups.google.com/d/optout.

David Jones
Senior Support Engineer

FreeAgent

Hi Dan,

Thanks for your message and apologies for the delayed response.

I’ve had a tinker with the API and it looks like our documentation is
missing one very important parameter when trying to rebill expenses.
To rebill an expense at a specific price, you need to set “rebill_type” as
“price” and “rebill_factor” at the price you wish to rebill the expense.

For example, here’s the POST request needed to rebill a £500 expense at
£550:

POST https://api.sandbox.freeagent.com/v2/expenses

{ “expense”:
{
“user”:“https://api.freeagent.com/v2/users/794”,
“project”:“https://api.freeagent.com/v2/projects/3125”,
“category”:“https://api.freeagent.com/v2/categories/268”,
“dated_on”:“2015-02-06”,
“gross_value”:“-500.00”,
“description”:“My Expense”,
“rebill_factor”:“550”,
“sales_tax_rate”:“0”,
“rebill_type”:“price”
}
}

I’ll look at getting the documentation updated but I hope this helps in the
meantime.

Kind regards,
Dave JOn 2 February 2015 at 15:21, Dan Jenkins dan@nimbleape.com wrote:

Hi,

I’m trying to import some expenses using the FreeAgent API but I want to
rebill items at a specific price (currency tied to the project). In the
FreeAgent gui, I can do exactly this but I can’t see how to do this via the
API,

Can someone help me? Or point me at some documentation?

Thanks,

Dan


You received this message because you are subscribed to the Google Groups
“FreeAgent API” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to freeagent_api+unsubscribe@googlegroups.com.
To post to this group, send email to freeagent_api@googlegroups.com.
Visit this group at http://groups.google.com/group/freeagent_api.
For more options, visit https://groups.google.com/d/optout.

David Jones
Senior Support Engineer

FreeAgent