{"action":"opened","issue":{"url":"https://api.github.com/repos/samuelcolvin/nosht/issues/98","repository_url":"https://api.github.com/repos/samuelcolvin/nosht","labels_url":"https://api.github.com/repos/samuelcolvin/nosht/issues/98/labels{/name}","comments_url":"https://api.github.com/repos/samuelcolvin/nosht/issues/98/comments","events_url":"https://api.github.com/repos/samuelcolvin/nosht/issues/98/events","html_url":"https://github.com/samuelcolvin/nosht/issues/98","id":355193338,"node_id":"MDU6SXNzdWUzNTUxOTMzMzg=","number":98,"title":"API: guest makes donation","user":{"login":"samuelcolvin","id":4039449,"node_id":"MDQ6VXNlcjQwMzk0NDk=","avatar_url":"https://avatars3.githubusercontent.com/u/4039449?v=4","gravatar_id":"","url":"https://api.github.com/users/samuelcolvin","html_url":"https://github.com/samuelcolvin","followers_url":"https://api.github.com/users/samuelcolvin/followers","following_url":"https://api.github.com/users/samuelcolvin/following{/other_user}","gists_url":"https://api.github.com/users/samuelcolvin/gists{/gist_id}","starred_url":"https://api.github.com/users/samuelcolvin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samuelcolvin/subscriptions","organizations_url":"https://api.github.com/users/samuelcolvin/orgs","repos_url":"https://api.github.com/users/samuelcolvin/repos","events_url":"https://api.github.com/users/samuelcolvin/events{/privacy}","received_events_url":"https://api.github.com/users/samuelcolvin/received_events","type":"User","site_admin":false},"labels":[{"id":1039203240,"node_id":"MDU6TGFiZWwxMDM5MjAzMjQw","url":"https://api.github.com/repos/samuelcolvin/nosht/labels/integration","name":"integration","color":"33ff33","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-29T14:39:45Z","updated_at":"2018-08-29T14:39:45Z","closed_at":null,"author_association":"OWNER","body":"create an activity, a transaction and an allocation when someone donates.\r\n\r\n`POST /api/v1/{apiKey}/activities`\r\n```json\r\n{\r\n  \"ExistingConstituentId\": \"guest's ID\",\r\n  \"ActivityType\": \"Event Booked\",\r\n  \"ActivityDate\": \"[Date of booking]\", \r\n  \"Campaign\": \"[Category]\",\r\n  \"Notes\": \"extra information/dietary reqs.\",\r\n  \"Code1\": \"id of the buying individual\",\r\n  \"Number1\": \"price\",\r\n  \"Number1\": \"number of tickets\",\r\n  \"YesNo1\": \"wethery they booked it themselves\",\r\n  \"Date1\": \"[date of event]\"\r\n}\r\n```\r\n\r\n`POST /api/v1/{apiKey}/transactions`\r\n```json\r\n{\r\n  \"ConnectedConstituentId\": \"buyer's id\",\r\n  \"Channel\": \"[Event Category, donation option?]\",\r\n  \"Currency\": \"currency\",\r\n  \"Campaign\": \"[Event Category]\",\r\n  \"PaymentMethod\": \"Payment Card via Stripe\",\r\n  \"Department\": \"200 Fund Raising Income\",\r\n  \"BankAccount\": \"Unrestricted Account\",\r\n  \"DatePaid\": \"Date-Time of Transaction\",\r\n  \"Amount\": \"total including 'cover costs'\",\r\n  \"Acknowledgement\": \"[Category] plus Ticket Thanks\",\r\n  \"AcknowledgementText\": \"string\",\r\n  \"Reference\": \"nosht:category/event-slug.donation-option-id\",\r\n  \"ProcessingCostsAmount\": \"stripe fee\"\r\n}\r\n```\r\n\r\n`POST /api/v1/{apiKey}/transactions/{id}/AddAllocation`\r\n```json\r\n{\r\n  \"AllocationId\": \"presumably this shouldn't be here as we're creating an allocation\",\r\n  \"Product\": \"[event name][donation option]: coving costs\",\r\n  \"Quantity\": 1,\r\n  \"Amount\": \"amount\",\r\n  \"Department\": \"200 Fund Raising Income\",\r\n  \"Fund\": \" Unrestricted General \",\r\n  \"AllocationDate\": \"Date-Time of Transaction\",\r\n  \"CanRecoverTax\": true,\r\n  \"Comments\": \"ticket-purchase\",\r\n  \"BeneficiaryConstituentDescription\": \"string\",\r\n  \"BeneficiaryConstituentId\": \"buyer's user id?\"\r\n}\r\n```"}}
{"actor":{"display_login":"samuelcolvin"}}