Create a Pledge Gift

I am trying to create pledge gifts, for which I use the following service https://developer.sky.blackbaud.com/docs/services/gft-gifts/operations/CreateGift.
However I am getting the following error message:

[{"message":"The requiered argument 'addGift' was not asigned a value","error_name":"RequiredArgumentNoAssigmentValue","error_code":2,"raw_message":"The required argument '{
0}' was not assigned a value","error_args":["addGift"]}]

Send the following data structure:

{
"amount": {
"value": 1
},
"comments": "Comentario",
"constituent": {
"id": "16208"
},
"gift_date": "2022-12-16T23:02:01Z",
"gift_post_status": "NotPosted",
"gift_post_date": "2022-12-16T23:02:01Z",
"gift_splits": [
{
"amount": {
"value": 1
},
"fund_id": "393",
"appeal_id": "938"
}
],
"gift_type": "Pledge",
"payments": [
{
"amount": {
"value": 1
},
"account_token": "********-****-****-****-c180228155b4",
"configuration_id": "********-****-****-****-eff7ac8eb135",
"method": "CreditCard",
"account_details": {
"account_holder": "Eden Stojan",
"card_type": "Visa",
"expiration_date": {
"y": 2028,
"m": 6
}
}
}
],
"schedule": {
"frequency": "Monthly",
"start_date": "2022-12-18",
"end_date": "2023-12-18"
},
"receipts": {
"receipt_amount": {
"value": 1
},
"receipt_status": "DoNotReceipt"
}
}

  • Do I need to add more information to my data structure?
  • Is there misconfigured data?

Comments

Categories