{"namespace":"givewp\/v3","routes":{"\/givewp\/v3":{"namespace":"givewp\/v3","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"namespace":{"default":"givewp\/v3","required":false},"context":{"default":"view","required":false}}}],"_links":{"self":[{"href":"https:\/\/www.primature.gouv.ht\/wp-json\/givewp\/v3"}]}},"\/givewp\/v3\/form\/(?P<id>\\d+)":{"namespace":"givewp\/v3","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"id":{"type":"integer","required":false}}},{"methods":["POST"],"args":{"id":{"type":"integer","required":false},"blocks":{"type":"string","required":false}}}]},"\/givewp\/v3\/campaigns\/list-table":{"namespace":"givewp\/v3","methods":["GET","DELETE"],"endpoints":[{"methods":["GET"],"args":{"page":{"type":"integer","default":1,"minimum":1,"required":false},"perPage":{"type":"integer","default":30,"minimum":1,"required":false},"search":{"type":"string","required":false},"status":{"type":"string","required":false},"sortColumn":{"type":"string","default":"id","required":false},"sortDirection":{"type":"string","default":"asc","enum":["asc","desc"],"required":false},"locale":{"type":"string","default":"en_US","required":false}}},{"methods":["DELETE"],"args":{"ids":{"type":"string","required":true}}}],"_links":{"self":[{"href":"https:\/\/www.primature.gouv.ht\/wp-json\/givewp\/v3\/campaigns\/list-table"}]}},"\/givewp\/v3\/campaigns\/(?P<id>[\\d]+)":{"namespace":"givewp\/v3","methods":["GET","POST","PUT","PATCH"],"endpoints":[{"methods":["GET"],"args":{"id":{"type":"integer","required":true}}},{"methods":["POST","PUT","PATCH"],"args":{"title":{"description":"Campaign title","type":"string","minLength":3,"maxLength":128,"required":false},"status":{"description":"Campaign status","type":"string","enum":["active","archived"],"required":false},"shortDescription":{"description":"Campaign short description","type":["string","null"],"maxLength":120,"required":false},"longDescription":{"description":"Campaign long description","type":["string","null"],"required":false},"logo":{"description":"Campaign logo URL","type":["string","null"],"format":"uri","required":false},"image":{"description":"Campaign featured image URL","type":["string","null"],"format":"uri","required":false},"primaryColor":{"description":"Primary color for the campaign","type":["string","null"],"required":false},"secondaryColor":{"description":"Secondary color for the campaign","type":["string","null"],"required":false},"goal":{"description":"Campaign goal","type":"integer","required":false},"goalType":{"description":"Campaign goal type","type":"string","enum":["amount","donations","donors","amountFromSubscriptions","subscriptions","donorsFromSubscriptions"],"required":false},"type":{"description":"Campaign type","type":"string","enum":["core","p2p"],"required":false},"pageId":{"description":"Campaign page ID","type":["integer","null"],"required":false},"startDate":{"description":"Campaign start date","type":["string","null"],"format":"date-time","required":false},"endDate":{"description":"Campaign end date","type":["string","null"],"format":"date-time","required":false},"createdAt":{"description":"Campaign creation date (Y-m-d H:i:s)","type":["string","null"],"format":"date-time","required":false}}}]},"\/givewp\/v3\/campaigns":{"namespace":"givewp\/v3","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"status":{"type":"array","items":{"type":"string","enum":["active","draft","archived"]},"default":["active"],"required":false},"ids":{"type":"array","default":[],"required":false},"page":{"type":"integer","default":1,"minimum":1,"required":false},"per_page":{"type":"integer","default":30,"minimum":1,"maximum":100,"required":false},"sortBy":{"type":"string","enum":["date","amount","donors","donations"],"default":"date","required":false},"orderBy":{"type":"string","enum":["asc","desc"],"default":"desc","required":false},"search":{"type":"string","default":"","required":false}}},{"methods":["POST"],"args":{"title":{"description":"Campaign title","type":"string","minLength":3,"maxLength":128,"required":true},"status":{"default":"active","description":"Campaign status","type":"string","enum":["active","archived"],"required":false},"shortDescription":{"description":"Campaign short description","type":["string","null"],"maxLength":120,"required":false},"longDescription":{"description":"Campaign long description","type":["string","null"],"required":false},"logo":{"type":"string","format":"uri","required":false},"image":{"type":"string","format":"uri","required":false},"primaryColor":{"description":"Primary color for the campaign","type":["string","null"],"required":false},"secondaryColor":{"description":"Secondary color for the campaign","type":["string","null"],"required":false},"goal":{"description":"Campaign goal","type":"integer","required":true},"goalType":{"description":"Campaign goal type","type":"string","enum":["amount","donations","donors","amountFromSubscriptions","subscriptions","donorsFromSubscriptions"],"required":true},"type":{"default":"core","description":"Campaign type","type":"string","enum":["core","p2p"],"required":false},"pageId":{"description":"Campaign page ID","type":["integer","null"],"required":false},"startDate":{"description":"Campaign start date","type":["string","null"],"format":"date-time","required":false},"endDate":{"description":"Campaign end date","type":["string","null"],"format":"date-time","required":false},"createdAt":{"description":"Campaign creation date (Y-m-d H:i:s)","type":["string","null"],"format":"date-time","required":false},"startDateTime":{"type":"string","format":"date-time","required":false},"endDateTime":{"type":"string","format":"date-time","required":false}}}],"_links":{"self":[{"href":"https:\/\/www.primature.gouv.ht\/wp-json\/givewp\/v3\/campaigns"}]}},"\/givewp\/v3\/campaigns\/(?P<id>[0-9]+)\/merge":{"namespace":"givewp\/v3","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"type":"integer","required":true},"campaignsToMergeIds":{"type":"array","items":{"type":"integer"},"required":true}}}]},"\/givewp\/v3\/campaigns\/(?P<id>[0-9]+)\/duplicate":{"namespace":"givewp\/v3","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"type":"integer","required":true}}}]},"\/givewp\/v3\/campaigns\/(?P<id>[0-9]+)\/comments":{"namespace":"givewp\/v3","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"type":"integer","required":true},"perPage":{"type":"integer","required":false},"anonymous":{"type":"boolean","default":true,"required":false}}}]},"\/givewp\/v3\/campaigns\/(?P<id>[0-9]+)\/page":{"namespace":"givewp\/v3","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"type":"integer","required":true}}}]},"\/givewp\/v3\/campaigns\/(?P<id>[0-9]+)\/revenue":{"namespace":"givewp\/v3","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"type":"integer","required":true}}}]},"\/givewp\/v3\/campaigns\/(?P<id>[0-9]+)\/statistics":{"namespace":"givewp\/v3","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"type":"integer","required":true},"rangeInDays":{"type":"integer","default":0,"required":false}}}]},"\/givewp\/v3\/donors":{"namespace":"givewp\/v3","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":30,"minimum":1,"maximum":100,"required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"sort":{"description":"The field by which to sort the donors.","type":"string","default":"id","enum":["id","createdAt","name","firstName","lastName","totalAmountDonated","totalNumberOfDonations"],"required":false},"direction":{"description":"The direction of sorting: ascending (ASC) or descending (DESC).","type":"string","default":"DESC","enum":["ASC","DESC"],"required":false},"onlyWithDonations":{"description":"Whether to include only donors who have made donations.","type":"boolean","default":true,"required":false},"mode":{"description":"The mode of donations to filter by \"live\" or \"test\" (it only gets applied when \"onlyWithDonations\" is set to true).","type":"string","default":"live","enum":["live","test"],"required":false},"campaignId":{"description":"The ID of the campaign to filter donors by - zero or empty mean \"all campaigns\" (it only gets applied when \"onlyWithDonations\" is set to true).","type":"integer","default":0,"required":false},"includeSensitiveData":{"description":"Include or not include data that can be used to contact or locate the donors, such as phone number, email, billing address, etc. (require proper permissions)","type":"boolean","default":false,"required":false},"anonymousDonors":{"description":"Exclude, include, or redact data that can be used to identify the donors, such as ID, first name, last name, etc (require proper permissions).","type":"string","default":"exclude","enum":["exclude","include","redact"],"required":false}}}],"_links":{"self":[{"href":"https:\/\/www.primature.gouv.ht\/wp-json\/givewp\/v3\/donors"}]}},"\/givewp\/v3\/donors\/(?P<id>[\\d]+)":{"namespace":"givewp\/v3","methods":["GET","POST","PUT","PATCH"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"The donor ID.","type":"integer","required":true},"_embed":{"description":"Whether to embed related resources in the response. It can be true when we want to embed all available resources, or a string like \"givewp:statistics\" when we wish to embed only a specific one. Available embeddable resources: givewp:statistics | givewp:donations | givewp:subscriptions. IMPORTANT: Use with caution when setting to true, as donations and subscriptions return 30 items by default, which can result in a large payload.","type":["string","boolean"],"default":false,"required":false},"mode":{"description":"The mode of donations to filter by \"live\" or \"test\" (it only gets applied when \"_embed\" is set).","type":"string","default":"live","enum":["live","test"],"required":false},"campaignId":{"description":"The ID of the campaign to filter donors by - zero or empty mean \"all campaigns\" (it only gets applied when \"_embed\" is set).","type":"integer","default":0,"required":false},"includeSensitiveData":{"description":"Include or not include data that can be used to contact or locate the donors, such as phone number, email, billing address, etc. (require proper permissions)","type":"boolean","default":false,"required":false},"anonymousDonors":{"description":"Exclude, include, or redact data that can be used to identify the donors, such as ID, first name, last name, etc (require proper permissions).","type":"string","default":"exclude","enum":["exclude","include","redact"],"required":false}}},{"methods":["POST","PUT","PATCH"],"args":{"prefix":{"description":"Donor prefix","type":["string","null"],"format":"text-field","required":false},"firstName":{"description":"Donor first name","type":"string","format":"text-field","minLength":1,"maxLength":128,"required":false},"lastName":{"description":"Donor last name","type":"string","format":"text-field","minLength":1,"maxLength":128,"required":false},"email":{"description":"Donor email","type":"string","format":"email","required":false},"additionalEmails":{"description":"Donor additional emails","type":"array","items":{"type":"string","format":"email"},"required":false},"phone":{"description":"Donor phone","type":["string","null"],"pattern":"^$|^[\\+]?[1-9][\\d\\s\\-\\(\\)]{7,20}$","required":false},"company":{"description":"Donor company","type":["string","null"],"format":"text-field","required":false},"avatarId":{"description":"Donor avatar ID","type":["integer","string","null"],"pattern":"^$|^[0-9]+$","required":false},"addresses":{"description":"Donor addresses","type":"array","items":{"type":"object","description":"Donor address","properties":{"address1":{"type":"string","description":"Donor address line 1","format":"text-field"},"address2":{"type":"string","description":"Donor address line 2","format":"text-field"},"city":{"type":"string","description":"Donor address city","format":"text-field"},"state":{"type":"string","description":"Donor address state","format":"text-field"},"country":{"type":"string","description":"Donor address country","format":"text-field"},"zip":{"type":"string","description":"Donor address zip","format":"text-field"}}},"required":false}}}]},"\/givewp\/v3\/donors\/(?P<donorId>[\\d]+)\/statistics":{"namespace":"givewp\/v3","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"donorId":{"description":"The donor ID.","type":"integer","required":true},"mode":{"description":"The mode of donations to filter by \"live\" or \"test\".","type":"string","default":"live","enum":["live","test"],"required":false},"campaignId":{"description":"The ID of the campaign to filter donors by - zero or empty mean \"all campaigns\".","type":"integer","default":0,"required":false}}}]},"\/givewp\/v3\/donors\/(?P<donorId>[\\d]+)\/notes":{"namespace":"givewp\/v3","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"donorId":{"description":"The ID of the donor this note belongs to.","type":"integer","required":true},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":30,"minimum":1,"maximum":100,"required":false}}},{"methods":["POST"],"args":{"donorId":{"description":"The ID of the donor this note belongs to.","type":"integer","required":true},"content":{"description":"The content of the note.","type":"string","minLength":1,"format":"text-field","required":true},"type":{"description":"The type of the note.","type":"string","enum":["admin","donor"],"default":"admin","required":true}}}]},"\/givewp\/v3\/donors\/(?P<donorId>[\\d]+)\/notes\/(?P<id>[\\d]+)":{"namespace":"givewp\/v3","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"donorId":{"description":"The ID of the donor this note belongs to.","type":"integer","required":true},"id":{"description":"The note ID.","type":"integer","required":true}}},{"methods":["POST","PUT","PATCH"],"args":{"donorId":{"description":"The ID of the donor this note belongs to.","type":"integer","required":true},"content":{"description":"The content of the note.","type":"string","minLength":1,"format":"text-field","required":false},"type":{"description":"The type of the note.","type":"string","enum":["admin","donor"],"default":"admin","required":false},"id":{"description":"The note ID.","type":"integer","required":true}}},{"methods":["DELETE"],"args":{"donorId":{"description":"The ID of the donor this note belongs to.","type":"integer","required":true},"id":{"description":"The note ID.","type":"integer","required":true}}}]},"\/givewp\/v3\/donations\/(?P<id>[\\d]+)":{"namespace":"givewp\/v3","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"_embed":{"description":"Whether to embed related resources in the response. It can be true when we want to embed all available resources, or a string like \"givewp:donor\" when we wish to embed only a specific one.","type":["string","boolean"],"default":false,"required":false},"id":{"type":"integer","required":true},"includeSensitiveData":{"type":"boolean","default":false,"required":false},"anonymousDonations":{"type":"string","default":"exclude","enum":["exclude","include","redact"],"required":false}}},{"methods":["POST","PUT","PATCH"],"args":{"donorId":{"description":"Donor ID","type":"integer","required":false},"firstName":{"description":"Donor first name","type":"string","format":"text-field","required":false},"lastName":{"description":"Donor last name","type":["string","null"],"format":"text-field","required":false},"honorific":{"description":"Donor honorific\/prefix","type":["string","null"],"enum":["Mr.","Mrs.","Ms.","anonymous",null],"required":false},"email":{"description":"Donor email","type":"string","format":"email","required":false},"phone":{"description":"Donor phone","type":["string","null"],"format":"text-field","required":false},"company":{"description":"Donor company","type":["string","null"],"format":"text-field","required":false},"amount":{"description":"Donation amount","type":"object","properties":{"value":{"type":"number","description":"Value in decimal format"},"valueInMinorUnits":{"type":"integer","description":"Value in minor units (cents)","readonly":true},"currency":{"type":"string","format":"text-field","description":"Currency code in uppercase three letter format (e.g., USD, EUR)"}},"required":false},"feeAmountRecovered":{"description":"Fee amount recovered","type":["object","null"],"properties":{"value":{"type":"number","description":"Value in decimal format"},"valueInMinorUnits":{"type":"integer","description":"Value in minor units (cents)","readonly":true},"currency":{"type":"string","format":"text-field","description":"Currency code in uppercase three letter format (e.g., USD, EUR)"}},"required":false},"status":{"description":"Donation status","type":"string","enum":["pending","processing","publish","refunded","failed","cancelled","abandoned","preapproval","revoked","trash","give_subscription"],"required":false},"type":{"description":"Donation type","type":"string","enum":["single","subscription","renewal"],"required":false},"gatewayId":{"description":"Payment gateway ID","type":"string","format":"text-field","required":false},"mode":{"description":"Donation mode (live or test)","type":"string","enum":["test","live"],"required":false},"anonymous":{"description":"Whether the donation is anonymous","type":"boolean","required":false},"campaignId":{"description":"Campaign ID","type":"integer","required":false},"formId":{"description":"Form ID","type":"integer","required":false},"formTitle":{"description":"Form title","type":"string","format":"text-field","required":false},"subscriptionId":{"description":"Subscription ID","type":["integer","null"],"required":false},"levelId":{"description":"Level ID","type":["string","null"],"format":"text-field","required":false},"gatewayTransactionId":{"description":"Gateway transaction ID","type":["string","null"],"format":"text-field","required":false},"exchangeRate":{"description":"Exchange rate","type":"string","format":"text-field","required":false},"comment":{"description":"Donation comment","type":["string","null"],"format":"text-field","required":false},"billingAddress":{"description":"Billing address","type":["object","null"],"properties":{"address1":{"type":["string","null"],"format":"text-field"},"address2":{"type":["string","null"],"format":"text-field"},"city":{"type":["string","null"],"format":"text-field"},"state":{"type":["string","null"],"format":"text-field"},"country":{"type":["string","null"],"format":"text-field"},"zip":{"type":["string","null"],"format":"text-field"}},"required":false},"donorIp":{"description":"Donor IP address (sensitive data)","type":["string","null"],"format":"text-field","required":false},"purchaseKey":{"description":"Purchase key (sensitive data)","type":["string","null"],"format":"text-field","required":false},"createdAt":{"description":"Created at Date and Time string","type":["string","null"],"format":"date-time","required":false},"updatedAt":{"description":"Created at Date and Time string","type":["string","null"],"format":"date-time","required":false},"updateRenewalDate":{"description":"Whether to update the subscription renewal date with the createdAt date when creating subscription or renewal donations","type":"boolean","required":false},"anyOf":{"required":false}}},{"methods":["DELETE"],"args":{"id":{"type":"integer","required":true},"force":{"type":"boolean","default":false,"description":"Whether to permanently delete (force=true) or move to trash (force=false, default).","required":false}}}]},"\/givewp\/v3\/donations":{"namespace":"givewp\/v3","methods":["GET","POST","DELETE"],"endpoints":[{"methods":["GET"],"args":{"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":30,"minimum":1,"maximum":100,"required":false},"sort":{"type":"string","default":"id","enum":["id","createdAt","updatedAt","status","amount","feeAmountRecovered","donorId","firstName","lastName"],"required":false},"direction":{"type":"string","default":"DESC","enum":["ASC","DESC"],"required":false},"mode":{"type":"string","default":"live","enum":["live","test"],"required":false},"status":{"type":"array","items":{"type":"string","enum":["any","publish","give_subscription","pending","processing","refunded","revoked","failed","cancelled","abandoned","preapproval"]},"default":["any"],"required":false},"campaignId":{"type":"integer","default":0,"required":false},"donorId":{"type":"integer","default":0,"required":false},"subscriptionId":{"type":"integer","default":0,"required":false},"includeSensitiveData":{"type":"boolean","default":false,"required":false},"anonymousDonations":{"type":"string","default":"exclude","enum":["exclude","include","redact"],"required":false},"force":{"type":"boolean","default":false,"description":"Whether to permanently delete (force=true) or move to trash (force=false, default).","required":false}}},{"methods":["POST"],"args":{"donorId":{"description":"Donor ID","type":"integer","required":false},"firstName":{"description":"Donor first name","type":"string","format":"text-field","required":false},"lastName":{"description":"Donor last name","type":["string","null"],"format":"text-field","required":false},"honorific":{"description":"Donor honorific\/prefix","type":["string","null"],"enum":["Mr.","Mrs.","Ms.","anonymous",null],"required":false},"email":{"description":"Donor email","type":"string","format":"email","required":false},"phone":{"description":"Donor phone","type":["string","null"],"format":"text-field","required":false},"company":{"description":"Donor company","type":["string","null"],"format":"text-field","required":false},"amount":{"description":"Donation amount","type":"object","properties":{"value":{"type":"number","description":"Value in decimal format"},"valueInMinorUnits":{"type":"integer","description":"Value in minor units (cents)","readonly":true},"currency":{"type":"string","format":"text-field","description":"Currency code in uppercase three letter format (e.g., USD, EUR)"}},"required":false},"feeAmountRecovered":{"description":"Fee amount recovered","type":["object","null"],"properties":{"value":{"type":"number","description":"Value in decimal format"},"valueInMinorUnits":{"type":"integer","description":"Value in minor units (cents)","readonly":true},"currency":{"type":"string","format":"text-field","description":"Currency code in uppercase three letter format (e.g., USD, EUR)"}},"required":false},"status":{"default":"publish","description":"Donation status","type":"string","enum":["pending","processing","publish","refunded","failed","cancelled","abandoned","preapproval","revoked","trash","give_subscription"],"required":false},"type":{"default":"single","description":"Donation type","type":"string","enum":["single","subscription","renewal"],"required":true},"gatewayId":{"description":"Payment gateway ID","type":"string","format":"text-field","required":false},"mode":{"description":"Donation mode (live or test)","type":"string","enum":["test","live"],"required":false},"anonymous":{"default":false,"description":"Whether the donation is anonymous","type":"boolean","required":false},"campaignId":{"description":"Campaign ID","type":"integer","required":false},"formId":{"description":"Form ID","type":"integer","required":false},"formTitle":{"description":"Form title","type":"string","format":"text-field","required":false},"subscriptionId":{"description":"Subscription ID","type":["integer","null"],"required":false},"levelId":{"description":"Level ID","type":["string","null"],"format":"text-field","required":false},"gatewayTransactionId":{"description":"Gateway transaction ID","type":["string","null"],"format":"text-field","required":false},"exchangeRate":{"default":"1","description":"Exchange rate","type":"string","format":"text-field","required":false},"comment":{"description":"Donation comment","type":["string","null"],"format":"text-field","required":false},"billingAddress":{"description":"Billing address","type":["object","null"],"properties":{"address1":{"type":["string","null"],"format":"text-field"},"address2":{"type":["string","null"],"format":"text-field"},"city":{"type":["string","null"],"format":"text-field"},"state":{"type":["string","null"],"format":"text-field"},"country":{"type":["string","null"],"format":"text-field"},"zip":{"type":["string","null"],"format":"text-field"}},"required":false},"donorIp":{"description":"Donor IP address (sensitive data)","type":["string","null"],"format":"text-field","required":false},"purchaseKey":{"description":"Purchase key (sensitive data)","type":["string","null"],"format":"text-field","required":false},"createdAt":{"description":"Created at Date and Time string","type":["string","null"],"format":"date-time","required":false},"updatedAt":{"description":"Created at Date and Time string","type":["string","null"],"format":"date-time","required":false},"updateRenewalDate":{"default":false,"description":"Whether to update the subscription renewal date with the createdAt date when creating subscription or renewal donations","type":"boolean","required":false},"anyOf":{"required":false}}},{"methods":["DELETE"],"args":{"ids":{"description":"Array of donation IDs to delete","type":"array","items":{"type":"integer"},"required":true},"force":{"type":"boolean","default":false,"description":"Whether to permanently delete (force=true) or move to trash (force=false, default).","required":false}}}],"_links":{"self":[{"href":"https:\/\/www.primature.gouv.ht\/wp-json\/givewp\/v3\/donations"}]}},"\/givewp\/v3\/donations\/(?P<id>[\\d]+)\/refund":{"namespace":"givewp\/v3","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"type":"integer","required":true}}}]},"\/givewp\/v3\/donations\/(?P<donationId>[\\d]+)\/notes":{"namespace":"givewp\/v3","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"donationId":{"description":"The ID of the donation this note belongs to.","type":"integer","required":true},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":30,"minimum":1,"maximum":100,"required":false}}},{"methods":["POST"],"args":{"donationId":{"description":"The ID of the donation this note belongs to.","type":"integer","required":true},"content":{"description":"The content of the note.","type":"string","minLength":1,"format":"text-field","required":true},"type":{"description":"The type of the note.","type":"string","enum":["admin","donation"],"default":"admin","required":true}}}]},"\/givewp\/v3\/donations\/(?P<donationId>[\\d]+)\/notes\/(?P<id>[\\d]+)":{"namespace":"givewp\/v3","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"donationId":{"description":"The ID of the donation this note belongs to.","type":"integer","required":true},"id":{"description":"The note ID.","type":"integer","required":true}}},{"methods":["POST","PUT","PATCH"],"args":{"donationId":{"description":"The ID of the donation this note belongs to.","type":"integer","required":true},"content":{"description":"The content of the note.","type":"string","minLength":1,"format":"text-field","required":false},"type":{"description":"The type of the note.","type":"string","enum":["admin","donation"],"default":"admin","required":false},"id":{"description":"The note ID.","type":"integer","required":true}}},{"methods":["DELETE"],"args":{"donationId":{"description":"The ID of the donation this note belongs to.","type":"integer","required":true},"id":{"description":"The note ID.","type":"integer","required":true}}}]},"\/givewp\/v3\/subscriptions":{"namespace":"givewp\/v3","methods":["GET","POST","DELETE"],"endpoints":[{"methods":["GET"],"args":{"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":30,"minimum":1,"maximum":100,"required":false},"sort":{"description":"Sort field for subscription results","type":"string","default":"id","enum":["id","createdAt","renewsAt","status","amount","feeAmountRecovered","donorId","firstName","lastName"],"required":false},"direction":{"description":"Sort direction for subscription results","type":"string","default":"DESC","enum":["ASC","DESC"],"required":false},"mode":{"description":"Subscription mode (live or test)","type":"string","default":"live","enum":["live","test"],"required":false},"status":{"description":"Filter subscriptions by status","type":"array","items":{"type":"string","enum":["any","pending","active","expired","completed","failing","cancelled","suspended","paused","trashed","refunded","abandoned"]},"default":["any"],"required":false},"campaignId":{"description":"Filter subscriptions by campaign ID","type":"integer","default":0,"required":false},"donorId":{"description":"Filter subscriptions by donor ID","type":"integer","default":0,"required":false},"includeSensitiveData":{"description":"Include or not include data that can be used to contact or locate the donors, such as phone number, email, billing address, etc. (require proper permissions)","type":"boolean","default":false,"required":false},"anonymousDonors":{"description":"Exclude, include, or redact data that can be used to identify the donors, such as ID, first name, last name, etc (require proper permissions).","type":"string","default":"exclude","enum":["exclude","include","redact"],"required":false}}},{"methods":["POST"],"args":{"id":{"description":"Subscription ID","type":"integer","required":false},"mode":{"default":"live","description":"Subscription mode (live or test)","type":"string","enum":["live","test"],"required":false},"campaignId":{"description":"Campaign ID","type":"integer","required":false},"donationFormId":{"description":"Donation form ID","type":"integer","required":true},"donorId":{"description":"Donor ID. Returns 0 for anonymous donors when data is redacted.","type":"integer","required":true},"firstName":{"description":"Donor first name. Returns &quot;anonymous&quot; for anonymous donors when data is redacted.","type":"string","format":"text-field","required":false},"lastName":{"description":"Donor last name. Returns &quot;anonymous&quot; for anonymous donors when data is redacted.","type":"string","format":"text-field","required":false},"amount":{"description":"Subscription amount","type":"object","properties":{"value":{"type":"number","description":"Amount in decimal format"},"valueInMinorUnits":{"type":"integer","description":"Amount in minor units (cents)"},"currency":{"type":"string","format":"text-field","description":"Currency code (e.g., USD, EUR)"}},"required":true},"feeAmountRecovered":{"description":"Fee amount recovered","type":["object","null"],"properties":{"value":{"type":"number","description":"Fee amount in decimal format"},"valueInMinorUnits":{"type":"integer","description":"Fee amount in minor units (cents)"},"currency":{"type":"string","format":"text-field","description":"Currency code (e.g., USD, EUR)"}},"required":false},"status":{"description":"Subscription status","type":"string","enum":["any","pending","active","expired","completed","failing","cancelled","suspended","paused","trashed","refunded","abandoned"],"required":true},"period":{"description":"Subscription billing period","type":"string","enum":["day","week","quarter","month","year"],"required":true},"frequency":{"description":"Billing frequency","type":"integer","required":true},"installments":{"default":0,"description":"Number of installments (0 for unlimited)","type":"integer","required":false},"transactionId":{"description":"Transaction ID. Returns empty string when sensitive data is excluded.","type":["string","null"],"format":"text-field","required":false},"gatewaySubscriptionId":{"description":"Gateway subscription ID. Returns empty string when sensitive data is excluded.","type":["string","null"],"format":"text-field","required":false},"gatewayId":{"description":"Payment gateway ID","type":"string","format":"text-field","required":true},"createdAt":{"description":"Subscription creation date in ISO 8601 format. Follows WordPress REST API date format standards. See <a href=\"https:\/\/developer.wordpress.org\/rest-api\/extending-the-rest-api\/schema\/#format\" target=\"_blank\">WordPress REST API Date and Time<\/a> for more information.","type":["string","null"],"format":"date-time","required":false},"renewsAt":{"description":"Next renewal date in ISO 8601 format. Follows WordPress REST API date format standards. See <a href=\"https:\/\/developer.wordpress.org\/rest-api\/extending-the-rest-api\/schema\/#format\" target=\"_blank\">WordPress REST API Date and Time<\/a> for more information.","type":["string","null"],"format":"date-time","required":false}}},{"methods":["DELETE"],"args":{"ids":{"description":"Array of subscription IDs to delete","type":"array","items":{"type":"integer"},"required":true},"force":{"description":"Whether to permanently delete (force=true) or move to trash (force=false, default).","type":"boolean","default":false,"required":false}}}],"_links":{"self":[{"href":"https:\/\/www.primature.gouv.ht\/wp-json\/givewp\/v3\/subscriptions"}]}},"\/givewp\/v3\/subscriptions\/(?P<id>[\\d]+)":{"namespace":"givewp\/v3","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"The subscription ID.","type":"integer","required":true},"_embed":{"description":"Whether to embed related resources in the response. It can be true when we want to embed all available resources, or a string like \"givewp:donor\" when we wish to embed only a specific one.","type":["string","boolean"],"default":false,"required":false},"includeSensitiveData":{"description":"Include or not include data that can be used to contact or locate the donors, such as phone number, email, billing address, etc. (require proper permissions)","type":"boolean","default":false,"required":false},"anonymousDonors":{"description":"Exclude, include, or redact data that can be used to identify the donors, such as ID, first name, last name, etc (require proper permissions).","type":"string","default":"exclude","enum":["exclude","include","redact"],"required":false}}},{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Subscription ID","type":"integer","required":false},"mode":{"description":"Subscription mode (live or test)","type":"string","enum":["live","test"],"required":false},"campaignId":{"description":"Campaign ID","type":"integer","required":false},"donationFormId":{"description":"Donation form ID","type":"integer","required":false},"donorId":{"description":"Donor ID. Returns 0 for anonymous donors when data is redacted.","type":"integer","required":false},"firstName":{"description":"Donor first name. Returns &quot;anonymous&quot; for anonymous donors when data is redacted.","type":"string","format":"text-field","required":false},"lastName":{"description":"Donor last name. Returns &quot;anonymous&quot; for anonymous donors when data is redacted.","type":"string","format":"text-field","required":false},"amount":{"description":"Subscription amount","type":"object","properties":{"value":{"type":"number","description":"Amount in decimal format"},"valueInMinorUnits":{"type":"integer","description":"Amount in minor units (cents)"},"currency":{"type":"string","format":"text-field","description":"Currency code (e.g., USD, EUR)"}},"required":false},"feeAmountRecovered":{"description":"Fee amount recovered","type":["object","null"],"properties":{"value":{"type":"number","description":"Fee amount in decimal format"},"valueInMinorUnits":{"type":"integer","description":"Fee amount in minor units (cents)"},"currency":{"type":"string","format":"text-field","description":"Currency code (e.g., USD, EUR)"}},"required":false},"status":{"description":"Subscription status","type":"string","enum":["any","pending","active","expired","completed","failing","cancelled","suspended","paused","trashed","refunded","abandoned"],"required":false},"period":{"description":"Subscription billing period","type":"string","enum":["day","week","quarter","month","year"],"required":false},"frequency":{"description":"Billing frequency","type":"integer","required":false},"installments":{"description":"Number of installments (0 for unlimited)","type":"integer","required":false},"transactionId":{"description":"Transaction ID. Returns empty string when sensitive data is excluded.","type":["string","null"],"format":"text-field","required":false},"gatewaySubscriptionId":{"description":"Gateway subscription ID. Returns empty string when sensitive data is excluded.","type":["string","null"],"format":"text-field","required":false},"gatewayId":{"description":"Payment gateway ID","type":"string","format":"text-field","required":false},"createdAt":{"description":"Subscription creation date in ISO 8601 format. Follows WordPress REST API date format standards. See <a href=\"https:\/\/developer.wordpress.org\/rest-api\/extending-the-rest-api\/schema\/#format\" target=\"_blank\">WordPress REST API Date and Time<\/a> for more information.","type":["string","null"],"format":"date-time","required":false},"renewsAt":{"description":"Next renewal date in ISO 8601 format. Follows WordPress REST API date format standards. See <a href=\"https:\/\/developer.wordpress.org\/rest-api\/extending-the-rest-api\/schema\/#format\" target=\"_blank\">WordPress REST API Date and Time<\/a> for more information.","type":["string","null"],"format":"date-time","required":false}}},{"methods":["DELETE"],"args":{"id":{"description":"The subscription ID.","type":"integer","required":true},"force":{"description":"Whether to permanently delete (force=true) or move to trash (force=false, default).","type":"boolean","default":false,"required":false}}}]},"\/givewp\/v3\/subscriptions\/(?P<id>[\\d]+)\/cancel":{"namespace":"givewp\/v3","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"id":{"type":"integer","required":true},"trash":{"type":"boolean","default":false,"description":"Whether to also move the subscription to trash (trash=true) instead of just canceling it.","required":false}}}]},"\/givewp\/v3\/subscriptions\/(?P<subscriptionId>[\\d]+)\/notes":{"namespace":"givewp\/v3","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"subscriptionId":{"description":"The ID of the subscription this note belongs to.","type":"integer","required":true},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":30,"minimum":1,"maximum":100,"required":false}}},{"methods":["POST"],"args":{"content":{"description":"The content of the note.","type":"string","minLength":1,"required":true},"subscriptionId":{"description":"The ID of the subscription this note belongs to.","type":"integer","required":true},"type":{"description":"The type of the note.","type":"string","enum":["admin","subscription"],"default":"admin","required":true}}}]},"\/givewp\/v3\/subscriptions\/(?P<subscriptionId>[\\d]+)\/notes\/(?P<id>[\\d]+)":{"namespace":"givewp\/v3","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"subscriptionId":{"description":"The ID of the subscription this note belongs to.","type":"integer","required":true},"id":{"description":"The note ID.","type":"integer","required":true}}},{"methods":["POST","PUT","PATCH"],"args":{"content":{"description":"The content of the note.","type":"string","minLength":1,"required":false},"subscriptionId":{"description":"The ID of the subscription this note belongs to.","type":"integer","required":true},"type":{"description":"The type of the note.","type":"string","enum":["admin","subscription"],"default":"admin","required":false},"id":{"description":"The note ID.","type":"integer","required":true}}},{"methods":["DELETE"],"args":{"subscriptionId":{"description":"The ID of the subscription this note belongs to.","type":"integer","required":true},"id":{"description":"The note ID.","type":"integer","required":true}}}]},"\/givewp\/v3\/forms\/(?P<id>[0-9]+)":{"namespace":"givewp\/v3","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"type":"integer","required":true}}}]},"\/givewp\/v3\/forms":{"namespace":"givewp\/v3","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"status":{"type":"array","items":{"type":"string","enum":["publish","future","draft","pending","trash","upgraded","private","orphaned"]},"default":["publish"],"required":false},"ids":{"type":"array","default":[],"required":false},"page":{"type":"integer","default":1,"minimum":1,"required":false},"per_page":{"type":"integer","default":30,"minimum":1,"maximum":100,"required":false}}}],"_links":{"self":[{"href":"https:\/\/www.primature.gouv.ht\/wp-json\/givewp\/v3\/forms"}]}},"\/givewp\/v3\/associate-forms-with-campaign":{"namespace":"givewp\/v3","methods":["POST","PUT","PATCH"],"endpoints":[{"methods":["POST","PUT","PATCH"],"args":{"formIDs":{"type":"array","required":true},"campaignId":{"type":"integer","required":true}}}],"_links":{"self":[{"href":"https:\/\/www.primature.gouv.ht\/wp-json\/givewp\/v3\/associate-forms-with-campaign"}]}}},"_links":{"up":[{"href":"https:\/\/www.primature.gouv.ht\/wp-json\/"}]}}