POST api/CRM/ProcessPurchaseOrder
Adds new purchase order (i.e. adds a Product entry in WebCRM, creates one regular and one contract invoice in Billecta, created agreement PDF and sends email with agreement.)
Request Information
URI Parameters
None.
Body Parameters
PurchaseCompletionOrder| Name | Description | Type | Additional information |
|---|---|---|---|
| AutogiroDetails |
Debtor Autogiro details |
AutogiroDetails |
None. |
| PersonNumber |
Billecta's Person number of Payer |
string |
None. |
| PayerPersonNumber |
Billecta's Person number of Payer |
string |
None. |
| LeadId | globally unique identifier |
None. |
|
| PaymentDuration | PaymentDuration |
None. |
|
| InvoiceType | InvoiceTypes |
None. |
Request Formats
application/json, text/json
Sample:
{
"AutogiroDetails": {
"$id": "2",
"AccountNo": "sample string 1",
"ClearingNo": "sample string 2",
"PaymentServiceSupplier": "sample string 3"
},
"PersonNumber": "sample string 1",
"PayerPersonNumber": "sample string 2",
"LeadId": "5b73d1ad-a804-461e-8f4b-5d9bb4e963b1",
"PaymentDuration": 1,
"InvoiceType": 1
}
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Response| Name | Description | Type | Additional information |
|---|---|---|---|
| Result | boolean |
None. |
|
| Message | string |
None. |
|
| Errors | Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"Result": true,
"Message": "sample string 2",
"Errors": {
"$id": "2"
}
}