The provided appeal package combination is invalid error when posting to gift API

Hi guys,

I am trying to create a split gift with package IDs via the gift API, I have resolved all the system IDs of the codes however when I try submit a gift I get the following error: The provided appeal package combination is invalid

My Campaign, fund, appeal and packages are all setup in my test enviroment correctly as far as I can see. My appeal ID has the campaign, fund and packages related to it that I am passing into the API.

Below is the input, I have tried removing the campaign ID but it throws the same error.

Can anyone shed any light as to what I may be doing wrong?

  • amount: {},
    • value: 52.2
  • constituent_id: xxxxxxxxxx,
  • date: 2022-04-17 17:06:33,
  • gift_splits: [],
    • {},
      • amount: {},
        • value: 50.0
      • appeal_id: 20846,
      • fund_id: 364,
      • package_id: 23358
    • {}
      • amount: {},
        • value: 2.2
      • appeal_id: 20846,
      • fund_id: 364,
      • package_id: 23368
  • gift_status: Completed,
  • is_anonymous: false,
  • lookup_id: 145,
  • payments: [],
    • {}
      • payment_method: CreditCard
  • post_date: 2022-04-17 17:06:33,
  • post_status: NotPosted,
  • reference: 89T78181HA1595800,
  • subtype: eCard,
  • type: Donation

Many thanks in advance,

Comments

  • FYI I have sucessfully created a gift with the same code combination via NXT and the database view.

  • I re-added all the package IDs and it started working correctly, go figure. Thanks everyone for your help!

Categories