Skip to main content
Sales Support

When POSTing to donation API I keep getting a 'slug can't be blank' error

We are trying to hit the following API

token.post('/api/v1/donations', headers: {"Content-Type"=>"application/json", "Accept"=>"application/json"}, body: {:donation=>{:donor_id=>1234, :amount_in_cents=>1000, :payment_type_name=>"Other", :tracking_code_slug=>"", :succeeded_at=>Wed, 07 Sep 2016 23:18:32 EDT -04:00}})

Official response from

The tracking_code_slug can't be blank. It needs the tracking code value as a string, a 'null' or just not including the resource in the request. 

Share this post

Showing 1 reaction

How would you tag this suggestion?
Please check your e-mail for a link to activate your account.